{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/3470","repository_url":"https://api.github.com/repos/kubernetes/minikube","labels_url":"https://api.github.com/repos/kubernetes/minikube/issues/3470/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/minikube/issues/3470/comments","events_url":"https://api.github.com/repos/kubernetes/minikube/issues/3470/events","html_url":"https://github.com/kubernetes/minikube/issues/3470","id":392322412,"node_id":"MDU6SXNzdWUzOTIzMjI0MTI=","number":3470,"title":"Minikube looks for config.json in wrong place on Windows","user":{"login":"asampal","id":281639,"node_id":"MDQ6VXNlcjI4MTYzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/281639?v=4","gravatar_id":"","url":"https://api.github.com/users/asampal","html_url":"https://github.com/asampal","followers_url":"https://api.github.com/users/asampal/followers","following_url":"https://api.github.com/users/asampal/following{/other_user}","gists_url":"https://api.github.com/users/asampal/gists{/gist_id}","starred_url":"https://api.github.com/users/asampal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asampal/subscriptions","organizations_url":"https://api.github.com/users/asampal/orgs","repos_url":"https://api.github.com/users/asampal/repos","events_url":"https://api.github.com/users/asampal/events{/privacy}","received_events_url":"https://api.github.com/users/asampal/received_events","type":"User","site_admin":false},"labels":[{"id":445614926,"node_id":"MDU6TGFiZWw0NDU2MTQ5MjY=","url":"https://api.github.com/repos/kubernetes/minikube/labels/drv/hyperv","name":"drv/hyperv","color":"b7d5f4","default":false},{"id":358920088,"node_id":"MDU6TGFiZWwzNTg5MjAwODg=","url":"https://api.github.com/repos/kubernetes/minikube/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":379212557,"node_id":"MDU6TGFiZWwzNzkyMTI1NTc=","url":"https://api.github.com/repos/kubernetes/minikube/labels/os/windows","name":"os/windows","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-18T20:26:27Z","updated_at":"2018-12-24T14:45:32Z","closed_at":null,"author_association":"NONE","body":"This is a BUG REPORT\r\n\r\n**Environment**: Windows 10, build 1803\r\n\r\n**Minikube version** :  v0.31.0\r\n\r\nfirst config.json\r\n```\r\n{\r\n    \"MachineConfig\": {\r\n        \"MinikubeISO\": \"https://storage.googleapis.com/minikube/iso/minikube-v0.31.0.iso\",\r\n        \"Memory\": 2048,\r\n        \"CPUs\": 2,\r\n        \"DiskSize\": 20000,\r\n        \"VMDriver\": \"hyperv\",\r\n        \"ContainerRuntime\": \"\",\r\n        \"HyperkitVpnKitSock\": \"\",\r\n        \"HyperkitVSockPorts\": [],\r\n        \"XhyveDiskDriver\": \"ahci-hd\",\r\n        \"DockerEnv\": null,\r\n        \"InsecureRegistry\": null,\r\n        \"RegistryMirror\": null,\r\n        \"HostOnlyCIDR\": \"192.168.99.1/24\",\r\n        \"HypervVirtualSwitch\": \"minikube\",\r\n        \"KvmNetwork\": \"default\",\r\n        \"DockerOpt\": null,\r\n        \"DisableDriverMounts\": false,\r\n        \"NFSShare\": [],\r\n        \"NFSSharesRoot\": \"/nfsshares\",\r\n        \"UUID\": \"\",\r\n        \"GPU\": false\r\n    },\r\n    \"KubernetesConfig\": {\r\n        \"KubernetesVersion\": \"\",\r\n        \"NodeIP\": \"\",\r\n        \"NodeName\": \"\",\r\n        \"APIServerName\": \"\",\r\n        \"APIServerNames\": null,\r\n        \"APIServerIPs\": null,\r\n        \"DNSDomain\": \"\",\r\n        \"ContainerRuntime\": \"\",\r\n        \"CRISocket\": \"\",\r\n        \"NetworkPlugin\": \"\",\r\n        \"FeatureGates\": \"\",\r\n        \"ServiceCIDR\": \"\",\r\n        \"ExtraOptions\": null,\r\n        \"ShouldLoadCachedImages\": false\r\n    }\r\n}\r\n```\r\nSecond config.json:\r\n```\r\n{\r\n    \"ConfigVersion\": 3,\r\n    \"Driver\": {\r\n        \"IPAddress\": \"\",\r\n        \"MachineName\": \"minikube\",\r\n        \"SSHUser\": \"docker\",\r\n        \"SSHPort\": 0,\r\n        \"SSHKeyPath\": \"\",\r\n        \"StorePath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\",\r\n        \"SwarmMaster\": false,\r\n        \"SwarmHost\": \"\",\r\n        \"SwarmDiscovery\": \"\",\r\n        \"Boot2DockerURL\": \"file://C:/Users/asampaleanu/.minikube/cache/iso/minikube-v0.31.0.iso\",\r\n        \"VSwitch\": \"minikube\",\r\n        \"DiskSize\": 20000,\r\n        \"MemSize\": 2048,\r\n        \"CPU\": 2,\r\n        \"MacAddr\": \"\",\r\n        \"VLanID\": 0,\r\n        \"DisableDynamicMemory\": false\r\n    },\r\n    \"DriverName\": \"hyperv\",\r\n    \"HostOptions\": {\r\n        \"Driver\": \"\",\r\n        \"Memory\": 0,\r\n        \"Disk\": 0,\r\n        \"EngineOptions\": {\r\n            \"ArbitraryFlags\": null,\r\n            \"Dns\": null,\r\n            \"GraphDir\": \"\",\r\n            \"Env\": null,\r\n            \"Ipv6\": false,\r\n            \"InsecureRegistry\": [\r\n                \"10.96.0.0/12\"\r\n            ],\r\n            \"Labels\": null,\r\n            \"LogLevel\": \"\",\r\n            \"StorageDriver\": \"\",\r\n            \"SelinuxEnabled\": false,\r\n            \"TlsVerify\": false,\r\n            \"RegistryMirror\": null,\r\n            \"InstallURL\": \"\"\r\n        },\r\n        \"SwarmOptions\": {\r\n            \"IsSwarm\": false,\r\n            \"Address\": \"\",\r\n            \"Discovery\": \"\",\r\n            \"Agent\": false,\r\n            \"Master\": false,\r\n            \"Host\": \"\",\r\n            \"Image\": \"\",\r\n            \"Strategy\": \"\",\r\n            \"Heartbeat\": 0,\r\n            \"Overcommit\": 0,\r\n            \"ArbitraryFlags\": null,\r\n            \"ArbitraryJoinFlags\": null,\r\n            \"Env\": null,\r\n            \"IsExperimental\": false\r\n        },\r\n        \"AuthOptions\": {\r\n            \"CertDir\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\",\r\n            \"CaCertPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\certs\\\\ca.pem\",\r\n            \"CaPrivateKeyPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\certs\\\\ca-key.pem\",\r\n            \"CaCertRemotePath\": \"\",\r\n            \"ServerCertPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\machines\\\\server.pem\",\r\n            \"ServerKeyPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\machines\\\\server-key.pem\",\r\n            \"ClientKeyPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\certs\\\\key.pem\",\r\n            \"ServerCertRemotePath\": \"\",\r\n            \"ServerKeyRemotePath\": \"\",\r\n            \"ClientCertPath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\\\\certs\\\\cert.pem\",\r\n            \"ServerCertSANs\": null,\r\n            \"StorePath\": \"C:\\\\Users\\\\asampaleanu\\\\.minikube\"\r\n        }\r\n    },\r\n    \"Name\": \"minikube\"\r\n}\r\n```\r\n\r\n**What happened**:\r\nI tried running the following in Powershell:\r\n`New-VMSwitch –Name \"minikube\" –AllowManagement $True –NetAdapterName \"Ethernet\"` - succeeded\r\n```\r\nPS C:\\WINDOWS\\system32> minikube start --vm-driver=hyperv --hyperv-virtual-switch=minikube\r\nStarting local Kubernetes v1.10.0 cluster...\r\nStarting VM...\r\nDownloading Minikube ISO\r\n 178.87 MB / 178.87 MB [============================================] 100.00% 0s\r\n```\r\n\r\nAfter the second command, there was some processing showing some progress for a while, but the prompt never returned. Hyper-V manager showed the VM to be running. Then, from another promp I tried:\r\n\r\n```\r\nPS C:\\Users\\asampaleanu> minikube status\r\nhost:\r\nkubelet:\r\napiserver:\r\nkubectl:\r\nPS C:\\Users\\asampaleanu> minikube dashboard\r\nminikube is not currently running so the service cannot be accessed\r\nPS C:\\Users\\asampaleanu>\r\n```\r\nWith a file search tool, I see the files generated during installation:\r\n![image](https://user-images.githubusercontent.com/281639/50179573-5d699180-02d5-11e9-9c94-23e39fe0ff42.png)\r\n\r\nThis sequence of operations was the second attempt to install minikube. The first time, along with the above files, there were two additional files generated (probably because I attempted some additional minikube commands). \r\nminikube.exe.WARNING showed:\r\n\r\n```\r\nLog file created at: 2018/12/18 10:28:00\r\nRunning on machine: ASAMPALEANU-5590\r\nBinary: Built with gc go1.10.1 for windows/amd64\r\nLog line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg\r\nW1218 10:28:00.328210    2184 root.go:146] Error reading config file at C:\\Users\\asampaleanu\\.minikube\\config\\config.json: open C:\\Users\\asampaleanu\\.minikube\\config\\config.json: The system cannot find the path specified.\r\n```\r\nminikube.exe.INFO showed:\r\n\r\n```\r\nLog file created at: 2018/12/18 10:28:00\r\nRunning on machine: ASAMPALEANU-5590\r\nBinary: Built with gc go1.10.1 for windows/amd64\r\nLog line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg\r\nW1218 10:28:00.328210    2184 root.go:146] Error reading config file at C:\\Users\\asampaleanu\\.minikube\\config\\config.json: open C:\\Users\\asampaleanu\\.minikube\\config\\config.json: The system cannot find the path specified.\r\nI1218 10:28:00.340210    2184 notify.go:121] Checking for updates...\r\nI1218 10:28:00.431212    2184 cluster.go:69] Machine does not exist... provisioning new machine\r\nI1218 10:28:00.431212    2184 cluster.go:70] Provisioning machine with config: {MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v0.31.0.iso Memory:2048 CPUs:2 DiskSize:20000 VMDriver:hyperv ContainerRuntime: HyperkitVpnKitSock: HyperkitVSockPorts:[] XhyveDiskDriver:ahci-hd DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch:minikube KvmNetwork:default Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: GPU:false}\r\n```\r\nAs you can see from comparing the location of the two config.json files to what minikube expected (based on the INFO and WARNING output), it seems that config.json is being looked for at a different path location than where either of the two config.json files are found (not sure which one is being sought).\r\n\r\n**What you expected to happen**:\r\nI expected minikube to properly install, and start up a cluster, with control returning to the command prompt.\r\n \r\n**How to reproduce it** (as minimally and precisely as possible):\r\n1 - put minikube.exe on the path\r\n2 - from an administrative Powershell console, run the command mentioned above for creating the network switch and then running kubernetes.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/comments/449742134","html_url":"https://github.com/kubernetes/minikube/issues/3470#issuecomment-449742134","issue_url":"https://api.github.com/repos/kubernetes/minikube/issues/3470","id":449742134,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTc0MjEzNA==","user":{"login":"asampal","id":281639,"node_id":"MDQ6VXNlcjI4MTYzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/281639?v=4","gravatar_id":"","url":"https://api.github.com/users/asampal","html_url":"https://github.com/asampal","followers_url":"https://api.github.com/users/asampal/followers","following_url":"https://api.github.com/users/asampal/following{/other_user}","gists_url":"https://api.github.com/users/asampal/gists{/gist_id}","starred_url":"https://api.github.com/users/asampal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asampal/subscriptions","organizations_url":"https://api.github.com/users/asampal/orgs","repos_url":"https://api.github.com/users/asampal/repos","events_url":"https://api.github.com/users/asampal/events{/privacy}","received_events_url":"https://api.github.com/users/asampal/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T14:45:32Z","updated_at":"2018-12-24T14:45:32Z","author_association":"NONE","body":"@AlanCarlyle in my case I had started with a clean system wrt minikube."}}
{"actor":{"display_login":"asampal"}}