Comment 18 for bug 1542483

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19852
Committed: http://github.org/Juniper/contrail-controller/commit/7a4ef61a2a04aef466e71e7274d437d4360b02a3
Submitter: Zuul
Branch: R2.21.x

commit 7a4ef61a2a04aef466e71e7274d437d4360b02a3
Author: Jean-Philippe Braun <email address hidden>
Date: Tue May 3 17:28:01 2016 +0200

Fix update_sg_si_vmi

Fixes multiple issues in update_sg_si_vmi:

1. VIP VMI is created without any SG so vip_vmi_cfg.security_group_refs
fails:

> SvcMonitorLog: Error 'VirtualMachineInterface' object has no attribute 'security_group_refs' while updating sgs for SI VMIs

2. Return early when the VMI has no instance-ip attached yet:

> SvcMonitorLog: Error 'NoneType' object has no attribute 'virtual_machine_interfaces' while updating sgs for SI VMIs

Change-Id: I15dc7695fb9241ce61278fedc44a16dbe630e351
Closes-Bug: #1542483