Thursday, 2023-03-09

Elnazjrosser: I'll check those patches asap. I accidentally removed the `openstack_inventory.json` file! dns name and IPs redesigned. I'm deploying again from the beginning.07:46
ElnazAnd every time I have a new conectivity issue: I have mirrored the Ubuntu-Jammy repositories. But the Task `Build the base image using a CLI tool` has a hardcoded link to https://archive.ubuntu.com07:46
ElnazHow can I override this weird variable in the variables file:07:47
Elnaz`lxc_ubuntu_mirror: "{{ (ansible_facts['architecture'] == 'x86_64') | ternary('http://archive.ubuntu.com/ubuntu', 'http://ports.ubuntu.com/ubuntu-ports') }}"`07:47
jrosserElnaz: a tar file backup is auto generated in /etc/openstack_deploy in case you mess up the inventory08:02
Elnaz[Crying] I didn't noticed!08:10
jrosserwhen you get to a real deployment it is also very useful to make that whole directory a git repo08:11
jrosserthen you can version control your config08:11
ElnazCool idea08:15
jrosserElnaz: so as far as overriding `lxc_ubuntu_mirror`goes - do you know enough ansible to be familiar with roles?08:22
trhey guys, iam trying to setup openstack-ansible. somehow the playbook (/etc/ansible/ansible_collections/openstack/osa/roles/db_setup/tasks/main.yml) is failing: "username": "keystone"}]}, "msg": "unable to connect to database, check login_user and login_password are correct or /root/.my.cnf has the credentials. Exception message: (2013, 'Lost connection to MySQL server during query')"08:40
trjrosser: gave me hint, thats its about the networking - but i might need another hint on how to debug this, since iam somehow stuck at the moment08:40
jrossertr: can yuo describe your deployment a bit?08:43
noonedeadpunkmornings08:48
noonedeadpunktr: I think that can also be haproxy marking galera backends as DOWN08:48
noonedeadpunkdue to whitelisting not correct IPs that haproxy uses to talk to backends08:49
admin1noonedeadpunk, is it an idea to whitelist all  found ips in the controller ? 13:00
noonedeadpunkWe don't gather all found ips as facts to start with13:01
admin1we can also gather that 13:01
admin1because i also face this issue and i see more people facing this same issue 13:01
noonedeadpunkthat does increase facts stanza dramatically, that results in ansible performnce degradation13:02
admin1but its only on the controllers 13:02
noonedeadpunkI'm more inclinded jsut to allow accessing this for everyone on mgmt network13:03
noonedeadpunkIt's super easy to do actually13:03
admin1i think an easy way is to put this as ## and the var in user_variables with an explaination13:03
noonedeadpunkAnd controllers have most amount of interfaces, as they have LXC as well13:03
admin1by default 13:03
admin1i can attempt this :D 13:04
noonedeadpunkwe have variable `container_cidr` that's available for each host 13:06
noonedeadpunkSo it's basically `galera_monitoring_allowed_source: "{{ container_cidr }} 127.0.0.1"13:08
tr___jrosser: its a virtualzed env, because of lack of hardware, based on proxmox. four nodes (deploy, infra1, compute1, storage1). all playbooks run fine, except setup-infrastrucure 13:13
tr___(/etc/ansible/ansible_collections/openstack/osa/roles/db_setup/tasks/main.yml) - using default openstack_user_config.yml. hosts can reach each other, also containers are reachable by ips13:13
jrossertr___: can you reach one container from inside another, i.e eth1 to eth1, and also eth1 to the internal VIP13:32
jrossertr___: as noonedeadpunk says it is important to first check that haproxy thinks that the database is ok13:33
jrossertr___: because connections to the database are routed via the loadbalancer13:34
noonedeadpunktr___: `echo "show stat" | nc -U /run/haproxy.stat | grep galera` from your haproxy host13:39
jrossernoonedeadpunk: this is the add compute node failure https://bugs.launchpad.net/openstack-ansible/+bug/200983413:42
noonedeadpunkYeah, I've already seen that...13:44
jrosseri am not really sure what it means to be making variables `nova_all_software_versions nova_all_software_deployed nova_all_software_updated` for the case of adding one compute node13:44
jrosserbecasue i'm not sure if the intention of those vars is to refer really to nova_all, or control plane nova, or what tbh13:45
jrossereventually `nova_all_software_updated`is used to restart nova_console and nova_conductor groups13:47
noonedeadpunkWell. We execute service restart and online data migrations based on these13:47
jrosserbut perhaps that needs to be also interlocked with the compute nodes also being all upgraded?13:47
noonedeadpunkI don't think we need to run migrations on adding compute13:48
noonedeadpunkWe'd might want to run compute discovery for computes being added though13:48
jrosserright - bit distinguishing that case in the playbook might be difficult13:48
noonedeadpunkYeah like `nova_all_software_updated` depends on that13:48
noonedeadpunkah, yes, disregard it's sae variable)13:49
noonedeadpunkBut yes, I assume we want to do migrations only when are fully done with upgrade13:49
jrosserbecasue those are generated across `nova_all` it feels like the code wants the control plane and computes to be all at the new version before restart13:49
noonedeadpunkTO be frank I was looking at this part couple of times but didn't dare to touch13:50
jrosserhah yes13:50
noonedeadpunkHm, would be actually interesting to check if that also might be related to our strategy... 13:51
noonedeadpunkI have actually couple of computes to play with, but I have to finish some pre-requisitives first13:52
jrosserwe could either add instructions to do an ansible nov_all -m setup ..... before adding the compute node14:03
jrosserbut thats kind of sad because i think this will all break if any compute node is down/inaccessible at the point you want to add a new one14:03
jrosseralternatively there could be a new variable to specifically disable console/conductor restart which skips these troublesome sections when adding new computes14:04
noonedeadpunkthis all sucks in one way or another14:30
jrossermaybe this needs to be it's own playbook https://github.com/openstack/openstack-ansible/blob/master/playbooks/os-nova-install.yml#L23-L2714:32
jrosserthen we can deal with computes on their own14:32
jrosseras adding a compute really need not have anything to do with conductor/console restarts14:32
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/zed: Bump OpenStack-Ansible Zed  https://review.opendev.org/c/openstack/openstack-ansible/+/87602814:44
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/yoga: Bump OpenStack-Ansible Yoga  https://review.opendev.org/c/openstack/openstack-ansible/+/87698214:53
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Update ansible openstack collection to 2.0.0  https://review.opendev.org/c/openstack/openstack-ansible/+/87242116:03
opendevreviewMerged openstack/openstack-ansible stable/zed: Fix comment typo in nova install playbook  https://review.opendev.org/c/openstack/openstack-ansible/+/87667816:55
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Update ansible openstack collection to 2.0.0  https://review.opendev.org/c/openstack/openstack-ansible/+/87242116:59
-opendevstatus- NOTICE: Yesterday's change to Gerrit configs to use submit-requirements had a boolean logic bug. This has now been corrected and any changes that did not merge as a result can be rechecked. We have reenqueued the changes we identified as being affected.17:23
noonedeadpunk^ this looks waay better now 17:59
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-rabbitmq_server stable/victoria: Bump erlang versions  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/87703318:06
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/wallaby: Backport openstack_testing from Yoga  https://review.opendev.org/c/openstack/openstack-ansible/+/87701418:07
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/wallaby: Backport openstack_testing from Yoga  https://review.opendev.org/c/openstack/openstack-ansible/+/87701418:08
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/xena: Backport openstack_testing from Yoga  https://review.opendev.org/c/openstack/openstack-ansible/+/87643418:11
opendevreviewMerged openstack/openstack-ansible-rabbitmq_server master: Do not use 'always' tag in inappropriate places  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/87597121:54
Elnazjrosser: > https://review.opendev.org/c/openstack/openstack-ansible-ops/+/87685521:57
ElnazError: https://paste.ubuntu.ir/elhcl21:57
Elnazdownloading the file https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-linux-x86_64-7.17.9.zip in the browser, I get this warning: `Your client does not have permission to get URL /downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-linux-x86_64-7.17.9.zip from this server.`21:58
jrosserElnaz: you are getting 403 there now22:01
jrosserso thats "Forbidden" rather than the 404 you had before22:01
ElnazCan you download that file?22:02
jrosseri can `curl -O https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-7.17.9.zip`22:02
jrosserthen you can also look in the test job logs for the patch i made https://zuul.opendev.org/t/openstack/build/6dec562216a648d09d91b820fe8f5d81/log/job-output.txt#97222:03
ElnazWhere can I see the user_variables.yml configuration of this test job?22:08
jrosserit is not a deployment of openstack-ansible, just the ELK stack on its own22:09
jrosserElnaz: but really - you do not need this plugin - see the documentation for what it does https://www.elastic.co/guide/en/elasticsearch/plugins/7.17/ingest-attachment.html22:10
jrosserso i think the best thing to do is override this https://github.com/openstack/openstack-ansible-ops/blob/master/elk_metrics_7x/roles/elasticsearch/defaults/main.yml#L34-L3522:10
jrosserset `elastic_plugins: []` and then it will just skip this step22:11
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-rabbitmq_server stable/victoria: Bump erlang versions  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/87703322:11
Elnaz"The Linux world has never "evolved" a central place to configure proxy servers, so there simply is no way to enforce the usage of a specific proxy server short of redirecting all network traffic in the firewall, https://superuser.com/a/608273"22:13
jrosserwell my test lab is behind a proxy, so i know pretty much about this :)22:14
jrosserbut just disable the plugin!22:14
noonedeadpunkLet's unblock Xena by landing https://review.opendev.org/c/openstack/openstack-ansible/+/876434  :)22:16
ElnazI have set up an squid proxy server that has chained to another server in Canada through vmess protocol. Setting `http(s)_proxy` in /etc/environment does not work most of the times!22:16
jrosserjava has it's own mechanisms too22:17
jrosserand ELK is java22:17
jrossernoonedeadpunk: as its a backport i guess you can also vote :)22:18
noonedeadpunkyeah, I was thinking about exactly the same )22:18
noonedeadpunkW and V are way more messy...22:19
noonedeadpunkBut it's also about tempest actually, plus tests repo22:19
jrosserelk roles support proxy anyway https://github.com/openstack/openstack-ansible-ops/blob/master/elk_metrics_7x/roles/elasticsearch/tasks/elasticsearch_plugins.yml#L29-L3422:25

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