Activity log for bug #1860572

Date Who What changed Old value New value Message
2020-01-22 15:26:49 Graham Lenton bug added bug
2020-01-22 15:26:49 Graham Lenton attachment added Patch for roles/ceph_client/tasks/ceph_get_keyrings_from_files.yml https://bugs.launchpad.net/bugs/1860572/+attachment/5322194/+files/ceph_get_keyrings_from_files.yml.patch
2020-01-22 15:31:04 Graham Lenton description When defining `ceph_keyrings_dir` and providing keyring files as described at https://review.opendev.org/#/c/671762/ the task "ceph_client : From files | Retrieve keyrings for openstack clients" fails with "'item' is undefined". I think there are two problems with this task. Firstly the loop around `ceph_client_filtered_clients` refers to `item` instead of `client` when updating `_keys`. Secondly, the _keys object is declared as an array when it should be a dictionary. There is further problem with comes to light in the next task "From files | Provision ceph client keyrings" which fails with "ansible.vars.hostvars.HostVarsVars object' has no attribute 'ceph_client_keys'". This is because the first "retrieve" task was delegated to localhost, but `delegate_facts: yes` was not set, so the fact was never set on localhost.. I've attached a patch for roles/ceph_client/tasks/ceph_get_keyrings_from_files.yml When defining `ceph_keyrings_dir` and providing keyring files as described at https://review.opendev.org/#/c/671762/ the task "ceph_client : From files | Retrieve keyrings for openstack clients" fails with "'item' is undefined". I think there are two problems with this task. Firstly the loop around `ceph_client_filtered_clients` refers to `item` instead of `client` when updating `_keys`. Secondly, the _keys object is declared as an array when it should be a dictionary. There is a further problem which comes to light in the next task "From files | Provision ceph client keyrings" which fails with "ansible.vars.hostvars.HostVarsVars object' has no attribute 'ceph_client_keys'". This is because the first "retrieve" task was delegated to localhost, but `delegate_facts: yes` was not set, so the fact was never set on localhost.. I've attached a patch for roles/ceph_client/tasks/ceph_get_keyrings_from_files.yml
2020-01-22 15:44:38 OpenStack Infra openstack-ansible: status New In Progress
2020-01-22 15:44:38 OpenStack Infra openstack-ansible: assignee Dmitriy Rabotyagov (noonedeadpunk)
2020-01-23 16:37:13 OpenStack Infra openstack-ansible: status In Progress Fix Released
2020-05-10 10:02:46 OpenStack Infra tags in-stable-train