Friday, 2025-02-21

gurustackerhi all, in globals.yml I added this: nova_compute_extra_volumes:     - "/etc/kolla/config/nova/ceph/:/etc/ceph/:rw"  and have keyring files in the ceph directory that will not be added to the nova_compute container during deployment. All permissions are rw, no apparmor, no fails, just the keyrings will not be added no matter what is tried, any ideas?03:29
joelm21gurustacker: You've built the keys for your external ceph as per https://docs.ceph.com/en/latest/rbd/rbd-openstack/ ? Assuming you followed the external ceph configuration integration guide for kolla-ansible here https://docs.openstack.org/kolla-ansible/latest/reference/storage/external-ceph-guide.html ?04:48
joelm21looking at https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/nova-cell/defaults/main.yml it looks like nova_compute_extra_volumes just bolts on nicely to nova-compute: volumes: and your syntax is probably fine if kolla-ansible prechecks is not flagging any warnings.04:49
mnasiadkagurustacker: Is there a reason you're not using External Ceph support in Kolla-Ansible? It now has support for multiple keys/config files for multiple backends.05:51
opendevreviewPierre Riteau proposed openstack/kayobe master: Remove graphlib-backport requirement  https://review.opendev.org/c/openstack/kayobe/+/94242109:23
opendevreviewPierre Riteau proposed openstack/kayobe master: Remove graphlib-backport requirement  https://review.opendev.org/c/openstack/kayobe/+/94242109:38
opendevreviewMichal Nasiadka proposed openstack/kolla master: CI: Add rocky support to process_build_logs.py  https://review.opendev.org/c/openstack/kolla/+/94242210:59
opendevreviewVerification of a change to openstack/kolla master failed: CI: Use ansible-lint for CI roles and playbooks  https://review.opendev.org/c/openstack/kolla/+/93761412:24
opendevreviewGrzegorz Koper proposed openstack/kolla-ansible master: Bump ansible-core versions to 2.17 and 2.18  https://review.opendev.org/c/openstack/kolla-ansible/+/94178712:41
opendevreviewMatt Anson proposed openstack/kolla-ansible master: prometheus: Support overriding address of scrape targets  https://review.opendev.org/c/openstack/kolla-ansible/+/89961514:21
gurustackerjoelm21: thanks for the input. I have followed the guide. It's possible the value for user (nova-compute) of the ceph pool in the globals.yml  is only allowing the one keyring "/etc/ceph/ceph.client.nova-compute.keyring" and ceph.conf. But from the errors when testing "ceph -s" from nova_compute container is "AuthRegistry(0x7f11f00650b0) no keyring found at /etc/ceph/ceph.client.admin.keyring, disabling cephx". 14:35
gurustackermnasiadka: I didn't see the guide for using External Ceph support in Kolla-Ansible, can you point me to the right direction, this sounds like exactly what I need since I have multiple backends in the ceph cluster? 14:38
opendevreviewMatt Anson proposed openstack/ansible-collection-kolla master: Add stats callback plugin  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/91034714:40
mnasiadkagurustacker: https://docs.openstack.org/kolla-ansible/2024.1/reference/storage/external-ceph-guide.html - we have that from 2024.114:46
gurustackerWhat option is there in the globals.yml to add any file to a container, in my case a keyring, and maybe another case is having some scripts in the future? Is there a syntax to override any blocks I could use to force any file to one container group during deployment? For example nova_compute_extra_volumes:     - "/etc/kolla/config/nova/script-to-check-then-ping-home-youre-okay.sh:/home/:ro14:47
gurustackerThank you mnasiadka!! I'm starting to read now14:48
mnasiadkaone additional volume to all of the containers? I don't think we have that, we have it per service surely14:49
gurustackerThat would be a great feature to have. How would I script it per service?14:52
gurustackermnasiadka: I did read that before but I didn't think it would apply in my case I only needed the admin keyring added. So I guess I would create a new admin-ceph.conf referencing the admin keyring, maybe that'll do it14:57
kevkogurustacker: you can mount your extra volume as you wrote above ... So where is problem ? Regarding keyring question ... Read docs and your keyring will be copied 14:57
gurustackerThanks kevko14:58
kevkogurustacker: just set your cinder nova glance users to be admin and that's it ..admin keyring will be copied 14:58
gurustackerokay I'll try, so in globals.yml I'll just have them all set as the admin user and forget about each service key for now14:59
kevkogurustacker: no extra steps needed ..if you have admin keyring and ceph.conf ..this is easy 14:59
kevkogurustacker: yeah ...if you want to do it ...14:59
gurustackerso I thought, but for the life of me it would not be added as an extra keyring, it only would take the nova-compute.keyring15:00
kevkogurustacker: read the manual and ask if anything will.not be clear 15:00
kevkogurustacker: so you had wrong config ...15:01
gurustackeryeah probably, just a mind$uck to figure out15:01
opendevreviewMatt Anson proposed openstack/ansible-collection-kolla master: Add stats callback plugin  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/91034715:04
opendevreviewGrzegorz Koper proposed openstack/kolla-ansible master: Bump ansible-core versions to 2.17 and 2.18  https://review.opendev.org/c/openstack/kolla-ansible/+/94178715:05
opendevreviewPierre Riteau proposed openstack/kayobe master: CI: Use libpod/registry for registry  https://review.opendev.org/c/openstack/kayobe/+/94071315:26
gurustackerWhat I'm finding is that the docker exec -u root -it nova_compute cat /var/lib/kolla/config_files/config.json does not have the reference to the file even when in the mounts it shows, docker exec -it nova_compute ls -l /etc/ceph total 8 -rw------- 1 nova nova  70 Feb 21 15:20 ceph.client.nova-compute.keyring -rw------- 1 nova nova 486 Feb 21 15:20 ceph.conf   docker inspect nova_compute | grep -A 60 "Mounts"         "Mounts": [             {15:36
gurustacker"bind",                 "Source": "/etc/kolla/config/nova/ceph/ceph.client.admin.keyring",                 "Destination": "/etc/ceph",                 "Mode": "rw",                 "RW": true,                 "Propagation": "rprivate"             },15:36
opendevreviewGrzegorz Koper proposed openstack/kolla-ansible master: Bump ansible-core versions to 2.17 and 2.18  https://review.opendev.org/c/openstack/kolla-ansible/+/94178715:50
opendevreviewGrzegorz Koper proposed openstack/kolla-ansible master: Bump ansible-core versions to 2.17 and 2.18  https://review.opendev.org/c/openstack/kolla-ansible/+/94178715:53
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: fluentd: Add ovn logs to input  https://review.opendev.org/c/openstack/kolla-ansible/+/94246715:59
opendevreviewJack Hodgkiss proposed openstack/kayobe master: Add support for making `Bifrost` optional  https://review.opendev.org/c/openstack/kayobe/+/94246816:06
opendevreviewMerged openstack/kolla master: CI: Add rocky support to process_build_logs.py  https://review.opendev.org/c/openstack/kolla/+/94242216:49
opendevreviewDoug Szumski proposed openstack/kolla stable/2024.2: Prometheus update all exporters to the latest versions  https://review.opendev.org/c/openstack/kolla/+/94247916:54
opendevreviewDoug Szumski proposed openstack/kolla stable/2024.1: Prometheus update all exporters to the latest versions  https://review.opendev.org/c/openstack/kolla/+/94248016:54
kevkogurustacker: in config.json should be the ceph directory  included17:01
opendevreviewMerged openstack/kolla master: CI: Use ansible-lint for CI roles and playbooks  https://review.opendev.org/c/openstack/kolla/+/93761417:02
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: WIP: CI: Test for log files missing in fluentd config  https://review.opendev.org/c/openstack/kolla-ansible/+/94248217:08
opendevreviewJack Hodgkiss proposed openstack/kayobe master: Add support for making `Bifrost` optional  https://review.opendev.org/c/openstack/kayobe/+/94246817:10
opendevreviewMichal Nasiadka proposed openstack/kolla master: WIP: Switch back to aarch64 nodes  https://review.opendev.org/c/openstack/kolla/+/93245117:11
opendevreviewMichal Nasiadka proposed openstack/kolla master: DNM: Run fio tests  https://review.opendev.org/c/openstack/kolla/+/92721017:11
opendevreviewMichal Nasiadka proposed openstack/kolla master: DNM: Run fio tests  https://review.opendev.org/c/openstack/kolla/+/92721017:13
opendevreviewJack Hodgkiss proposed openstack/kayobe master: Add support for making `Bifrost` optional  https://review.opendev.org/c/openstack/kayobe/+/94246817:13
gurustackerkevko: yes I tried that route but the files were being disregarded when trying to mount the entire directory. Tried adding the file from the directory and this is referenced in the config.json. There seems to be some limiting factor where nothing else is allowed to be added to the /etc/ceph directory. If there's a flag to bypass that or something else please share, otherwise this is a feature request!17:14
gurustackersorry, is not referenced in config.json17:15
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [CI] Fix swift disk preparation  https://review.opendev.org/c/openstack/kolla-ansible/+/91394217:27
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [CI] Make demo router and network shared  https://review.opendev.org/c/openstack/kolla-ansible/+/92289917:27
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Add rally role  https://review.opendev.org/c/openstack/kolla-ansible/+/92290017:27
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Try to test via rally  https://review.opendev.org/c/openstack/kolla-ansible/+/92290117:27
kevkogurustacker: what are u talking about ..you are not supposed to mount anything ...why ? 17:48
kevkogurustacker: did you read the docs  ? 17:48
kevkogurustacker: you should have 17:50
kevkoolla@deploy:~$ ls -la /etc/kolla/config/nova/17:50
kevkototal 1617:50
kevkodrwxr-xr-x  2 kolla kolla 4096 Feb  3 14:40 .17:50
kevkodrwxr-xr-x 11 kolla kolla 4096 Feb  3 17:34 ..17:50
kevko-rw-r--r--  1 kolla kolla  243 Feb  3 14:40 ceph.client.cinder.keyring17:50
kevko-rw-r--r--  1 kolla kolla  287 May 15  2024 ceph.conf17:50
kevkogurustacker: you should not have any mount in container ... so you didn't read the docs ... 17:51
kevkogurustacker: only mounted directory is /var/lib/kolla/config_files17:51
kevkogurustacker: then config.json is read and files (ceph.conf and kyering) are copied to direction where it should have 17:52
kevkogurustacker: you are still trying to mount something ..and didn't read the docs17:52
gurustackerkevko: I did read the docs, and this has a purpose no? --> nova_compute_extra_volumes:     - "/etc/kolla/config/nova/ , so then this doesn't allow adding volumes? Why can't we add custom files in the containers wherever we want? This is a poor limitation and should have an override for other use cases. I know we can configure after deployment, but from deployment this option should be available18:11
opendevreviewJack Hodgkiss proposed openstack/kayobe master: Add support for making `Bifrost` optional  https://review.opendev.org/c/openstack/kayobe/+/94246822:46

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!