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

Add BaseWallabyOVNChassisCharm class #54

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

coreycb
Copy link

@coreycb coreycb commented Nov 18, 2021

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

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
Comment on lines 948 to 961
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']
Copy link
Contributor

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']

Copy link
Author

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.

Copy link
Contributor

@ajkavanagh ajkavanagh left a 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.

@lourot lourot merged commit 412e098 into openstack-charmers:master Nov 19, 2021
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