R3.0-build-32-vcenter-orch-TOR agent provision failed with vcenter

Bug #1584260 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
Critical
chhandak
Trunk
Fix Committed
High
chhandak

Bug Description

issue while provisioning vcenter orche with TOR agent

2016-05-20 17:27:47:925032: [root@192.58.36.101] sudo: python /opt/contrail/utils/provision_vrouter.py --host_name host5 --host_ip 11.11.11.5 --api_server_ip 11.11.11.105 --oper add --admin_user <email address hidden> --admin_password Juniper123! --admin_tenant_name vCenter --openstack_ip 192.58.36.110 --router_type tor-service-node
2016-05-20 17:27:47:925551: [root@192.58.36.108] sudo: openstack-config --set /etc/contrail/contrail-vrouter-agent.conf DEFAULT agent_mode tsn
2016-05-20 17:27:48:230704: [root@192.58.36.108] Executing task 'add_tor_agent'
2016-05-20 17:27:48:301088: [root@192.58.36.108] sudo: hostname
2016-05-20 17:27:48:301936: [root@192.58.36.108] out: host5
2016-05-20 17:27:48:343777: [root@192.58.36.108] out:
2016-05-20 17:27:48:344031:
2016-05-20 17:27:48:347065: [root@192.58.36.108] sudo: setup-vnc-tor-agent --self_ip 11.11.11.5 --agent_name tor_agent-1 --http_server_port 9010 --tor_id 1 --tor_ip 11.11.11.254 --tor_ovs_port 9999 --tsn_ip 11.11.11.5 --tor_ovs_protocol tcp --tor_agent_ovs_ka 10000 --discovery_server_ip 11.11.11.1
2016-05-20 17:27:48:347989: [root@192.58.36.108] out: [localhost] local: ln -sf /bin/true /sbin/chkconfig
2016-05-20 17:27:48:514727: [root@192.58.36.108] out: [localhost] local: ln -sf /bin/true /sbin/chkconfig
2016-05-20 17:27:48:514855: [root@192.58.36.108] out: [localhost] local: sudo mv /tmp/tmp0eNDDQ/tor_agent_conf /etc/contrail/contrail-tor-agent-1.conf
2016-05-20 17:27:48:514932: [root@192.58.36.108] out: [localhost] local: sudo mv /tmp/tmp0eNDDQ/tor_agent_ini /etc/contrail/supervisord_vrouter_files/contrail-tor-agent-1.ini
2016-05-20 17:27:48:515001: [root@192.58.36.108] out: [localhost] local: sudo cp /etc/init.d/contrail-vrouter-agent /etc/init.d/contrail-tor-agent-1
2016-05-20 17:27:48:515066: [root@192.58.36.108] out:
2016-05-20 17:27:48:515519: n code 1 while executing 'service redis-server status | grep not'!
2016-05-20 17:26:55:829921:
2016-05-20 17:26:55:829921:
2016-05-20 17:26:58:724409: Warning: sudo() received nonzero return code 1 while executing 'service redis-server stop'!
2016-05-20 17:26:58:724409:
2016-05-20 17:26:58:724409:
2016-05-20 17:26:59:271368: Warning: sudo() received nonzero return code 1 while executing 'service redis-server status | grep not'!
2016-05-20 17:26:59:271368:
2016-05-20 17:26:59:271368:
2016-05-20 17:27:02:120339: Warning: sudo() received nonzero return code 1 while executing 'service redis-server stop'!
2016-05-20 17:27:02:120339:
2016-05-20 17:27:02:120339:
2016-05-20 17:27:02:631229: Warning: sudo() received nonzero return code 1 while executing 'service redis-server status | grep not'!
2016-05-20 17:27:02:631229:
2016-05-20 17:27:02:631229:
2016-05-20 17:27:05:508111: Warning: sudo() received nonzero return code 2 while executing 'sudo sed -i 's/ENABLED=.*/ENABLED=1/g' /etc/default/haproxy'!
2016-05-20 17:27:05:508111:
2016-05-20 17:27:05:508111:
2016-05-20 17:27:07:675948: Warning: sudo() received nonzero return code 2 while executing 'sudo sed -i 's/ENABLED=.*/ENABLED=1/g' /etc/default/haproxy'!
2016-05-20 17:27:07:675948:
2016-05-20 17:27:07:675948:
2016-05-20 17:27:47:925211: Warning: sudo() received nonzero return code 1 while executing 'service nova-compute status | grep running'!
2016-05-20 17:27:47:925211: Traceback (most recent call last):
2016-05-20 17:27:48:516607: File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
2016-05-20 17:27:48:516678: *args, **kwargs
2016-05-20 17:27:48:516979: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2016-05-20 17:27:48:517044: multiprocessing
2016-05-20 17:27:48:517244: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2016-05-20 17:27:48:517285: return task.run(*args, **kwargs)
2016-05-20 17:27:48:517425: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:517463: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:517571: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2016-05-20 17:27:48:517612: return func(*args, **kwargs)
2016-05-20 17:27:48:517697: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 168, in __call__
2016-05-20 17:27:48:517733: return self.run(*args, **kwargs)
2016-05-20 17:27:48:517840: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:517876: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:517981: File "/opt/contrail/utils/fabfile/tasks/provision.py", line 2466, in setup_all
2016-05-20 17:27:48:518023: execute('add_tor_agent', restart=False)
2016-05-20 17:27:48:518829: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2016-05-20 17:27:48:518871: multiprocessing
2016-05-20 17:27:48:519048: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2016-05-20 17:27:48:519087: return task.run(*args, **kwargs)
2016-05-20 17:27:48:519260: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:519300: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:519409: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2016-05-20 17:27:48:519446: return func(*args, **kwargs)
2016-05-20 17:27:48:519527: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 168, in __call__
2016-05-20 17:27:48:519562: return self.run(*args, **kwargs)
2016-05-20 17:27:48:519671: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:519706: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:519811: File "/opt/contrail/utils/fabfile/tasks/provision.py", line 1925, in add_tor_
2016-05-20 17:27:48:515972: Disconnecting from 11.11.11.4... done.
2016-05-20 17:27:48:554871: Disconnecting from 192.58.36.101... done.
2016-05-20 17:27:48:618949: Disconnecting from 192.58.36.108... done.
2016-05-20 17:27:48:733145: Disconnecting from 192.58.36.103... done.
2016-05-20 17:27:48:797171: Disconnecting from 192.58.36.102... done.
2016-05-20 17:27:48:861216: agent
2016-05-20 17:27:48:519848: execute("add_tor_agent_node", restart, env.host_string)
2016-05-20 17:27:48:520506: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-05-20 17:27:48:520548: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-05-20 17:27:48:520731: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:520768: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:520878: File "/opt/contrail/utils/fabfile/tasks/provision.py", line 1935, in add_tor_agent_node
2016-05-20 17:27:48:520914: execute("add_tor_agent_by_index", i, host_string, restart)
2016-05-20 17:27:48:521538: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-05-20 17:27:48:521577: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-05-20 17:27:48:521754: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-05-20 17:27:48:521792: return self.wrapped(*args, **kwargs)
2016-05-20 17:27:48:521899: File "/opt/contrail/utils/fabfile/tasks/provision.py", line 2087, in add_tor_agent_by_index
2016-05-20 17:27:48:521935: admin_user, admin_password = get_vcenter_credentials()
2016-05-20 17:27:48:522647: NameError: global name 'get_vcenter_credentials' is not defined
2016-05-20 17:27:48:522766:

