Creation of loadbalancer fails with plug vip exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Here is the scenario:
I have two compete nodes with following bridge mappings:
Compute node 1:
1. physnet3:br-hed0 (This is the octavia-
2. physnet2: br-hed2
Compute node 2:
1. physnet3:br-hed0 (This is the octavia-
2. physnet1:br-hed1
3. physnet2:br-hed2
Now if I create a loadbalancer with VIP in physnet1, the NOVA is scheduling the amphora image on compute node1. However as there is no physnet1 mapping in compute node 1, the octavia is failing to plug the amphora image into VIP network.
Expected result:
Octavia should internally check if the availability zone on which nova is scheduling the amphora image has the mapping for the required VIP network or not.
Here is the VIP network details:
stack@padawan-
-------
Field Value
-------
admin_state_up True
availability_
availability_zones nova
created_at 2016-07-29T03:45:02
description
id cd5a5e69-
ipv4_address_scope
ipv6_address_scope
mtu 1500
name net1
provider:
provider:
provider:
router:external False
shared False
status ACTIVE
subnets 115f7f23-
tags
tenant_id 6b192dcb6a704f7
updated_at 2016-07-29T03:45:02
-------
stack@padawan-
Here is the exception from octavia-worker.log:
"/var/log/
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
2016-07-29 03:46:39.043 10434 ERROR oslo_messaging.
The same issue will arise w.r.t spare pools.
This issue is seen in stable/mitaka
affects: | neutron → octavia |
tags: | added: mitaka-backport-potential |
Changed in octavia: | |
status: | Won't Fix → Invalid |
This is working as designed.
Octavia is a load balancing driver that hot-plugs networks requested by users into the load balancer (amphora). This allows the user flexibility in what networks they use for their VIP network and/or their backend member networks. Because of this we cannot predict what networks a user may request plugged into the amphora at nova boot time.
If we took your recommendation and plugged the VIP network in at Nova boot time, the user would run into the same error when they added backend member networks.
To support this end user flexibility, we require the operator to use Nova flavors that allow the amphora access to the user networks such that Octavia can fulfill the user requests for load balancing on those networks.
For this use case, I would recommend that you create a nova flavor that is restricted to hosts that have the required physical networks available. You can specify the nova flavor for Octavia to use in the octavia.conf configuration file.