{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/3498","repository_url":"https://api.github.com/repos/kubernetes-incubator/kubespray","labels_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/3498/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/3498/comments","events_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/3498/events","html_url":"https://github.com/kubernetes-incubator/kubespray/pull/3498","id":368419872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjAzMDc1","number":3498,"title":"Automatically infer bootstrap_os","user":{"login":"gabibbo97","id":3660694,"node_id":"MDQ6VXNlcjM2NjA2OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3660694?v=4","gravatar_id":"","url":"https://api.github.com/users/gabibbo97","html_url":"https://github.com/gabibbo97","followers_url":"https://api.github.com/users/gabibbo97/followers","following_url":"https://api.github.com/users/gabibbo97/following{/other_user}","gists_url":"https://api.github.com/users/gabibbo97/gists{/gist_id}","starred_url":"https://api.github.com/users/gabibbo97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabibbo97/subscriptions","organizations_url":"https://api.github.com/users/gabibbo97/orgs","repos_url":"https://api.github.com/users/gabibbo97/repos","events_url":"https://api.github.com/users/gabibbo97/events{/privacy}","received_events_url":"https://api.github.com/users/gabibbo97/received_events","type":"User","site_admin":false},"labels":[{"id":485769464,"node_id":"MDU6TGFiZWw0ODU3Njk0NjQ=","url":"https://api.github.com/repos/kubernetes-incubator/kubespray/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":679109943,"node_id":"MDU6TGFiZWw2NzkxMDk5NDM=","url":"https://api.github.com/repos/kubernetes-incubator/kubespray/labels/size/M","name":"size/M","color":"eebb00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-09T22:14:50Z","updated_at":"2018-10-10T09:01:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/pulls/3498","html_url":"https://github.com/kubernetes-incubator/kubespray/pull/3498","diff_url":"https://github.com/kubernetes-incubator/kubespray/pull/3498.diff","patch_url":"https://github.com/kubernetes-incubator/kubespray/pull/3498.patch"},"body":"Solves #3488\r\n\r\nTests done:\r\n\r\nUbuntu 18.04\r\n\r\n```\r\nTASK [bootstrap-os : Fetch /etc/os-release] ************************************\r\nTuesday 09 October 2018  23:50:48 +0200 (0:00:00.131)       0:00:00.549 ******* \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : Set bootstrap_os] *****************************************\r\nTuesday 09 October 2018  23:50:49 +0200 (0:00:00.204)       0:00:00.754 ******* \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nTuesday 09 October 2018  23:50:49 +0200 (0:00:00.132)       0:00:00.887 ******* \r\nok: [k8s-01] => {\r\n    \"os_release\": {\r\n        \"changed\": false, \r\n        \"failed\": false, \r\n        \"rc\": 0, \r\n        \"stderr\": \"Shared connection to 127.0.0.1 closed.\\r\\n\", \r\n        \"stderr_lines\": [\r\n            \"Shared connection to 127.0.0.1 closed.\"\r\n        ], \r\n        \"stdout\": \"NAME=\\\"Ubuntu\\\"\\r\\nVERSION=\\\"18.04.1 LTS (Bionic Beaver)\\\"\\r\\nID=ubuntu\\r\\nID_LIKE=debian\\r\\nPRETTY_NAME=\\\"Ubuntu 18.04.1 LTS\\\"\\r\\nVERSION_ID=\\\"18.04\\\"\\r\\nHOME_URL=\\\"https://www.ubuntu.com/\\\"\\r\\nSUPPORT_URL=\\\"https://help.ubuntu.com/\\\"\\r\\nBUG_REPORT_URL=\\\"https://bugs.launchpad.net/ubuntu/\\\"\\r\\nPRIVACY_POLICY_URL=\\\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\\\"\\r\\nVERSION_CODENAME=bionic\\r\\nUBUNTU_CODENAME=bionic\\r\\n\", \r\n        \"stdout_lines\": [\r\n            \"NAME=\\\"Ubuntu\\\"\", \r\n            \"VERSION=\\\"18.04.1 LTS (Bionic Beaver)\\\"\", \r\n            \"ID=ubuntu\", \r\n            \"ID_LIKE=debian\", \r\n            \"PRETTY_NAME=\\\"Ubuntu 18.04.1 LTS\\\"\", \r\n            \"VERSION_ID=\\\"18.04\\\"\", \r\n            \"HOME_URL=\\\"https://www.ubuntu.com/\\\"\", \r\n            \"SUPPORT_URL=\\\"https://help.ubuntu.com/\\\"\", \r\n            \"BUG_REPORT_URL=\\\"https://bugs.launchpad.net/ubuntu/\\\"\", \r\n            \"PRIVACY_POLICY_URL=\\\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\\\"\", \r\n            \"VERSION_CODENAME=bionic\", \r\n            \"UBUNTU_CODENAME=bionic\"\r\n        ]\r\n    }\r\n}\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nTuesday 09 October 2018  23:50:49 +0200 (0:00:00.129)       0:00:01.017 ******* \r\nok: [k8s-01] => {\r\n    \"bootstrap_os\": \"ubuntu\"\r\n}\r\n```\r\n\r\nCentOS 7\r\n\r\n```\r\nTASK [bootstrap-os : Fetch /etc/os-release] ************************************\r\nWednesday 10 October 2018  00:02:40 +0200 (0:00:00.134)       0:00:00.572 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : Set bootstrap_os] *****************************************\r\nWednesday 10 October 2018  00:02:41 +0200 (0:00:00.562)       0:00:01.135 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:02:41 +0200 (0:00:00.130)       0:00:01.266 ***** \r\nok: [k8s-01] => {\r\n    \"os_release\": {\r\n        \"changed\": false, \r\n        \"failed\": false, \r\n        \"rc\": 0, \r\n        \"stderr\": \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\\r\\nShared connection to 127.0.0.1 closed.\\r\\n\", \r\n        \"stderr_lines\": [\r\n            \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\", \r\n            \"Shared connection to 127.0.0.1 closed.\"\r\n        ], \r\n        \"stdout\": \"NAME=\\\"CentOS Linux\\\"\\r\\nVERSION=\\\"7 (Core)\\\"\\r\\nID=\\\"centos\\\"\\r\\nID_LIKE=\\\"rhel fedora\\\"\\r\\nVERSION_ID=\\\"7\\\"\\r\\nPRETTY_NAME=\\\"CentOS Linux 7 (Core)\\\"\\r\\nANSI_COLOR=\\\"0;31\\\"\\r\\nCPE_NAME=\\\"cpe:/o:centos:centos:7\\\"\\r\\nHOME_URL=\\\"https://www.centos.org/\\\"\\r\\nBUG_REPORT_URL=\\\"https://bugs.centos.org/\\\"\\r\\n\\r\\nCENTOS_MANTISBT_PROJECT=\\\"CentOS-7\\\"\\r\\nCENTOS_MANTISBT_PROJECT_VERSION=\\\"7\\\"\\r\\nREDHAT_SUPPORT_PRODUCT=\\\"centos\\\"\\r\\nREDHAT_SUPPORT_PRODUCT_VERSION=\\\"7\\\"\\r\\n\\r\\n\", \r\n        \"stdout_lines\": [\r\n            \"NAME=\\\"CentOS Linux\\\"\", \r\n            \"VERSION=\\\"7 (Core)\\\"\", \r\n            \"ID=\\\"centos\\\"\", \r\n            \"ID_LIKE=\\\"rhel fedora\\\"\", \r\n            \"VERSION_ID=\\\"7\\\"\", \r\n            \"PRETTY_NAME=\\\"CentOS Linux 7 (Core)\\\"\", \r\n            \"ANSI_COLOR=\\\"0;31\\\"\", \r\n            \"CPE_NAME=\\\"cpe:/o:centos:centos:7\\\"\", \r\n            \"HOME_URL=\\\"https://www.centos.org/\\\"\", \r\n            \"BUG_REPORT_URL=\\\"https://bugs.centos.org/\\\"\", \r\n            \"\", \r\n            \"CENTOS_MANTISBT_PROJECT=\\\"CentOS-7\\\"\", \r\n            \"CENTOS_MANTISBT_PROJECT_VERSION=\\\"7\\\"\", \r\n            \"REDHAT_SUPPORT_PRODUCT=\\\"centos\\\"\", \r\n            \"REDHAT_SUPPORT_PRODUCT_VERSION=\\\"7\\\"\", \r\n            \"\"\r\n        ]\r\n    }\r\n}\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:02:41 +0200 (0:00:00.129)       0:00:01.395 ***** \r\nok: [k8s-01] => {\r\n    \"bootstrap_os\": \"centos\"\r\n}\r\n\r\n```\r\n\r\nCoreOS\r\n\r\n```\r\nTASK [bootstrap-os : Fetch /etc/os-release] ************************************\r\nWednesday 10 October 2018  00:07:52 +0200 (0:00:00.136)       0:00:00.542 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : Set bootstrap_os] *****************************************\r\nWednesday 10 October 2018  00:07:52 +0200 (0:00:00.357)       0:00:00.900 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:07:53 +0200 (0:00:00.130)       0:00:01.030 ***** \r\nok: [k8s-01] => {\r\n    \"os_release\": {\r\n        \"changed\": false, \r\n        \"failed\": false, \r\n        \"rc\": 0, \r\n        \"stderr\": \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\\r\\nShared connection to 127.0.0.1 closed.\\r\\n\", \r\n        \"stderr_lines\": [\r\n            \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\", \r\n            \"Shared connection to 127.0.0.1 closed.\"\r\n        ], \r\n        \"stdout\": \"NAME=\\\"Container Linux by CoreOS\\\"\\r\\nID=coreos\\r\\nVERSION=1855.4.0\\r\\nVERSION_ID=1855.4.0\\r\\nBUILD_ID=2018-09-11-0003\\r\\nPRETTY_NAME=\\\"Container Linux by CoreOS 1855.4.0 (Rhyolite)\\\"\\r\\nANSI_COLOR=\\\"38;5;75\\\"\\r\\nHOME_URL=\\\"https://coreos.com/\\\"\\r\\nBUG_REPORT_URL=\\\"https://issues.coreos.com\\\"\\r\\nCOREOS_BOARD=\\\"amd64-usr\\\"\\r\\n\", \r\n        \"stdout_lines\": [\r\n            \"NAME=\\\"Container Linux by CoreOS\\\"\", \r\n            \"ID=coreos\", \r\n            \"VERSION=1855.4.0\", \r\n            \"VERSION_ID=1855.4.0\", \r\n            \"BUILD_ID=2018-09-11-0003\", \r\n            \"PRETTY_NAME=\\\"Container Linux by CoreOS 1855.4.0 (Rhyolite)\\\"\", \r\n            \"ANSI_COLOR=\\\"38;5;75\\\"\", \r\n            \"HOME_URL=\\\"https://coreos.com/\\\"\", \r\n            \"BUG_REPORT_URL=\\\"https://issues.coreos.com\\\"\", \r\n            \"COREOS_BOARD=\\\"amd64-usr\\\"\"\r\n        ]\r\n    }\r\n}\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:07:53 +0200 (0:00:00.127)       0:00:01.158 ***** \r\nok: [k8s-01] => {\r\n    \"bootstrap_os\": \"coreos\"\r\n}\r\n\r\n```\r\n\r\nFedora 28\r\n\r\n```\r\nTASK [bootstrap-os : Fetch /etc/os-release] ************************************\r\nWednesday 10 October 2018  00:09:30 +0200 (0:00:00.131)       0:00:00.548 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : Set bootstrap_os] *****************************************\r\nWednesday 10 October 2018  00:09:30 +0200 (0:00:00.420)       0:00:00.968 ***** \r\nok: [k8s-01]\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:09:31 +0200 (0:00:00.129)       0:00:01.098 ***** \r\nok: [k8s-01] => {\r\n    \"os_release\": {\r\n        \"changed\": false, \r\n        \"failed\": false, \r\n        \"rc\": 0, \r\n        \"stderr\": \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\\r\\nShared connection to 127.0.0.1 closed.\\r\\n\", \r\n        \"stderr_lines\": [\r\n            \"Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\", \r\n            \"Shared connection to 127.0.0.1 closed.\"\r\n        ], \r\n        \"stdout\": \"NAME=Fedora\\r\\nVERSION=\\\"28 (Cloud Edition)\\\"\\r\\nID=fedora\\r\\nVERSION_ID=28\\r\\nPLATFORM_ID=\\\"platform:f28\\\"\\r\\nPRETTY_NAME=\\\"Fedora 28 (Cloud Edition)\\\"\\r\\nANSI_COLOR=\\\"0;34\\\"\\r\\nCPE_NAME=\\\"cpe:/o:fedoraproject:fedora:28\\\"\\r\\nHOME_URL=\\\"https://fedoraproject.org/\\\"\\r\\nSUPPORT_URL=\\\"https://fedoraproject.org/wiki/Communicating_and_getting_help\\\"\\r\\nBUG_REPORT_URL=\\\"https://bugzilla.redhat.com/\\\"\\r\\nREDHAT_BUGZILLA_PRODUCT=\\\"Fedora\\\"\\r\\nREDHAT_BUGZILLA_PRODUCT_VERSION=28\\r\\nREDHAT_SUPPORT_PRODUCT=\\\"Fedora\\\"\\r\\nREDHAT_SUPPORT_PRODUCT_VERSION=28\\r\\nPRIVACY_POLICY_URL=\\\"https://fedoraproject.org/wiki/Legal:PrivacyPolicy\\\"\\r\\nVARIANT=\\\"Cloud Edition\\\"\\r\\nVARIANT_ID=cloud\\r\\n\", \r\n        \"stdout_lines\": [\r\n            \"NAME=Fedora\", \r\n            \"VERSION=\\\"28 (Cloud Edition)\\\"\", \r\n            \"ID=fedora\", \r\n            \"VERSION_ID=28\", \r\n            \"PLATFORM_ID=\\\"platform:f28\\\"\", \r\n            \"PRETTY_NAME=\\\"Fedora 28 (Cloud Edition)\\\"\", \r\n            \"ANSI_COLOR=\\\"0;34\\\"\", \r\n            \"CPE_NAME=\\\"cpe:/o:fedoraproject:fedora:28\\\"\", \r\n            \"HOME_URL=\\\"https://fedoraproject.org/\\\"\", \r\n            \"SUPPORT_URL=\\\"https://fedoraproject.org/wiki/Communicating_and_getting_help\\\"\", \r\n            \"BUG_REPORT_URL=\\\"https://bugzilla.redhat.com/\\\"\", \r\n            \"REDHAT_BUGZILLA_PRODUCT=\\\"Fedora\\\"\", \r\n            \"REDHAT_BUGZILLA_PRODUCT_VERSION=28\", \r\n            \"REDHAT_SUPPORT_PRODUCT=\\\"Fedora\\\"\", \r\n            \"REDHAT_SUPPORT_PRODUCT_VERSION=28\", \r\n            \"PRIVACY_POLICY_URL=\\\"https://fedoraproject.org/wiki/Legal:PrivacyPolicy\\\"\", \r\n            \"VARIANT=\\\"Cloud Edition\\\"\", \r\n            \"VARIANT_ID=cloud\"\r\n        ]\r\n    }\r\n}\r\n\r\nTASK [bootstrap-os : debug] ****************************************************\r\nWednesday 10 October 2018  00:09:31 +0200 (0:00:00.132)       0:00:01.230 ***** \r\nok: [k8s-01] => {\r\n    \"bootstrap_os\": \"fedora\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/comments/428494441","html_url":"https://github.com/kubernetes-incubator/kubespray/pull/3498#issuecomment-428494441","issue_url":"https://api.github.com/repos/kubernetes-incubator/kubespray/issues/3498","id":428494441,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODQ5NDQ0MQ==","user":{"login":"ant31","id":1044332,"node_id":"MDQ6VXNlcjEwNDQzMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/1044332?v=4","gravatar_id":"","url":"https://api.github.com/users/ant31","html_url":"https://github.com/ant31","followers_url":"https://api.github.com/users/ant31/followers","following_url":"https://api.github.com/users/ant31/following{/other_user}","gists_url":"https://api.github.com/users/ant31/gists{/gist_id}","starred_url":"https://api.github.com/users/ant31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant31/subscriptions","organizations_url":"https://api.github.com/users/ant31/orgs","repos_url":"https://api.github.com/users/ant31/repos","events_url":"https://api.github.com/users/ant31/events{/privacy}","received_events_url":"https://api.github.com/users/ant31/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T09:01:05Z","updated_at":"2018-10-10T09:01:05Z","author_association":"MEMBER","body":"thank you for the PR ! "}}
{"actor":{"display_login":"ant31"}}