Zaza tests on openstack need python-openstackclient

Bug #1925278 reported by Xav Paice
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Charm
Fix Released
Undecided
Unassigned
Elasticsearch Charm
Fix Released
Undecided
Unassigned
Grafana Charm
Fix Released
Undecided
Unassigned
Graylog Charm
Fix Released
Undecided
Unassigned
MongoDB Charm
Fix Released
Undecided
Unassigned
NRPE Charm
Fix Released
Undecided
Unassigned
Prometheus Blackbox Exporter Charm
New
Undecided
Unassigned
Prometheus Ceph Exporter Charm
New
Undecided
Unassigned
Prometheus Openstack Exporter Charm
New
Undecided
Unassigned
Prometheus libvirt exporter charm
New
Undecided
Unassigned
Prometheus2 charm
In Progress
Undecided
Unassigned
Rsyslog Forwarder HA Charm
New
Undecided
Unassigned
Sudo_pair Charm
New
Undecided
Unassigned
Telegraf Charm
Fix Released
Low
Unassigned
charm-autoreg
New
Undecided
Unassigned
charm-duplicity
New
Undecided
Unassigned
charm-fstab-config
New
Undecided
Unassigned
charm-juju-controller
New
Undecided
Unassigned
charm-juju-lint
New
Undecided
Unassigned
charm-jujukeeper
New
Undecided
Unassigned
charm-kubernetes-service-checks
Fix Released
Undecided
Unassigned
glance-sync-layer
New
Undecided
Unassigned
memcached-charm
New
Undecided
Unassigned

Bug Description

Since b46f13ef113e690493364dabc87821699626d8e6 in zaza, if running tests on an OpenStack cloud provider, each bundle test concludes with a cleanup routine that needs the python-openstackclient package in requirements.txt for the tox environment, plus the OS_ environment vars exported/passed through such that the Openstack client actually works. If these are not set, the test fails on the first bundle cleanup and does not continue to the remaining bundles.

Related branches

Xav Paice (xavpaice)
tags: added: charm-nrpe
tags: removed: charm-nrpe
Revision history for this message
Xav Paice (xavpaice) wrote :

Resolution:

Add to requirements.txt:

python-openstackclient

Add to tox.ini under `passenv =`:

  OS_REGION_NAME
  OS_AUTH_VERSION
  OS_AUTH_URL
  OS_PROJECT_DOMAIN_NAME
  OS_USERNAME
  OS_PASSWORD
  OS_PROJECT_ID
  OS_USER_DOMAIN_NAME
  OS_PROJECT_NAME
  OS_IDENTITY_API_VERSION

Prior to running any test: source a valid novarc.

Xav Paice (xavpaice)
Changed in charm-canonical-livepatch:
status: New → In Progress
milestone: none → 21.07
Xav Paice (xavpaice)
Changed in charm-elasticsearch:
status: New → In Progress
Changed in charm-grafana:
status: New → In Progress
Changed in charm-elasticsearch:
milestone: none → 21.07
Xav Paice (xavpaice)
Changed in charm-graylog:
milestone: none → 21.07
status: New → In Progress
Changed in charm-grafana:
milestone: none → 21.07
Xav Paice (xavpaice)
Changed in charm-mongodb:
milestone: none → 21.07
status: New → In Progress
Xav Paice (xavpaice)
Changed in charm-nrpe:
milestone: none → 21.07
status: New → In Progress
Edin S (exsdev)
Changed in charm-telegraf:
importance: Undecided → Low
Xiyue Wang (ziyiwang)
Changed in charm-kubernetes-service-checks:
milestone: none → 21.07
status: New → Fix Committed
status: Fix Committed → Fix Released
Xiyue Wang (ziyiwang)
Changed in charm-canonical-livepatch:
status: In Progress → Fix Released
Xiyue Wang (ziyiwang)
Changed in charm-mongodb:
status: In Progress → Fix Released
Xiyue Wang (ziyiwang)
Changed in charm-elasticsearch:
status: In Progress → Fix Released
Changed in charm-nrpe:
status: In Progress → Fix Released
Xiyue Wang (ziyiwang)
Changed in charm-grafana:
status: In Progress → Fix Released
Xav Paice (xavpaice)
Changed in charm-telegraf:
assignee: nobody → Xav Paice (xavpaice)
status: New → In Progress
milestone: none → 21.10
Xav Paice (xavpaice)
Changed in charm-telegraf:
status: In Progress → Fix Released
Xiyue Wang (ziyiwang)
Changed in charm-graylog:
milestone: 21.07 → 21.10
status: In Progress → Fix Released
Xav Paice (xavpaice)
Changed in charm-prometheus2:
status: New → In Progress
Xav Paice (xavpaice)
Changed in charm-telegraf:
assignee: Xav Paice (xavpaice) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers