-
Notifications
You must be signed in to change notification settings - Fork 113
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
Handle multiple aggregates properly #135
Handle multiple aggregates properly #135
Conversation
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.
Thanks, LGTM.
Hi there, Is this good to merge? |
Hi @pponnuvel , we need two 2 approving reviews to merge. |
This exporter is only workable under old LMA stack. |
353e170
to
ca27966
Compare
Hi@Pjack, yes, I am aware openstack-exporter supersedes this, and that's been the case for some time. A user insisted that this is a bug and really keen to have this until they migrate to the openstack-exporter. So I am hoping we could get this in until users migrate. |
ca27966
to
392a75c
Compare
Currently, if there are multiple aggregates present only the last one is displayed. So the current handling is broken. This change lists them all so that it be grouped by hypervisors and/or individual aggregate type(s). Fixes canonical#38. Signed-off-by: Ponnuvel Palaniyappan <ponnuvel.palaniyappan@canonical.com>
392a75c
to
c6c5282
Compare
Thanks @pponnuvel . There are currently no tests in CI, so I'm going to have a go at testing this manually. |
I've tested in an environment both with & without aggregates and it's working. Please let me know if you'd like to use mine. |
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.
Thanks for confirming testing status. 👍
Currently, if there are multiple aggregates present only the last one is displayed. So the current handling is broken.
This change lists them all so that it be grouped by hypervisors and/or individual aggregate type(s).
Fixes #38.
A different fix was proposed in #57.
But it joins all the aggreates together and they can't be queried, if needed, by aggregate types once joined.
To contrast,
WIth #57, it'd looks like:
whereas I am proposing:
This is better for querying and also has been requested by a user.