(config-changed) Cannot disable Router HA while ha enabled routers exist. Please remove any ha routers

Bug #1657195 reported by Aymen Frikha
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron API Charm
Invalid
Undecided
Unassigned
neutron-api (Juju Charms Collection)
Invalid
Undecided
Unassigned

Bug Description

After restarting the host that contain neutron-api service, neutron-api service report: (config-changed) Cannot disable Router HA while ha enabled routers exist. Please remove any ha routers

Unit Workload Agent Machine Public address Ports Message

neutron-api/0 blocked executing 0/lxd/10 10.20.0.147 9696/tcp (config-changed) Cannot disable Router HA while ha enabled routers exist. Please remove any ha routers

There is a router ha already configured in openstack, but restarting the unit shouldn't provide this error message.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

juju logs for neutron-api

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

neutron-server logs

Revision history for this message
James Page (james-page) wrote :

What's the value for configuration option 'enable-l3ha'?

Changed in neutron-api (Juju Charms Collection):
status: New → Incomplete
Revision history for this message
James Page (james-page) wrote :

For context - if enable-l3ha is not set to True, and via an admin account you create a router with the HA flag enabled, this error will be thrown. Deployments intending to use HA routers should enable this flag so that routers by default are HA.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

enable-l3ha is set to true and a router is created via an admin account.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

juju version 2.0.2

Revision history for this message
David Ames (thedac) wrote :

See "Disabling L3 HA, l2-population must be disabled with L3 HA" in the log.

Having l2-population set to ture will cause this code block to return false which leads to the "Cannot disable Router HA while ha enabled routers exist. Please remove any ha routers" error.

def get_l3ha():
    if config('enable-l3ha'):
        if os_release('neutron-server') < 'juno':
            log('Disabling L3 HA, enable-l3ha is not valid before Juno')
            return False
        if get_l2population():
            log('Disabling L3 HA, l2-population must be disabled with L3 HA')
            return False
        return True
    else:
        return False

Please set l2-population to False.

This bug should be changed to better report to the end user what configuration problems may exist.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :

When we put l2-polpulation to False it resolved the problem. It may needs better documentation on that, because l2-population by default is True.

James Page (james-page)
Changed in charm-neutron-api:
status: New → Incomplete
Changed in neutron-api (Juju Charms Collection):
status: Incomplete → Invalid
David Ames (thedac)
Changed in charm-neutron-api:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.