Skip to content

Instantly share code, notes, and snippets.

@kevprice83
Created August 8, 2020 10:04
Show Gist options
  • Save kevprice83/714d95b0fdbaf97e8e5378a2cb4932ea to your computer and use it in GitHub Desktop.
Save kevprice83/714d95b0fdbaf97e8e5378a2cb4932ea to your computer and use it in GitHub Desktop.
Debug logs on crc startup
PS C:\Users\kpric> crc start -p C:\Users\kpric\Downloads\pull-secret.txt --log-level "debug"
DEBU CodeReady Containers version: 1.14.0+36ad776
DEBU OpenShift version: 4.5.4 (embedded in binary)
DEBU Total memory of system is 34249129984 bytes
DEBU No new version available. The latest version is 1.14.0
INFO Checking if oc binary is cached
DEBU Running 'C:\Users\kpric\.crc\bin\oc\oc.exe version --client'
DEBU oc binary already cached
INFO Checking if podman remote binary is cached
DEBU Currently podman remote is not supported
INFO Checking if goodhosts binary is cached
DEBU goodhost binary already cached
INFO Checking minimum RAM requirements
DEBU Total memory of system is 34249129984 bytes
INFO Checking if running as normal user
INFO Checking Windows 10 release
INFO Checking if Hyper-V is installed and operational
INFO Checking if user is a member of the Hyper-V Administrators group
INFO Checking if Hyper-V service is enabled
INFO Checking if the Hyper-V virtual switch exist
INFO Found Virtual Switch to use: Default Switch
INFO Loading bundle: crc_hyperv_4.5.4.crcbundle ...
INFO Checking size of the disk image C:\Users\kpric\.crc\cache\crc_hyperv_4.5.4\crc.vhdx ...
INFO Creating CodeReady Containers VM for OpenShift 4.5.4...
DEBU Waiting until ssh is available
DEBU About to run SSH command:
exit 0
DEBU SSH command results: err: <nil>, output:
INFO CodeReady Containers VM is running
INFO Stopping network time synchronization in CodeReady Containers VM
DEBU About to run SSH command:
sudo timedatectl set-ntp on
DEBU SSH command results: err: <nil>, output:
INFO Verifying validity of the cluster certificates ...
DEBU About to run SSH command:
date --date="$(sudo openssl x509 -in /var/lib/kubelet/pki/kubelet-client-current.pem -noout -enddate | cut -d= -f 2)" --iso-8601=seconds
DEBU SSH command results: err: <nil>, output: 2020-08-28T05:19:39+00:00
cat /etc/resolv.conf
DEBU SSH command results: err: <nil>, output: # Generated by NetworkManager
search mshome.net
nameserver 172.21.112.1
INFO Adding 8.8.8.8 as nameserver to the instance ...
DEBU About to run SSH command:
NS=8.8.8.8; cat /etc/resolv.conf |grep -i "^nameserver $NS" || echo "nameserver $NS" | sudo tee -a /etc/resolv.conf
DEBU SSH command results: err: <nil>, output: nameserver 8.8.8.8
DEBU About to run SSH command:
echo dXNlcj1yb290CnBvcnQ9IDUzCmJpbmQtaW50ZXJmYWNlcwpleHBhbmQtaG9zdHMKbG9nLXF1ZXJpZXMKc3J2LWhvc3Q9X2V0Y2Qtc2VydmVyLXNzbC5fdGNwLmNyYy50ZXN0aW5nLGV0Y2QtMC5jcmMudGVzdGluZywyMzgwLDEwCmxvY2FsPS9jcmMudGVzdGluZy8KZG9tYWluPWNyYy50ZXN0aW5nCmFkZHJlc3M9L2FwcHMtY3JjLnRlc3RpbmcvMTcyLjIxLjEyNS44MAphZGRyZXNzPS9ldGNkLTAuY3JjLnRlc3RpbmcvMTcyLjIxLjEyNS44MAphZGRyZXNzPS9hcGkuY3JjLnRlc3RpbmcvMTcyLjIxLjEyNS44MAphZGRyZXNzPS9hcGktaW50LmNyYy50ZXN0aW5nLzE3Mi4yMS4xMjUuODAKYWRkcmVzcz0vY3JjLWZkNW54LW1hc3Rlci0wLmNyYy50ZXN0aW5nLzE5Mi4xNjguMTI2LjExCg== | base64 --decode | sudo tee /var/srv/dnsmasq.conf > /dev/null
DEBU SSH command results: err: <nil>, output:
DEBU About to run SSH command:
sudo podman rm -f dnsmasq
DEBU SSH command results: err: Process exited with status 1, output: Error: Failed to evict container: "": Failed to find container "dnsmasq" in state: no container with name or ID dnsmasq found: no such container
DEBU About to run SSH command:
sudo rm -f /var/lib/cni/networks/podman/10.88.0.8
DEBU SSH command results: err: <nil>, output:
DEBU About to run SSH command:
sudo podman run --ip 10.88.0.8 --name dnsmasq -v /var/srv/dnsmasq.conf:/etc/dnsmasq.conf -p 53:53/udp --privileged -d quay.io/crcont/dnsmasq:latest
DEBU SSH command results: err: <nil>, output: efd9e53d62b27b777cdc1989c71b151d894ae19959313fd72698ca80140a8a1a
INFO Will run as admin: add dns server address to interface vEthernet (Default Switch)
DEBU About to run SSH command:
cat /etc/resolv.conf
DEBU SSH command results: err: <nil>, output: # Generated by NetworkManager
search mshome.net
nameserver 172.21.112.1
nameserver 8.8.8.8
DEBU About to run SSH command:
echo IyBHZW5lcmF0ZWQgYnkgQ1JDCnNlYXJjaCBjcmMudGVzdGluZwpuYW1lc2VydmVyIDEwLjg4LjAuOApuYW1lc2VydmVyIDE3Mi4yMS4xMTIuMQpuYW1lc2VydmVyIDguOC44LjgKCg== | base64 --decode | sudo tee /etc/resolv.conf > /dev/null
DEBU SSH command results: err: <nil>, output:
DEBU About to run SSH command:
host -R 3 foo.apps-crc.testing
DEBU SSH command results: err: <nil>, output: foo.apps-crc.testing has address 172.21.125.80
INFO Check internal and public DNS query ...
DEBU About to run SSH command:
host -R 3 quay.io
DEBU SSH command results: err: <nil>, output: quay.io has address 34.198.42.182
quay.io has address 3.232.240.223
quay.io has address 54.236.134.150
quay.io has address 54.85.200.246
quay.io has address 52.21.158.142
quay.io has address 52.0.189.157
quay.io mail is handled by 30 aspmx2.googlemail.com.
quay.io mail is handled by 30 aspmx3.googlemail.com.
quay.io mail is handled by 10 aspmx.l.google.com.
quay.io mail is handled by 20 alt1.aspmx.l.google.com.
quay.io mail is handled by 20 alt2.aspmx.l.google.com.
ERRO Failed to query DNS from host: lookup api.crc.testing: no such host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment