Vcenter-as-compute: 16-04/newton: SM provisioning fails @ TASK create contrailVM

Bug #1714854 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-40-newton
Topology: 3node HA with multiple computes (multi-cluster Esxi) & Kvm

The issue seen when ansible TASK: create_vm which is about deploying contrail VM in esxi.

Development Kamlesh debugged the setup and knows the fix and already patched my setup to proceed through.

"2017-09-03 13:47:19,041-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Create contrail compute vm in esxi host]"
"2017-09-03 13:47:19,252-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Create contrail vm in the esxi host {'username': u'root', 'datacenter': u'A6s32-VC-Compute-Sanity', 'std_switch_list': [{'pg_name': u'mgmt-pg', 'switch_name': u'vSwitch0'}], 'name': u'10.87.36.14', 'contrail_vm': {'vmdk': u'/root/vmdk/vmdk.tar', 'mode': u'vcenter', 'mgmt_pg': u'mgmt-pg', 'networks': [{'pg': u'mgmt-pg', 'sw_type': u'standard', 'role': u'mgmt', 'mac': u'00:77:56:aa:bb:01', 'switch_name': u'vSwitch0'}]}, 'cluster': u'cluster-1', 'id_in_sm': u'contrailvm-5a10s27', 'datastore': u'datastore2', 'password': u'c0ntrail123', 'validate_certs': False, 'skip_reimage': u'true', 'vcenter_server': {'username': <email address hidden>', 'datacentername': u'A6s32-VC-Compute-Sanity', 'password': u'Contrail123!', 'vcenter_compute_ip': u'10.87.36.12', 'hostname': u'10.87.131.15', 'dv_port_group_mgmt': None, 'dv_switch_control_data': {'dv_switch_name': None}, 'dv_switch_mgmt': {'dv_switch_name': None}, 'clusternames': [u'cluster-1'], 'dv_switch': {'dv_switch_name': u'Sanity-dvswitch-1'}, 'dv_port_group_control_data': None, 'validate_certs': False, 'dv_port_group': {'dv_portgroup_name': u'Sanity-dvportgroup-1', 'number_of_ports': u'1800'}}}]"
"2017-09-03 13:47:20,375-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-09-03 13:47:20,385-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save task results {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/430077849770.8551', u'ansible_job_id': u'430077849770.8551', 'changed': True}]"
"2017-09-03 13:47:20,426-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-09-03 13:47:20,438-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Create contrail vm in the esxi host {'username': u'root', 'datacenter': u'A6s32-VC-Compute-Sanity', 'std_switch_list': [{'pg_name': u'mgmt-pg', 'switch_name': u'vSwitch0'}], 'name': u'10.87.36.16', 'contrail_vm': {'vmdk': u'/root/vmdk/vmdk.tar', 'mode': u'vcenter', 'mgmt_pg': u'mgmt-pg', 'networks': [{'switch_name': u'vSwitch0', 'mac': u'00:77:56:aa:bb:02', 'role': u'mgmt', 'pg': u'mgmt-pg', 'sw_type': u'standard'}]}, 'cluster': u'cluster-1', 'id_in_sm': u'contrailvm-5a10s25', 'datastore': u'datastore3', 'password': u'c0ntrail123', 'validate_certs': False, 'skip_reimage': u'true', 'vcenter_server': {'username': <email address hidden>', 'datacentername': u'A6s32-VC-Compute-Sanity', 'password': u'Contrail123!', 'vcenter_compute_ip': u'10.87.36.12', 'hostname': u'10.87.131.15', 'dv_port_group_mgmt': None, 'dv_switch_control_data': {'dv_switch_name': None}, 'dv_switch_mgmt': {'dv_switch_name': None}, 'clusternames': [u'cluster-1'], 'dv_switch': {'dv_switch_name': u'Sanity-dvswitch-1'}, 'dv_port_group_control_data': None, 'validate_certs': False, 'dv_port_group': {'dv_portgroup_name': u'Sanity-dvportgroup-1', 'number_of_ports': u'1800'}}}]"
"2017-09-03 13:47:21,543-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-09-03 13:47:21,553-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save task results {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/684035897312.8580', u'ansible_job_id': u'684035897312.8580', 'changed': True}]"
"2017-09-03 13:47:21,592-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-09-03 13:47:21,602-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Create contrail vm in the esxi host {'username': u'root', 'datacenter': u'A6s32-VC-Compute-Sanity', 'std_switch_list': [{'pg_name': u'mgmt-pg', 'switch_name': u'vSwitch0'}], 'name': u'10.87.36.29', 'contrail_vm': {'vmdk': u'/root/vmdk/vmdk.tar', 'mode': u'vcenter', 'mgmt_pg': u'mgmt-pg', 'networks': [{'mac': u'00:77:56:aa:bb:03', 'sw_type': u'standard', 'role': u'mgmt', 'switch_name': u'vSwitch0', 'pg': u'mgmt-pg'}]}, 'cluster': u'cluster-2', 'id_in_sm': u'contrailvm-5a10s31', 'datastore': u'datastore4', 'password': u'c0ntrail123', 'validate_certs': False, 'skip_reimage': u'true', 'vcenter_server': {'username': <email address hidden>', 'datacentername': u'A6s32-VC-Compute-Sanity', 'password': u'Contrail123!', 'vcenter_compute_ip': u'10.87.36.15', 'hostname': u'10.87.131.15', 'dv_port_group_mgmt': None, 'dv_switch_control_data': {'dv_switch_name': None}, 'dv_switch_mgmt': {'dv_switch_name': None}, 'clusternames': [u'cluster-2'], 'dv_switch': {'dv_switch_name': u'Sanity-dvswitch-2'}, 'dv_port_group_control_data': None, 'validate_certs': False, 'dv_port_group': {'dv_portgroup_name': u'Sanity-dvportgroup-2', 'number_of_ports': u'1800'}}}]"
"2017-09-03 13:47:22,548-INFO-server_mgr_ssh_client.py:57-connect(): CONNECT FAILED: Host => 10.87.36.19, option => key, ERROR => [Errno None] Unable to connect to port 22 on 10.87.36.19"
"2017-09-03 13:47:22,712-INFO-sm_ansible_callback.py:43-append(): changed: [localhost]"
"2017-09-03 13:47:22,723-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Save task results {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/806751000486.8609', u'ansible_job_id': u'806751000486.8609', 'changed': True}]"
"2017-09-03 13:47:22,760-INFO-sm_ansible_callback.py:43-append(): ok: [localhost]"
"2017-09-03 13:47:22,769-INFO-sm_ansible_callback.py:43-append(): TASK [vcenter : Wait for contrailVm create completion [{u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/430077849770.8551', u'ansible_job_id': u'430077849770.8551', 'changed': True}, {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/684035897312.8580', u'ansible_job_id': u'684035897312.8580', 'changed': True}, {u'started': 1, u'finished': 0, u'results_file': u'/root/.ansible_async/806751000486.8609', u'ansible_job_id': u'806751000486.8609', 'changed': True}]]"
"2017-09-03 13:47:57,551-DEBUG-server_mgr_mon_base_plugin.py:706-create_server_dict(): Created server dictionary."
"2017-09-03 13:47:57,699-INFO-server_mgr_ssh_client.py:62-connect(): CONNECT SUCCESS: Host => 10.87.36.18, option => key"
"2017-09-03 13:48:04,254-INFO-sm_ansible_callback.py:43-append(): fatal: [localhost]Traceback (most recent call last):
  File "/opt/contrail/server_manager/deploy_contrail_vm.py", line 278, in <module>
    exit(main())
  File "/opt/contrail/server_manager/deploy_contrail_vm.py", line 248, in main

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

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

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

