Bug 1560923
Summary: | Bug in api_discovery: admin endpoint is taken from the list instead of public | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Sasha Smolyak <ssmolyak> |
Component: | python-tempestconf | Assignee: | Chandan Kumar <chkumar> |
Status: | CLOSED WORKSFORME | QA Contact: | Martin Kopec <mkopec> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 13.0 (Queens) | CC: | jschluet, matyoung, ssmolyak, udesale, whayutin |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-06-07 15:32:31 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1533555 |
Description
Sasha Smolyak
2018-03-27 09:24:00 UTC
We need to use tripleo-deplpoyer-input.conf flag here: Please run this command: discover-tempest-config --deployer-input ~/tempest-deployer-input.conf \ --debug --create identity.uri $OS_AUTH_URL identity.admin_password \ $OS_PASSWORD --create Did this work for you? No, I'm getting the same error (overcloud) [stack@undercloud-0 ~]$ discover-tempest-config --deployer-input ~/tempest-deployer-input.conf \ > --debug --create identity.uri $OS_AUTH_URL identity.admin_password \ > $OS_PASSWORD --create 2018-04-30 07:18:10.140 6870 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf 2018-04-30 07:18:10.271 6870 INFO config_tempest.main [-] Adding options from deployer-input file '/home/stack/tempest-deployer-input.conf' /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) 2018-04-30 07:18:10.913 6870 INFO tempest.lib.common.rest_client [req-866a9720-b85d-4dd4-840b-592abf5e4f19 ] Request (main): 201 POST https://10.0.0.101:13000//v3/auth/tokens 2018-04-30 07:18:11.221 6870 INFO tempest.lib.common.rest_client [req-3c4ba3c9-976e-4711-b79f-414e1b1517a1 ] Request (main): 200 GET https://10.0.0.101:13000/v3/projects 0.306s 2018-04-30 07:18:13.941 6870 CRITICAL tempest [-] Unhandled error: NoOptionError: No option 'username' in section: 'identity' 2018-04-30 07:18:13.941 6870 ERROR tempest Traceback (most recent call last): 2018-04-30 07:18:13.941 6870 ERROR tempest File "/usr/bin/discover-tempest-config", line 10, in <module> 2018-04-30 07:18:13.941 6870 ERROR tempest sys.exit(main()) 2018-04-30 07:18:13.941 6870 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/main.py", line 1065, in main 2018-04-30 07:18:13.941 6870 ERROR tempest conf, services) 2018-04-30 07:18:13.941 6870 ERROR tempest File "/usr/lib/python2.7/site-packages/config_tempest/main.py", line 602, in create_tempest_users 2018-04-30 07:18:13.941 6870 ERROR tempest conf.get('identity', 'username'), 2018-04-30 07:18:13.941 6870 ERROR tempest File "/usr/lib64/python2.7/ConfigParser.py", line 618, in get 2018-04-30 07:18:13.941 6870 ERROR tempest raise NoOptionError(option, section) 2018-04-30 07:18:13.941 6870 ERROR tempest NoOptionError: No option 'username' in section: 'identity' 2018-04-30 07:18:13.941 6870 ERROR tempest Hi Sasha, please try this workflow: 1. $ tempest init <workspace> 2. $ cd <workspace> 3. $ discover-tempest-config --deployer-input ~/tempest-deployer-input.conf --debug --create identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD tempest init creates a workspace which contains default-overrides.conf with default values needed by python-tempestconf. There is a plan to get rid of this dependency and make python-tempestconf to be able to discover it itself, but for now, the file is needed. The workflow worked for me Just a note, deployer file will be loaded automatically in the future, here is the link for the review: https://review.openstack.org/#/c/566537/ Also we are removing the default-overrides.conf by this review: https://review.openstack.org/#/c/572418/ When merged, the changes should be available in python-tempestconf-2.0 |