keystonemiddleware 4.0.0 breaks gnocchi gate

Bug #1522014 reported by Mehdi Abaakouk
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Critical
Unassigned
keystonemiddleware
Invalid
Undecided
Unassigned

Bug Description

Hi,

Telemetry (ceilometer/gnocchi/aodh/clients) gate jobs no longer works since keystonemiddleware 4.0.0 is released.

we got error like:

Traceback (most recent call last):
  File "gnocchi/tests/base.py", line 50, in skip_if_not_implemented
    return func(*args, **kwargs)
  File "gnocchi/tests/base.py", line 330, in setUp
    self.conf = service.prepare_service([], default_opts)
  File "gnocchi/service.py", line 76, in prepare_service
    keystoneclient.auth.register_conf_options(conf, 'keystone_authtoken')
  File "/home/jenkins/workspace/gate-gnocchi-python27/.tox/py27/local/lib/python2.7/site-packages/keystoneclient/auth/conf.py", line 67, in register_conf_options
    conf.register_opt(_AUTH_SECTION_OPT, group=group)
  File "/home/jenkins/workspace/gate-gnocchi-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1902, in __inner
    result = f(self, *args, **kwargs)
  File "/home/jenkins/workspace/gate-gnocchi-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2044, in register_opt
    return group._register_opt(opt, cli)
  File "/home/jenkins/workspace/gate-gnocchi-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 1425, in _register_opt
    if _is_opt_registered(self._opts, opt):
  File "/home/jenkins/workspace/gate-gnocchi-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 595, in _is_opt_registered
    raise DuplicateOptError(opt.name)
oslo_config.cfg.DuplicateOptError: duplicate option: auth_section

Cheers,

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystonemiddleware (master)

Fix proposed to branch: master
Review: https://review.openstack.org/252373

Changed in keystonemiddleware:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
Jamie Lennox (jamielennox) wrote :

This is occuring because keystonemiddleware shifted from keystoneclient to keystoneauth and so the values here changed slightly. You can fix this by doing keystoneauth1.loading.register_conf_options instead but i'd be more interested in why you need to register these variables outside of auth_token middleware.

As it appears this is from test code can i suggest using the new fixture[1] instead of trying to deal with the opts.

[1] https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/opts.py

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystonemiddleware (master)

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: master
Review: https://review.openstack.org/252373

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Fix Committed
importance: Undecided → Critical
Revision history for this message
Steve Martinelli (stevemar) wrote :
Revision history for this message
Steve Martinelli (stevemar) wrote :

looks like the gnocchi gate is up and running again, marking this as invalid for keystonemiddleware

Changed in keystonemiddleware:
status: In Progress → Invalid
assignee: Mehdi Abaakouk (sileht) → nobody
Revision history for this message
Corey Bryant (corey.bryant) wrote :

This is a blocker as far as I can tell for mitaka b2 if this is fixed in 4.1.0 of keystomemiddleware but global requirements doesn't allow 4.1.0. Can keystonemiddleware release a new version?

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Maybe I'm wrong and the != 4.1.0 was added to global requirements after the b2 release. Note, I think that locks b2 into a keystonemiddleware with performance issues.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Yeah, keystonemiddleware 4.1.0 was blocked in global-requirements b/c of another regression in performance that was breaking the neutron gate. There was a workaround in gnocchi on stable/1.3:

https://github.com/openstack/gnocchi/commit/a3d0c7fd02bd7fb3c45f7f963076c64f0c3816b4

So the ceilometer devstack plugin should be pulling that in which caps keystonemiddleware (per gnocchi).

Revision history for this message
Matt Riedemann (mriedem) wrote :

This should fix the problem: https://review.openstack.org/#/c/271296/

Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 2.0.0
status: Fix Committed → Fix Released
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.