Review in progress for https://review.opencontrail.org/35231
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/35230
Committed: http://github.com/Juniper/contrail-server-manager/commit/b6fd1c7e34f8c160e4c17c1488d4d4be769814db
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit b6fd1c7e34f8c160e4c17c1488d4d4be769814db
Author: Kamlesh Parmar <email address hidden>
Date: Sun Sep 3 22:01:05 2017 -0700

add unverified ssl context for urllib request. This is required for
xenial. Daemonize the keepalive thread.

Change-Id: Id2a8d8447209a29e6f35c3d2dcc44bee84bb795f
Closes-Bug: #1714854

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

Reviewed: https://review.opencontrail.org/35231
Committed: http://github.com/Juniper/contrail-server-manager/commit/1bc0a126333d648f28c9a2e524e2ba9f9db31ee3
Submitter: Zuul (<email address hidden>)
Branch: master

commit 1bc0a126333d648f28c9a2e524e2ba9f9db31ee3
Author: Kamlesh Parmar <email address hidden>
Date: Sun Sep 3 22:01:05 2017 -0700

add unverified ssl context for urllib request. This is required for
xenial. Daemonize the keepalive thread.

Change-Id: Id2a8d8447209a29e6f35c3d2dcc44bee84bb795f
Closes-Bug: #1714854

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.