Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1339543

Summary: Error AttributeError: 'module' object has no attribute 'PortOpt' deploying overcloud
Product: [Community] RDO Reporter: pgsousa <pgsousa>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: Liberty   
Target Milestone: ---   
Target Release: Kilo   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-31 08:45:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pgsousa 2016-05-25 09:43:39 UTC
Description of problem:

Trying to deploy overcloud on Liberty stable version https://trunk.rdoproject.org/centos7-liberty/current/delorean.repo fails on overcloud nodes.


Version-Release number of selected component (if applicable):



How reproducible:


Steps to Reproduce:
1. Install overcloud: openstack overcloud deploy --templates -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e ~/templates/network-environment.yaml -e ~/templates/storage-environment.yaml --control-scale 1 --compute-scale 1 --control-flavor control --compute-flavor compute --ntp-server pool.ntp.org --neutron-network-vlan-ranges tenant:1010:1020 --neutron-bridge-mappings datacentre:br-provider,tenant:br-tenant

2. heat stack failed status


Actual results:

May 24 10:01:25 overcloud-novacompute-0 systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE
May 24 10:01:25 overcloud-novacompute-0 systemd[1]: Failed to start OpenStack Nova Compute Server.
May 24 10:01:25 overcloud-novacompute-0 systemd[1]: Unit openstack-nova-compute.service entered failed state.
May 24 10:01:25 overcloud-novacompute-0 systemd[1]: openstack-nova-compute.service failed.
May 24 10:01:25 overcloud-novacompute-0 systemd[1]: openstack-nova-compute.service holdoff time over, scheduling restart.
May 24 10:01:25 overcloud-novacompute-0 systemd[1]: Starting OpenStack Nova Compute Server...
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: No handlers could be found for logger "oslo_config.cfg"
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: Traceback (most recent call last):
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/bin/nova-compute", line 10, in <module>
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: sys.exit(main())
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/nova/cmd/compute.py", line 58, in main
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: config.parse_args(sys.argv)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/nova/config.py", line 60, in parse_args
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: rpc.init(CONF)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/nova/rpc.py", line 63, in init
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: aliases=TRANSPORT_ALIASES)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 186, in get_transport
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: invoke_kwds=kwargs)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/driver.py", line 45, in __init__
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: verify_requirements=verify_requirements,
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 55, in __init__
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: verify_requirements)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 170, in _load_plugins
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: self._on_load_failure_callback(self, ep, err)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: verify_requirements,
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 123, in _load_one_plugin
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: verify_requirements,
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 185, in _load_one_plugin
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: plugin = ep.load(require=verify_requirements)
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: entry = __import__(self.module_name, globals(),globals(), ['__name__'])
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 101, in <module>
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: cfg.PortOpt('rabbit_port',
May 24 10:01:27 overcloud-novacompute-0 nova-compute[17544]: AttributeError: 'module' object has no attribute 'PortOpt'

Expected results:

It should deploy the overcloud.

Additional info:

If I upgrade my python-oslo-config package from http://trunk.rdoproject.org/centos7/current-tripleo/delorean.repo this error doesn't show up on overcloud nodes, so I guess python-oslo-config needs to be updated on those stable repos.

Comment 1 Ivan Chavero 2016-05-31 08:45:12 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.