CRITICAL rally [-] Unhandled error: KeyError: 'openstack'

Bug #1977797 reported by swogat pradhan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
New
Undecided
Unassigned

Bug Description

I am using openstack wallaby in tripleo architecture.
I googled around and found i can use openstack-rally for testing the openstack deployment and will be able to genrate report also.
so i tried installing openstack rally using "yum install openstack-rally", "pip3 install openstack-rally" and finally cloned the git repo and ran "python3 setup.py install" but no matter what i do i am getting the error 'unhandled error : keyerror 'openstack''

(overcloud) [root@hkg2director ~]# rally deployment create --fromenv --name=existing
+--------------------------------------+----------------------------+----------+------------------+--------+
| uuid | created_at | name | status | active |
+--------------------------------------+----------------------------+----------+------------------+--------+
| 484aae52-a690-4163-828b-16adcaa0d8fb | 2022-06-07T05:48:39.039296 | existing | deploy->finished | |
+--------------------------------------+----------------------------+----------+------------------+--------+
Using deployment: 484aae52-a690-4163-828b-16adcaa0d8fb
(overcloud) [root@hkg2director ~]# rally deployment show 484aae52-a690-4163-828b-16adcaa0d8fb
Command failed, please check log for more info
2022-06-07 13:48:58.651 482053 CRITICAL rally [-] Unhandled error: KeyError: 'openstack'
2022-06-07 13:48:58.651 482053 ERROR rally Traceback (most recent call last):
2022-06-07 13:48:58.651 482053 ERROR rally File "/bin/rally", line 10, in <module>
2022-06-07 13:48:58.651 482053 ERROR rally sys.exit(main())
2022-06-07 13:48:58.651 482053 ERROR rally File "/usr/local/lib/python3.6/site-packages/rally/cli/main.py", line 40, in main
2022-06-07 13:48:58.651 482053 ERROR rally return cliutils.run(sys.argv, categories)
2022-06-07 13:48:58.651 482053 ERROR rally File "/usr/local/lib/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2022-06-07 13:48:58.651 482053 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2022-06-07 13:48:58.651 482053 ERROR rally File "/usr/local/lib/python3.6/site-packages/rally/cli/envutils.py", line 142, in inner
2022-06-07 13:48:58.651 482053 ERROR rally return func(*args, **kwargs)
2022-06-07 13:48:58.651 482053 ERROR rally File "/usr/local/lib/python3.6/site-packages/rally/plugins/__init__.py", line 59, in wrapper
2022-06-07 13:48:58.651 482053 ERROR rally return func(*args, **kwargs)
2022-06-07 13:48:58.651 482053 ERROR rally File "/usr/local/lib/python3.6/site-packages/rally/cli/commands/deployment.py", line 205, in show
2022-06-07 13:48:58.651 482053 ERROR rally creds = deployment["credentials"]["openstack"][0]
2022-06-07 13:48:58.651 482053 ERROR rally KeyError: 'openstack'
2022-06-07 13:48:58.651 482053 ERROR rally

can someone please help me in fixing this issue or give any suggestion on which tool to use to test the openstack deployment and benchmark.

swogat pradhan (swogat)
affects: wget (Ubuntu) → rally-openstack (Ubuntu)
affects: rally-openstack (Ubuntu) → rally
Revision history for this message
Baptiste Jonglez (bjonglez) wrote :

I've encountered the same issue, I've tested with Rally 3.3.0 and with latest commit e8613ffeb01

I suspect that either 1) my Openstack env variables are somehow wrong, or 2) this functionality is broken in Rally.

I am now using the JSON method instead and it works:

$ rally deployment create --filename foo.json --name foo

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.