Bug 1716434
| Summary: | NoOptionError: No option 'region' in section: 'identity' | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Filip Hubík <fhubik> |
| Component: | openstack-packstack | Assignee: | Alfredo Moralejo <amoralej> |
| Status: | CLOSED ERRATA | QA Contact: | Filip Hubík <fhubik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 14.0 (Rocky) | CC: | amoralej, udesale |
| Target Milestone: | z3 | Keywords: | Triaged, ZStream |
| Target Release: | 14.0 (Rocky) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-packstack-13.0.0-0.20190420094339.ce737f8.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-07-02 16:31:21 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
Filip Hubík
2019-06-03 14:00:45 UTC
Problem seems to be around https://github.com/openstack/python-tempestconf/blob/master/config_tempest/services/orchestration.py#L42 . A new feature which sets heat_plugin options (when heat service is enabled) has been introduced in the new version of python-tempestconf. The feature requires region to be set under [identity] section [1]. In a devstack environment the region is set after devstack/openrc file is sourced. In a RHOS environment the region is part of deployer-input.conf file. However it seems that in a packstack environment the region is not part of the rc file. Therefore in packstack, the region should be set prior python-tempestconf execution. It can be done by: 1. exporting OS_REGION_NAME=<region> variable 2. using overrides when running python-tempestconf [1] https://opendev.org/openstack/python-tempestconf/src/commit/5dda24d4067aa9a99c287940971400c7704331a8/config_tempest/services/orchestration.py#L42 I've proposed fix in packstack in https://review.opendev.org/663091 I'll cherry pick to stable branches. I can confirm we do not see this issue since we have openstack-packstack-13.0.0-0.20190420094339.ce737f8 present in OSP14 packstack deployments. Looking at the difference between 2 runs ([0], [1]) of puddles 2019-06-10.3 (13.0.0-0.20190420094338.ce737f8) and 2019-06-17.2 (13.0.0-0.20190420094339.ce737f) it seems like we can remove the temporary InfraRed workaround https://review.gerrithub.io/c/redhat-openstack/infrared/+/459115 and consider this fix verified. [0] - https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/ReleaseDelivery/view/OSP14/job/phase2-14-rhel-7.6-openstack-all-in-one-neutron-rabbitmq/134/ [1] - https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/ReleaseDelivery/view/OSP14/job/phase2-14-rhel-7.6-openstack-all-in-one-neutron-rabbitmq/135/ Since run 135, OS_REGION_NAME is present in keystonerc_admin file as part of packstack deployment: unset OS_SERVICE_TOKEN ... >> export OS_REGION_NAME=RegionOne export OS_AUTH_URL=http://172.16.1.31:5000/v3 export PS1='[\u@\h \W(keystone_admin)]\$ ' export OS_PROJECT_NAME=admin export OS_USER_DOMAIN_NAME=Default ... 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-2019:1666 |