Hi Andrey,
Yes I used the command which includes --fromenv. Below is the command I used after sourcing my Openstack RC file.
rally deployment create --fromenv --name=existing
Below are the contents for Openstack RC file.
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
Regards,
Ankit Goel
From: Andrey Kurilin <andr.kurilin@gmail.com>
Sent: 05 February 2021 22:09
To: Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>
Cc: Ankit Goel <ankit@aptira.com>; openstack-dev@lists.openstack.org; John Spillane <john@aptira.com>
Subject: Re: Rally - Unable to install rally - install_rally.sh is not available in repo
Hi!
I'm not saying `rally deployment show` is completely broken.
It should work if you pass the "proper" environment spec to the create command. By "proper" I mean using "openstack" instead of "existing@openstack" plugin name. In other cases, including --from-env option, it looks broken.
Anyway, even with "broken" `rally deployment show` command, `rally task` should work.
пт, 5 февр. 2021 г. в 17:42, Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>:
Hello,
`rally deployment show` works fine for me.
With rally v2.1.0 and rally-openstack v3.2.0
From: Andrey Kurilin <andr.kurilin@gmail.com>
Sent: vendredi, 5 février 2021 16:39
To: Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>
Cc: Ankit Goel <ankit@aptira.com>; openstack-dev@lists.openstack.org; John Spillane <john@aptira.com>
Subject: Re: Rally - Unable to install rally - install_rally.sh is not available in repo
Hi, Ankit!
Please accept my apologies for the outdated documentation. Updating docs is my top 1 priority for Rally project, but unfortunately, I do not have much time for doing that.
As for the issue you are facing with `rally deployment show command`, it looks like a bug. Switching from `rally deployment` to `rally env` subset of command should solve the problem (rally deployment will be deprecated at some point).
пт, 5 февр. 2021 г. в 10:17, Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>:
Hello,
1/ Is “rally-openstack” python package correctly installed ? On my side I have:
(venv) vagrant@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@aptira.com>
Sent: jeudi, 4 février 2021 18:19
To: Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>; openstack-dev@lists.openstack.org
Cc: John Spillane <john@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@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@rally ~]#
(rally) [root@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@rally ~]#
Can you please help me to resolve this issue.
Regards,
Ankit Goel
From: Taltavull Jean-Francois <jean-francois.taltavull@elca.ch>
Sent: 03 February 2021 19:38
To: Ankit Goel <ankit@aptira.com>; openstack-dev@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@aptira.com>
Sent: mercredi, 3 février 2021 13:40
To: openstack-dev@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
--Best regards,
Andrey Kurilin.
--
Best regards,
Andrey Kurilin.