-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Restart ceilometer-agent-compute after nova-compute upgrade #435
feat: Restart ceilometer-agent-compute after nova-compute upgrade #435
Conversation
8b612c1
to
46a9dcc
Compare
46a9dcc
to
97cd898
Compare
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'm not sure which way it's easier to implement, but we can't rely upon application name. I see two options:
- Somehow include the charm name during the instantiation of
SubordinateUnit
- Don't implement the
SubordinateUnit
class and pass just the nova-compute units to a function that will access the juju status, find the ceilometer-agents and restart if necessary
I like the option 1 because it looks flexible if we need to do more things with subordinates units when upgrading a principal, but this might require more unit tests
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 realized that for some reason the new post upgrade steps are not showing into the mocked_plans, hypervisors and core unit tests. Probably you need to add ceilometer subordinate units.
You also need to include the subordinates new field into the string representation of OpenStackApplication so in the future we can get this new information and replicate into mocked tests. I'm ok not updating on all mocked plans now, but I would like to see at least one changed and working as expected.
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.
Adding one comment, which can simplify this approach, but it needs to be discussed. Currently, this changes bring new features, which also needs to be discussed.
tests/mocked_plans/sample_plans/018346c5-f95c-46df-a34e-9a78bdec0018.yaml
Show resolved
Hide resolved
Hi @gabrielcocenza , can I get your review again? All the comments from you are been addressed. |
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.
This looks good to me - just some small nits/suggestions.
tests/mocked_plans/sample_plans/018346c5-f95c-46df-a34e-9a78bdec0018.yaml
Outdated
Show resolved
Hide resolved
8e4d021
to
8a2fe23
Compare
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.
LGTM. Thanks
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.
LGTM
…ova-compute-upgrade
Fix: #427