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

Failing tests on CentOS-CI + KVM #121

Open
gbraad opened this issue Jul 20, 2017 · 21 comments · Fixed by #123
Open

Failing tests on CentOS-CI + KVM #121

gbraad opened this issue Jul 20, 2017 · 21 comments · Fixed by #123

Comments

@gbraad
Copy link
Member

gbraad commented Jul 20, 2017

This is a general issue, and I have seen this happen from time to time with the CentOS image:

Error: E0720 04:12:09.674403   23446 start.go:278] Error starting the VM: Error configuring authorization on host: Maximum number of retries (60) exceeded. Retrying.
E0720 04:15:49.210763   23446 start.go:278] Error starting the VM: Error configuring authorization on host: Maximum number of retries (60) exceeded. Retrying.
E0720 04:19:29.286027   23446 start.go:278] Error starting the VM: Error configuring authorization on host: Maximum number of retries (60) exceeded. Retrying.
Error starting the VM: Error configuring authorization on host: Maximum number of retries (60) exceeded
Error configuring authorization on host: Maximum number of retries (60) exceeded
Error configuring authorization on host: Maximum number of retries (60) exceeded

It is unclear why this happens...

@gbraad
Copy link
Member Author

gbraad commented Jul 20, 2017

Added a sleep statement for the minishift start, as the error in this case is consistently happening at the swapspace test

@gbraad
Copy link
Member Author

gbraad commented Jul 20, 2017

gbraad added a commit to gbraad-redhat/minishift-centos-iso that referenced this issue Jul 20, 2017
gbraad added a commit to gbraad-redhat/minishift-centos-iso that referenced this issue Jul 20, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.1.0, v1.2.0 Jul 20, 2017
@gbraad gbraad reopened this Jul 24, 2017
@gbraad
Copy link
Member Author

gbraad commented Jul 24, 2017

@LalatenduMohanty
Copy link
Member

@gbraad Just to confirm, you have seen these kind of error with local runs too?

@gbraad
Copy link
Member Author

gbraad commented Jul 25, 2017 via email

@LalatenduMohanty LalatenduMohanty modified the milestones: v1.2.0, v1.1.0 Jul 25, 2017
@coolbrg coolbrg self-assigned this Aug 9, 2017
@coolbrg
Copy link
Contributor

coolbrg commented Aug 22, 2017

I am able to reproduce the error locally as well for even starting the VM:

Executing command : /home/budhram/redhat/minishift-centos-iso/tests/../build/bin/minishift start --vm-driver kvm --iso-url file:///home/budhram/redhat/minishift-centos-iso/tests/../build/minishift-centos7.iso
*******
2017-08-22 19:33:10,018 test             L0119 DEBUG| Error: E0822 19:26:46.940451   12265 start.go:342] Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded. Retrying.
E0822 19:29:58.276836   12265 start.go:342] Error starting the VM: Error configuring authorization on host: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded. Retrying.
E0822 19:33:10.016776   12265 start.go:342] Error starting the VM: Error configuring authorization on host: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded. Retrying.
Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded
Error configuring authorization on host: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded
Error configuring authorization on host: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded
...

@gbraad
Copy link
Member Author

gbraad commented Aug 22, 2017 via email

@coolbrg
Copy link
Contributor

coolbrg commented Aug 22, 2017

@gbraad could you add those debugs lines here https://github.com/gbraad/minishift-centos-iso/blob/opt/tests/test.py#L90 then we can see why it is failing in CI.

I am also trying locally.

The upstream released latest ISO passed locally.

gbraad added a commit to gbraad-redhat/minishift-centos-iso that referenced this issue Aug 22, 2017
@coolbrg
Copy link
Contributor

coolbrg commented Aug 22, 2017

Logs

Logs with upstream releasted latest centos ISO

(minishift) DBG | Starting VM minishift
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) DBG | Waiting for the VM to come up... 0
[...]
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) DBG | Waiting for the VM to come up... 14
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.87
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) Calling .GetConfigRaw
(minishift) Calling .DriverName
(minishift) Calling .DriverName
(minishift) Calling .GetState
(minishift) DBG | Getting current state...
Getting to WaitForSSH function...
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.87
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) Calling .GetSSHPort
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255: 
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255
output  : 
Getting to WaitForSSH function...
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.87
(minishift) Calling .GetSSHPort
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHUsername
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>: 
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.87
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:4f:77:aa
(minishift) Calling .GetSSHPort
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHUsername
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

VARIANT="minishift"
VARIANT_VERSION="1.1.0"
BUILD_ID="ecb5ada-25072017180632-local"
  ...

Logs with Locally built ISO or affected ISO

(minishift) DBG | Starting VM minishift
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) DBG | Waiting for the VM to come up... 0
[...]
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) DBG | Waiting for the VM to come up... 14
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.53
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) Calling .GetConfigRaw
(minishift) Calling .DriverName
(minishift) Calling .DriverName
(minishift) Calling .GetState
(minishift) DBG | Getting current state...
Getting to WaitForSSH function...
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.53
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) Calling .GetSSHPort
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255: 
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255
output  : 
Getting to WaitForSSH function...
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.53
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) Calling .GetSSHPort
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 1: /bin/bash: Permission denied

Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 1
output  : /bin/bash: Permission denied

Getting to WaitForSSH function...
(minishift) Calling .GetSSHHostname
(minishift) DBG | GetIP called for minishift
(minishift) DBG | Failed to retrieve dnsmasq leases from /var/lib/libvirt/dnsmasq/docker-machines.leases
(minishift) DBG | IP address: 192.168.42.53
(minishift) DBG | Unable to locate IP address for MAC 52:54:00:6b:3e:7e
(minishift) Calling .GetSSHPort
(minishift) Calling .GetSSHKeyPath
(minishift) Calling .GetSSHKeyPath
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
(minishift) Calling .GetSSHUsername
(minishift) DBG | AK: resolvestorepath: /home/budhram/.minishift
Using SSH client type: external
Using SSH private key: /home/budhram/.minishift/machines/minishift/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /home/budhram/.minishift/machines/minishift/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
************************************** This get repeated *******************************************
SSH cmd err, output: exit status 1: /bin/bash: Permission denied

Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 1
output  : /bin/bash: Permission denied
************************************** This get repeated *******************************************

gbraad added a commit to gbraad-redhat/minishift-centos-iso that referenced this issue Aug 22, 2017
@coolbrg
Copy link
Contributor

coolbrg commented Sep 18, 2017

Logs of unsuccessful restart - https://gist.github.com/budhrg/1bdc7444d9796082c212f0b165286bfd

@LalatenduMohanty
Copy link
Member

A sleep of 90s added after the minishift start to work around the issue [1] In case we choose to close this issue. We will create a separate issue to findout why we need a sleep and how we can remove it.

[1] https://github.com/minishift/minishift-centos-iso/blob/master/tests/test.sh#L129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment