Skip to content

Compute v2: Implement Hypervisor request options #2187

Merged
jtopjian merged 4 commits intogophercloud:masterfrom
jtopjian:hypervisor
Jul 10, 2021
Merged

Compute v2: Implement Hypervisor request options #2187
jtopjian merged 4 commits intogophercloud:masterfrom
jtopjian:hypervisor

Conversation

@jtopjian
Copy link
Copy Markdown
Contributor

@jtopjian jtopjian commented Jul 1, 2021

For #2132
Supersedes #2131

ntk148v and others added 3 commits March 26, 2021 16:09
Signed-off-by: Kien Nguyen <kiennt2609@gmail.com>
This commit changes hypervisors.Hypervisor.Servers from
[]*Server to *[]Server to better conform with microversioned
result fields.
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 1, 2021

Coverage Status

Coverage decreased (-0.03%) to 79.872% when pulling 74df355 on jtopjian:hypervisor into c9471fc on gophercloud:master.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jul 1, 2021

Build failed.

@jtopjian jtopjian changed the title Hypervisor Compute v2: Implement Hypervisor request options Jul 1, 2021
@jtopjian
Copy link
Copy Markdown
Contributor Author

jtopjian commented Jul 1, 2021

recheck

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jul 1, 2021

Build succeeded.

@jtopjian
Copy link
Copy Markdown
Contributor Author

jtopjian commented Jul 1, 2021

@kayrus Do you mind reviewing this when you have time?

Copy link
Copy Markdown
Contributor

@kayrus kayrus left a comment

Choose a reason for hiding this comment

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

I don't have a use case for this API call, I can only try to run acceptance tests.
The only thing that I have concerns on is an API version in docs.

fmt.Printf("%+v\n", hypervisor)
}

Example of Retrieving Details of All Hypervisors with Compute API microversion greater than 2.33
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not clear which microversion end user needs to use. 2.33 or 2.53 (from the acceptance tests)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is confusing, yes. The newly added ListOpts includes options that are valid in either 2.33 or 2.53. The title of this example is supposed to denote that microversion 2.33+ is required.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Jul 5, 2021

Build succeeded.

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.

4 participants