I can't login into this instance:
luke081515@bastion-01:~$ ssh cac Permission denied (publickey). luke081515@bastion-01:~$
I can't login into this instance:
luke081515@bastion-01:~$ ssh cac Permission denied (publickey). luke081515@bastion-01:~$
This seems to be another case of IP reuse:
valhallasw@tools-bastion-05:~$ ping cac.rcm.eqiad.wmflabs PING cac.rcm.eqiad.wmflabs (10.68.17.44) 56(84) bytes of data. 64 bytes from newfirewalltest.testlabs.eqiad.wmflabs (10.68.17.44): icmp_seq=1 ttl=64 time=2.83 ms 64 bytes from newfirewalltest.testlabs.eqiad.wmflabs (10.68.17.44): icmp_seq=2 ttl=64 time=0.494 ms
which explains why logging in fails. I can't find the original issue though -- I remember it being an issue in the CI project, so maybe @hashar can remember the right search terms for that bug?
Here what DNS gives us for the name -> IP:
$ dig +short ALL cac.eqiad.wmflabs 10.68.17.44 $ dig +short ALL cac.rcm.eqiad.wmflabs 10.68.17.44
The newfirewalltest... entry shows up because the IP 10.68.17.44 has to reverse entries (PTR records):
$ dig +short -x 10.68.17.44 cac.rcm.eqiad.wmflabs. newfirewalltest.testlabs.eqiad.wmflabs.
Duplicate reverse DNS record should be harmless for ssh, the issue is T115194: Some labs instances IP have multiple PTR entries in DNS.
As for ssh:
$ ssh tools-login.wmflabs.org tools-bastion-05:~$ host cac cac.eqiad.wmflabs has address 10.68.17.44
I am not a member of that "rcm" project so can not validate what is happening there :(
You're right, 10.68.17.44 does refer to cac:
valhallasw@tools-bastion-05:~$ ssh cac.rcm.eqiad.wmflabs The authenticity of host 'cac.rcm.eqiad.wmflabs (10.68.17.44)' can't be established. ECDSA key fingerprint is SHA256:iGrni+7shh92mAQUKvXVix1+aK8ZShCYjDI9tsA+8mk. Are you sure you want to continue connecting (yes/no)? ^C valhallasw@tools-bastion-05:~$ ssh -6 fe80::f816:3eff:fea4:a1e%eth0 The authenticity of host 'fe80::f816:3eff:fea4:a1e%eth0 (fe80::f816:3eff:fea4:a1e%eth0)' can't be established. ECDSA key fingerprint is SHA256:iGrni+7shh92mAQUKvXVix1+aK8ZShCYjDI9tsA+8mk. Are you sure you want to continue connecting (yes/no)? ^C
Same fingerprint, so the same host.
However, I can't login. Not with my regular key (after adding myself to the project), nor with my labs root key.
I cleaned up the duplicate reverse dns entry a few hours ago, but it didn't seem to make a difference. It looks to me like this instance is only a couple of weeks old -- is that right? Can it be rebuilt?
from auth.log:
Mar 19 15:31:53 cac sudo: luke081515 : /etc/sudoers is owned by uid 52920, should be 0 ; TTY=pts/10 ; PWD=/srv/mediawiki-vagrant/mediawiki ;
Mar 19 15:31:53 cac sudo: luke081515 : TTY=pts/10 ; PWD=/srv/mediawiki-vagrant/mediawiki ; USER=root ; COMMAND=/bin/chown -R mwvagrant /bin /boot /dev /etc /home /initrd.img /initrd.img.old /lib /lib64 /lost+found /media /mnt /opt /proc /root /run /sbin /srv /sys /tmp /usr /var /vmlinuz /vmlinuz.old Mar 19 15:31:53 cac sudo: pam_unix(sudo:session): session opened for user root by luke081515(uid=0) Mar 19 15:31:55 cac sudo: diamond : /etc/sudoers is owned by uid 52920, should be 0 ; TTY=unknown ; PWD=/ ; Mar 19 15:31:56 cac sudo: pam_unix(sudo:auth): conversation failed Mar 19 15:31:56 cac sudo: pam_unix(sudo:auth): auth could not identify password for [diamond] Mar 19 15:32:00 cac sudo: pam_unix(sudo:session): session closed for user root Mar 19 15:32:30 cac sshd[12986]: Received disconnect from 10.68.17.232: 11: disconnected by user Mar 19 15:32:30 cac sshd[12962]: pam_unix(sshd:session): session closed for user luke081515 Mar 19 15:32:35 cac sshd[14212]: Set /proc/self/oom_score_adj to 0 Mar 19 15:32:35 cac sshd[14212]: fatal: /var/run/sshd must be owned by root and not group or world-writable. Mar 19 15:32:41 cac sshd[14222]: Set /proc/self/oom_score_adj to 0
So -- there you have it -- /var was recursively chowned away from root, and now sshd hates you.
I've tried fixing /var but really I'm not sure this bell can be un-rung. I'd recommend a rebuild.
I need a dump from all databases from the vagrant machine. I have all files, but not a dump :-/
Understand that I cannot log into the system any more than you can. WHERE are the files that you need?
They are on the virtual vagrant machine in a mysql database, the problem is, that I don't know where they are exactly stored. If you can't find them, this is not completly bad, I can create a new database but this costs a bit more time.