Bug 1721085 - NoOptionError: No option 'region' in section: 'identity'
Summary: NoOptionError: No option 'region' in section: 'identity'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 14.0 (Rocky)
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
: ---
Assignee: Adriano Petrich
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-17 10:08 UTC by viksss
Modified: 2019-09-09 16:55 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1720173
Environment:
Last Closed: 2019-09-09 16:55:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 viksss 2019-06-17 10:13:21 UTC
Getting below traceback

019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [service_available] octavia = False set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [heat_plugin] username = admin set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [heat_plugin] password = V8OfgLkaOqqMDXi0It5xi9yjK set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [heat_plugin] admin_username = admin set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [heat_plugin] admin_password = V8OfgLkaOqqMDXi0It5xi9yjK set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 DEBUG config_tempest.constants [-] Setting [heat_plugin] project_name = demo set /usr/lib/python2.7/site-packages/config_tempest/tempest_conf.py:107
 2019-06-13 05:18:36.253 66638 CRITICAL tempest [-] Unhandled error: NoOptionError: No option 'region' in section: 'identity'
 2019-06-13 05:18:36.253 66638 ERROR tempest Traceback (most recent call last):
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/bin/discover-tempest-config", line 10, in <module>
 2019-06-13 05:18:36.253 66638 ERROR tempest sys.exit(main())
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/main.py", line 597, in main
 2019-06-13 05:18:36.253 66638 ERROR tempest verbose=args.verbose
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/main.py", line 519, in config_tempest
 2019-06-13 05:18:36.253 66638 ERROR tempest services = Services(clients, conf, credentials)
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/services/services.py", line 42, in __init__
 2019-06-13 05:18:36.253 66638 ERROR tempest self.discover()
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/services/services.py", line 111, in discover
 2019-06-13 05:18:36.253 66638 ERROR tempest service.set_default_tempest_options(self._conf)
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/services/orchestration.py", line 42, in set_default_tempest_options
 2019-06-13 05:18:36.253 66638 ERROR tempest conf.set(sec, 'region', conf.get('identity', 'region'))
 2019-06-13 05:18:36.253 66638 ERROR tempest File "/usr/lib64/python2.7/ConfigParser.py", line 618, in get
 2019-06-13 05:18:36.253 66638 ERROR tempest raise NoOptionError(option, section)
 2019-06-13 05:18:36.253 66638 ERROR tempest NoOptionError: No option 'region' in section: 'identity'
 2019-06-13 05:18:36.253 66638 ERROR tempest 
 Error while generating Tempest configuration, Please check keystone credentials
 Command 'discover-tempest-config --debug identity.uri [http://10.0.0.107:5000/v3] identity.admin_password V8OfgLkaOqqMDXi0It5xi9yjK --create' returned non-zero exit status 1



tempest rpm versions

[root@controller-0 heat-admin]# rpm -qa|grep tempest
 python2-neutron-tests-tempest-0.2.1-0.20180905004815.f785dd4.el7ost.noarch
 python2-sahara-tempest-0.7.0-0.20180925152245.bb23a5b.el7ost.noarch
 python-octavia-tests-tempest-golang-0.2.0-2.el7ost.x86_64
 python2-tempestconf-2.2.0-0.20190507153823.e0d5dd6.el7ost.noarch
 openstack-tempest-19.0.0-3.el7ost.noarch
 python2-manila-tests-tempest-0.1.1-0.20180830035250.4c91b6e.el7ost.noarch
 python2-cinder-tests-tempest-0.1.0-0.20180822115300.08a3851.el7ost.noarch
 python2-sahara-tests-tempest-0.7.0-0.20180925152245.bb23a5b.el7ost.noarch
 python2-octavia-tests-tempest-0.2.0-2.el7ost.noarch
 python2-tempest-19.0.0-3.el7ost.noarch

let me know if any more information needed.

Comment 4 Martin Kopec 2019-07-24 14:50:01 UTC
Check the comment here:
https://bugzilla.redhat.com/show_bug.cgi?id=1716434#c4

Comment 5 Martin Kopec 2019-07-25 09:40:18 UTC
Here's a review which added the code to openstack/tripleo-common which sets OS_REGION_NAME in overcloudrc file:
https://review.opendev.org/#/c/619236/

It should be backported to rocky and queens as well.

Comment 6 Chandan Kumar 2019-07-26 04:26:19 UTC
Patches backported in review:
Rocky: https://review.opendev.org/672787
Queens: https://review.opendev.org/672793

Comment 7 Martin Kopec 2019-07-30 12:40:29 UTC
A follow-up information:
the region is defined in tempest-deployer-input.conf file (might be called a little differently based on the RHOS version) located under /home/stack/ directory on undercloud node.
In order to avoid the error about missing region, argument '--deployer-input <path to the tempest-deployer-input.conf file>' should be passed to discover-tempest-config as well.

Btw, the backports from comment #6 have been merged upstream.

Comment 8 Chandan Kumar 2019-09-05 10:34:08 UTC
Changing the DFG for this bug as patches are backported and already merged.

Comment 10 Martin Kopec 2019-09-09 16:55:25 UTC
The main issue described here was caused by not passing deployer input file to discover-tempest-config which generated tempest.conf file. If the deployer input file was passed, the error woudn't occur. See comment #7. Based on that, I'm closing the bug as not a bug. If you're still experiencing the issue, feel free to reopen it.


Note You need to log in before you can comment on or make changes to this bug.