vcenter-as-compute: SM provisioning fails when multiple Esxi hosts/ContrailVM

Bug #1713287 reported by Sarath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
kamlesh parmar
Trunk
Fix Committed
Critical
kamlesh parmar

Bug Description

Version: 4.0.1.0-46-mitaka
Topology: 3node HA with multiple computes (Esxi & Kvm)

Development Kamlesh debugged the problem setup and knows the problem.

"2017-08-26 15:28:29,830-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Add nics to ContrailVM [{'mac': u'00:77:56:aa:bb:01', 'name': u'mgmt-pg'}]]"
"2017-08-26 15:28:31,219-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-08-26 15:28:31,236-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save add_nic task results {{ add_nic_result }} {{ esxi_host }} {{ vmname }}]"
"2017-08-26 15:28:31,279-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:31,289-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Rset the nets set_fact]"
"2017-08-26 15:28:31,319-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:31,336-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Build networks list -- [{'sw_type': u'standard', 'mac': u'00:77:56:aa:bb:02', 'role': u'mgmt', 'switch_name': u'vSwitch0', 'pg': u'mgmt-pg'}]]"
"2017-08-26 15:28:31,389-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:31,391-INFO-sm_ansible_callback.py:43-append(): ok: [localhost] => (item={'pg': u'mgmt-pg', 'mac': u'00:77:56:aa:bb:02', 'role': u'mgmt', 'switch_name': u'vSwitch0', 'sw_type': u'standard'})"
"2017-08-26 15:28:31,402-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Add nics to ContrailVM [{'mac': u'00:77:56:aa:bb:02', 'name': u'mgmt-pg'}]]"
"2017-08-26 15:28:32,058-INFO-server_mgr_ssh_client.py:62-connect(): CONNECT SUCCESS: Host => 10.87.36.10, option => key"
"2017-08-26 15:28:32,534-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-08-26 15:28:32,553-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save add_nic task results {{ add_nic_result }} {{ esxi_host }} {{ vmname }}]"
"2017-08-26 15:28:32,595-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:32,604-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Rset the nets set_fact]"
"2017-08-26 15:28:32,643-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:32,659-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Build networks list -- [{'pg': u'mgmt-pg', 'mac': u'00:77:56:aa:bb:03', 'role': u'mgmt', 'sw_type': u'standard', 'switch_name': u'vSwitch0'}]]"
"2017-08-26 15:28:32,713-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:32,715-INFO-sm_ansible_callback.py:43-append(): ok: [localhost] => (item={'mac': u'00:77:56:aa:bb:03', 'sw_type': u'standard', 'role': u'mgmt', 'pg': u'mgmt-pg', 'switch_name': u'vSwitch0'})"
"2017-08-26 15:28:32,726-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Add nics to ContrailVM [{'mac': u'00:77:56:aa:bb:03', 'name': u'mgmt-pg'}]]"
"2017-08-26 15:28:33,854-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-08-26 15:28:33,870-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save add_nic task results {{ add_nic_result }} {{ esxi_host }} {{ vmname }}]"
"2017-08-26 15:28:33,913-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-08-26 15:28:33,924-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Wait for add nic completion [{u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/406832589217.14943', u'ansible_job_id': u'406832589217.14943', 'changed': True}, {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/771912121674.14978', u'ansible_job_id': u'771912121674.14978', 'changed': True}, {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/803875330672.15013', u'ansible_job_id': u'803875330672.15013', 'changed': True}]]"
"2017-08-26 15:28:34,119-INFO-sm_ansible_callback.py:43-append(): changed: [localhost] => (item={u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/406832589217.14943', u'ansible_job_id': u'406832589217.14943', 'changed': True})"
"2017-08-26 15:28:39,449-INFO-sm_ansible_callback.py:43-append(): changed: [localhost] => (item={u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/771912121674.14978', u'ansible_job_id': u'771912121674.14978', 'changed': True})"
"2017-08-26 15:28:39,616-INFO-sm_ansible_callback.py:43-append(): fatal: [localhost]/usr/lib/python2.7/dist-packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.7/dist-packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/34966
Submitter: kamlesh parmar (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34966
Committed: http://github.com/Juniper/contrail-ansible/commit/969f6865e9681422b2982f34e2060af83af7164a
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 969f6865e9681422b2982f34e2060af83af7164a
Author: Kamlesh Parmar <email address hidden>
Date: Sat Aug 26 23:31:37 2017 -0700

Same nic is added multiple time to the contrailVM in multihost
environment. Reset the nets per contrailVM
Fix esx_host set fact in vcenter params computation.
Use inventory hostname for finding config dict for plugin.
Bump up number of uplinks for the DVS, it doesnt impact DVS for VM,
Will be needed for fab/mgmt dvs case.

Change-Id: If5fd76cd49495289441452e4cad2b4f84456bdb7
Closes-Bug: #1713287

Rudra Rugge (rrugge)
tags: added: sanityblocker
removed: sanity
Revision history for this message
kamlesh parmar (kparmar) wrote :
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.