Change to use openstack instead of nova command

One of the playbooks was using 'nova flavor-create',
which was causing failures in the neutron gate. Change
to use 'openstack flavor create' instead as nova has
been deprecated for a while.

Change-Id: I193396ecdff50748c8253287d3e9a273be843db4
Closes-bug: #2031971
This commit is contained in:
Brian Haley 2023-08-19 12:06:57 -04:00 committed by Andrey Kurilin
parent eecf463d63
commit a2bad02968
2 changed files with 71 additions and 72 deletions

View File

@ -9,32 +9,32 @@
- rally-tox-py39 - rally-tox-py39
- rally-tox-py310 - rally-tox-py310
#- rally-dsvm-tox-functional #- rally-dsvm-tox-functional
#- rally-openstack-docker-build - rally-openstack-docker-build
#- rally-task-basic-with-existing-users #- rally-task-basic-with-existing-users
#- rally-task-simple-job - rally-task-simple-job
#- rally-task-barbican: - rally-task-barbican:
# files: files:
# - .zuul.d/zuul.yaml - .zuul.d/zuul.yaml
# - rally-jobs/barbican.yaml - rally-jobs/barbican.yaml
# - rally_openstack/common/osclients.py - rally_openstack/common/osclients.py
# - rally_openstack/common/services/key_manager - rally_openstack/common/services/key_manager
# - rally_openstack/task/cleanup/resources.py - rally_openstack/task/cleanup/resources.py
# - rally_openstack/task/scenarios/barbican - rally_openstack/task/scenarios/barbican
# - tests/ci/playbooks - tests/ci/playbooks
#- rally-task-cinder - rally-task-cinder
#- rally-task-designate: - rally-task-designate:
# files: files:
# - .zuul.d/zuul.yaml - .zuul.d/zuul.yaml
# - rally-jobs/designate.yaml - rally-jobs/designate.yaml
# - rally_openstack/common/osclients.py - rally_openstack/common/osclients.py
# - rally_openstack/task/cleanup/resources.py - rally_openstack/task/cleanup/resources.py
# - rally_openstack/task/contexts/designate - rally_openstack/task/contexts/designate
# - rally_openstack/task/scenarios/designate - rally_openstack/task/scenarios/designate
# - tests/ci/playbooks - tests/ci/playbooks
#- rally-task-heat: #- rally-task-heat:
# voting: false # voting: false
#- rally-task-ironic #- rally-task-ironic
#- rally-task-keystone-glance-swift - rally-task-keystone-glance-swift
#- rally-task-magnum: #- rally-task-magnum:
# voting: false # voting: false
# files: # files:
@ -45,42 +45,41 @@
# - rally_openstack/task/contexts/magnum # - rally_openstack/task/contexts/magnum
# - rally_openstack/task/scenarios/magnum # - rally_openstack/task/scenarios/magnum
# - tests/ci/playbooks # - tests/ci/playbooks
#- rally-task-manila-no-ss: - rally-task-manila-no-ss:
# voting: false voting: false
#- rally-task-manila-ss: - rally-task-manila-ss:
# voting: false voting: false
#- rally-task-mistral #- rally-task-mistral
# it did not work for a long time. try to re-configure it # it did not work for a long time. try to re-configure it
#- rally-task-monasca #- rally-task-monasca
#- rally-task-murano: #- rally-task-murano:
# voting: false # voting: false
#- rally-task-neutron - rally-task-neutron
#- rally-task-neutron-trunk: - rally-task-neutron-trunk:
# files: files:
# - .zuul.d/zuul.yaml - .zuul.d/zuul.yaml
# - rally-jobs/neutron-trunk.yaml - rally-jobs/neutron-trunk.yaml
# - rally_openstack/common/osclients.py - rally_openstack/common/osclients.py
# - rally_openstack/common/services/network - rally_openstack/common/services/network
# - rally_openstack/task/cleanup/resources.py - rally_openstack/task/cleanup/resources.py
# - rally_openstack/task/contexts/network - rally_openstack/task/contexts/network
# - rally_openstack/task/scenarios/neutron/trunk.py - rally_openstack/task/scenarios/neutron/trunk.py
# - rally_openstack/task/scenarios/neutron/network.py - rally_openstack/task/scenarios/neutron/network.py
# - tests/ci/playbooks - tests/ci/playbooks
#- rally-task-neutron-with-extensions: - rally-task-neutron-with-extensions:
# voting: false voting: false
#- rally-task-nova: #- rally-task-nova:
# voting: false # voting: false
# it did not work for a long time # it did not work for a long time
#- rally-task-senlin #- rally-task-senlin
#- rally-task-octavia: #- rally-task-octavia:
# voting: false # voting: false
#- rally-task-telemetry: - rally-task-telemetry:
# voting: false voting: false
#- rally-task-watcher: - rally-task-watcher:
# # watcher-api did not start last time voting: false
# voting: false - rally-task-zaqar:
#- rally-task-zaqar: voting: false
# voting: false
#- rally-verify-tempest #- rally-verify-tempest
gate: gate:
jobs: jobs:
@ -92,34 +91,34 @@
- rally-tox-py39 - rally-tox-py39
- rally-tox-py310 - rally-tox-py310
#- rally-dsvm-tox-functional #- rally-dsvm-tox-functional
#- rally-openstack-docker-build - rally-openstack-docker-build
#- rally-task-basic-with-existing-users #- rally-task-basic-with-existing-users
#- rally-task-simple-job - rally-task-simple-job
#- rally-task-barbican: - rally-task-barbican:
# files: files:
# - .zuul.d/zuul.yaml - .zuul.d/zuul.yaml
# - rally-jobs/barbican.yaml - rally-jobs/barbican.yaml
# - rally_openstack/common/osclients.py - rally_openstack/common/osclients.py
# - rally_openstack/common/services/key_manager - rally_openstack/common/services/key_manager
# - rally_openstack/task/cleanup/resources.py - rally_openstack/task/cleanup/resources.py
# - rally_openstack/task/scenarios/barbican - rally_openstack/task/scenarios/barbican
# - tests/ci/playbooks - tests/ci/playbooks
#- rally-task-cinder - rally-task-cinder
#- rally-task-heat #- rally-task-heat
#- rally-task-ironic #- rally-task-ironic
#- rally-task-keystone-glance-swift - rally-task-keystone-glance-swift
#- rally-task-mistral #- rally-task-mistral
#- rally-task-neutron - rally-task-neutron
#- rally-task-neutron-trunk: - rally-task-neutron-trunk:
# files: files:
# - rally-jobs/neutron-trunk.yaml - rally-jobs/neutron-trunk.yaml
# - rally_openstack/common/osclients.py - rally_openstack/common/osclients.py
# - rally_openstack/common/services/network - rally_openstack/common/services/network
# - rally_openstack/task/cleanup/resources.py - rally_openstack/task/cleanup/resources.py
# - rally_openstack/task/contexts/network - rally_openstack/task/contexts/network
# - rally_openstack/task/scenarios/neutron/trunk.py - rally_openstack/task/scenarios/neutron/trunk.py
# - rally_openstack/task/scenarios/neutron/network.py - rally_openstack/task/scenarios/neutron/network.py
# - tests/ci/playbooks - tests/ci/playbooks
#- rally-verify-tempest #- rally-verify-tempest
post: post:
jobs: jobs:

View File

@ -140,7 +140,7 @@
if rally deployment check | grep 'nova' | grep 'Available' > /dev/null; if rally deployment check | grep 'nova' | grep 'Available' > /dev/null;
then then
nova flavor-create m1.nano 42 64 0 1 openstack flavor create --id 42 --ram 64 --disk 0 --vcpus 1 m1.nano
fi fi
- name: Check the existence of rally_task - name: Check the existence of rally_task