_undefine_virsh_secret assumes only one secret exists

Bug #1920063 reported by Eric Harney
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack-plugin-ceph
New
Undecided
Unassigned

Bug Description

https://opendev.org/openstack/devstack-plugin-ceph/src/commit/59bef674f539c0201c0a90d446f2bba231b05c6d/devstack/lib/ceph#L260

This code assumes that "virsh secret-list" only returns one secret.

If an encrypted volume has been attached to an instance, this will return a secret for that volume as well.

This makes this command not work because it will call something like:
  virsh secret-undefine secret-1 secret-2

which is invalid.

Tags: secret virsh
tags: added: secret virsh
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.