crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.25k stars 236 forks source link

dial tcp: lookup api.crc.testing: no such host - verify you have provided the correct host and port and that the server is currently running. #2654

Closed PrathibaAB closed 2 years ago

PrathibaAB commented 3 years ago

General information

CRC version

CodeReady Containers version: 1.26.0+31f06c09 OpenShift version: 4.7.8 (embedded in executable)

CRC status

crc status --log-level debug

CRC config

image

Host Operating System

OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.19043 N/A Build 19043 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free System Manufacturer: LENOVO System Model: 20MVS16C05 System Type: x64-based PC Processor(s): 1 Processor(s) Installed. 01: AMD64 Family 23 Model 17 Stepping 0 AuthenticAMD ~2000 Mhz BIOS Version: LENOVO R0WET56W (1.24 ), 28-06-2019 Windows Directory: C:\WINDOWS System Directory: C:\WINDOWS\system32 Boot Device: \Device\HarddiskVolume1 Total Physical Memory: 31,620 MB Available Physical Memory: 24,243 MB Virtual Memory: Max Size: 36,228 MB Virtual Memory: Available: 27,127 MB Virtual Memory: In Use: 9,101 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \DESKTOP-743302K Hotfix(s): 10 Hotfix(s) Installed.

                       [02]: KB4562830
                       [03]: KB4577586
                       [04]: KB4580325
                       [05]: KB4589212
                       [06]: KB4593175
                       [07]: KB4598481
                       [08]: KB5000736
                       [09]: KB5005033
                       [10]: KB5005260

Network Card(s):
[05]: Hyper-V Virtual Ethernet Adapter Connection Name: vEthernet (Default Switch) DHCP Enabled: No IP address(es)

                             [02]: fe80::f5fe:e127:e5ff:6ee9

Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Steps to reproduce

  1. crc setup
  2. crc start -p pull-secret --nameserver 8.8.8.8
  3. oc login -u developer -p developer https://api.crc.testing:6443

Expected

successfully login and display the Projects

Actual

image

out of 10 , 8 attempts are failed .

Logs

log file for crc start --log-level https://gist.github.com/PrathibaAB/6adedc1f82aafd397cf8280587662195

praveenkumar commented 3 years ago

@PrathibaAB Can you please use issue template and fill all the details when creating the issue without this info we are not able to debug the error.

gbraad commented 3 years ago

withOUT this info we are not able to debug the error.

this means, please also include the detailed debug log output.

PrathibaAB commented 3 years ago

Please check i have added details about issue

praveenkumar commented 3 years ago

@PrathibaAB As per logs shared here https://gist.github.com/PrathibaAB/6adedc1f82aafd397cf8280587662195 looks like cluster started successfully. Can you put output of crc status --log-level debug after that, it might be server is reconciling?

PrathibaAB commented 3 years ago

Cluster will start successfully , i have problem in login . if successfully login then it will disconnect from https://api.crc.testing:6443 in few mins , its not stable .

C:\Users\PrathibaAB>oc login -u developer -p developer https://api.crc.testing:6443 Login successful.

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get projects.project.openshift.io)

C:\Users\PrathibaAB>crc status --log-level debug DEBU CodeReady Containers version: 1.26.0+31f06c09 DEBU OpenShift version: 4.7.8 (embedded in executable) DEBU Running 'crc status' DEBU Checking file: C:\Users\PrathibaAB.crc\machines\crc.crc-exist DEBU Checking file: C:\Users\PrathibaAB.crc\machines\crc.crc-exist DEBU [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state ] : Running DEBU [stderr =====>] : DEBU [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state ] : Running DEBU [stderr =====>] : DEBU [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0] =====>] : 172.31.46.209 DEBU [stderr =====>] : DEBU Running SSH command: df -B1 --output=size,used,target /sysroot | tail -1 DEBU Using ssh private keys: [C:\Users\PrathibaAB.crc\machines\crc\id_ecdsa C:\Users\PrathibaAB.crc\cache\crc_hyperv_4.7.8\id_ecdsa_crc] DEBU SSH command results: err: , output: 32737570816 15112474624 /sysroot DEBU Running SSH command: DEBU SSH command succeeded DEBU Unexpected operator status for network: ManagementStateDegraded DEBU openshift-apiserver operator not available, Reason: APIServices_Error CRC VM: Running OpenShift: Stopped (v4.7.8) Disk Usage: 15.11GB of 32.74GB (Inside the CRC VM) Cache Usage: 14.53GB Cache Directory: C:\Users\PrathibaAB.crc\cache

praveenkumar commented 3 years ago

@PrathibaAB This really like an issue with IO may be your host has old hardware or it is low on resources. We did see something like on nested virtualization setup.

PrathibaAB commented 3 years ago

how can i resolve issue with IO may be your host has old hardware or it is low on resources ?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.