Rally deployment create failed

Bug #1803968 reported by p.cipriano
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Michal Nasiadka
Ussuri
Fix Released
Medium
Bartosz Bezak
Victoria
Fix Released
Medium
Michal Nasiadka

Bug Description

After successfully enabling Rally service, I've encountered an issue on creating a new deploment. Kindly see below command and error

rally deployment create --fromenv --name <test>

Env manager got invalid spec:
"There is no Platform plugin with name: 'existing@openstack'"

Logs:

2018-11-19 00:43:21.257 473 ERROR rally File "/var/lib/kolla/venv/lib/python2.7/site-packages/rally/plugins/__init__.py", line 51, in ensure_plugins_are_loaded
2018-11-19 00:43:21.257 473 ERROR rally return f(*args, **kwargs)
2018-11-19 00:43:21.257 473 ERROR rally File "/var/lib/kolla/venv/lib/python2.7/site-packages/rally/cli/commands/deployment.py", line 191, in show
2018-11-19 00:43:21.257 473 ERROR rally creds = deployment["credentials"]["openstack"][0]
2018-11-19 00:43:21.257 473 ERROR rally KeyError: 'openstack'

In order to fix the issue we need to install rally-openstack instead of rally package

Revision history for this message
Serhat Rıfat Demircan (serhatd) wrote :

Also openstacksdk is required.

Revision history for this message
Mark Goddard (mgoddard) wrote :

Are you planning to fix this issue?

Which container OS are you using? Are you using binary or source images?

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Serhat Rıfat Demircan (serhatd) wrote :

I am planing to fix this issue. We use Ubuntu source images.

Mark Goddard (mgoddard)
affects: kolla-ansible → kolla
Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :

This issue is still occurring. Pip installs rally 2.1.0 and rally_openstack 1.7.0, but still get the same error.Openstacksdk is version 0.45.0

2020-06-03 09:07:58.356 48662 CRITICAL rally [-] Unhandled error: KeyError: 'openstack'
2020-06-03 09:07:58.356 48662 ERROR rally Traceback (most recent call last):
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/bin/rally", line 10, in <module>
2020-06-03 09:07:58.356 48662 ERROR rally sys.exit(main())
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/lib/python2.7/site-packages/rally/cli/main.py", line 42, in main
2020-06-03 09:07:58.356 48662 ERROR rally return cliutils.run(sys.argv, categories)
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/lib/python2.7/site-packages/rally/cli/cliutils.py", line 674, in run
2020-06-03 09:07:58.356 48662 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2020-06-03 09:07:58.356 48662 ERROR rally File "<decorator-gen-21>", line 2, in show
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/lib/python2.7/site-packages/rally/cli/envutils.py", line 68, in default_from_global
2020-06-03 09:07:58.356 48662 ERROR rally return f(*args, **kwargs)
2020-06-03 09:07:58.356 48662 ERROR rally File "<decorator-gen-20>", line 2, in show
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/lib/python2.7/site-packages/rally/plugins/__init__.py", line 51, in ensure_plugins_are_loaded
2020-06-03 09:07:58.356 48662 ERROR rally return f(*args, **kwargs)
2020-06-03 09:07:58.356 48662 ERROR rally File "/home1/www/.pyenv/versions/2.7.13/lib/python2.7/site-packages/rally/cli/commands/deployment.py", line 208, in show
2020-06-03 09:07:58.356 48662 ERROR rally creds = deployment["credentials"]["openstack"][0]
2020-06-03 09:07:58.356 48662 ERROR rally KeyError: 'openstack

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/757542

Changed in kolla:
assignee: nobody → Michal Nasiadka (mnasiadka)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/757542
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=bc1abb3d7b217e46eb147bcc38f766c130bdd4cc
Submitter: Zuul
Branch: master

commit bc1abb3d7b217e46eb147bcc38f766c130bdd4cc
Author: Michal Nasiadka <email address hidden>
Date: Mon Oct 12 13:43:03 2020 +0200

    rally: Add rally-openstack

    Currently source builds and centos-binary builds do not install
    rally-openstack. It results in errors with finding openstack plugin.

    Change-Id: I26ad81a7076bad7a659e2d80a1ad0453c13794d1
    Closes-Bug: #1803968

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.opendev.org/758540

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/758540
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=48b81b86939e54044d4fa289f2f9e4e620cf44bc
Submitter: Zuul
Branch: master

commit 48b81b86939e54044d4fa289f2f9e4e620cf44bc
Author: Bartosz Bezak <email address hidden>
Date: Fri Oct 16 11:16:14 2020 +0200

    rally: add rally-openstack in source - follow up

    Follow up to change [0]
    rally-openstack added as plugin to rally source image.
    Changed rally tarball to latest available version,
    as rally does not build tarbals from master branch anymore.

    [0]: https://review.opendev.org/#/c/757542/
    Closes-Bug: #1803968

    Change-Id: I26dd3a02e5e0131f52eac1380562b610eea3a36f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/760574

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/ussuri)

Reviewed: https://review.opendev.org/760574
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=19e8efb1ce7d6a5c12cc9cd8d827bc229fbe3375
Submitter: Zuul
Branch: stable/ussuri

commit 19e8efb1ce7d6a5c12cc9cd8d827bc229fbe3375
Author: Bartosz Bezak <email address hidden>
Date: Fri Oct 30 16:09:53 2020 +0100

    rally: add rally-openstack in source - follow up

    Follow up to change [0]
    rally-openstack added as plugin to rally source image.
    Changed rally tarball to latest available version,
    as rally does not build tarbals from master branch anymore.

    [0]: https://review.opendev.org/#/c/757542/
    Closes-Bug: #1803968

    Change-Id: I26dd3a02e5e0131f52eac1380562b610eea3a36f
    (cherry picked from commit 48b81b86939e54044d4fa289f2f9e4e620cf44bc)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 10.2.0

This issue was fixed in the openstack/kolla 10.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by "Mark Goddard <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/618728
Reason: Very old

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.