Thursday, 2022-07-28

*** ysandeep|out is now known as ysandeep05:28
*** ysandeep is now known as ysandeep|brb06:03
*** ysandeep|brb is now known as ysandeep06:36
opendevreviewJonathan Rosser proposed openstack/openstack-ansible stable/yoga: zuul: fix definition of centos 9 stream job  https://review.opendev.org/c/openstack/openstack-ansible/+/85106707:28
mrfHi! We're testing openstack-ansibe for yoga stable and we found that hosts file got incorrect IP for keystone container, is not an autogenerated file? how can we solve this?08:05
noonedeadpunkmrf: /etc/hosts is generated with openstack_hosts role. Or well, one specific block, that is separated with block header08:09
jrossermrf: if you can give us an example of what has happened in the hosts file at paste.opendev.org and also what you think should have gone there from openstack_user_config / inventory that would be helpful08:10
noonedeadpunkit's taken from inventory (/etc/openstack_deploy/openstack_inventory.json) so I'm not really sure how is that possible unless you was manually removing openstack_inventory.json and openstack_ips08:11
mrfany ansible cli for cleanup all and redeploy?08:12
mrflxc-containers-destroy? 08:12
mrffailed: [infra1_keystone_container-288623ac -> infra1_utility_container-a02704c2(172.29.239.186)]  failed due container got the ip .163 not the 18608:13
jrosserwhich one08:14
jrosserthere are two things in scope there, keystone and utility containers08:14
jrosserthat looks like a play targetting the keystone container with a task that is delegated to the utlity container08:14
jrosseralso i don't think there have been any changes to the inventory in Yoga (or even several releases before that) so it would be a bit of a surprise if something is wrong only in Yoga08:16
mrfhttps://pastebin.com/7BvgaKgy08:17
mrfis our first time ussing openstack-ansible maybe we done a mistake for sure08:17
jrosserok, so what do you think is wrong?08:17
mrfdont know as you said keystone is trying to do something at utility container08:21
jrosserare you familiar with delegation in ansible?08:22
mrfrunning again the playbook with -vvvv08:22
jrossermrf: it's also worth knowing that you can run all of the playbooks individually08:25
jrossersee that setup-openstack.yml is just calling a bunch of sub-playbooks in turn https://github.com/openstack/openstack-ansible/blob/master/playbooks/setup-openstack.yml08:26
jrosserso if something is going wrong with the deployment of keystone you can run `openstack-ansible playbooks/os-keystone-install.yml` to only re-do the keystone part08:27
mrfthat save a lot of time08:28
jrosserbut looking at the log you have posted there is something wrong with connecting to the database, it doesnt look like you have a wrong IP08:28
jrosserwhat is happening here is that all of the services keystone, neutron, nova.... need users creating in the db, permissions setting and other stuff08:29
jrosserto do that a mysql client and the relevant python libraries are needed08:29
jrosserwe use the utility container as a place to have all of those things so they're not needed in every service container08:30
mrfmmm i read oficial guide at openstack.com and didnt see any requeriments on host for mysql-client08:30
mrfah ok08:30
jrosserwell we are using ansible mysql modules to interact with the database to do the setup08:31
jrosserthat has it's own set of requirements to work08:31
jrosserthats the reason you see a slightly unexpected IP here08:32
jrosserevery time that database setup tasks are done they are "delegated" from the service container to the utility container08:32
jrosserand you can see that in the output `infra1_keystone_container-288623ac -> infra1_utility_container-a02704c2(172.29.239.186)`08:32
mrfi can see somewhere the log of the failure inside the utility container?08:33
jrosserso the work of setting up the things in the database that keystone needs are actually done on the utility container08:33
jrosserand the reason that you don't see much is `the output has been hidden due to the fact that 'no_log: true' was specified for this result`08:33
jrosserotherwise you would be getting the database admin credentials all over the log output08:33
jrosserperhaps the first thing to do here is look in the galera containers and check that the database is running ok, by looking in the journal08:36
mrfchecking ...08:37
mrflooks like galera is running: WSREP: Synchronized with group, ready for connections08:39
mrfmaybe haproxy is failing08:40
mrfwhat container do haproxy things?08:41
jrosserhaproxy is on the infra hosts by default, not in a container08:41
mrfok08:41
jrosseryou can either look in the journal or `hatop -s /var/run/haproxy.stat`08:43
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Do not install COPR repo for CentOS LXC  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/84367208:43
mrfim retard haproxy is wrong 08:43
mrfthe ip of haproxy is not tagged at interfaces08:44
jrosseraaaahhh08:44
mrfi think thats why it didnt work08:44
jrosserto have debugged this from the "other end" you could also have tried the `mysql` cli in the utility container08:44
jrosserthat should connect to the db via haproxy08:45
mrfcan i put haproxy in other host dedicated to haproxy?08:46
noonedeadpunkyou absolutely can do that08:48
mrfany command for cleanup all ?08:50
mrfinventory hostfile etc?08:50
noonedeadpunkwell no, not really. 08:52
noonedeadpunkfor cleaning up inventory you would need to drop all containers first08:52
noonedeadpunkand yes, lxc-containers-destroy will do that08:53
mrflove that playbook :P08:53
noonedeadpunkafter that you can drop openstack_inventory.json08:53
noonedeadpunkbut we don't have anything to revert changes that has been done on bare metal hosts08:54
mrfthen i need to remove manually haproxy08:54
mrfwe're ussing vms for our testing08:54
noonedeadpunk(you can also limit lxc-containers-destroy to drop specific container or group of containers only)08:54
noonedeadpunkyou can use ad-hoc for that as example, like `ansible -m package -a "name=haproxy state=absent" haproxy_all`08:55
noonedeadpunkyou would need to cd /opt/openstack-ansible first though08:55
mrfgood ! thanks im learning a lot :)08:56
mrfshould i remove too openstack_hostnames_ips.yml ?09:00
mrfor just the json ?09:00
jrosseri think best to remove both09:02
noonedeadpunkbtw I looked recently at openstack_hostnames_ips and started wondering why we have this at all?09:20
mrf:)09:23
noonedeadpunkwhat's the point of it?09:23
noonedeadpunkLike we don't read it when generating inventory, we don't store there secondary ips...09:24
noonedeadpunkThis is by far the only place we use it https://opendev.org/openstack/openstack-ansible/src/branch/master/osa_toolkit/filesystem.py#L190-L21309:25
mrflooks like duplicated file information because you already got the json version09:26
noonedeadpunkI would imagine we could use it to ease our lives with parsing openstack_inventory.json, but without having anything except container_address it's kind of useless09:27
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-lxc_hosts master: Prevent lxc.service from being restarted on package update  https://review.opendev.org/c/openstack/openstack-ansible-lxc_hosts/+/85107109:40
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Deprecate openstack_hostnames_ips  https://review.opendev.org/c/openstack/openstack-ansible/+/85136309:48
noonedeadpunkI _think_ we used it when we were generating /etc/hosts file with bash script on the localhost isntead of the inventory09:48
noonedeadpunkbut no, we didn't09:50
mrftime to push a commit for deprected file creation :P09:56
noonedeadpunkI already did :[p09:58
mrfone more question, the internal_lb_vip_address: 172.29.236.9 will be setup manually on the two haproxy host as a seconday ip?10:00
mrfor will do it the ansible?10:00
noonedeadpunkmrf: it will be done by keepalived10:01
noonedeadpunkbut you might want to set it to FQDN in production10:02
noonedeadpunkBut then haproxy_keepalived_internal_vip_cidr should be defined to VIP/32 as keepalived does not work with fqdn10:02
mrfok lets try again the deployment :P10:03
*** ysandeep is now known as ysandeep|lunch10:21
*** ysandeep|lunch is now known as ysandeep10:58
*** dviroel|afk is now known as dviroel11:31
opendevreviewwangjiaqi proposed openstack/ansible-role-uwsgi master: Use TOX_CONSTRAINTS_FILE  https://review.opendev.org/c/openstack/ansible-role-uwsgi/+/85132611:47
opendevreviewwangjiaqi proposed openstack/ansible-role-systemd_service master: Use TOX_CONSTRAINTS_FILE  https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/85132711:51
*** ysandeep is now known as ysandeep|afk12:53
jamesdentonnoonedeadpunk somewhere around... queens... we stopped modifying the install branches for these add-ons: https://github.com/openstack/openstack-ansible-os_neutron/blob/master/defaults/main.yml#L54-L77. This has created some complications with regard to dependencies, and i've had to set overrides locally. Also not sure how 'backwards compatible' their master branch is with some of our older releases. I'm not sure if13:14
jamesdenton these have just been missed or if it was intentional. Just FYI13:14
jamesdentonnot queens, sorry. It was Stein -> Train13:14
*** ysandeep|afk is now known as ysandeep13:15
jrosserjamesdenton: there are some overrides here https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/defaults/repo_packages/openstack_services.yml#L19713:18
cloudnulljamesdenton in da house!13:18
jrosserjamesdenton: perhaps around that time the version was managed from the openstack-ansible repo rather than inside os_neutron?13:19
jamesdentoninteresting. i just experienced this w/ Xena -> Yoga upgrade in the last 2 weeks. but lemme look further. thank you13:19
jamesdentoncloudnull hey buddy! glad to see you hanging around13:20
* cloudnull loitering13:20
jamesdentonthat's how it starts13:20
jamesdentoni think we have some shingles that need replacing, and some painting that's been neglected13:21
cloudnullworks in dev :D 13:21
jamesdentonwhat a joker13:23
cloudnullI rekicked my dev cloud, using Debian and mostly is_metal, only running gallera,hap,memcached,rabbit,repo,rsyslog in containers. Everything works! idle RAM consumption 16GiB, CPU 1-5%.  13:23
jamesdentonthat looks a lot like mine, actually. everything ran in containers at one time but it's been a slow migration out13:24
cloudnulla stark contrast to what I had been doing. 13:24
jamesdenton"the dark ages"13:24
cloudnullhahaha13:24
jamesdentonjrosser looks like this is/was a case of a missing networking_baremetal_git_* overrides in repo_packages/openstack_services.yml. i will work on a PR later13:26
jamesdentonthanks for the pointer13:27
jamesdentonheaded to the office. prepare for IRC silence :(13:27
jrosserjamesdenton: if this is regarding ironic i would also be interested in your opinion on https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/defaults/repo_packages/openstack_services.yml#L19713:29
jrosserthat just looks wrong13:29
jrosserargh13:29
jrosseri mean this https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/defaults/repo_packages/openstack_services.yml#L19713:29
jrosser /o\13:29
jrosser3rd time lucky https://github.com/openstack/openstack-ansible/blob/master/inventory/env.d/ironic.yml#L56-L5713:30
jrossernot sure we need neutron agents in ironic_compute_container?13:31
*** lowercas_ is now known as lowercase14:49
*** ysandeep is now known as ysandeep|out14:50
mrfis_metal true disable the container setup?? and install like a service in the host?14:54
jrosseryou can do that if you want to14:55
mrfthe wave is going to fully container no?14:55
jrosserwave?14:55
mrfmaybe in future is_metal will be not supported14:55
jrosseropenstack-ansible supports either14:55
mrftrend*14:55
jrosserthe was a particularly enthusisatic company that contributed a lot of the is_metal support14:56
jrosseras this is proper open source rather than derived from some product it does what the contributors need14:56
mrfyeah, my frist openstack was vanilla queens no ansible , manual install ... this project help me a lot14:57
jrosseran example might be other contributions we had to install openstack from .deb/.rpm14:57
jrosserbut that is kind of orthoganal to the "install from source" ethos so we really discourage using that and are working toward removing it14:58
jrosseryou can choose comtainers or not - i think there is broad equality but there might be some outlier cases that are not well tested without containers14:58
jrosserhorizon perhaps being the one that is first in my mind14:59
mrfas "provider" need the most tested things14:59
mrfinstall queens from source master were too much headaches14:59
mrfand with this we can test easy other project like designate etc..15:00
mrfjust with a "click"15:00
jrosserit's probably correct to say that most people install OSA with containers15:00
jrosserbut it is also completely OK to choose metal deployment if that suits better15:01
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Increase ControlPersist timeout to 300 seconds  https://review.opendev.org/c/openstack/openstack-ansible/+/85142615:48
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-openstack_hosts master: Allow to add extra records to /etc/hosts  https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/85142815:57
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/yoga: zuul: fix definition of centos 9 stream job  https://review.opendev.org/c/openstack/openstack-ansible/+/85106717:11
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-galera_server stable/ussuri: Bump MariaDB version  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/85143917:15
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-rabbitmq_server stable/ussuri: Use cloudsmith repo for rabbit and erlang  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/85035017:23
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-galera_server stable/ussuri: Bump MariaDB version  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/85143917:23
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-galera_server stable/ussuri: Bump MariaDB version  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/85143917:24
opendevreviewMerged openstack/openstack-ansible-plugins master: Fix gluster play_hosts  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/85054018:39
opendevreviewMerged openstack/openstack-ansible-os_rally stable/ussuri: Control rally-openstack installed version  https://review.opendev.org/c/openstack/openstack-ansible-os_rally/+/85047718:55
opendevreviewMerged openstack/openstack-ansible stable/xena: Fix facts gathering for zun  https://review.opendev.org/c/openstack/openstack-ansible/+/84963019:37
jamesdentonjrosser i would agree w/ your statement about the neutron agents in ironic_compute_container20:10
jamesdentonjust so happens my ironic computes are also infra nodes, so i haven't really noticed20:11
admin1quick question .. hi ..i am using cinder with ceph  backend .. during a volume snapshot, the disk space of the cinder-volume container is totally used up .. does it make a temporary copy ? 20:11
*** dviroel is now known as dviroel|afk20:24
prometheanfireanyone have experience (or just know that it works) using the mariadb/galera role as standalone (no other osa roles)?21:53
jamesdentonno clue21:55
prometheanfiretrying to find a good galera cluster ansible role and there are a bunch but no one to rule them all21:59
opendevreviewJames Denton proposed openstack/openstack-ansible-os_barbican master: Entrust nCipher Connect HSM Backend Example  https://review.opendev.org/c/openstack/openstack-ansible-os_barbican/+/85147523:24

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