Hey guys,
I have problem with installation vCenter-as-Compute via fabric.
Currently testing contrail with vCenter on ubuntu trusty, have basicly
same env (testbed) as you
(http://www.juniper.net/techpubs/en_US/contrail3.0/topics/task/configuration/vmware-sample-testbed-vnc.html).
Using juniper packages 3.0.2.0-51 and after execute fab setup_all,
vcenter-compute gave me UnboundLocalError: local variable
'vcenter_server_name' referenced before assignment.
All my servers have kernel 3.19.0-26.
root@vcenter:~# uname -r
3.19.0-26-generic
Few months ago I tired it fabric deploy on same environmental with kilo
packages and everything worked fine.
Testbed:
#Management ip addresses of hosts in the cluster
host1 = '[email protected]' #Contrail Controller
host2 = '[email protected]' #ContrailVM on ESXi
host3 = '[email protected]' #vcenter-compute
host4 = '[email protected]' #KVM Compute
#External routers if any
ext_routers = []
#Autonomous system number
router_asn = 64512
#Host from which the fab commands are triggered to install and provision
host_build = '[email protected]'
minimum_diskGB=32
env.ntp_server = 'ntp.juniper.net'
#Role definition of the hosts.
env.roledefs = {
'all': [host1, host2, host3, host4 ],
'cfgm': [host1],
'control': [host1],
'compute': [host2, host4],
'collector': [host1],
'webui': [host1],
'database': [host1],
'openstack': [host1],
'vcenter_compute': [host3 ],
'build': [host_build],
}
fab setup_all log:
2016-11-14 16:12:25:993647: Warning: sudo() received nonzero return code
2 while executing 'sudo sed -i 's/ENABLED=.*/ENABLED=1/g'
/etc/default/haproxy'!
2016-11-14 16:12:25:993647:
2016-11-14 16:12:25:993647: 2016-11-14 16:12:25:993537: INFO: Retrieve
(/etc/nova/nova.conf) file from ([email protected]) and copy to
(/tmp/tmpk1PxaC/nova.conf)
2016-11-14 16:12:25:994240: [[email protected]] run: (tempdir=$(mktemp
-d); echo $tempdir)
2016-11-14 16:12:25:994375: [[email protected]] out: /tmp/tmp.cXVobvebJH
2016-11-14 16:12:26:013188: [[email protected]] out:
2016-11-14 16:12:26:013577:
2016-11-14 16:12:26:013807: [[email protected]] sudo: cp -rf
/etc/nova/nova.conf /tmp/tmp.cXVobvebJH/tmpnova.conf
2016-11-14 16:12:26:013972: [[email protected]] sudo: chmod -R 777
/tmp/tmp.cXVobvebJH/tmpnova.conf
2016-11-14 16:12:26:101087: [[email protected]] download:
/tmp/tmpk1PxaC/nova.conf <- /tmp/tmp.cXVobvebJH/tmpnova.conf
2016-11-14 16:12:26:226319: [[email protected]] sudo: rm -rf
/tmp/tmp.cXVobvebJH
2016-11-14 16:12:26:230356: WARNING: Exception (No option
'metadata_proxy_shared_secret' in section: 'neutron') during retrieving
(metadata_proxy_shared_secret) from section (neutron)
2016-11-14 16:12:26:316909: [[email protected]] sudo: sudo ls
/etc/contrail/service.token
2016-11-14 16:12:26:317355: [[email protected]] out:
/etc/contrail/service.token
2016-11-14 16:12:26:365971: [[email protected]] out:
2016-11-14 16:12:26:367179:
2016-11-14 16:12:26:382466: [[email protected]] sudo: sudo cat
/etc/contrail/service.token
2016-11-14 16:12:26:382603: [[email protected]] out:
3dcec3c4d0f59c7a3e87
2016-11-14 16:12:26:437555: Host [email protected] is not dpdk enabled,
not configuring hugepages
2016-11-14 16:12:26:437886: No dpdk section in testbed file on host
[email protected].
2016-11-14 16:12:26:437948: No dpdk section in testbed file on host
[email protected].
2016-11-14 16:12:26:438007: [[email protected]] sudo: python -c 'from
platform import linux_distribution; print linux_distribution()'
2016-11-14 16:12:26:557742: 2016-11-14 16:12:26:557661:
setup-vnc-compute --self_ip 10.0.152.137 --cfgm_ip 10.0.152.135
--cfgm_user root --cfgm_passwd password --ncontrols 1 --amqp_server_ip
10.0.152.135 --service_token 3dcec3c4d0f59c7a3e87 --orchestrator
openstack --hypervisor libvirt --keystone_ip 10.0.152.135
--openstack_mgmt_ip 10.0.152.135 --keystone_auth_protocol http
--keystone_auth_port 35357 --quantum_service_protocol http
--keystone_admin_user admin --keystone_admin_password password
--nova_password password --neutron_password password
--service_tenant_name service
2016-11-14 16:12:26:557811: [[email protected]] sudo: setup-vnc-compute
--self_ip 10.0.152.137 --cfgm_ip 10.0.152.135 --cfgm_user root
--cfgm_passwd password --ncontrols 1 --amqp_server_ip 10.0.152.135
--service_token 3dcec3c4d0f59c7a3e87 --orchestrator openstack
--hypervisor libvirt --keystone_ip 10.0.152.135 --openstack_mgmt_ip
10.0.152.135 --keystone_auth_protocol http --keystone_auth_port 35357
--quantum_service_protocol http --keystone_admin_user admin
--keystone_admin_password password --nova_password password
--neutron_password password --service_tenant_name service
2016-11-14 16:12:26:557872: [[email protected]] out: /bin/bash:
setup-vnc-compute: command not found
2016-11-14 16:12:26:688844: [[email protected]] out:
2016-11-14 16:12:26:689107:
[0/9279]2016-11-14 16:12:26:689414:
Warning: sudo() received nonzero return code 127 while executing
'setup-vnc-compute --self_ip 10.0.152.137 --cfgm_ip 10.0.152.135
--cfgm_user root --cfgm_passwd password --ncontrols 1 --amqp_server_ip
10.0.152.135 --service_token 3dcec3c4d0f59c7a3e87 --orchestrator
openstack --hypervisor libvirt --keystone_ip 10.0.152.135
--openstack_mgmt_ip 10.0.152.135 --keystone_auth_protocol http
--keystone_auth_port 35357 --quantum_service_protocol http
--keystone_admin_user admin --keystone_admin_password password
--nova_password password --neutron_password password
--service_tenant_name service'!
2016-11-14 16:12:26:689414:
2016-11-14 16:12:26:689414: 2016-11-14 16:12:26:689318: Traceback (most
recent call last):
2016-11-14 16:12:26:689617: File
"/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in
main
2016-11-14 16:12:26:689641: *args, **kwargs
2016-11-14 16:12:26:689760: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in
execute
2016-11-14 16:12:26:689805: multiprocessing
2016-11-14 16:12:26:689895: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in
_execute
2016-11-14 16:12:26:689914: return task.run(*args, **kwargs)
2016-11-14 16:12:26:689974: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in
run
2016-11-14 16:12:26:689992: return self.wrapped(*args, **kwargs)
2016-11-14 16:12:26:690041: File
"/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53,
in inner_decorator
2016-11-14 16:12:26:690060: return func(*args, **kwargs)
2016-11-14 16:12:26:690100: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 168, in
__call__
2016-11-14 16:12:26:690118: return self.run(*args, **kwargs)
2016-11-14 16:12:26:690170: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in
run
2016-11-14 16:12:26:690188: return self.wrapped(*args, **kwargs)
2016-11-14 16:12:26:690237: File
"/opt/contrail/utils/fabfile/tasks/provision.py", line 2449, in
setup_all
2016-11-14 16:12:26:690255: execute('setup_vcenter_compute')
2016-11-14 16:12:26:690588: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in
execute
2016-11-14 16:12:26:690607: multiprocessing
2016-11-14 16:12:26:690684: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in
_execute
2016-11-14 16:12:26:690703: return task.run(*args, **kwargs)
2016-11-14 16:12:26:690761: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in
run
2016-11-14 16:12:26:690779: return self.wrapped(*args, **kwargs)
2016-11-14 16:12:26:690827: File
"/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53,
in inner_decorator
2016-11-14 16:12:26:690845: return func(*args, **kwargs)
2016-11-14 16:12:26:690887: File
"/opt/contrail/utils/fabfile/tasks/provision.py", line 1233, in
setup_vcenter_compute
2016-11-14 16:12:26:690904: execute("setup_vcenter_compute_node",
env.host_string)
2016-11-14 16:12:26:691075: File
"/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in
execute
2016-11-14 16:12:26:691094: results['<local-only>'] =
task.run(*args, **new_kwargs)
2016-11-14 16:12:26:691167: File "/usr/local/lib/python2.7/d>
setup_all on kernel 3.13.0-40-generic but i still see the same
issue.ist-packages/fabric/tasks.py", line 171, in run
2016-11-14 16:12:26:691185: return self.wrapped(*args, **kwargs)
2016-11-14 16:12:26:691238: File
"/opt/contrail/utils/fabfile/tasks/provision.py", line 1255, in
setup_vcenter_compute_node
2016-11-14 16:12:26:691255:
create_esxi_vrouter_map_file(vcenter_server_name, vcenter_server,
host_string)
2016-11-14 16:12:26:691446: UnboundLocalError: local variable
'vcenter_server_name' referenced before assignment
Had someone same problem?
Thanks,
Pavel Cizinsky
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org