admin_tenant_name is removed from tempest

Bug #1567691 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Critical
hongbin

Bug Description

"admin_tenant_name" has been renamed to "admin_project_name" devstack: https://review.openstack.org/#/c/301167/ . This causes the gate failed with the error below:

2016-04-07 21:01:57.087 | 2016-04-07 21:01:57.068 | Traceback (most recent call last):
2016-04-07 21:01:57.087 | 2016-04-07 21:01:57.070 | File "magnum/tests/functional/python_client_base.py", line 211, in setUpClass
2016-04-07 21:01:57.088 | 2016-04-07 21:01:57.072 | super(BayTest, cls).setUpClass()
2016-04-07 21:01:57.088 | 2016-04-07 21:01:57.074 | File "magnum/tests/functional/python_client_base.py", line 44, in setUpClass
2016-04-07 21:01:57.088 | 2016-04-07 21:01:57.076 | super(BaseMagnumClient, cls).setUpClass()
2016-04-07 21:01:57.093 | 2016-04-07 21:01:57.078 | File "magnum/tests/functional/common/base.py", line 39, in setUpClass
2016-04-07 21:01:57.093 | 2016-04-07 21:01:57.079 | config.Config.setUp()
2016-04-07 21:01:57.093 | 2016-04-07 21:01:57.081 | File "magnum/tests/functional/common/config.py", line 114, in setUp
2016-04-07 21:01:57.095 | 2016-04-07 21:01:57.084 | cls.set_admin_creds(config)
2016-04-07 21:01:57.096 | 2016-04-07 21:01:57.085 | File "magnum/tests/functional/common/config.py", line 27, in set_admin_creds
2016-04-07 21:01:57.098 | 2016-04-07 21:01:57.087 | cls.admin_tenant = CONF.auth.admin_tenant_name
2016-04-07 21:01:57.100 | 2016-04-07 21:01:57.089 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2946, in __getattr__
2016-04-07 21:01:57.102 | 2016-04-07 21:01:57.091 | return self._conf._get(name, self._group)
2016-04-07 21:01:57.103 | 2016-04-07 21:01:57.092 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2567, in _get
2016-04-07 21:01:57.105 | 2016-04-07 21:01:57.094 | value = self._do_get(name, group, namespace)
2016-04-07 21:01:57.114 | 2016-04-07 21:01:57.096 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2584, in _do_get
2016-04-07 21:01:57.115 | 2016-04-07 21:01:57.098 | info = self._get_opt_info(name, group)
2016-04-07 21:01:57.115 | 2016-04-07 21:01:57.100 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2718, in _get_opt_info
2016-04-07 21:01:57.115 | 2016-04-07 21:01:57.101 | raise NoSuchOptError(opt_name, group)
2016-04-07 21:01:57.115 | 2016-04-07 21:01:57.103 | oslo_config.cfg.NoSuchOptError: no such option in group auth: admin_tenant_name
2016-04-07 21:01:57.116 | 2016-04-07 21:01:57.105 |
2016-04-07 21:01:57.118 | 2016-04-07 21:01:57.107 | {0} setUpClass (magnum.tests.functional.k8s.test_magnum_python_client.TestListResources) [0.000000s] ... FAILED

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

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

Changed in magnum:
assignee: nobody → hongbin (hongbin034)
status: New → In Progress
Changed in magnum:
assignee: hongbin (hongbin034) → Eli Qiao (taget-9)
Eli Qiao (taget-9)
Changed in magnum:
importance: Undecided → Critical
assignee: Eli Qiao (taget-9) → hongbin (hongbin034)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/303102
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=b8324f0d72806edfdba289cb74c441169ac68504
Submitter: Jenkins
Branch: master

commit b8324f0d72806edfdba289cb74c441169ac68504
Author: Hongbin Lu <email address hidden>
Date: Thu Apr 7 18:57:36 2016 -0400

    Fix two issues that broke the gate

    * Rename tenant to project in functional test In particular,
      rename "admin_tenant_name" to "admin_project_name" and
      rename "tenant_name" to "project_name". These configs have been
      renamed in tempest [1], so Magnum needs to adapt the change.
    * Temporarily remove "subjectAltName" from CSR config, because
      it caused failure of certificate signing, possibly, due to a
      bug or imcompatible change in pyOpenSSL 16.0.0.

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

    Change-Id: I41438cbfaefd9d04d7e73a4f46f5ece1494b349c
    Closes-Bug: #1568212
    Closes-Bug: #1567691

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/308035

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (stable/mitaka)

Reviewed: https://review.openstack.org/308035
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=fff3c0c08c236c48eb077969716d5931ff997b09
Submitter: Jenkins
Branch: stable/mitaka

commit fff3c0c08c236c48eb077969716d5931ff997b09
Author: Hongbin Lu <email address hidden>
Date: Thu Apr 7 18:57:36 2016 -0400

    Rename tenant to project in functional test

    Rename "admin_tenant_name" to "admin_project_name" and
    rename "tenant_name" to "project_name". These configs have been
    renamed in tempest [1], so Magnum needs to adapt the change.

    In addition, enable the required devstack plugins in gate hook,
    since they has been removed from project-config [2].

    [1] https://review.openstack.org/#/c/301167/
    [2] https://review.openstack.org/#/c/305475/

    Change-Id: I41438cbfaefd9d04d7e73a4f46f5ece1494b349c
    Closes-Bug: #1567691
    (partially pick from commit b8324f0d72806edfdba289cb74c441169ac68504)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 2.1.0

This issue was fixed in the openstack/magnum 2.1.0 release.

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.