Bug 1380730

Summary: Upgrade from RHOSP 8 to RHOSP 9: Registering deprecated option fails
Product: Red Hat OpenStack Reporter: Robin Cernin <rcernin>
Component: python-keystoneauth1Assignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0 (Liberty)CC: apevec, ccollett, hrybacki, jschluet, lhh, nkinder, panbalag, rcernin
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-keystoneauth1-1.1.0-5.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-15 12:35:55 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:

Description Robin Cernin 2016-09-30 12:37:41 UTC
Description of problem:

Would it be possible to backport this patch https://review.openstack.org/#/c/234578/ . During the upgrade from RHOSP 8 to RHOSP 9 we hit following problem while doing '3.4.2. Installing Aodh' at https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/paged/upgrading-red-hat-openstack-platform/chapter-3-director-based-environments-performing-upgrades-to-major-versions

When running manually we hit:

# /usr/bin/aodh-api --logfile /var/log/aodh/api.log
Traceback (most recent call last):
  File "/usr/bin/aodh-api", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/aodh/cmd/api.py", line 23, in main
    conf = service.prepare_service()
  File "/usr/lib/python2.7/site-packages/aodh/service.py", line 70, in prepare_service
    keystone_client.setup_keystoneauth(conf)
  File "/usr/lib/python2.7/site-packages/aodh/keystone_client.py", line 145, in setup_keystoneauth
    if conf[CFG_GROUP].auth_type == "password-aodh-legacy":
  File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2950, in __getattr__
    return self._conf._get(name, self._group)
  File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2571, in _get
    value = self._do_get(name, group, namespace)
  File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2608, in _do_get
    return convert(opt._get_from_namespace(namespace, group_name))
  File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 811, in _get_from_namespace
    dname, dgroup = opt.name, opt.group
AttributeError: 'Opt' object has no attribute 'group'

Which corresponds to https://bugs.launchpad.net/keystoneauth/+bug/1505906

Comment 3 Harry Rybacki 2017-11-22 16:42:56 UTC
Bug was resolved upstream in review 2345787[1]. Beginning the backport process to OSP8.

[1] - https://review.openstack.org/#/c/234578/

Comment 8 errata-xmlrpc 2018-03-15 12:35:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0530