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

fixes #10720 - Adds API to get host vm attributes #2440

Closed
wants to merge 1 commit into from
Closed

fixes #10720 - Adds API to get host vm attributes #2440

wants to merge 1 commit into from

Conversation

hufman
Copy link
Contributor

@hufman hufman commented Jun 5, 2015

This exposes an API to fetch a host's vm_compute_attributes, such as vmware cpus and memory. It lives at a separate endpoint because it involves a fetch for data from the compute resource, and may have different performance characteristics than the database.

@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • 81f1fa7 must be in the format Fixes/refs #redmine_number - brief description.

Guidelines are available on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

@hufman hufman changed the title fixes #10720 Adds API to get host vm attributes fixes #10720 - Adds API to get host vm attributes Jun 5, 2015
@dLobatog
Copy link
Member

dLobatog commented Jun 6, 2015

[test]

@@ -180,6 +180,7 @@ Trey Dockendorf <treydock@tamu.edu>
Unknown <flo@WKS-W7-LDN-0034.tradition.int>
Vanya Jauhal <vanyajauhal1995@gmail.com>
Walden Raines <walden@redhat.com>
Walter Huf <hufman@google.com>
Copy link
Member

Choose a reason for hiding this comment

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

This change not necessary, it gets autogenerated on every release 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I didn't know that.

@dLobatog
Copy link
Member

dLobatog commented Jun 6, 2015

I've triggered Jenkins tests with the previous comment. Thanks for your contribution @hufman !

@dLobatog
Copy link
Member

dLobatog commented Jun 6, 2015

Looks like you'll have to define permissions, tests failed, see access_permissions.rb

This exposes an API to fetch a host's vm_compute_attributes,
such as vmware cpus and memory. It lives at a separate endpoint
because it involves a fetch for data from the compute resource,
and may have different performance characteristics than the database.
@hufman
Copy link
Contributor Author

hufman commented Jun 8, 2015

Happy Monday! I incorporated your suggestions.

@mmoll
Copy link
Contributor

mmoll commented Jun 8, 2015

[test]

@dLobatog
Copy link
Member

dLobatog commented Jun 8, 2015

@hufman Works pretty well, I'll rereview the code and merge if Mr. Jenkins agrees it's 👍

@dLobatog
Copy link
Member

dLobatog commented Jun 8, 2015

Merged as 1a8af05, thanks @hufman!

@dLobatog dLobatog closed this Jun 8, 2015
@hufman hufman deleted the 10720-vm_attributes branch June 8, 2015 19:55
@hufman
Copy link
Contributor Author

hufman commented Jun 11, 2015

Oh no! I built the response to look like the v1 api response, but I added it to the v2 api space. Can I add a patch to fix this? Basically removing the outer 'vm_compute_attributes' level so it's just the actual data.

@domcleal
Copy link
Contributor

@hufman sure, please just send us another PR. Thanks!

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