-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add BaseWallabyOVNChassisCharm class #54
Conversation
The openstack-release package is added in the Wallaby class as this package was introduced in the wallaby release to make determination of the OpenStack release codename easier. Closes-Bug: #1951462
lib/charms/ovn_charm.py
Outdated
class BaseWallabyOVNChassisCharm(BaseOVNChassisCharm): | ||
"""Wallaby incarnation of the OVN Chassis base charm class.""" | ||
abstract_class = True | ||
openstack_packages = ['neutron-ovn-metadata-agent', 'openstack-release'] | ||
openstack_services = ['neutron-ovn-metadata-agent'] | ||
openstack_restart_map = { | ||
'/etc/neutron/neutron_ovn_metadata_agent.ini': [ | ||
'neutron-ovn-metadata-agent']} | ||
nrpe_check_base_services = [ | ||
'ovn-controller', | ||
'ovs-vswitchd', | ||
'ovsdb-server'] | ||
nrpe_check_openstack_services = [ | ||
'neutron-ovn-metadata-agent'] |
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 is practically the same as the Ussuri one. Why not do:
class BaseWallabyOVNChassisCharm(BaseUssuriOVNChassisCharm):
abstract_class = True
openstack_packages = ['neutron-ovn-metadata-agent', 'openstack-release']
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 wanted to do that but decided to follow suit. I'll update that.
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.
Please see inline comment.
The openstack-release package is added in the Wallaby class as this
package was introduced in the wallaby release to make determination
of the OpenStack release codename easier.
Closes-Bug: #1951462