CCI-MOC / esi

Elastic Secure Infrastructure project
6 stars 13 forks source link

Create standalone tripleo dev setup for multi data center testing #171

Closed tzumainn closed 2 years ago

tzumainn commented 2 years ago

@naved001 I accidentally misconfigured the networks in the VM at 172.16.100.201 so that we can't ssh into it anymore; is there a way for me to reset/un-misconfigure it?

naved001 commented 2 years ago

do you know which of these hosts is that VM running on?

[centos@kumo-dell-12 ~]$ sudo virsh list
 Id    Name                           State
----------------------------------------------------
 9     ironic-demo                    running
 24    keylime-ironic                 running
 25    keylime-vagrant-ansible-tpm-emulator_keylime1 running
 27    tripleo                        running

or on dell13

 [rado@hypervisor-dell13 ~]$ sudo virsh list
 Id    Name                           State
----------------------------------------------------
 1     ceph2                          running
 3     ceph1                          running
 4     ceph3                          running
 5     ironic                         running

We can look at the console from those then and then configure the networks.

ljmcgann commented 2 years ago

I don't know

ljmcgann commented 2 years ago

tripleo is a promising one. It definitely isnt any of the keylime ones, or ironic-demo

ljmcgann commented 2 years ago

@naved001 can you take a look at the tripleo vm, as it must be that one.

naved001 commented 2 years ago

@ljmcgann looks like it's running centos8, do you have the login information?

Also, you could also look at the console if you connect with virt-manager to dell12.

tzumainn commented 2 years ago

@naved001 ah, we were able to access it; then I misconfigured a NIC and now we can't reach it anymore.

ljmcgann commented 2 years ago

virsh console tripleo does not work for me

naved001 commented 2 years ago

virsh console tripleo does not work for me

that may be because the serial console is not configured correctly for that VM.

I meant the VM's "physical" console using virt-manager it connects to remote libvirt and then you can login from the console (or reset the password).

in my SSH config file I have

Host kumo
    User naved
    Hostname kumo-hil-client.infra.massopen.cloud

Host dell12
    User root
    Hostname 172.16.100.121
    ProxyCommand ssh kumo -W %h:%p

This lets me SSH to dell12 (host where the tripleo VM is) by writing ssh dell12. I can then use this same shortcut with virt-manager to connect to libvirt on that host. I choose "Add connection" in virtual machine manager.

image

And then you can see the physical consoles of those VMs.

image
ljmcgann commented 2 years ago

what is the password for dell12? I've never been asked for a password for this machine before

tzumainn commented 2 years ago

@naved001 would it be simpler for us to just delete the tripleo vm and create a new one? I'm guessing it's a fairly straightforward process... ? Just want to make sure there aren't any 'gotchas'!

naved001 commented 2 years ago

what is the password for dell12? I've never been asked for a password for this machine before

@ljmcgann I added your key from github to the root user. Make sure key is forwarded.

would it be simpler for us to just delete the tripleo vm and create a new one? I'm guessing it's a fairly straightforward process... ? Just want to make sure there aren't any 'gotchas'!

@tzumainn You can certainly create a new VM and also keep this one until you setup the new VM. You would have to figure out the networking (how did it connect to the IPMI network, what was the provisioning VLAN it's using etc).

I would highly recommend trying to get virt-manager working since it'll be useful to debug networking issues in the future too. Being able to see the physical console is really useful.

do you have the login information?

If people don't have the login information, you can try resetting it. Again, this requires access to the physical console of the VM.

ljmcgann commented 2 years ago

i now get asked for login details to standalone-tripleo, which again i wasn't getting before. Im accessing through virt-manager.

naved001 commented 2 years ago

@ljmcgann could be more specific? what login details does it ask for when you SSH? and we set the password yesterday so login from the physical console should still work unless someone changed the password.

ljmcgann commented 2 years ago

This is old and from before we went on call yesterday. Everything works as it should, for now

naved001 commented 2 years ago

oops, my bad. thanks for the update!

ljmcgann commented 2 years ago

@naved001 I am having issues bringing the centos 8 stream into the moc network. The only file in /etc/sysconfig/network-scripts is ifcfg-ens3, which is mostly empty. There is no bridge device I can connect to it seems?