shajuvk (shajuvk)
information type: Proprietary → Public
tags: added: toragent vmware
description: updated
summary: - R3.0-TOR agent provision failed with vcenter
+ R3.0-build-32-TOR agent provision failed with vcenter
summary: - R3.0-build-32-TOR agent provision failed with vcenter
+ R3.0-build-32-vcenter-orch-TOR agent provision failed with vcenter
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20487
Submitter: Chhandak Mukherjee (<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/20488
Submitter: Chhandak Mukherjee (<email address hidden>)

tags: added: bms provisioning
removed: toragent
Jeba Paulaiyan (jebap)
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20487
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/3d13441917eb177b030057605f26383e92a1b1db
Submitter: Zuul
Branch: R3.0

commit 3d13441917eb177b030057605f26383e92a1b1db
Author: Chhandak <email address hidden>
Date: Sat May 21 05:59:55 2016 +0530

Removing obsolete task 'get_vcenter_credentials

Removing obsolete task 'get_vcenter_credentials and unnecessary
orchestrator check.
Closes-Bug:1584260

Change-Id: I247b47481bb08a2c6fc34b32f02936257087497f

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

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

commit a94435d5f350ff51aa2f5cad1489096f008350e7
Author: Chhandak <email address hidden>
Date: Sat May 21 05:59:55 2016 +0530

Removing obsolete task 'get_vcenter_credentials

Removing obsolete task 'get_vcenter_credentials and unnecessary
orchestrator check.
Closes-Bug:1584260

Change-Id: I247b47481bb08a2c6fc34b32f02936257087497f

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.