fab setup_all fails while setting up vrouter for SSL enabled setup

Bug #1649470 reported by musharani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Critical
Ignatious Johnson Christopher
R3.2
Fix Committed
Critical
Ignatious Johnson Christopher
Trunk
Fix Committed
Critical
Ignatious Johnson Christopher

Bug Description

Fab setup all is failed while setting up vrouter for ssl enabled setup.
The below error message is seen while running fab setup all.

From stack trace:
2016-12-12 18:00:09:812530: [root@10.204.217.96] put: /tmp/keystone.pem -> /etc/contrail/ssl/certs/keystone.pem
2016-12-12 18:00:09:889258: Traceback (most recent call last):
2016-12-12 18:00:09:922233: File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
2016-12-12 18:00:09:922282: self.run()
2016-12-12 18:00:09:924969: File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
2016-12-12 18:00:09:925048: self._target(*self._args, **self._kwargs)
2016-12-12 18:00:09:925091: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 236, in inner
2016-12-12 18:00:09:925126: submit(task.run(*args, **kwargs))
2016-12-12 18:00:09:925597: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-12-12 18:00:09:925659: return self.wrapped(*args, **kwargs)
2016-12-12 18:00:09:925701: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 181, in inner
2016-12-12 18:00:09:925734: return func(*args, **kwargs)
2016-12-12 18:00:09:926074: File "/usr/local/lib/python2.7/dist-packages/fabric/decorators.py", line 53, in inner_decorator
2016-12-12 18:00:09:926129: return func(*args, **kwargs)
2016-12-12 18:00:09:926171: File "/root/fabric-utils/fabfile/tasks/provision.py", line 1683, in setup_vrouter
2016-12-12 18:00:09:926203: execute("setup_only_vrouter_node", manage_nova_compute, configure_nova, env.host_string)
2016-12-12 18:00:09:926959: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-12-12 18:00:09:927030: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-12-12 18:00:09:927079: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-12-12 18:00:09:927108: return self.wrapped(*args, **kwargs)
2016-12-12 18:00:09:927142: File "/root/fabric-utils/fabfile/tasks/provision.py", line 1728, in setup_only_vrouter_node
2016-12-12 18:00:09:927170: execute("copy_keystone_ssl_certs_to_node", host_string)
2016-12-12 18:00:09:927205: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 415, in execute
2016-12-12 18:00:09:927232: results['<local-only>'] = task.run(*args, **new_kwargs)
2016-12-12 18:00:09:927264: File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 171, in run
2016-12-12 18:00:09:927290: return self.wrapped(*args, **kwargs)
2016-12-12 18:00:09:927321: File "/root/fabric-utils/fabfile/tasks/ssl.py", line 177, in copy_keystone_ssl_certs_to_node
2016-12-12 18:00:09:927354: os.remove(tmp_fname)
2016-12-12 18:00:09:927491: OSError: [Errno 2] No such file or directory: '/tmp/keystone.pem'

Tags: provisioning
Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

Issue happens only during parallel execution and SSL enabled.

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

Review in progress for https://review.opencontrail.org/27161
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/27162
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/27163
Submitter: Ignatious Johnson Christopher (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/27162
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/09a392800c5bd7bc18915ff8123230a9bab9d3a0
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 09a392800c5bd7bc18915ff8123230a9bab9d3a0
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Dec 12 21:51:27 2016 -0800

SSL copy to other nodes in the HA cluster fails during parallel
execution, Fixing it by creating seperate temp files during copy.

Change-Id: I8f25ebaf5970403950e5966fa04ea09810633dfe
Closes-Bug: 1649470

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

Reviewed: https://review.opencontrail.org/27161
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/3cd8310f3ce05660f2438f49d0ad1f6f13415d56
Submitter: Zuul (<email address hidden>)
Branch: master

commit 3cd8310f3ce05660f2438f49d0ad1f6f13415d56
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Dec 12 21:51:27 2016 -0800

SSL copy to other nodes in the HA cluster fails during parallel
execution, Fixing it by creating seperate temp files during copy.

Change-Id: I8f25ebaf5970403950e5966fa04ea09810633dfe
Closes-Bug: 1649470

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

Reviewed: https://review.opencontrail.org/27163
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/2b11a3faab03aad2457ed02a23799514d8f2f25b
Submitter: Zuul (<email address hidden>)
Branch: R3.1

commit 2b11a3faab03aad2457ed02a23799514d8f2f25b
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Dec 12 21:51:27 2016 -0800

SSL copy to other nodes in the HA cluster fails during parallel
execution, Fixing it by creating seperate temp files during copy.

Change-Id: I8f25ebaf5970403950e5966fa04ea09810633dfe
Closes-Bug: 1649470

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.