Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to specify user_id when creating keypair #1349

Merged
merged 1 commit into from Mar 13, 2022

Conversation

smutel
Copy link
Contributor

@smutel smutel commented Feb 1, 2022

Implement #1230

@smutel smutel force-pushed the KeyPairUser branch 3 times, most recently from 343034c to 5606984 Compare February 8, 2022 14:04
@smutel smutel marked this pull request as ready for review February 8, 2022 14:05
@smutel
Copy link
Contributor Author

smutel commented Feb 8, 2022

Currently, I didn't implement the data part. I would like to have a review from someone first.

@smutel smutel force-pushed the KeyPairUser branch 2 times, most recently from 7ff1595 to 42a94d9 Compare February 10, 2022 08:43
@smutel
Copy link
Contributor Author

smutel commented Feb 17, 2022

Could you please start the CI again ?

@ozerovandrei
Copy link
Member

recheck

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 17, 2022

@smutel
Copy link
Contributor Author

smutel commented Feb 18, 2022

Could you please confirm that the CI is crashing due to my code ?

@ozerovandrei
Copy link
Member

@smutel yeah, import test is failing:

2022-02-17 19:11:30.266925 | ubuntu-focal |     TestAccComputeV2Keypair_importBasic: import_openstack_compute_keypair_v2_test.go:12: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected
.
2022-02-17 19:11:30.267095 | ubuntu-focal |
2022-02-17 19:11:30.267233 | ubuntu-focal |         (map[string]string) {
2022-02-17 19:11:30.267297 | ubuntu-focal |         }
2022-02-17 19:11:30.268166 | ubuntu-focal |
2022-02-17 19:11:30.268284 | ubuntu-focal |
2022-02-17 19:11:30.268414 | ubuntu-focal |         (map[string]string) (len=1) {
2022-02-17 19:11:30.268561 | ubuntu-focal |          (string) (len=7) "user_id": (string) ""
2022-02-17 19:11:30.268611 | ubuntu-focal |         }

@smutel
Copy link
Contributor Author

smutel commented Feb 28, 2022

@smutel yeah, import test is failing:

2022-02-17 19:11:30.266925 | ubuntu-focal |     TestAccComputeV2Keypair_importBasic: import_openstack_compute_keypair_v2_test.go:12: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected
.
2022-02-17 19:11:30.267095 | ubuntu-focal |
2022-02-17 19:11:30.267233 | ubuntu-focal |         (map[string]string) {
2022-02-17 19:11:30.267297 | ubuntu-focal |         }
2022-02-17 19:11:30.268166 | ubuntu-focal |
2022-02-17 19:11:30.268284 | ubuntu-focal |
2022-02-17 19:11:30.268414 | ubuntu-focal |         (map[string]string) (len=1) {
2022-02-17 19:11:30.268561 | ubuntu-focal |          (string) (len=7) "user_id": (string) ""
2022-02-17 19:11:30.268611 | ubuntu-focal |         }

Except putting user_id here, I don't know how to resolve this ...

ImportStateVerifyIgnore: []string{"private_key"},

resource id is the only parameter permitted by terraform import command so it will not be possible to import keypair resources from another user with admin account.

@smutel smutel force-pushed the KeyPairUser branch 2 times, most recently from 60bac7c to e41a798 Compare February 28, 2022 15:16
@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 28, 2022

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 4, 2022

Build failed.

  • terraform-provider-openstack-unittest-foo : RETRY_LIMIT in 5m 05s
  • terraform-provider-openstack-acceptance-test-foo : RETRY_LIMIT in 3h 01m 43s
  • terraform-provider-openstack-acceptance-test-admin-foo : RETRY_LIMIT in 1h 10m 27s

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 9, 2022

Build failed.

  • terraform-provider-openstack-unittest-foo : RETRY_LIMIT in 4m 48s
  • terraform-provider-openstack-acceptance-test-foo : RETRY_LIMIT in 3h 10m 09s
  • terraform-provider-openstack-acceptance-test-admin-foo : RETRY_LIMIT in 59m 26s

@smutel
Copy link
Contributor Author

smutel commented Mar 11, 2022

Any ideas to pass the CI will be helpful ...

@ozerovandrei
Copy link
Member

recheck

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 13, 2022

@ozerovandrei
Copy link
Member

Error is unrelated:

TestAccSFSV2Share_update: resource_openstack_sharedfilesystem_share_v2_test.go:71: Step 1/4 error: Check failed: Check 5/5 error: Metadata does not match. Expected map[] but got value

Copy link
Member

@ozerovandrei ozerovandrei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @smutel

@ozerovandrei ozerovandrei merged commit 1d45581 into terraform-provider-openstack:main Mar 13, 2022
@smutel
Copy link
Contributor Author

smutel commented Mar 24, 2022

Is-it possible to have a new release with this feature please ?

@smutel
Copy link
Contributor Author

smutel commented Jun 21, 2022

Hello @ozerovandrei,

Did you plan to create a new release soon ?

Thanks.

@ozerovandrei
Copy link
Member

Hello @smutel
It would be great to fix CI first to ensure that our provider works as expected prior releasing a new version: #1366
Unfortunately I haven't been able to find any time to do it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants