-
Notifications
You must be signed in to change notification settings - Fork 87
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
Update gophercloud client to v2 #951
base: master
Are you sure you want to change the base?
Conversation
/test |
Testrun: e2e-cxfk4 +---------------------+-----------------------------+--------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+--------+----------+ | infrastructure-test | infrastructure-test | Failed | 8m15s | | infrastructure-test | infrastructure-test-flow | Failed | 8m15s | | infrastructure-test | infrastructure-test-migrate | Failed | 8m15s | | infrastructure-test | infrastructure-test-recover | Failed | 8m14s | | bastion-test | bastion-test | Failed | 8m11s | +---------------------+-----------------------------+--------+----------+ |
@hebelsan You need rebase this pull request with latest master branch. Please check. |
11fa368
to
339ce0d
Compare
/test |
Testrun: e2e-c7n5l +---------------------+-----------------------------+--------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+--------+----------+ | infrastructure-test | infrastructure-test | Failed | 10m57s | | infrastructure-test | infrastructure-test-flow | Failed | 10m57s | | infrastructure-test | infrastructure-test-migrate | Failed | 10m56s | | infrastructure-test | infrastructure-test-recover | Failed | 10m57s | | bastion-test | bastion-test | Failed | 10m51s | +---------------------+-----------------------------+--------+----------+ |
the infra test work with basic credentials, but something is still missing to make the client working with app credentials (what the tm is using). |
pkg/openstack/client/client.go
Outdated
provider.HTTPClient = *opts.HTTPClient | ||
|
||
err = openstack.Authenticate(provider, *authOpts) | ||
err = openstack.Authenticate(ctx, provider, authOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI openstack.Authenticate() is called in config.NewProviderClient() as well.
I managed to get a working client without the extra Authenticate for my usecase. Though I didn't explicitly set TLSConfig, HTTPClient like you are.
fc0bf80
to
26e652c
Compare
/test |
Testrun: e2e-q4rhj +---------------------+-----------------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+-----------+----------+ | infrastructure-test | infrastructure-test-flow | Succeeded | 12m52s | | infrastructure-test | infrastructure-test-migrate | Failed | 9m43s | | infrastructure-test | infrastructure-test-recover | Failed | 9m43s | | bastion-test | bastion-test | Succeeded | 11m35s | | infrastructure-test | infrastructure-test | Succeeded | 12m42s | +---------------------+-----------------------------+-----------+----------+ |
/test |
Testrun: e2e-vk8pl +---------------------+-----------------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+-----------+----------+ | infrastructure-test | infrastructure-test | Succeeded | 13m51s | | infrastructure-test | infrastructure-test-flow | Succeeded | 14m51s | | infrastructure-test | infrastructure-test-migrate | Succeeded | 12m47s | | infrastructure-test | infrastructure-test-recover | Succeeded | 15m12s | | bastion-test | bastion-test | Succeeded | 11m20s | +---------------------+-----------------------------+-----------+----------+ |
/test |
Testrun: e2e-rbpl8 +---------------------+-----------------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+-----------+----------+ | infrastructure-test | infrastructure-test-migrate | Succeeded | 11m18s | | infrastructure-test | infrastructure-test-recover | Succeeded | 14m30s | | bastion-test | bastion-test | Succeeded | 10m50s | | infrastructure-test | infrastructure-test | Succeeded | 12m59s | | infrastructure-test | infrastructure-test-flow | Succeeded | 11m57s | +---------------------+-----------------------------+-----------+----------+ |
if fip.Status != "ACTIVE" || instance.Status != "ACTIVE" { | ||
return fmt.Errorf("instance or floating ip address not ready yet") | ||
} | ||
|
||
return networkClient.UpdateFIPWithPort(ctx, floatingIP.ID, instancePort.ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I understand this part. You already associate the fip if it's not already. Why do you make a second update call ?
return nil | ||
} | ||
|
||
if fip.Status != "ACTIVE" || instance.Status != "ACTIVE" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something to doublecheck, but I believe the FIP should already be active upon successful creation, and well, likewise for the instance. Is assigning the IP to the instance actually changing the instance status or the FIP status ? I would also argue that if not then there could be a wait introduced but not in this place.
How to categorize this PR?
/area quality
/kind enhancement
/platform openstack
What this PR does / why we need it:
This PR updates the gophercloud client to v2.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: