Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No route to host" after reboot from rpm-ostree upgrade #3407

Open
henrywang opened this issue Jun 22, 2023 · 2 comments
Open

"No route to host" after reboot from rpm-ostree upgrade #3407

henrywang opened this issue Jun 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@henrywang
Copy link
Contributor

Upgrade ostree image/commit
+ echo -e '\033[1;32mUpgrade ostree image/commit\033[0m'
+ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] 'sudo rpm-ostree upgrade'
Warning: Permanently added '192.168.100.51' (ED25519) to the list of known hosts.
1 delta parts, 16 loose fetched; 10264 KiB transferred in 1 seconds; 677.5?kB content written
Staging deployment...done
Added:
  libmetalink-0.1.3-28.fc37.x86_64
  wget-1.21.3-4.fc37.x86_64
Run "systemctl reboot" to start a reboot
+ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] 'nohup sudo systemctl reboot &>/dev/null & exit'
Warning: Permanently added '192.168.100.51' (ED25519) to the list of known hosts.
+ sleep 10
+ greenprint '🛃 Checking for SSH is ready to go'
+ echo -e '\033[1;32m🛃 Checking for SSH is ready to go\033[0m'
🛃 Checking for SSH is ready to go
++ seq 0 30
+ for _ in $(seq 0 30)
++ wait_for_ssh_up 192.168.100.51
+++ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] '/bin/bash -c "echo -n READY"'
ssh: connect to host 192.168.100.51 port 22: Connection timed out
++ SSH_STATUS=
++ [[ '' == READY ]]
++ echo 0
+ RESULTS=0
+ [[ 0 == 1 ]]
+ sleep 10
+ for _ in $(seq 0 30)
++ wait_for_ssh_up 192.168.100.51
+++ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] '/bin/bash -c "echo -n READY"'
ssh: connect to host 192.168.100.51 port 22: Connection timed out
++ SSH_STATUS=
++ [[ '' == READY ]]
++ echo 0
+ RESULTS=0
+ [[ 0 == 1 ]]
+ sleep 10
+ for _ in $(seq 0 30)
++ wait_for_ssh_up 192.168.100.51
+++ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] '/bin/bash -c "echo -n READY"'
ssh: connect to host 192.168.100.51 port 22: No route to host
@henrywang henrywang added the enhancement New feature or request label Jun 22, 2023
@henrywang
Copy link
Contributor Author

Upgrade ostree image/commit
+ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] 'sudo rpm-ostree upgrade'
Warning: Permanently added '192.168.100.50' (ED25519) to the list of known hosts.
122 metadata, 115 content objects fetched; 99539 KiB transferred in 3 seconds; 121.4 MB content written
Receiving objects; 97% (41/42) 84.4 MB/s 84.4 MB...done
Staging deployment...done
Added:
  libmetalink-0.1.3-31.fc39.x86_64
  wget-1.21.3-5.fc38.x86_64
Run "systemctl reboot" to start a reboot
+ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] 'nohup sudo systemctl reboot &>/dev/null & exit'
Warning: Permanently added '192.168.100.50' (ED25519) to the list of known hosts.
+ sleep 10
+ greenprint '🛃 Checking for SSH is ready to go'
🛃 Checking for SSH is ready to go
+ echo -e '\033[1;32m🛃 Checking for SSH is ready to go\033[0m'
++ seq 0 30
+ for _ in $(seq 0 30)
++ wait_for_ssh_up 192.168.100.50
+++ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] '/bin/bash -c "echo -n READY"'
ssh: connect to host 192.168.100.50 port 22: Connection timed out
++ SSH_STATUS=
++ [[ '' == READY ]]
++ echo 0
+ RESULTS=0
+ [[ 0 == 1 ]]
+ sleep 10
+ for _ in $(seq 0 30)
++ wait_for_ssh_up 192.168.100.50
+++ sudo ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=5 -i key/ostree_key [email protected] '/bin/bash -c "echo -n READY"'
ssh: connect to host 192.168.100.50 port 22: Connection timed out
++ SSH_STATUS=
++ [[ '' == READY ]]
++ echo 0
+ RESULTS=0
+ [[ 0 == 1 ]]
+ sleep 10

@henrywang
Copy link
Contributor Author

henrywang commented Jun 30, 2023

minimal raw failed on reboot

TASK [assert] ******************************************************************
ok: [192.168.100.51] => changed=false 
  msg: running container with podman (non-root) successed

TASK [set_fact] ****************************************************************
ok: [192.168.100.51] => changed=false 
  ansible_facts:
    total_counter: '3'

TASK [reboot to deploy new ostree commit] **************************************
fatal: [192.168.100.51]: FAILED! => 
  msg: 'Failed to connect to the host via ssh: ssh: connect to host 192.168.100.51 port 22: Connection timed out'

TASK [failed count + 1] ********************************************************
ok: [192.168.100.51] => changed=false 
  ansible_facts:
    failed_counter: '1'

TASK [set_fact] ****************************************************************
ok: [192.168.100.51] => changed=false 
  ansible_facts:
    total_counter: '4'

TASK [list boots] **************************************************************
fatal: [192.168.100.51]: UNREACHABLE! => changed=false 
  msg: 'Failed to connect to the host via ssh: ssh: connect to host 192.168.100.51 port 22: Connection timed out'
  unreachable: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant