function _create_svc_vm_port in instance_manager.py cannnot update the VN information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
New
|
Undecided
|
Rudra Rugge |
Bug Description
see file instance_manager.py in the svc_monitor
see those lines from line 476
for vmi in VirtualMachineI
if vmi.fq_name == port_fq_name:
we will select a vmi by matching the port name.
if not vmi_network:
we will update the vmi VN information only if it doesn't have any vn information.
therefore,
in this case:
User create a SI with wrong VNs in my test case is user use same VN for the left interface and right interface, the openstack Nova api gives an error to complain about that the same VN choose:
nova error Network f245f012-
Therefore, the whole process of creating SI have been blocked, the vmi don't have any VM, and therefore it will not update the service instance information for the VMI.
Our vmi cleaning process in the svc_monitor.py
line 716:
for vmi in VirtualMachineI
si = ServiceInstance
if si and not vmi.virtual_
we only process the vmi that have the si information, so the VMI will not be deleted.
So, when the user correct the configuration, and recreate the service instance with same name again, we will be blocked to the old wrong configuration, because we will not update the new VN information.
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
assignee: | nobody → Rudra Rugge (rudrarugge) |