external ceph does not copy per-node ceph.conf

Bug #1884002 reported by Mike May
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Triaged
Wishlist
Unassigned
Victoria
Triaged
Wishlist
Unassigned

Bug Description

When using an advanced per-node configuration, the "Copy over ceph.conf" task of nova-cell/tasks/external_ceph.yml only checks for a ceph.conf at the "{{ node_custom_config }}/nova/ceph.conf" when "{{ node_custom_config }}/nova/{{ inventory_hostname }}/ceph.conf" should also a perfectly valid option.

**Bug Report**

What happened:
TASK [nova-cell : Copy over ceph.conf] ************************************************************************************************************************************************
failed: [ip/hostname] (item=nova-compute) => {"ansible_loop_var": "item", "changed": false, "item": "nova-compute", "msg": "Could not find or access '/etc/kolla/config/nova/ceph.conf' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

What you expected to happen:
This copy should have passed as all hosts provide the ceph.conf file in their host specific folder under {{ node_custom_config}}/nova/{{ inventory_hostname }}/ceph.conf

How to reproduce it (minimal and precise):
Utilize only {{ node_custom_config}}/nova/{{ inventory_hostname }}/ceph.conf to provide kolla-ansible with ceph.conf file nova expects

**Environment**:
* OS (e.g. from /etc/os-release): VERSION="18.04.4 LTS (Bionic Beaver)"
* Kernel (e.g. `uname -a`): Linux 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
* Docker version if applicable (e.g. `docker version`): 19.03.11
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release): stable/train but this affects master as well
* Docker image Install type (source/binary): binary
* Docker image distribution: ubuntu
* Are you using official images from Docker Hub or self built? Docker Hub
* If self built - Kolla version and environment used to build:
* Share your inventory file, globals.yml and other configuration files if relevant

Mike May (themistymay)
description: updated
Mike May (themistymay)
summary: - xternal ceph with advanced per-node configuration fails to copy
+ external ceph with advanced per-node configuration fails to copy
ceph.conf
description: updated
Revision history for this message
Radosław Piliszek (yoctozepto) wrote : Re: external ceph with advanced per-node configuration fails to copy ceph.conf

Are you planning to propose a fix?

Revision history for this message
Mike May (themistymay) wrote :

I'd be willing to throw something down, need to finish up a deployment this week. Timebox to 1 week so you all have and idea if I had to drop it off my plate?

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

I can propose it too if you don't mind it.

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Wishlist
summary: - external ceph with advanced per-node configuration fails to copy
- ceph.conf
+ external ceph does not copy per-node ceph.conf
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.