Rally - Unable to install rally - install_rally.sh is not available in repo

Ankit Goel ankit at aptira.com
Fri Feb 5 17:43:44 UTC 2021


Hi Jean,

Please find below the output.

(rally) [root at rally tasks]# pip list | grep rally
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
rally                   3.2.0
rally-openstack         2.1.0
(rally) [root at rally tasks]#

I sourced my Openstack RC file and then used the below command to create the deployment.

rally deployment create --fromenv --name=existing
Below are the contents for Openstack-rc file.

(rally) [root at rally ~]# cat admin-openstack.sh
export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=kMswJJGAeKhziXGWloLjYESvfOytK4DkCAAXcpA8
export OS_AUTH_URL=https://osp.example.com:5000/v3
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=RegionOne
export OS_AUTH_PLUGIN=password
export OS_CACERT=/root/certificates/haproxy-ca.crt
(rally) [root at rally ~]#

Regards,
Ankit Goel
From: Taltavull Jean-Francois <jean-francois.taltavull at elca.ch>
Sent: 05 February 2021 13:39
To: Ankit Goel <ankit at aptira.com>; openstack-dev at lists.openstack.org
Cc: John Spillane <john at aptira.com>
Subject: RE: Rally - Unable to install rally - install_rally.sh is not available in repo

Hello,

1/ Is “rally-openstack” python package correctly installed ? On my side I have:

(venv) vagrant at rally: $ pip list | grep rally
rally                          3.2.0
rally-openstack                2.1.0

2/ Could you please show the json file used to create the deployment ?


From: Ankit Goel <ankit at aptira.com<mailto:ankit at aptira.com>>
Sent: jeudi, 4 février 2021 18:19
To: Taltavull Jean-Francois <jean-francois.taltavull at elca.ch<mailto:jean-francois.taltavull at elca.ch>>; openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>
Cc: John Spillane <john at aptira.com<mailto:john at aptira.com>>
Subject: RE: Rally - Unable to install rally - install_rally.sh is not available in repo

Thanks for the response Jean. I could  install rally with pip command. But when I am running rally deployment show command then it is failing.

(rally) [root at rally ~]# rally deployment list
+--------------------------------------+----------------------------+----------+------------------+--------+
| uuid                                 | created_at                 | name     | status           | active |
+--------------------------------------+----------------------------+----------+------------------+--------+
| 43f3d3d9-ea22-4e75-9c47-daa83cc51c2a | 2021-02-04T14:57:02.638753 | existing | deploy->finished | *      |
+--------------------------------------+----------------------------+----------+------------------+--------+
(rally) [root at rally ~]#
(rally) [root at rally ~]#  rally deployment show 43f3d3d9-ea22-4e75-9c47-daa83cc51c2a
Command failed, please check log for more info
2021-02-04 16:06:49.576 19306 CRITICAL rally [-] Unhandled error: KeyError: 'openstack'
2021-02-04 16:06:49.576 19306 ERROR rally Traceback (most recent call last):
2021-02-04 16:06:49.576 19306 ERROR rally   File "/bin/rally", line 11, in <module>
2021-02-04 16:06:49.576 19306 ERROR rally     sys.exit(main())
2021-02-04 16:06:49.576 19306 ERROR rally   File "/usr/local/lib/python3.6/site-packages/rally/cli/main.py", line 40, in main
2021-02-04 16:06:49.576 19306 ERROR rally     return cliutils.run(sys.argv, categories)
2021-02-04 16:06:49.576 19306 ERROR rally   File "/usr/local/lib/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2021-02-04 16:06:49.576 19306 ERROR rally     ret = fn(*fn_args, **fn_kwargs)
2021-02-04 16:06:49.576 19306 ERROR rally   File "<decorator-gen-21>", line 2, in show
2021-02-04 16:06:49.576 19306 ERROR rally   File "/usr/local/lib/python3.6/site-packages/rally/cli/envutils.py", line 135, in default_from_global
2021-02-04 16:06:49.576 19306 ERROR rally     return f(*args, **kwargs)
2021-02-04 16:06:49.576 19306 ERROR rally   File "<decorator-gen-20>", line 2, in show
2021-02-04 16:06:49.576 19306 ERROR rally   File "/usr/local/lib/python3.6/site-packages/rally/plugins/__init__.py", line 59, in ensure_plugins_are_loaded
2021-02-04 16:06:49.576 19306 ERROR rally     return f(*args, **kwargs)
2021-02-04 16:06:49.576 19306 ERROR rally   File "/usr/local/lib/python3.6/site-packages/rally/cli/commands/deployment.py", line 205, in show
2021-02-04 16:06:49.576 19306 ERROR rally     creds = deployment["credentials"]["openstack"][0]
2021-02-04 16:06:49.576 19306 ERROR rally KeyError: 'openstack'
2021-02-04 16:06:49.576 19306 ERROR rally
(rally) [root at rally ~]#

Can you please help me to resolve this issue.

Regards,
Ankit Goel

From: Taltavull Jean-Francois <jean-francois.taltavull at elca.ch<mailto:jean-francois.taltavull at elca.ch>>
Sent: 03 February 2021 19:38
To: Ankit Goel <ankit at aptira.com<mailto:ankit at aptira.com>>; openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>
Subject: RE: Rally - Unable to install rally - install_rally.sh is not available in repo

Hello Ankit,

Installation part of Rally official doc is not up to date, actually.

Just do “pip install rally-openstack” (in a virtualenv, of course 😊)
This will also install “rally” python package.

Enjoy !

Jean-Francois

From: Ankit Goel <ankit at aptira.com<mailto:ankit at aptira.com>>
Sent: mercredi, 3 février 2021 13:40
To: openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>
Subject: Rally - Unable to install rally - install_rally.sh is not available in repo

Hello Experts,

I was trying to install Openstack rally on centos 7 VM but the link provided in the Openstack doc to download the install_rally.sh is broken.

Latest Rally Doc link - > https://docs.openstack.org/rally/latest/install_and_upgrade/install.html#automated-installation

Rally Install Script -> https://raw.githubusercontent.com/openstack/rally/master/install_rally.sh - > This is broken

After searching on internet I could reach to the Openstack rally Repo - > https://opendev.org/openstack/rally but here I am not seeing the install_ rally.sh script and according to all the information available on internet it says we need install_ rally.sh.

Thus can you please let me know what’s the latest procedure to install Rally.

Awaiting for your response.
Thanks,
Ankit Goel







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210205/4106b413/attachment-0001.html>


More information about the openstack-discuss mailing list