Thursday, 2023-09-07

opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [DNM] Just test something  https://review.opendev.org/c/openstack/kolla-ansible/+/89360905:49
yusufgungorHi everyone, kolla nova_compute image has embedded /etc/nvme/hostnqn and /etc/nvme/hostid files. This files automatically created after nvmi-cli package installation. Using same hostnqn value for multiple host brokes the nvme connections. nova does not try to create this files if does not exist and gives error like below:06:53
yusufgungorCommand: nvme show-hostnqn06:53
yusufgungorExit code: 25406:53
yusufgungorStdout: ''06:53
yusufgungorStderr: 'hostnqn is not available -- use nvme gen-hostnqn\n'06:53
yusufgungor2023-09-06 18:39:51.456 144 WARNING os_brick.privileged.nvmeof [-] Could not generate host nqn: Unexpected error while running command.06:53
yusufgungorThis break the purestorage connection which is supported by kolla-ansible and not works out of box.06:53
yusufgungor What do you think about as a solution? Should kolla remove this files after installing nvme-cli and nova create them again? Or kolla should have an entrypoint cmd in containers to create nqn files to let them unique?06:53
*** ralonsoh_away is now known as ralonsoh07:09
mnasiadkayusufgungor: if nova is not creating them/updating them, then we should make them unique - question if they should not be static on given hostname (e.g. we should not recreate them on every container restart - just manage that in kolla-ansible)07:12
mnasiadkayusufgungor: can you please raise a bug in launchpad?07:12
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [DNM] Just test something  https://review.opendev.org/c/openstack/kolla-ansible/+/89360907:12
yusufgungorHi @mnasiadka thanks for you reply. Bug should be created on kolla or kolla-ansible?07:17
kevkoyusufgungor: hmm, it's only warning ..if i remember correctly ..this command failed and logged error as warning ..but there are another 2 if/else statements where ID is generated by something else07:20
kevkoyusufgungor: and it works ... no ? 07:21
yusufgungor@kevko i have tried to removing the hostnqn file but unfortunately nova does not recreate it. Logs can be seen from here: https://paste.opendev.org/show/bREvNqcrj0rHtSU9IEeN/07:24
sahido?07:44
sahido/07:44
sahidquick question, if I need when I enable osprofiler to set option https://github.com/openstack/osprofiler/blob/master/osprofiler/opts.py#L22007:44
sahidshould I have to propose a patch in kolla to give that ability or is there any native solution to do that?07:45
kevkosahid: osprofiler is just block of config in some service config , isn't it ? (don't remember ....)07:57
kevkoyusufgungor: give me few minutes please 07:57
sahidkevko: yes right07:57
sahida section [profiler] is added07:58
kevkosahid: in that case you can use config override - that means you can create some config file and place  to kolla configuration dir and include block of config [profiler] foo = bar inside the file .... result will be the combination of what kolla is rendering and what you will add ...08:00
kevkosahid: for example /etc/kolla/config/nova.conf08:00
sahidthat looks to be exactly what I need08:01
sahidthanks a lot !08:01
kevkosahid: you can also place that config to special config override /etc/kolla/config/global.conf 08:02
sahidyes I just noticed the doc related ++ kevko 08:02
kevkosahid: this means that profiler block of config will be merged for all services 08:02
kevkosahid: yes - this is it -> https://docs.openstack.org/kolla-ansible/latest/admin/advanced-configuration.html08:02
kevkosahid: you're welcome 08:03
kevkoyusufgungor: this block of code is generating warnings/error - https://github.com/openstack/os-brick/blob/bb730f37cd40edfc09688a14c1f3da05003383fa/os_brick/initiator/connectors/nvmeof.py#L763-L786C2408:06
opendevreviewMerged openstack/kolla-ansible stable/2023.1: ovn: Improve clustering  https://review.opendev.org/c/openstack/kolla-ansible/+/89377008:10
kevkoyusufgungor: what did you get when you tried to run 'nvme gen-hostnqn 'in nova container ?08:12
mmalchukgood morning Kolla o/08:15
kevko\o/08:17
yusufgungor@kevko gen-hostnqn command works.08:19
yusufgungor(nova-compute)[nova@my-compute-01 /]$ nvme gen-hostnqn08:19
yusufgungornqn.2014-08.org.nvmexpress:uuid:9330688a-e4a8-41ad-b780-1fadb46618f708:19
yusufgungor(nova-compute)[nova@my-compute-01 /]$08:19
yusufgungorI have deleted the hostnqn file to see if nova-compute recreate it. But as you can see from the warning log, it does not try to regenerate, it only tries show-hostnqn. Stderr states that hostnqn is not available and use gen-hostnqn08:19
yusufgungorCommand: nvme show-hostnqn08:19
yusufgungorExit code: 25408:19
yusufgungorStdout: ''08:19
yusufgungorStderr: 'hostnqn is not available -- use nvme gen-hostnqn\n'08:19
yusufgungor2023-09-06 18:39:51.456 144 WARNING os_brick.privileged.nvmeof [-] Could not generate host nqn: Unexpected error while running command.08:19
opendevreviewMerged openstack/kolla-ansible stable/zed: ovn: Improve clustering  https://review.opendev.org/c/openstack/kolla-ansible/+/89377108:20
opendevreviewMerged openstack/kolla-ansible stable/yoga: ovn: Improve clustering  https://review.opendev.org/c/openstack/kolla-ansible/+/89377208:20
sahidkevko: actually I was wrong...08:21
sahidwe want to set option is the global config file of osprofiler itself08:22
kevkoyusufgungor: i see, checking the code 08:24
kevkoyusufgungor: version of nvmecli ? 08:25
kevkoyusufgungor: i would add some debug logs to this function and see what is happening there -> https://github.com/openstack/os-brick/blob/bb730f37cd40edfc09688a14c1f3da05003383fa/os_brick/privileged/nvmeof.py#L33-L76C2008:35
kevkoyusufgungor: because if nvme gen-hostnqn is working inside nova container ...it can be rootwrap ..or something else ...just debug which line causing exception ..08:36
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [DNM] Just test something  https://review.opendev.org/c/openstack/kolla-ansible/+/89360908:45
yusufgungor@kevko 09:02
yusufgungor$ nvme --version09:02
yusufgungornvme version 1.1609:02
yusufgungori think it is not trying gen-hostnqn at all, it only tries to show-hostnqn. I have deleted the hostnqn file on purpose for simulating to see if nova_compute create a new nqn file. My solution idea was deleting the default hostnqn file after building container image and let the nova compute creates a new one to let it unique for every runnin nova compute container09:02
kevkoyusufgungor: check the code09:05
yusufgungor@kevko yes there exist create_hostnqn() method in os-brick nvmeof.py file but i am not sure this method is called from nova09:07
kevkoyusufgungor: it is, turn on debug 09:07
kevkoyusufgungor: you should see exact LOG.debug 09:08
yusufgungor@kevko ok i'll check it, thanks 🙏09:08
kevkoyusufgungor: also in your log it is  WARNING os_brick.privileged.nvmeof  ....it just means 09:08
kevkoos_brick ....etc09:08
kevkoyusufgungor: after debug you will be able to see bigger context - i mean ..you will see where it will fail ...09:09
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415510:02
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: service-*: run docker exec commands using become  https://review.opendev.org/c/openstack/kolla-ansible/+/89415810:07
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415510:08
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/zed: Pass through kolla inventories as is  https://review.opendev.org/c/openstack/kayobe/+/89368810:53
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/yoga: Pass through kolla inventories as is  https://review.opendev.org/c/openstack/kayobe/+/89417211:47
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/xena: Pass through kolla inventories as is  https://review.opendev.org/c/openstack/kayobe/+/89417311:49
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/2023.1: Use merge_configs and merge_yaml to generate Kolla custom config  https://review.opendev.org/c/openstack/kayobe/+/89417411:51
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Add support of podman deployment  https://review.opendev.org/c/openstack/kolla-ansible/+/79922911:54
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Fix kolla_logs mount point  https://review.opendev.org/c/openstack/kolla-ansible/+/89417511:54
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/zed: Use merge_configs and merge_yaml to generate Kolla custom config  https://review.opendev.org/c/openstack/kayobe/+/89417611:55
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415512:03
mmalchukfungi /cle12:03
mmalchukups... sorry12:03
mmalchukwrong window)12:04
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/2023.1: Kayobe environment dependencies  https://review.opendev.org/c/openstack/kayobe/+/89417812:11
opendevreviewMaksim Malchuk proposed openstack/kayobe stable/zed: Kayobe environment dependencies  https://review.opendev.org/c/openstack/kayobe/+/89418012:17
mhinerHello, can you clear up the code smell situation in podman patch in a-c-k? In that patch, do we want to keep the current approach from docker or go ahead with the "better" one?12:24
kevkomhiner: a-c-k ? 12:25
kevkomhiner: which better one ? 12:25
mhineransible-collection-kolla12:26
mhinerthe one proposed here: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/89299012:26
mhinerI'm asking if I should mirror it in my patch (as per ebbex's comments) or if I should keep the current approach12:27
mmalchukimho its better not copy bad practice, and refactor the code step by step12:29
opendevreviewChristian Berendt proposed openstack/kolla-ansible master: ceilometer: handle custom event_pipeline.yaml as template  https://review.opendev.org/c/openstack/kolla-ansible/+/89418212:40
opendevreviewMartin Hiner proposed openstack/ansible-collection-kolla master: Add Podman support  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/85224013:07
opendevreviewMartin Hiner proposed openstack/ansible-collection-kolla master: Add Podman support  https://review.opendev.org/c/openstack/ansible-collection-kolla/+/85224013:08
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415513:33
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415513:36
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415513:45
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415513:52
opendevreviewMark Goddard proposed openstack/kolla-ansible stable/yoga: Fix typo in endpoint influxdb_internal_endpoint variable  https://review.opendev.org/c/openstack/kolla-ansible/+/89395314:01
opendevreviewMark Goddard proposed openstack/kolla-ansible stable/xena: Fix typo in endpoint influxdb_internal_endpoint variable  https://review.opendev.org/c/openstack/kolla-ansible/+/89395414:01
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible stable/yoga: [yoga only] followup ovn clustering fix  https://review.opendev.org/c/openstack/kolla-ansible/+/89419414:04
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415514:11
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415514:17
opendevreviewBartosz Bezak proposed openstack/kolla-ansible master: CI: add q35 hardware machine type to tests  https://review.opendev.org/c/openstack/kolla-ansible/+/89419914:26
opendevreviewBartosz Bezak proposed openstack/kolla-ansible master: Configure Nova libvirt.num_pcie_ports to 16 by default  https://review.opendev.org/c/openstack/kolla-ansible/+/76830114:29
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415514:34
mmalchukmnasiadka please review https://review.opendev.org/q/I28f5d73d414d405d67f5fc92ab371aa2e28a4ce314:34
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Fix podman logs  https://review.opendev.org/c/openstack/kolla-ansible/+/89318714:49
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Fix kolla_logs mount point  https://review.opendev.org/c/openstack/kolla-ansible/+/89417514:49
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: Add support of podman deployment  https://review.opendev.org/c/openstack/kolla-ansible/+/79922914:49
opendevreviewMichal Arbet proposed openstack/kolla-ansible master: [DNM] Just test something  https://review.opendev.org/c/openstack/kolla-ansible/+/89360914:49
opendevreviewBartosz Bezak proposed openstack/kolla-ansible master: CI: add q35 hardware machine type to tests  https://review.opendev.org/c/openstack/kolla-ansible/+/89419915:18
opendevreviewBartosz Bezak proposed openstack/kolla-ansible master: Configure Nova libvirt.num_pcie_ports to 16 by default  https://review.opendev.org/c/openstack/kolla-ansible/+/76830115:19
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415515:40
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible stable/yoga: [yoga only] followup ovn clustering fix  https://review.opendev.org/c/openstack/kolla-ansible/+/89419415:49
opendevreviewMichal Nasiadka proposed openstack/kolla-ansible master: CI: add block support to validate-all-file.py  https://review.opendev.org/c/openstack/kolla-ansible/+/89415515:50
opendevreviewDr. Jens Harbott proposed openstack/kolla-ansible master: DNM: Test octavia amp subnet  https://review.opendev.org/c/openstack/kolla-ansible/+/89421918:21
*** dcapone2004 is now known as Guest216119:30

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