mainline openstack ha provisioning is broken

Bug #1510439 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Critical
Ranjeet R

Bug Description

Mainline Build 2663

While setting up HA on mainline build 2663, initially I hit the first error below where keystone_ip was not defined.
Looks like it need to be authserver_ip. After changing it , I am hitting the second error .
Atleast, the commit https://github.com/Juniper/contrail-provisioning/commit/0792d3df2e72dc324a0cd471d1e8c1841964cc4d seems to be missing in master.

1)
2015-10-27 00:04:29:053995: Traceback (most recent call last):
2015-10-27 00:04:28:742747: File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
2015-10-27 00:04:28:742782: *args, **kwargs
2015-10-27 00:04:28:755820: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2015-10-27 00:04:28:755861: multiprocessing
2015-10-27 00:04:28:756931: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2015-10-27 00:04:28:756961: return task.run(*args, **kwargs)
2015-10-27 00:04:28:757044: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2015-10-27 00:04:28:757084: return self.wrapped(*args, **kwargs)
2015-10-27 00:04:28:757176: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2015-10-27 00:04:28:757224: return func(*args, **kwargs)
2015-10-27 00:04:28:757523: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 168, in __call__
2015-10-27 00:04:28:757571: return self.run(*args, **kwargs)
2015-10-27 00:04:28:757624: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2015-10-27 00:04:28:757645: return self.wrapped(*args, **kwargs)
2015-10-27 00:04:28:757697: File "/root/fabric-utils/fabfile/tasks/provision.py", line 2150, in setup_all
2015-10-27 00:04:28:757726: execute('setup_ha')
2015-10-27 00:04:28:788585: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2015-10-27 00:04:28:788623: multiprocessing
2015-10-27 00:04:28:788730: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2015-10-27 00:04:28:788752: return task.run(*args, **kwargs)
2015-10-27 00:04:28:788830: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2015-10-27 00:04:28:788872: return self.wrapped(*args, **kwargs)
2015-10-27 00:04:28:788951: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2015-10-27 00:04:28:789000: return func(*args, **kwargs)
2015-10-27 00:04:28:789093: File "/root/fabric-utils/fabfile/tasks/ha.py", line 594, in setup_ha
2015-10-27 00:04:28:789134: execute('setup_galera_cluster')
2015-10-27 00:04:28:793932: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 375, in execute
2015-10-27 00:04:28:793961: multiprocessing
2015-10-27 00:04:28:794041: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 271, in _execute
2015-10-27 00:04:28:794063: return task.run(*args, **kwargs)
2015-10-27 00:04:28:794125: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2015-10-27 00:04:28:794147: return self.wrapped(*args, **kwargs)
2015-10-27 00:04:28:794200: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2015-10-27 00:04:28:794244: return func(*args, **kwargs)
2015-10-27 00:04:28:794289: File "/root/fabric-utils/fabfile/tasks/ha.py", line 196, in setup_galera_cluster
2015-10-27 00:04:28:794310: --keystone_pass %s --cmon_user %s --cmon_pass %s --monitor_galera %s" % (self_ip, keystone_ip,
2015-10-27 00:04:28:794386: NameError: global name 'keystone_ip' is not defined
2015-10-27 00:04:28:794477:

2)
2015-10-27 00:41:28:513530: Openstack HA setup, Keystone running in nodes [root@10.204.216.58,root@10.204.216.59,root@10.204.216.60]
2015-10-27 00:41:28:557145: [root@10.204.216.58] sudo: setup-vnc-galera --self_ip 10.204.216.58 --keystone_ip 10.204.216.184 --galera_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --internal_vip 10.204.216.184 --openstack_index 1 --zoo_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --keystone_user keystone --keystone_pass keystone --cmon_user cmon --cmon_pass cmon --monitor_galera True
2015-10-27 00:41:28:557247: [root@10.204.216.58] out: [localhost] local: ln -sf /bin/true /sbin/chkconfig
2015-10-27 00:41:28:663256: [root@10.204.216.58] out: usage: setup-vnc-galera [-h] [-c FILE] [--self_ip SELF_IP]
2015-10-27 00:41:28:666572: [root@10.204.216.58] out: [--keystone_ip KEYSTONE_IP]
2015-10-27 00:41:28:666640: [root@10.204.216.58] out: [--openstack_index OPENSTACK_INDEX]
2015-10-27 00:41:28:666680: [root@10.204.216.58] out: [--openstack0_user OPENSTACK0_USER]
2015-10-27 00:41:28:666717: [root@10.204.216.58] out: [--openstack0_passwd OPENSTACK0_PASSWD]
2015-10-27 00:41:28:666754: [root@10.204.216.58] out: [--galera_ip_list GALERA_IP_LIST [GALERA_IP_LIST ...]]
2015-10-27 00:41:28:666794: [root@10.204.216.58] out: [--internal_vip INTERNAL_VIP]
2015-10-27 00:41:28:666833: [root@10.204.216.58] out: [--external_vip EXTERNAL_VIP]
2015-10-27 00:41:28:666871: [root@10.204.216.58] out: [--zoo_ip_list ZOO_IP_LIST [ZOO_IP_LIST ...]]
2015-10-27 00:41:28:666907: [root@10.204.216.58] out: setup-vnc-galera: error: unrecognized arguments: --keystone_user keystone --keystone_pass keystone --cmon_user cmon --cmon_pass cmon --monitor_galera True
2015-10-27 00:41:28:666948: [root@10.204.216.58] out:
2015-10-27 00:41:28:674522:
2015-10-27 00:41:28:681198: Disconnecting from 10.204.216.59... done.
2015-10-27 00:41:28:795321: Disconnecting from 10.204.216.58... done.
2015-10-27 00:41:28:909204: Disconnecting from 10.204.216.60... done.
2015-10-27 00:41:28:973102:
2015-10-27 00:41:28:681296: Fatal error: sudo() received nonzero return code 2 while executing!
2015-10-27 00:41:28:681296:
2015-10-27 00:41:28:681296: Requested: setup-vnc-galera --self_ip 10.204.216.58 --keystone_ip 10.204.216.184 --galera_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --internal_vip 10.204.216.184 --openstack_index 1 --zoo_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --keystone_user keystone --keystone_pass keystone --cmon_user cmon --cmon_pass cmon --monitor_galera True
2015-10-27 00:41:28:681296: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /opt/contrail/bin && setup-vnc-galera --self_ip 10.204.216.58 --keystone_ip 10.204.216.184 --galera_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --internal_vip 10.204.216.184 --openstack_index 1 --zoo_ip_list 10.204.216.58 10.204.216.59 10.204.216.60 --keystone_user keystone --keystone_pass keystone --cmon_user cmon --cmon_pass cmon --monitor_galera True"

Revision history for this message
Ranjeet R (rranjeet-n) wrote :

Fix is commited as part another merge issue

Changed in juniperopenstack:
status: New → Fix Committed
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.