{"action":"created","issue":{"url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/52","repository_url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook","labels_url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/52/comments","events_url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/52/events","html_url":"https://github.com/ReSearchITEng/kubeadm-playbook/issues/52","id":371634340,"node_id":"MDU6SXNzdWUzNzE2MzQzNDA=","number":52,"title":"unmarshaling JSON: json: cannot unmarshal string into Go value of type runtime.TypeMeta","user":{"login":"smarty1234","id":8603508,"node_id":"MDQ6VXNlcjg2MDM1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/8603508?v=4","gravatar_id":"","url":"https://api.github.com/users/smarty1234","html_url":"https://github.com/smarty1234","followers_url":"https://api.github.com/users/smarty1234/followers","following_url":"https://api.github.com/users/smarty1234/following{/other_user}","gists_url":"https://api.github.com/users/smarty1234/gists{/gist_id}","starred_url":"https://api.github.com/users/smarty1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarty1234/subscriptions","organizations_url":"https://api.github.com/users/smarty1234/orgs","repos_url":"https://api.github.com/users/smarty1234/repos","events_url":"https://api.github.com/users/smarty1234/events{/privacy}","received_events_url":"https://api.github.com/users/smarty1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-18T17:31:25Z","updated_at":"2018-10-18T21:47:32Z","closed_at":null,"author_association":"NONE","body":"What could be causing the error\r\nWhen I run the roles/master/tasks/main.yml\r\n`fatal: [dockerregistry-1.xxx.com]: FAILED! => {\r\n    \"changed\": true,\r\n    \"cmd\": [\r\n        \"/usr/bin/kubeadm\",\r\n        \"init\",\r\n        \"--ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml\",\r\n        \"--ignore-preflight-errors=Port-10250\",\r\n        \"--config\",\r\n        \"/etc/kubernetes/kubeadm-master.conf\"\r\n    ],\r\n    \"delta\": \"0:00:00.085650\",\r\n    \"end\": \"2018-10-18 17:26:14.406764\",\r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"_raw_params\": \"/usr/bin/kubeadm init   --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Port-10250 --config /etc/kubernetes/kubeadm-master.conf\",\r\n            \"_uses_shell\": false,\r\n            \"argv\": null,\r\n            \"chdir\": null,\r\n            \"creates\": null,\r\n            \"executable\": null,\r\n            \"removes\": null,\r\n            \"stdin\": null,\r\n            \"warn\": true\r\n        }\r\n    },\r\n    \"msg\": \"non-zero return code\",\r\n    \"rc\": 1,\r\n    \"start\": \"2018-10-18 17:26:14.321114\",\r\n    \"stderr\": \"error unmarshaling JSON: json: cannot unmarshal string into Go value of type runtime.TypeMeta\",\r\n    \"stderr_lines\": [\r\n        \"error unmarshaling JSON: json: cannot unmarshal string into Go value of type runtime.TypeMeta\"\r\n    ],\r\n    \"stdout\": \"\",\r\n    \"stdout_lines\": []\r\n}`\r\n\r\nThe config file generated is as follows\r\n`cat /etc/kubernetes/kubeadm-master.conf.orig\r\n'{u''imageRepository'': u''k8s.gcr.io'', ''controlPlaneEndpoint'': Undefined, u''kind'':\r\n    u''ClusterConfiguration'', u''networking'': {u''podSubnet'': u''10.244.0.0/16''},\r\n    u''clusterName'': u''dockerregistry'', u''kubernetesVersion'': u''v1.12.0'', u''apiVersion'':\r\n    u''kubeadm.k8s.io/v1alpha3'', u''apiServerCertSANs'': [u''dockerregistry-1.xxx.com'',\r\n    u''oamregistry-1'', u''dockerregistry-1.xxx.com''], ''etcd'': {''external'':\r\n    {u''certFile'': u''/etc/kubernetes/pki/apiserver-etcd-client.crt'', ''endpoints'':\r\n    [u''https://dockerregistry-1.xxx.com:2379'', u''https://dockerregistry-2.xxx.com:2379''],\r\n    u''keyFile'': u''/etc/kubernetes/pki/apiserver-etcd-client.key'', u''caFile'':\r\n    u''/etc/kubernetes/pki/etcd/ca.crt''}}, u''apiServerExtraArgs'': {u''service-node-port-range'':\r\n    u''79-32767'', u''endpoint-reconciler-type'': u''lease''}}'\r\n\r\n---\r\n'{u''apiEndpoint'': {u''bindPort'': 6443, ''advertiseAddress'': Undefined}, u''kind'':\r\n    u''InitConfiguration'', u''apiVersion'': u''kubeadm.k8s.io/v1alpha3'', u''nodeRegistration'':\r\n    {u''taints'': [{u''effect'': u''NoSchedule'', u''key'': u''node-role.kubernetes.io/master''}]}}'\r\n\r\n---\r\napiVersion: kubeproxy.config.k8s.io/v1alpha1\r\nclusterCIDR: 10.244.0.0/16\r\nkind: KubeProxyConfiguration\r\nmode: ipvs\r\n\r\n---\r\napiVersion: kubelet.config.k8s.io/v1beta1\r\nkind: KubeletConfiguration`"},"comment":{"url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/comments/431175411","html_url":"https://github.com/ReSearchITEng/kubeadm-playbook/issues/52#issuecomment-431175411","issue_url":"https://api.github.com/repos/ReSearchITEng/kubeadm-playbook/issues/52","id":431175411,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTE3NTQxMQ==","user":{"login":"smarty1234","id":8603508,"node_id":"MDQ6VXNlcjg2MDM1MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/8603508?v=4","gravatar_id":"","url":"https://api.github.com/users/smarty1234","html_url":"https://github.com/smarty1234","followers_url":"https://api.github.com/users/smarty1234/followers","following_url":"https://api.github.com/users/smarty1234/following{/other_user}","gists_url":"https://api.github.com/users/smarty1234/gists{/gist_id}","starred_url":"https://api.github.com/users/smarty1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarty1234/subscriptions","organizations_url":"https://api.github.com/users/smarty1234/orgs","repos_url":"https://api.github.com/users/smarty1234/repos","events_url":"https://api.github.com/users/smarty1234/events{/privacy}","received_events_url":"https://api.github.com/users/smarty1234/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T21:47:32Z","updated_at":"2018-10-18T21:47:32Z","author_association":"NONE","body":"Reg. etcd certs creation, these should not depend on masterha_vip variable at all\r\n----\r\nxxxxxxx223:tmp mpadhi$ ls cert\r\ncerts.tar.gz\tetcd-certs.tar.gz\tmaster-certs.tar.gz\r\n\r\ncerts:\r\n10.xxx.xxx.7\t-> this get nothing because probably my vip was master1 IP - so same IP address  with 10.xxx.xxx.8 got copied to 10.xxx.xxx.7's /root/kubeadmcfg.yaml -> so etcd failed\r\n10.xxx.xxx.8-->primary master or master 1 - this gets content like certs/pki \r\n\r\nI also had to make the following work around `- name: force use vip for master name (MasterHA case)\r\n  set_fact: master_name=\"{{ custom.networking.dnsDomain }}\"` to replace your master_fqdn in a few places"}}
{"actor":{"display_login":"smarty1234"}}