opendevreview | Andrew 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/+/919701 | 07:52 |
---|---|---|
ayush | hi Team | 11:53 |
ayush | i am trying to add the controller which was lost during power failure | 11:53 |
ayush | my version is yoga | 11:53 |
ayush | i 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 |
ayush | if i do openstack peer detach and removed the node which need to be added | 11:55 |
ayush | root@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) n | 11:55 |
ayush | will it cause any issues, and run the repo playbook again | 11:55 |
ayush | ``` | 11:56 |
ayush | Hostname: c3w-repo-container-77ec1f25 Uuid: ad360baf-8de7-4f45-88af-4351b7335b79 State: Peer Rejected (Connected) | 11:56 |
ayush | This is the state of repo as of now | 11:56 |
Laszlo | Hello 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 laci540203 | 13:59 | |
laci540203 | Hello. 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 |
qwebirc24089 | Hello all | 14:28 |
qwebirc24089 | how 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 |
qwebirc24089 | I 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 |
qwebirc24089 | and 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.html | 14:53 |
qwebirc24089 | Thank 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 inventory | 14:59 |
jrosser_ | once the inventory group is removed then there is nothing for the playbooks to target if you run them again | 14:59 |
jrosser_ | some manual cleanup might be required of haproxy, if you want to remove the endpoint | 14:59 |
qwebirc24089 | I 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 others | 15:01 |
jrosser_ | i don't think any of the openstack deployment tools are really designed to handle removal of components | 15:02 |
qwebirc24089 | I see. Thank you! | 15:02 |
jrosser_ | you will also perhaps want to remove entries from the service catalog | 15:03 |
qwebirc24089 | yes. | 15:03 |
qwebirc24089 | if 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 |
noonedeadpunk | hey | 15:17 |
noonedeadpunk | I think tooling right now is not able to remove some hosts from some groups only | 15:17 |
noonedeadpunk | though I would be really a valid feature to work on | 15:18 |
noonedeadpunk | *it | 15: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 |
noonedeadpunk | no... | 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-summary | 15:20 |
qwebirc24089 | I 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 again | 15:20 |
jrosser_ | see which jobs ran doe gate | 15:20 |
jrosser_ | *for gate | 15:20 |
noonedeadpunk | oops | 15:21 |
jrosser_ | yeah so 20+ things just merged instantly with only docs jobs running | 15:21 |
jrosser_ | and i think this is the case for all branches right now | 15:22 |
noonedeadpunk | qwebirc24089: nah. it doesn't work this way, unfortunatelly | 15:22 |
noonedeadpunk | it can remove only host from inventory - that's pretty much all editing it does | 15:22 |
jrosser_ | omg it is getting worse /o\ https://review.opendev.org/c/openstack/openstack-ansible/+/919902 | 15:22 |
noonedeadpunk | you think it's because of https://review.opendev.org/c/openstack/openstack-ansible/+/919902/1/zuul.d/jobs.yaml ? | 15:23 |
noonedeadpunk | yeah | 15:23 |
jrosser_ | if we reference a repo that no longer exists, the failure is to just behave like the jobs don't exist | 15:23 |
jrosser_ | rather than to halt with an error | 15:24 |
jrosser_ | though that is now interesting with 919902 that it fails in maybe a more helpful way | 15:24 |
qwebirc24089 | noonedeadpunk: I don't get it. The -d option of inventory_manage.py shouldn't remove a group? | 15:25 |
opendevreview | Jonathan Rosser proposed openstack/openstack-ansible master: Remove murano from zuul required projects, it is now retired https://review.opendev.org/c/openstack/openstack-ansible/+/919902 | 15:27 |
noonedeadpunk | qwebirc24089: it removes host, not group | 15:27 |
opendevreview | Jonathan Rosser proposed openstack/openstack-ansible master: Remove murano and sahara from zuul required projects https://review.opendev.org/c/openstack/openstack-ansible/+/919902 | 15:28 |
noonedeadpunk | jrosser_: also senlin pls | 15:28 |
jrosser_ | ok | 15:28 |
qwebirc24089 | noonedeadpunk: from the help I thought that the `-r` option removes a host | 15:29 |
opendevreview | Jonathan Rosser proposed openstack/openstack-ansible master: Remove murano, senlin and sahara from zuul required projects https://review.opendev.org/c/openstack/openstack-ansible/+/919902 | 15:29 |
noonedeadpunk | qwebirc24089: yes, exactly. removes host :) | 15:30 |
noonedeadpunk | not from specific group. but just removes it | 15:30 |
noonedeadpunk | we actually should expand options for the script. but for us it was slightly lower prio always :( | 15:31 |
qwebirc24089 | expanding options and more details about the options both would help :) But I understand that there are priorities | 15:36 |
noonedeadpunk | I 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/+/916900 | 15:37 |
noonedeadpunk | but I was thinking about inactive state back then :( | 15:37 |
noonedeadpunk | Maybe you can submit a bug report (which we'll mark as wishlist) so at least we have that tracked | 15:38 |
noonedeadpunk | qwebirc24089: ^ | 15:38 |
qwebirc24089 | given that there are these two options: `-r` and `-d` I thought that -d will delete the group as the help sais | 15:38 |
qwebirc24089 | Sure, I can submit a bug report/feature request. | 15:39 |
noonedeadpunk | well... actually... maybe it will.... | 15:39 |
noonedeadpunk | hm | 15:39 |
noonedeadpunk | but they don't intend to work together riught now 100% | 15:39 |
qwebirc24089 | is this the place where I should do it: https://bugs.launchpad.net/openstack-ansible ? | 15:40 |
noonedeadpunk | these are just if/else right now: https://opendev.org/openstack/openstack-ansible/src/branch/master/osa_toolkit/manage.py#L367-L372 | 15:40 |
noonedeadpunk | yup | 15:40 |
noonedeadpunk | so if you supply -d -r - it will delete group | 15:41 |
qwebirc24089 | you 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 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default https://review.opendev.org/c/openstack/openstack-ansible/+/919816 | 15:55 |
noonedeadpunk | ah, ok | 15:55 |
noonedeadpunk | qwebirc24089: hm, probably I really misunderstood your problem frankly speaking.... | 15:56 |
noonedeadpunk | eventually, is group defenition in conf.d (openstack-user-config) is correct now? | 15:57 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default https://review.opendev.org/c/openstack/openstack-ansible/+/919816 | 16:01 |
qwebirc24089 | I 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 |
noonedeadpunk | yeah, so controllers should not be really in masakari-monitor_hosts afaik | 16:07 |
noonedeadpunk | only compute are | 16:07 |
noonedeadpunk | I can be wrong though | 16:08 |
qwebirc24089 | as 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 |
noonedeadpunk | and you removed from openstack_user_config.yml ? | 16:08 |
qwebirc24089 | I agree with you that the controllers should not be in the monitor group, and that's what I'm trying to fix ... | 16:08 |
qwebirc24089 | Yes. I did put a comment "#" in front of them in the openstack_user_config.yml file | 16:09 |
noonedeadpunk | so for now - you can just manually drop them from openstack_inventory.json file | 16:09 |
noonedeadpunk | that's the cache which is produced by dynamic_inventory.py and what inventory-manage tries to parse | 16:10 |
qwebirc24089 | isn't the dynamic_inventory.py refreshing that cache when the YAML file is updated? | 16:11 |
noonedeadpunk | it is, but uses openstack_inventory.json as a base | 16:12 |
noonedeadpunk | dynamic_inventory.py tries to do minimum destructive actions to it | 16:12 |
qwebirc24089 | does that means that it is only adding entries, but not removing? | 16:13 |
noonedeadpunk | Well, it can remove something, but not hosts or groups that were defined. | 16:13 |
noonedeadpunk | I would expect groups assignments to be updated, but really can't recall about removing them | 16:14 |
noonedeadpunk | in fact we barely touched inventory part lately, so it's all historical behaviour that potentially should be reviewed | 16:15 |
qwebirc24089 | I see | 16:15 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Remove service-specific tags from service playbooks https://review.opendev.org/c/openstack/openstack-ansible/+/918615 | 16:18 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: docs: demonstrate quick method to move between HA/Quorum queues https://review.opendev.org/c/openstack/openstack-ansible/+/919062 | 16:18 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default https://review.opendev.org/c/openstack/openstack-ansible/+/919816 | 16:18 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Create Caracal Beta release https://review.opendev.org/c/openstack/openstack-ansible/+/919970 | 16:18 |
noonedeadpunk | damn | 16:19 |
noonedeadpunk | I didn't indend to rebase all of these.... | 16:19 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Remove service-specific tags from service playbooks https://review.opendev.org/c/openstack/openstack-ansible/+/918615 | 16:19 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: docs: demonstrate quick method to move between HA/Quorum queues https://review.opendev.org/c/openstack/openstack-ansible/+/919062 | 16:19 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Enable RabbitMQ Quorum Queues by default https://review.opendev.org/c/openstack/openstack-ansible/+/919816 | 16:19 |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Create Caracal Beta release https://review.opendev.org/c/openstack/openstack-ansible/+/919970 | 16:19 |
qwebirc24089 | hmmm .... 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 |
noonedeadpunk | jrosser_ damiandabrowski: I've pushed https://review.opendev.org/c/openstack/openstack-ansible/+/919970 to have some "early" release more or less asap | 16:20 |
noonedeadpunk | partially 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 | |
opendevreview | Dmitriy Rabotyagov proposed openstack/openstack-ansible master: Unfreeze roles after Caracal Beta release https://review.opendev.org/c/openstack/openstack-ansible/+/919972 | 16:29 |
opendevreview | Dmitriy 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/+/919691 | 16:30 |
opendevreview | Merged openstack/openstack-ansible master: Remove murano, senlin and sahara from zuul required projects https://review.opendev.org/c/openstack/openstack-ansible/+/919902 | 20:34 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!