Friday, 2024-05-17

opendevreviewAndrew Bonney proposed openstack/openstack-ansible-rabbitmq_server master: Enable feature flags pre and post-upgrade  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/91970107:52
ayushhi Team11:53
ayushi am trying to add the controller which was lost during power failure11:53
ayushmy version is yoga11:53
ayushi am getting this repo error TASK [systemd_mount : Set the state of the mount (fallback)] ************************************************************************************************ fatal: [c3w_repo_container-77ec1f25]: FAILED! => {"changed": false, "msg": "Unable to start service var-www-repo.mount: Job failed. See \"journalctl -xe\" for details.\n"}11:54
ayushif i do openstack peer detach and removed the node which need to be added11:55
ayushroot@c2w-repo-container-a751f307:~# gluster peer detach c3w-repo-container-77ec1f25 All clients mounted through the peer which is getting detached need to be remounted using one of the other active peers in the trusted storage pool to ensure client gets notification on any changes done on the gluster configuration and if the same has been done do you want to proceed? (y/n) n11:55
ayushwill it cause any issues, and run the repo playbook again11:55
ayush```11:56
ayushHostname: c3w-repo-container-77ec1f25 Uuid: ad360baf-8de7-4f45-88af-4351b7335b79 State: Peer Rejected (Connected)11:56
ayushThis is the state of repo as of now11:56
LaszloHello everyone, I would like to know if it is possible to remove an openstack component using openstack-ansible ? If yes can you please direct me to some relevant documentation. Thank you!13:40
*** Laszlo is now known as laci54020313:59
laci540203Hello. Can someone confirm that my messages are reaching this channel? I'm not familiar with this interface and I may be doing something wrong ...14:00
qwebirc24089Hello all14:28
qwebirc24089how can one uninstal an openstack component using OSA? Thank you.14:29
jrosser_qwebirc24089: can you give a specific example of what you want to remove?14:35
qwebirc24089I tried to install masakari, and I probably configured it the wrong way. Now I've removed the masakari related lines from the openstack_user_config.yml but it is still trying to perform  the masakari related  operations, So I would like to remove all that has been done for masakari.14:47
qwebirc24089and I can still see the masakari containers if I use `inventory-manage.py -l`14:49
jrosser_there are instructions here for removing hosts and groups from the inventory https://docs.openstack.org/openstack-ansible/latest/reference/inventory/manage-inventory.html14:53
qwebirc24089Thank you jrosser_ ! I assume that if I remove a host/container from the inventory the OSA will not try to configure it anymore. That would be probably a first step for me, but is there a way to undo whatever has been configured for it?14:58
jrosser_for an lxc deployment you can delete the containers before you remove the entries from the inventory14:59
jrosser_once the inventory group is removed then there is nothing for the playbooks to target if you run them again14:59
jrosser_some manual cleanup might be required of haproxy, if you want to remove the endpoint14:59
qwebirc24089I see. So the removal/cleanup is not handled by any playbook, if I understand correctly.15:01
jrosser_there is no specific "uninstall" for a service as how to do that depends very highly on the component, as some of them integrate tightly with others15:01
jrosser_i don't think any of the openstack deployment tools are really designed to handle removal of components15:02
qwebirc24089I see. Thank you!15:02
jrosser_you will also perhaps want to remove entries from the service catalog15:03
qwebirc24089yes.15:03
qwebirc24089if I'm using the `./inventory-manage.py -G` command that I can see that for instance the `masakari-monitor_hosts` group has entries like controller1, controller2, controller3. Is there a way to remove those entries from that group only?15:12
noonedeadpunkhey15:17
noonedeadpunkI think tooling right now is not able to remove some hosts from some groups only15:17
noonedeadpunkthough I would be really a valid feature to work on15:18
noonedeadpunk*it15:18
jrosser_in this case just remove the group i think?15:18
jrosser_noonedeadpunk: btw did you see the CI situation from yesterday?15:18
noonedeadpunkno... 15:19
jrosser_ah well, so look at this https://review.opendev.org/c/openstack/openstack-ansible-os_trove/+/919686?tab=change-view-tab-header-zuul-results-summary15:20
qwebirc24089I just tried to remove the group using `./inventory-manage.py -d masakari_monitor_hosts -d masakari_monitor_all` but if I list the groups again afterwards (`./inventory-manage.py -G`) I can see the groups again15:20
jrosser_see which jobs ran doe gate15:20
jrosser_*for gate15:20
noonedeadpunkoops15:21
jrosser_yeah so 20+ things just merged instantly with only docs jobs running15:21
jrosser_and i think this is the case for all branches right now15:22
noonedeadpunkqwebirc24089: nah. it doesn't work this way, unfortunatelly15:22
noonedeadpunkit can remove only host from inventory - that's pretty much all editing it does15:22
jrosser_omg it is getting worse /o\ https://review.opendev.org/c/openstack/openstack-ansible/+/91990215:22
noonedeadpunkyou think it's because of https://review.opendev.org/c/openstack/openstack-ansible/+/919902/1/zuul.d/jobs.yaml ?15:23
noonedeadpunkyeah15:23
jrosser_if we reference a repo that no longer exists, the failure is to just behave like the jobs don't exist15:23
jrosser_rather than to halt with an error15:24
jrosser_though that is now interesting with 919902 that it fails in maybe a more helpful way15:24
qwebirc24089noonedeadpunk: I don't get it. The -d option of inventory_manage.py shouldn't remove a group?15:25
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Remove murano from zuul required projects, it is now retired  https://review.opendev.org/c/openstack/openstack-ansible/+/91990215:27
noonedeadpunkqwebirc24089: it removes host, not group15:27
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Remove murano and sahara from zuul required projects  https://review.opendev.org/c/openstack/openstack-ansible/+/91990215:28
noonedeadpunkjrosser_: also senlin pls15:28
jrosser_ok15:28
qwebirc24089noonedeadpunk:  from the help I thought that the `-r` option removes a host15:29
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Remove murano, senlin and sahara from zuul required projects  https://review.opendev.org/c/openstack/openstack-ansible/+/91990215:29
noonedeadpunkqwebirc24089: yes, exactly. removes host :)15:30
noonedeadpunknot from specific group. but just removes it15:30
noonedeadpunkwe actually should expand options for the script. but for us it was slightly lower prio always :(15:31
qwebirc24089expanding options and more details about the options both would help :) But I understand that there are priorities 15:36
noonedeadpunkI somehow clean forgot that projects will be droped from zuul under retirement... should have included that to https://review.opendev.org/c/openstack/openstack-ansible/+/91690015:37
noonedeadpunkbut I was thinking about inactive state back then :(15:37
noonedeadpunkMaybe you can submit a bug report (which we'll mark as wishlist) so at least we have that tracked15:38
noonedeadpunkqwebirc24089:  ^15:38
qwebirc24089given that there are these two options: `-r` and `-d` I thought that -d will delete the group as the help sais 15:38
qwebirc24089Sure, I can submit a bug report/feature request.15:39
noonedeadpunkwell... actually... maybe it will....15:39
noonedeadpunkhm15:39
noonedeadpunkbut they don't intend to work together riught now 100%15:39
qwebirc24089is this the place where I should do it: https://bugs.launchpad.net/openstack-ansible ?15:40
noonedeadpunkthese are just if/else right now: https://opendev.org/openstack/openstack-ansible/src/branch/master/osa_toolkit/manage.py#L367-L37215:40
noonedeadpunkyup15:40
noonedeadpunkso if you supply -d -r - it will delete group15:41
qwebirc24089you mean that if I use both option on the same command then it will delete the group?15:45
qwebirc24089"inventory-manage.py: error: argument -d/--remove-group: not allowed with argument -r/--remove-item" so they don't work together 15:48
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default  https://review.opendev.org/c/openstack/openstack-ansible/+/91981615:55
noonedeadpunkah, ok15:55
noonedeadpunkqwebirc24089: hm, probably I really misunderstood your problem frankly speaking....15:56
noonedeadpunkeventually, is group defenition in conf.d (openstack-user-config) is correct now?15:57
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default  https://review.opendev.org/c/openstack/openstack-ansible/+/91981616:01
qwebirc24089I defined the group in the openstack_user_config.yml initially, there the name was masakari-monitor_hosts. then I can see that when I'm listing the inventory there is "masakari-monitor_hosts" and "masakari-monitor_all"16:07
noonedeadpunkyeah, so controllers should not be really in masakari-monitor_hosts afaik16:07
noonedeadpunkonly compute are16:07
noonedeadpunkI can be wrong though16:08
qwebirc24089as I did a mistake in the initial trial of deploing masakari, I would like to remove those nodes which do not belong to that group.16:08
noonedeadpunkand you removed from openstack_user_config.yml ?16:08
qwebirc24089I agree with you that the controllers should not be in the monitor group, and that's what I'm trying to fix ...16:08
qwebirc24089Yes. I did put a comment "#" in front of them in the openstack_user_config.yml file16:09
noonedeadpunkso for now - you can just manually drop them from openstack_inventory.json file16:09
noonedeadpunkthat's the cache which is produced by dynamic_inventory.py and what inventory-manage tries to parse16:10
qwebirc24089isn't the dynamic_inventory.py refreshing that cache when the YAML file is updated?16:11
noonedeadpunkit is, but uses openstack_inventory.json as a base16:12
noonedeadpunkdynamic_inventory.py tries to do minimum destructive actions to it16:12
qwebirc24089does that means that it is only adding entries, but not removing?16:13
noonedeadpunkWell, it can remove something, but not hosts or groups that were defined.16:13
noonedeadpunkI would expect groups assignments to be updated, but really can't recall about removing them16:14
noonedeadpunkin fact we barely touched inventory part lately, so it's all historical behaviour that potentially should be reviewed 16:15
qwebirc24089I see 16:15
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Remove service-specific tags from service playbooks  https://review.opendev.org/c/openstack/openstack-ansible/+/91861516:18
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: docs: demonstrate quick method to move between HA/Quorum queues  https://review.opendev.org/c/openstack/openstack-ansible/+/91906216:18
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default  https://review.opendev.org/c/openstack/openstack-ansible/+/91981616:18
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Create Caracal Beta release  https://review.opendev.org/c/openstack/openstack-ansible/+/91997016:18
noonedeadpunkdamn16:19
noonedeadpunkI didn't indend to rebase all of these....16:19
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Remove service-specific tags from service playbooks  https://review.opendev.org/c/openstack/openstack-ansible/+/91861516:19
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: docs: demonstrate quick method to move between HA/Quorum queues  https://review.opendev.org/c/openstack/openstack-ansible/+/91906216:19
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default  https://review.opendev.org/c/openstack/openstack-ansible/+/91981616:19
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Create Caracal Beta release  https://review.opendev.org/c/openstack/openstack-ansible/+/91997016:19
qwebirc24089hmmm .... it's interesting that when I'm looking into the /etc/openstack_deploy/openstack_inventory.json file then the monitor group is empty. "masakari_monitor": {"children": [], "hosts": [] }16:20
noonedeadpunkjrosser_ damiandabrowski: I've pushed https://review.opendev.org/c/openstack/openstack-ansible/+/919970 to have some "early" release more or less asap16:20
noonedeadpunkpartially as I will also be almost away next week, and very limited time week after that...16:20
* noonedeadpunk may is going very crazy...16:21
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Unfreeze roles after Caracal Beta release  https://review.opendev.org/c/openstack/openstack-ansible/+/91997216:29
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_manila master: Add tag to enable targeting of post-install config elements only  https://review.opendev.org/c/openstack/openstack-ansible-os_manila/+/91969116:30
opendevreviewMerged openstack/openstack-ansible master: Remove murano, senlin and sahara from zuul required projects  https://review.opendev.org/c/openstack/openstack-ansible/+/91990220:34

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