Skip to content

Add os-aggregates support - #691

Merged
jtopjian merged 6 commits into
gophercloud:masterfrom
ildarsv:add-host-aggregates
Dec 30, 2017
Merged

jtopjian merged 6 commits into
gophercloud:masterfrom
ildarsv:add-host-aggregates

Conversation

@ildarsv

@ildarsv ildarsv commented Dec 25, 2017 •

Copy link
Copy Markdown
Contributor

@ildarsv

ildarsv commented Dec 25, 2017

Copy link
Copy Markdown
Contributor Author

Hello @jaypipes, @jtopjian ! Please review this stuff, when you have time :)

@coveralls

coveralls commented Dec 25, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 72.921% when pulling b60e167 on ildarsv:add-host-aggregates into 05116c7 on gophercloud:master.

@ildarsv ildarsv mentioned this pull request Dec 25, 2017
@theopenlab-ci

theopenlab-ci Bot commented Dec 25, 2017

Copy link
Copy Markdown

@jtopjian

Copy link
Copy Markdown
Contributor

@ildarsv Thank you for submitting this. I did a cursory scan and this looks good - thank you for limiting this to only List as well as including documentation.

There are three things missing, though, before I can do a full review:

  1. Link to the Nova code that implements aggregates.
  2. Unit tests
  3. Acceptance test (even if the test returns no actual results)

Please let me know if you have any questions or need any help.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 72.96% when pulling 9ddbf1a on ildarsv:add-host-aggregates into 05116c7 on gophercloud:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 72.96% when pulling 9ddbf1a on ildarsv:add-host-aggregates into 05116c7 on gophercloud:master.

@ildarsv

ildarsv commented Dec 27, 2017

Copy link
Copy Markdown
Contributor Author

@jtopjian Thanks for the quick response! Sorry for the non-observance of rules.
I've added link to the Nova code and required tests. Please review when you have time.

@theopenlab-ci

theopenlab-ci Bot commented Dec 27, 2017

Copy link
Copy Markdown

@coveralls

coveralls commented Dec 27, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 72.96% when pulling 3debc2c on ildarsv:add-host-aggregates into 05116c7 on gophercloud:master.

@theopenlab-ci

theopenlab-ci Bot commented Dec 27, 2017

Copy link
Copy Markdown

@jtopjian

Copy link
Copy Markdown
Contributor

@ildarsv Thanks!

In general this looks good. I have one item for discussion, though: the list of fields defined here:

https://github.com/openstack/nova/blob/09ed3b5626ac306e59856db89858eb7bee4daa0e/nova/objects/aggregate.py#L242-L250

shows a metadata field. I think we should include this in the results.go file. It should be a simple map[string]string type.

I think it should be safe to leave out the deleted field and the timestamp fields, at least for now. There's a comment in the objects/aggregate.py file that mentions delete and deleted_at being deprecated.

Let me know if you have any questions or see a reason not to include metadata.

@ildarsv

ildarsv commented Dec 29, 2017

Copy link
Copy Markdown
Contributor Author

@jtopjian Good point, thanks! I've added metadata field. Yes, let's skip the rest fields.

@coveralls

coveralls commented Dec 29, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 72.784% when pulling d97bbf0 on ildarsv:add-host-aggregates into 05116c7 on gophercloud:master.

@coveralls

coveralls commented Dec 29, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 72.784% when pulling 907bb55 on ildarsv:add-host-aggregates into 8e59687 on gophercloud:master.

@theopenlab-ci

theopenlab-ci Bot commented Dec 29, 2017

Copy link
Copy Markdown

@jtopjian

Copy link
Copy Markdown
Contributor

This looks good to me. Thank you for working on it :)

@jtopjian
jtopjian merged commit af117d5 into gophercloud:master Dec 30, 2017
@ildarsv
ildarsv deleted the add-host-aggregates branch December 31, 2017 07:30
cardoe pushed a commit to cardoe/gophercloud that referenced this pull request Aug 27, 2020
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.

3 participants