{"action":"created","issue":{"url":"https://api.github.com/repos/hobby-kube/provisioning/issues/22","repository_url":"https://api.github.com/repos/hobby-kube/provisioning","labels_url":"https://api.github.com/repos/hobby-kube/provisioning/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/hobby-kube/provisioning/issues/22/comments","events_url":"https://api.github.com/repos/hobby-kube/provisioning/issues/22/events","html_url":"https://github.com/hobby-kube/provisioning/issues/22","id":333091134,"node_id":"MDU6SXNzdWUzMzMwOTExMzQ=","number":22,"title":"Hetzner cloud ","user":{"login":"PythonicNinja","id":1098417,"node_id":"MDQ6VXNlcjEwOTg0MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1098417?v=4","gravatar_id":"","url":"https://api.github.com/users/PythonicNinja","html_url":"https://github.com/PythonicNinja","followers_url":"https://api.github.com/users/PythonicNinja/followers","following_url":"https://api.github.com/users/PythonicNinja/following{/other_user}","gists_url":"https://api.github.com/users/PythonicNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/PythonicNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PythonicNinja/subscriptions","organizations_url":"https://api.github.com/users/PythonicNinja/orgs","repos_url":"https://api.github.com/users/PythonicNinja/repos","events_url":"https://api.github.com/users/PythonicNinja/events{/privacy}","received_events_url":"https://api.github.com/users/PythonicNinja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-17T20:39:18Z","updated_at":"2018-06-24T14:52:04Z","closed_at":null,"author_association":"NONE","body":"With current master and basic setup using:\r\nhcloud - provider\r\ncloudflare - dns \r\n\r\n```\r\nmodule.etcd.null_resource.etcd[2]: Provisioning with 'remote-exec'...\r\nmodule.etcd.null_resource.etcd[2] (remote-exec): Connecting to remote host via SSH...\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   Host: 159.69.2.36\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   User: root\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   Password: false\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   Private key: false\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   SSH Agent: true\r\nmodule.etcd.null_resource.etcd[2] (remote-exec):   Checking Host Key: false\r\nmodule.etcd.null_resource.etcd[1] (remote-exec): Connected!\r\nmodule.etcd.null_resource.etcd[0] (remote-exec): Connected!\r\nmodule.etcd.null_resource.etcd[2] (remote-exec): Connected!\r\nmodule.etcd.null_resource.etcd[1] (remote-exec): disabled\r\nmodule.etcd.null_resource.etcd[1] (remote-exec): Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /etc/systemd/system/etcd.service.\r\nmodule.etcd.null_resource.etcd[0] (remote-exec): disabled\r\nmodule.etcd.null_resource.etcd[0] (remote-exec): Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /etc/systemd/system/etcd.service.\r\nmodule.etcd.null_resource.etcd[2] (remote-exec): disabled\r\nmodule.etcd.null_resource.etcd[2] (remote-exec): Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /etc/systemd/system/etcd.service.\r\n\r\nError: Error applying plan:\r\n\r\n3 error(s) occurred:\r\n\r\n* module.etcd.null_resource.etcd[2]: error executing \"/tmp/terraform_2090074829.sh\": Process exited with status 1\r\n* module.etcd.null_resource.etcd[0]: error executing \"/tmp/terraform_1290618796.sh\": Process exited with status 1\r\n* module.etcd.null_resource.etcd[1]: error executing \"/tmp/terraform_423106603.sh\": Process exited with status 1\r\n\r\nTerraform does not automatically rollback in the face of errors.\r\nInstead, your Terraform state file has been partially updated with\r\nany resources that successfully completed. Please address the error\r\nabove and apply again to incrementally change your infrastructure.\r\n```\r\n\r\nI logged into one of the instances and there seem to problem:\r\n```\r\nroot@kube1 ~ # /tmp/terraform_1498877724.sh\r\nenabled\r\nJob for etcd.service failed because the control process exited with error code. See \"systemctl status etcd.service\" and \"journalctl -xe\" for details.\r\nroot@kube1 ~ # systemctl restart etcd.service\r\nJob for etcd.service failed because the control process exited with error code. See \"systemctl status etcd.service\" and \"journalctl -xe\" for details.\r\nroot@kube1 ~ # systemctl status etcd.service\r\n● etcd.service - etcd\r\n   Loaded: loaded (/etc/systemd/system/etcd.service; enabled; vendor preset: enabled)\r\n   Active: activating (start) since Sun 2018-06-17 20:49:33 CEST; 5ms ago\r\n Main PID: 2719 ((etcd))\r\n    Tasks: 0\r\n   Memory: 0B\r\n      CPU: 0\r\n   CGroup: /system.slice/etcd.service\r\n           └─2719 (etcd)\r\n\r\nJun 17 20:49:33 kube1 systemd[1]: Starting etcd...\r\nroot@kube1 ~ # systemctl status etcd.service\r\n● etcd.service - etcd\r\n   Loaded: loaded (/etc/systemd/system/etcd.service; enabled; vendor preset: enabled)\r\n   Active: activating (auto-restart) (Result: exit-code) since Sun 2018-06-17 20:49:38 CEST; 2s ago\r\n  Process: 2725 ExecStart=/opt/etcd/etcd --name kube1 --data-dir /var/lib/etcd --listen-client-urls http://10.0.1.1:2379,http://localhost:2379 --advertise-client-urls http://10.0.1.1:23\r\n Main PID: 2725 (code=exited, status=1/FAILURE)\r\n\r\nJun 17 20:49:38 kube1 systemd[1]: etcd.service: Main process exited, code=exited, status=1/FAILURE\r\nJun 17 20:49:38 kube1 systemd[1]: Failed to start etcd.\r\nJun 17 20:49:38 kube1 systemd[1]: etcd.service: Unit entered failed state.\r\nJun 17 20:49:38 kube1 systemd[1]: etcd.service: Failed with result 'exit-code'.\r\n```\r\n\r\nI assume it's issue with networking between nodes."},"comment":{"url":"https://api.github.com/repos/hobby-kube/provisioning/issues/comments/399762302","html_url":"https://github.com/hobby-kube/provisioning/issues/22#issuecomment-399762302","issue_url":"https://api.github.com/repos/hobby-kube/provisioning/issues/22","id":399762302,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc2MjMwMg==","user":{"login":"pstadler","id":600097,"node_id":"MDQ6VXNlcjYwMDA5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/600097?v=4","gravatar_id":"","url":"https://api.github.com/users/pstadler","html_url":"https://github.com/pstadler","followers_url":"https://api.github.com/users/pstadler/followers","following_url":"https://api.github.com/users/pstadler/following{/other_user}","gists_url":"https://api.github.com/users/pstadler/gists{/gist_id}","starred_url":"https://api.github.com/users/pstadler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pstadler/subscriptions","organizations_url":"https://api.github.com/users/pstadler/orgs","repos_url":"https://api.github.com/users/pstadler/repos","events_url":"https://api.github.com/users/pstadler/events{/privacy}","received_events_url":"https://api.github.com/users/pstadler/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T14:52:04Z","updated_at":"2018-06-24T14:52:04Z","author_association":"MEMBER","body":"Terraform did it again. This is a long lasting issue with dependencies between modules. Every once in a while things stop working. With the current version etcd is getting created before the wireguard modules finishes.\r\n\r\nThey promise to fix this in a future version. See https://github.com/hashicorp/terraform/issues/18239\r\n\r\nUnfortunately, I couln't find a workaround so far."}}
{"actor":{"display_login":"pstadler"}}