Wednesday, 2022-10-26

*** raukadah is now known as chandankumar03:10
noonedeadpunkmornings07:45
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Move ceph-install to setup-everything  https://review.opendev.org/c/openstack/openstack-ansible/+/86250808:25
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Move ceph-install to setup-everything  https://review.opendev.org/c/openstack/openstack-ansible/+/86250808:28
noonedeadpunkdamiandabrowski: anskiy so based on yestarday discussion I made adjustments to the patch. Would be great if you could review it as active users of ceph-ansible, as to be fair - I hardly used it in production deployments. Also feel free to -1 it as we can just add documentation changes at the end to explain upgrade path for such deployments08:30
noonedeadpunkbut it does make sense to me tbh to split out things 08:32
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Move ceph-install to setup-everything  https://review.opendev.org/c/openstack/openstack-ansible/+/86250808:39
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: [doc] Better document integrated usage of ceph-ansible  https://review.opendev.org/c/openstack/openstack-ansible/+/86267609:30
noonedeadpunkdamiandabrowski: I proposed only documentation update as well ^ but I'm still not convinced fwiw. 09:32
*** dviroel|afk is now known as dviroel11:28
nixbuilderI need to be able to access the various containers via ssh, however I cannot find where the private keys for the containers are stored.11:51
*** kleini_ is now known as kleini12:23
noonedeadpunknixbuilder: there are no ssh installed on containers by default, thus no keys12:47
noonedeadpunkWhy you need that?12:47
nixbuildernoonedeadpunk: I need that because I manage all of our clouds via ansible from my laptop. The previous installation was all on bare metal so ssh is easy.  But so far, at least on the galera and util containers, ssh is installed.  I just had to edit the sshd_config files to allow password access.  But I would rather use the key so I can give keys to others in my group who may need access.12:51
noonedeadpunkdo you know that these all is very-very bad idea ? :D12:52
noonedeadpunkAnd I still don't understand why ssh on containers is needed.12:53
nixbuilderOur clouds are not public... they are all behind our corporate firewall with no outside access unless you have VPN credentials.12:53
noonedeadpunkIf you manage with ansible from localhost - you still should be using inventory12:53
nixbuilderIt's worked for us going on 8 years or so.12:54
noonedeadpunkOr unless you have compromised machine :D12:54
noonedeadpunkanyway12:54
noonedeadpunkAnd if you're using same inventory - you can also easily use our connection plugin to connect to containers through hosts like osa does12:55
noonedeadpunkrunning ansible from localhost is bad idea for plenty of reasons. Including that every team member may have different ansible versions, different version of collections/roles on their localhost, different requirements installed with ansible12:56
nixbuilderThis is my first go-around with bringing up openstack-ansible installation.... so is there a document where I can read about this connection plugin.12:56
noonedeadpunkEach of these things can affect behaviour and you can't get consistent result kind of12:56
noonedeadpunkI don't want to touch observability/audit even12:56
noonedeadpunknixbuilder: well, I don't think we have a document for that as we assume OSA deployment is managed with OSA bootstrapped ansible.12:57
noonedeadpunkBut you can find it here https://opendev.org/openstack/openstack-ansible-plugins/src/branch/master/plugins/connection/ssh.py12:57
noonedeadpunkopenstack-ansible-plugins can be installed as collection12:58
noonedeadpunknixbuilder: I mean - you can also deploy openstack on bare metal with openstack-ansible and not use lxc containers at all12:58
noonedeadpunkbut if you use containers - I can hardly imagine how are you going to run anything against them not using dynamic inventory... 12:59
noonedeadpunkand dymanic_inventory has container_name/physical_host for all containers, so it provides info for connection plugin on how to reach each container through host without directly SSHing to it13:00
noonedeadpunkBut you technically can reproduce all that in your local copy on inventory as well...13:01
noonedeadpunkSo if you want to use that connection plugin you can do it like that: https://opendev.org/openstack/openstack-ansible/src/branch/master/scripts/openstack-ansible.rc#L5013:02
nixbuilderI am not the greatest on using ansible... but I am learning... but I think I see where you are going with this... give me a minute to absorb all of this.13:03
nixbuilderSo on my laptop do I install the ssh.py via python or pip?13:06
noonedeadpunkwell, on laptop you would need to create requirements.yml and place there these lines https://opendev.org/openstack/openstack-ansible/src/branch/master/ansible-collection-requirements.yml#L10-L1213:07
noonedeadpunk(given you run ansible>=5.0.0)13:08
noonedeadpunkand then run `ansible-galaxy collection install -r requirements.yml`13:09
noonedeadpunkBut tbh we never-ever assumed containers will be managed on host without properly bootstrapped/configured openstack-ansible13:10
noonedeadpunkYou can ofc run bootstrap-ansible.sh on localhost as well and put same config there as well13:10
noonedeadpunkBut maybe you also want to consider deploying without containers and just on bare metal...13:11
nixbuilderSo for bare metal install I would just use '/etc/openstack_deploy/env.d/aio_metal.yml.example' and define all containers on metal?13:18
jamesdentonI think it's as easy as defining "no_containers: True" in openstack_user_config.yml prior to the deploy13:24
nixbuilderjamesdenton: OK... that's easy... I'll give that a shot!13:26
noonedeadpunklike that https://opendev.org/openstack/openstack-ansible/src/branch/master/etc/openstack_deploy/openstack_user_config.yml.aio.j2#L4613:37
noonedeadpunkyou will also need to clean up already created containers and clean out generated inventory13:38
nixbuildernoonedeadpunk: Will do... wiping out all of the blades and starting from scratch.  Thanks for all your help!14:23
*** dviroel is now known as dviroel|lunch15:08
*** dviroel|lunch is now known as dviroel16:26
*** dviroel is now known as dviroel|afk20:03

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