Centos7: get_openstack_sku not defined

Bug #1612457 reported by Nagendra Prasath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Undecided
Nagendra Prasath
Trunk
Fix Committed
Undecided
Nagendra Prasath

Bug Description

In a private build, R3.1/R21+/Centos7/Liberty:

Seeing below error during setup_all as get_openstack_sku is not imported:

2016-08-11 15:55:56:091710: [root@10.84.32.11] Executing task 'restart_openstack_on_demand'
2016-08-11 15:55:56:091937: [root@10.84.32.11] sudo: python -c 'from platform import linux_distribution; print linux_distribution()'
2016-08-11 15:55:56:092117: [root@10.84.32.11] out: ('CentOS Linux', '7.2.1511', 'Core')
2016-08-11 15:55:56:226445: [root@10.84.32.11] out:
2016-08-11 15:55:56:226666:
2016-08-11 15:55:56:226832: Disconnecting from 10.84.32.11... done.
2016-08-11 15:55:56:345429:
2016-08-11 15:49:40:453356: Warning: sudo() received nonzero return code 3 while executing 'service contrail-database status'!
2016-08-11 15:49:40:453356:
2016-08-11 15:49:40:453356:
2016-08-11 15:49:40:827962: Warning: sudo() received nonzero return code 2 while executing 'sudo ls /etc/contrail/service.token'!
2016-08-11 15:49:40:827962:
2016-08-11 15:49:40:827962:
2016-08-11 15:54:13:551200: Warning: sudo() received nonzero return code 1 while executing 'rpm -qi contrail-openstack-dashboard '!
2016-08-11 15:54:13:551200:
2016-08-11 15:54:13:551200:
2016-08-11 15:54:14:682359: Warning: sudo() received nonzero return code 2 while executing 'sudo ls /etc/contrail/haproxy.token'!
2016-08-11 15:54:14:682359:
2016-08-11 15:54:14:682359: Traceback (most recent call last):
2016-08-11 15:55:56:227137: File "/usr/lib/python2.7/site-packages/fabric/main.py", line 743, in main
2016-08-11 15:55:56:227176: *args, **kwargs
2016-08-11 15:55:56:228103: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 375, in execute
2016-08-11 15:55:56:228144: multiprocessing
2016-08-11 15:55:56:228491: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 271, in _execute
2016-08-11 15:55:56:228525: return task.run(*args, **kwargs)
2016-08-11 15:55:56:228622: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
2016-08-11 15:55:56:228652: return self.wrapped(*args, **kwargs)
2016-08-11 15:55:56:228732: File "/usr/lib/python2.7/site-packages/fabric/decorators.py", line 53, in inner_decorator
2016-08-11 15:55:56:228761: return func(*args, **kwargs)
2016-08-11 15:55:56:229017: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 168, in __call__
2016-08-11 15:55:56:229053: return self.run(*args, **kwargs)
2016-08-11 15:55:56:229133: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
2016-08-11 15:55:56:229162: return self.wrapped(*args, **kwargs)
2016-08-11 15:55:56:229240: File "/opt/contrail/utils/fabfile/tasks/provision.py", line 2588, in setup_all
2016-08-11 15:55:56:229269: execute('restart_openstack_on_demand')
2016-08-11 15:55:56:230527: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 375, in execute
2016-08-11 15:55:56:230562: multiprocessing
2016-08-11 15:55:56:230674: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 271, in _execute
2016-08-11 15:55:56:230704: return task.run(*args, **kwargs)
2016-08-11 15:55:56:230797: File "/usr/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
2016-08-11 15:55:56:230825: return self.wrapped(*args, **kwargs)
2016-08-11 15:55:56:230903: File "/usr/lib/python2.7/site-packages/fabric/decorators.py", line 53, in inner_decorator
2016-08-11 15:55:56:230932: return func(*args, **kwargs)
2016-08-11 15:55:56:230992: File "/opt/contrail/utils/fabfile/tasks/services.py", line 480, in restart_openstack_on_demand
2016-08-11 15:55:56:231032: if detect_ostype() in ['centoslinux'] and get_openstack_sku() in ['kilo']:
2016-08-11 15:55:56:231319: NameError: global name 'get_openstack_sku' is not defined
2016-08-11 15:55:56:231443:

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

Review in progress for https://review.opencontrail.org/23227
Submitter: Nagendra Prasath (<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/23228
Submitter: Nagendra Prasath (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/23227
Committed: http://github.org/Juniper/contrail-fabric-utils/commit/7b5fe53e796414cb49395cc79e918012f66e256b
Submitter: Zuul
Branch: R3.1

commit 7b5fe53e796414cb49395cc79e918012f66e256b
Author: Nagendra Chandran <email address hidden>
Date: Thu Aug 11 16:15:43 2016 -0700

Fix for Centos7: get_openstack_sku not defined
Closes-Bug: 1612457

Change-Id: Icc96679609e9570ccf28887c62b8173b208ac9d8

information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

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

commit 9b3eb9bf07a8017344ccf9cf3d53aac411c6a09c
Author: Nagendra Chandran <email address hidden>
Date: Thu Aug 11 16:18:02 2016 -0700

Fix for Centos7: get_openstack_sku not defined
Closes-Bug: 1612457

Change-Id: Ifdfe7d4b7ca23f43525de8186fed69cc9db9ebfa

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.