fab prov_esxi task broken for esxi-as-compute (non-vcenter)

Bug #1452647 reported by Sunil Basker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.1
Fix Committed
Critical
Yuvaraja Mariappan
R2.20
Fix Committed
Critical
Yuvaraja Mariappan
Trunk
Fix Committed
Critical
Yuvaraja Mariappan

Bug Description

ESXi as compute (non-vcenter) is broken in 2.11#55 and possibly in 2.20 & mainline

Fab prov_esxi aborts with the following message,

[sunilbasker@noded1 contrail-fabric-utils]$ fab prov_esxi
[stack@10.204.216.56] Executing task 'prov_esxi'
2015-05-07 15:03:53:787738: Traceback (most recent call last):
2015-05-07 15:03:53:787952: File "/usr/lib/python2.7/site-packages/fabric/main.py", line 743, in main
2015-05-07 15:03:53:788000: *args, **kwargs
2015-05-07 15:03:53:788184: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 375, in execute
2015-05-07 15:03:53:788237: multiprocessing
2015-05-07 15:03:53:788354: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 271, in _execute
2015-05-07 15:03:53:788403: return task.run(*args, **kwargs)
2015-05-07 15:03:53:788596: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
2015-05-07 15:03:53:788630: return self.wrapped(*args, **kwargs)
2015-05-07 15:03:53:788735: File "/usr/lib/python2.7/site-packages/fabric/decorators.py", line 53, in inner_decorator
2015-05-07 15:03:53:788787: return func(*args, **kwargs)
2015-05-07 15:03:53:788852: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 168, in __call__
2015-05-07 15:03:53:788908: return self.run(*args, **kwargs)
2015-05-07 15:03:53:789011: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
2015-05-07 15:03:53:789043: return self.wrapped(*args, **kwargs)
2015-05-07 15:03:53:789143: File "/home/sunilbasker/pristine/contrail-fabric-utils/fabfile/tasks/provision.py", line 1931, in prov_esxi
2015-05-07 15:03:53:789195: if 'dv_switch_fab' in vcenter_info.keys():
2015-05-07 15:03:53:789570: UnboundLocalError: local variable 'vcenter_info' referenced before assignment

Possible candidate for causing regression,

commit 36e1fa57e52de7c227f042c6dfd99bc10a495c5c
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon Apr 27 15:16:07 2015 -0700

    support is added to create the fab network in distribued switch

Changed in juniperopenstack:
importance: Undecided → Critical
assignee: nobody → Sunil Bakhru (sbakhru)
tags: added: provisioning vmware
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.20

Review in progress for https://review.opencontrail.org/10204
Submitter: Yuvaraja Mariappan

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.1

Review in progress for https://review.opencontrail.org/10205
Submitter: Yuvaraja Mariappan

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/10206
Submitter: Yuvaraja Mariappan

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

Reviewed: https://review.opencontrail.org/10206
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/722201e12720f290d7906e6e9c603f8d50e5217e
Submitter: Zuul
Branch: master

commit 722201e12720f290d7906e6e9c603f8d50e5217e
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon May 11 16:39:43 2015 -0700

Bug: 1452647

fab network in dvs switch is done for vcenter and not for the openstack.

It is missed to take care openstack part when we added the support
in vcenter

Change-Id: I60b10fec0edcf8948048f845f157f90f69fb13e6

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.20

Review in progress for https://review.opencontrail.org/10204
Submitter: Yuvaraja Mariappan

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.1

Review in progress for https://review.opencontrail.org/10205
Submitter: Yuvaraja Mariappan

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

Reviewed: https://review.opencontrail.org/10205
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/1338d5d2ddf58aafaf9c972203236ec2c884af49
Submitter: Zuul
Branch: R2.1

commit 1338d5d2ddf58aafaf9c972203236ec2c884af49
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon May 11 16:32:27 2015 -0700

fab network in dvs switch is done for vcenter and not for the openstack.

It is missed to take care openstack part when we added the support
in vcenter

Closes-Bug: #1452647

Change-Id: I94aae748b5e7787094e6758597a9a6501ab0bfad

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/10204
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/bbb0b35e46f28773d45e343db98fa0d1b9ca79e0
Submitter: Zuul
Branch: R2.20

commit bbb0b35e46f28773d45e343db98fa0d1b9ca79e0
Author: Yuvaraja Mariappan <email address hidden>
Date: Mon May 11 16:16:34 2015 -0700

fab network in dvs switch is done for vcenter and not for the openstack.

It is missed to take care openstack part when we added the support
in vcenter

Closes-Bug: #1452647

Change-Id: I2dfa2c30d64cb96e1e48025e0c94c7e8999eb347

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.