Wednesday, 2023-09-27

noonedeadpunkmornings06:41
jrossergood morning07:15
derekokeeffeMorning guys, so I striped it all back yesterday to where I was after the instructions and stopped there as not to confuse anyone. If you jrosser or noonedeadpunk would have a few minutes during the day at some point to take a look at this and give any feedback I would appreciate it. No rush, just when you have a few min free please https://paste.openstack.org/show/bolQAYv7qaz7Riauu3GH/07:29
noonedeadpunkderekokeeffe: I guess... I guess... You might need different destination for your plugins?07:33
noonedeadpunkalso you pasted barbican.conf twice there07:34
jrosseryes missing Chrystoki.conf07:37
jrosserif they somehow hardwire paths into the libraries expecting /usr/safenet/lunaclient/plugins then you'd have to follow that07:37
jrosserthe use of /opt/barbican in the container is not mandatory, the destination path can be anything you need07:38
jrosserthe idea is that the ansible is flexible enough to deal with whatever "mess" the vendor gives you to deal with07:38
noonedeadpunkderekokeeffe: also. We have edited our Chrystoki.conf to reffer to correct directory07:39
noonedeadpunkLike `PluginModuleDir = /opt/barbican/libs/plugins` and `LibUNIX64 = /opt/barbican/libs/libCryptoki2.so`07:39
derekokeeffeAh sorry for pasting twice. Chrystoki.conf https://paste.openstack.org/show/bm8Yk4z8BADFKSYDvoqa/07:44
jrosserthats all still referring to `/usr/safenet/lunaclient` ?07:45
derekokeeffeHmm ok, so do you suggest moving the plugin dierectory to the container and changing the path in Chrystoki? that worked in getting rid of the errors for the key generation but then as I mentioned the hsmusers group doesn't exist07:46
derekokeeffeYep jrosser, Ithought the barbican container would somehow be able to reference those dirs on the host 07:46
derekokeeffebut Ineed those all on the container?07:47
jrosserno not at all, consider it to be like a different host entirely, like a VM really07:47
derekokeeffeActually do I just install the whole client on the container?07:47
derekokeeffehsm client that is07:47
derekokeeffeset up my keys & certs etc.. from the brbican container?07:48
jrosseri dont know - i've never used one of these07:48
jrosserbut barbican only wants the pkcs11 interface to your HSM07:48
jrosserif the client contains a bunch of other stuff, you don't need that07:49
jrosseri'm not sure why the hsmusers group matters at all in the container either07:49
jrosserit's just unix permissions, the barbican service needs to be able to open the pkcs11 shared library, which in turn needs to read it's config etc etc07:50
noonedeadpunkderekokeeffe: I think you need either to update Chrystoki.conf to reffer to directories you've defined in user_variables or vice versa07:50
derekokeeffehmmm, ok. Sorry guys my head is melted haha. Ok so the Chrystoki.conf was generated I need to updte barbican user_variables.yml to match that? 07:52
noonedeadpunkWe've dropped most of the stuff from Misc section - left only PluginModuleDir, PE1746Enabled and ToolsDir07:52
noonedeadpunklet me paste how ours looking like...07:52
derekokeeffeThanks noonedeadpunk07:52
noonedeadpunkhttps://paste.openstack.org/show/bbtWXQ3xtg3ZTHhDmGpn/07:52
noonedeadpunkderekokeeffe: would be awesome if you could propose docs change once you will get it working :p07:54
derekokeeffeThanks for that, if I ever get it working :) Ok I'll strip it out and make sure the paths are pointing to the correct locations. Two questions and I'll leave you bot alone. does it matter that I don't have libdpod.plugin and only libcloud.plugin. And finally, I only need libCryptoki, the plugin and Chrystoki.conf on the container when I finish running the playbook?07:56
noonedeadpunkThat's what I needed07:59
noonedeadpunkRegarding plugin - I guess it depends on client or vendor or smth like that...07:59
noonedeadpunkNot sure - maybe you need smth more, but for minimal deployment I think this should be enough07:59
derekokeeffePerfect, let me try that and I'll let you guys know later. Much appreciated07:59
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-haproxy_server master: Add tags to PKI include  https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/89661208:01
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-haproxy_server master: Fix example playbook linters  https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/89661308:13
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-os_aodh master: Add quorum support for service  https://review.opendev.org/c/openstack/openstack-ansible-os_aodh/+/89569008:14
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-os_ceilometer master: Add quorum support for service  https://review.opendev.org/c/openstack/openstack-ansible-os_ceilometer/+/89569608:14
jrossernoonedeadpunk: there is a few more of those linter things i think08:15
jrosserblazar certainly08:16
noonedeadpunkyeah...08:20
jrosseroh rabbitmq too08:20
jrosserdoh08:20
noonedeadpunkThat totally slipped my attention when patching things :(08:21
jrosseransible-lint should come with free developer effort :(08:21
noonedeadpunkAs I didn't check examples explicitly08:21
noonedeadpunkNeilHanlon: seems another infra issue? https://zuul.opendev.org/t/openstack/build/ac31abd1b0b54dfd8cadeb029a2b287c08:29
noonedeadpunk"please report to repository maintainer"08:30
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Define install_method default when hosts resolution depend on it  https://review.opendev.org/c/openstack/openstack-ansible/+/89169709:08
jrossertbh i wonder why we don't define `openstack_service_setup_host` in group_vars/al09:12
jrosserl09:12
jrosserbecasue it's the same thing for both source and distro installs09:12
noonedeadpunkThat is very-very good question09:23
noonedeadpunkthough interpreter is still different?09:23
noonedeadpunkbut it could be working as expected....09:24
noonedeadpunkYeah, might be worth just moving openstack_service_setup_host isntead indeed09:27
jrosserreally the whole of this vars file including could be got rid of entirely09:30
jrosserseems like we have a bunch of complexity for the sake of a couple of ternary() and a few of the source install vars being always defined but not used for distro path09:31
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Gather extra networking facts for keepalived  https://review.opendev.org/c/openstack/openstack-ansible/+/89663409:31
noonedeadpunkjrosser: however, 891697 is way more backportable then getting rid of these files.10:23
noonedeadpunk(I guess)10:23
jrossersure yes, we can fix and backport10:37
jrosserbut also think about how it should be for the future10:37
amaraoI found that openstack-ansible is writing pipeline for ceilometer to /openstack/venvs/ceilometer-27.0.1/lib/python3.9/site-packages/ceilometer/pipeline/data/pipeline.yaml without any links from /etc/ceilometer. I think it's because in ceilometer_core_files there is no dest_f, and if there is no dest_f, file is been written back (which is "{{ ceilometer_lib_dir }}/ceilometer/pipeline/data/pipeline.yaml"). Is this a bug (to repo10:58
amaraort) or this is a feature? If this is a feature, why not /etc/ceilometer/data?10:58
noonedeadpunkamarao: I think it's because there was no documented way to place pipeline overrides elsewhere11:06
noonedeadpunkand nobody was tracking that since implementation as it works as well11:06
amaraoSo, it's a feature for openstack-ansible, and not a bug? I can live with it, I just wondered if this is a bug, to report (or fix) it.11:11
NeilHanlonnoonedeadpunk: yeah. looking. :\11:12
noonedeadpunkamarao: if there's a possibility to overwrite default pipeline.yaml in other better way - would be great to use it11:12
NeilHanlonshould be set now noonedeadpunk :\ I can help rechecks if you need11:30
kleiniIs it somehow possible to influence, which is the primary Galera node, the primary RabbitMQ, the primary log host? I have very high IO load on my primary infra node and second and third are somewhat idle.12:34
noonedeadpunkkleini: well... that's because haproxy is bad balancing solution for SQL12:34
noonedeadpunkhaproxy sends all trafic for mysql towards single node12:35
kleiniyes, I know. Can I influence the order of Galera nodes in haproxy?12:35
noonedeadpunkSorry I'm really very heavily multitasking12:47
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Define tempest config overrides in unique variables per service  https://review.opendev.org/c/openstack/openstack-ansible/+/89476312:49
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: WIP - test Vexxhost CAPI driver for magnum  https://review.opendev.org/c/openstack/openstack-ansible/+/89324012:49
kleinithanks. will try to find a way by reading OSA roles12:50
noonedeadpunkkleini: so.. On Antelope... :)12:52
noonedeadpunkYou can define https://paste.openstack.org/show/bUC1CfE3sfZFDpoz6vnF/12:54
noonedeadpunkor whatever12:54
kleinithank you very much!13:03
derekokeeffenoonedeadpunk & jrosser: what's this link linking? Is it the etc/Chrystoki.conf on the host to the /opt/barbican/Chrystoki.conf on the container?13:25
derekokeeffeansible -m file -a "src=/opt/barbican/Chrystoki.conf dest=/etc/Chrystoki.conf state=link" barbican_all13:25
derekokeeffeor is it supposed to be creating it on the container?13:25
derekokeeffeOh nevermind it did it on the container13:26
derekokeeffesorry13:26
jrosserderekokeeffe: are you doing this in an AIO?13:27
derekokeeffeYep13:27
jrosserok so just remember that this "link on the host into the container" business is all a bit bogus13:27
jrosserbecasue in a real deployment you will likely have a deployment host thats completely separate from your infra hosts13:27
jrosserso it must be a copy from deploy host to barbican container on the infra hosts13:28
jrosserit just happens than in an AIO that is all collapsed into the same physical host13:28
noonedeadpunkiirc it was a bit different though.... But not sure... I think it was a link, because plugin was expecting to see config file in /etc and barbican accrodign to chrystoky in /opt/barbican13:29
noonedeadpunkso it either was needed to be copied twice or symlinked, or be in /etc from the beginning13:29
derekokeeffeOk thanks for that. Think I need to step away for a while anyway cause I'm not understanding myself at this point :)13:29
noonedeadpunkbut then you need to place plugin/library in a relative path to Chrystoky or smth13:30
noonedeadpunkit was a mess iirc13:30
jrosseryeah, so you can make a symlink with the barbican vars13:31
jrosserbut ultimately the thing to link has to get there somehow13:31
jrosserits very enterprise13:31
derekokeeffeI have a physical OSA test environment, I might give it a try there and see can I get it working. Thanks again and maybe chat next week13:33
jrosseri don't think that this really is any different13:38
derekokeeffeHa ok well I might just take a break from it so :) 13:39
jrosseryou have your "source" files in /etc/openstack_deploy, and write vars to instruct the barbican playbook to put them where needed13:39
jrossergenerally if it was me i'd get it all working manually first by copying/editing things inside the barbican container13:39
jrosserthen set up ansible to re-create that working thing13:39
derekokeeffeYeah I have all the source files and they are being copied to the correct locations, the config files are pointing to the correct paths but it just doesn't work. the only way I can get the keys to generate is to copy across the entire /usr/safenet/lunaclient dir to the container, then point the conf files to that location and it works first time. The creation of secrets doesn't though or encrypted vols. I even changed permissions on all the 13:45
derekokeefferelevant files to 777 just in case. Thales support told me to delete the libcloud plugin and I asked what plugin should I use and they said just libCryptoki2_64.so. Anyway I think I need a break from it :) but I will try the manual way you have suggested13:45
noonedeadpunkOk, we need to somehow parallize pki generation for computes.... It takes infinity to generate them...14:35
noonedeadpunk* parallelize14:36
noonedeadpunkdamn, I can't recall what was neutron-related bug that was reported in IRC but never ended up in launchpad... It was smth related to having no ovn gateway nodes or smth, and logic was broken somewhere due to that...14:56
noonedeadpunkMaybe that was in the ML where jamesdenton also replied...14:56
noonedeadpunkAnd there was ML and IRC chat...14:56
* noonedeadpunk notes has been lost with old laptop14:57
jamesdentonthere was this one: https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/89392414:58
noonedeadpunkhuh. ok.14:59
noonedeadpunkI was under impression that there was smth else that needed attention....14:59
noonedeadpunkbut it could be it indeed...15:00
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: WIP - test Vexxhost CAPI driver for magnum  https://review.opendev.org/c/openstack/openstack-ansible/+/89324016:21
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Ensure systemd-resolved is present in debian container images  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/89455516:28
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Ensure systemd-resolved is present in debian container images  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/89455516:29
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Sync additional apt config from the host to the container base image  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/89455616:29
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Add ca-certificates into debian base image during debootstrap.  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/89455716:29
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_hosts master: Switch to native systemd-resolved from resolv.conf  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/89455816:29
spatelHello World :)16:56
spateljamesdenton around?16:56
spatelI have question, how does I give one single floating IP to foo project?16:57
spatelI was looking at RBAC policy for neutron but it apply to entire network. 16:57
spatelI found this question but its not answered - https://stackoverflow.com/questions/74689236/how-to-create-a-policy-to-limit-which-and-how-many-floating-ip-projects-can-assi17:00
noonedeadpunkcreate /32 network? :p17:15
jamesdentoni think the floating IP is associated with the project that procures it?17:52
jamesdentonbut a floating IP network is shared amongst all by default, or with rbac you can limit it, maybe reduce quota? not sure17:53
mgariepyhmm why this endup there: https://zuul.opendev.org/t/openstack/build/df3bef4ff5dd44329990defdd6cf19b8/log/logs/host/syslog.txt#6365 19:01
mgariepyhttps://github.com/openstack/openstack-ansible-haproxy_server/blob/master/tasks/haproxy_post_install.yml#L29-L4219:02
mgariepydo we still need it here : https://github.com/openstack/openstack-ansible-openstack_hosts/blob/master/vars/ubuntu-22.04.yml#L6819:14
opendevreviewMarc GariĆ©py proposed openstack/openstack-ansible-openstack_hosts master: Remove rsyslog since we should use journald instead  https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/89672219:17

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