{"action":"closed","issue":{"url":"https://api.github.com/repos/juju-solutions/charm-flannel/issues/18","repository_url":"https://api.github.com/repos/juju-solutions/charm-flannel","labels_url":"https://api.github.com/repos/juju-solutions/charm-flannel/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/juju-solutions/charm-flannel/issues/18/comments","events_url":"https://api.github.com/repos/juju-solutions/charm-flannel/issues/18/events","html_url":"https://github.com/juju-solutions/charm-flannel/issues/18","id":183370626,"number":18,"title":"[ppc64le] flannel does not update k8s subnets if iface changes","user":{"login":"SaMnCo","id":2324599,"avatar_url":"https://avatars.githubusercontent.com/u/2324599?v=3","gravatar_id":"","url":"https://api.github.com/users/SaMnCo","html_url":"https://github.com/SaMnCo","followers_url":"https://api.github.com/users/SaMnCo/followers","following_url":"https://api.github.com/users/SaMnCo/following{/other_user}","gists_url":"https://api.github.com/users/SaMnCo/gists{/gist_id}","starred_url":"https://api.github.com/users/SaMnCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaMnCo/subscriptions","organizations_url":"https://api.github.com/users/SaMnCo/orgs","repos_url":"https://api.github.com/users/SaMnCo/repos","events_url":"https://api.github.com/users/SaMnCo/events{/privacy}","received_events_url":"https://api.github.com/users/SaMnCo/received_events","type":"User","site_admin":false},"labels":[{"id":439854511,"url":"https://api.github.com/repos/juju-solutions/charm-flannel/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-17T09:44:58Z","updated_at":"2017-01-13T20:26:53Z","closed_at":"2017-01-13T20:26:53Z","body":"I deployed flannel for k8s without changing anything. I ended up with an etcd configuration like:\n\n```\nbcruser8@hnode1-15:~$ curl -ks --cert /etc/ssl/flannel/client-cert.pem --key /etc/ssl/flannel/client-key.pem --cacert /etc/ssl/flannel/client-ca.pem https://250.248.110.181:2379/v2/keys/coreos.com/network/subnets | jq '.'\n{\n  \"action\": \"get\",\n  \"node\": {\n    \"key\": \"/coreos.com/network/subnets\",\n    \"dir\": true,\n    \"nodes\": [\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.27.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"172.31.248.79\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"06:fb:3a:b3:f6:a0\\\"}}\",\n        \"expiration\": \"2016-10-18T06:02:07.573703Z\",\n        \"ttl\": 73805,\n        \"modifiedIndex\": 20,\n        \"createdIndex\": 20\n      },\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.43.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"172.31.248.110\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"f6:cd:ea:07:18:15\\\"}}\",\n        \"expiration\": \"2016-10-18T06:04:20.737466Z\",\n        \"ttl\": 73939,\n        \"modifiedIndex\": 22,\n        \"createdIndex\": 22\n      }\n    ],\n    \"modifiedIndex\": 20,\n    \"createdIndex\": 20\n  }\n}\n```\n\nThis didn't work for me as I wanted my interface to be somewhere else, so I ran: \n\n```\njuju config flannel iface=fan-250\n```\n\nwhich gave me\n\n```\nbcruser8@hnode1-15:~$ sudo tail -f /var/log/juju/unit-flannel-2.log \n2016-10-17 09:20:43 INFO juju.worker.uniter resolver.go:121 no operations in progress; waiting for changes\n2016-10-17 09:20:43 INFO juju-log Reactive main running for hook update-status\n2016-10-17 09:20:44 INFO juju-log Invoking reactive handler: reactive/flannel.py:185:set_flannel_version\n2016-10-17 09:20:44 INFO juju.worker.uniter.operation runhook.go:113 ran \"update-status\" hook\n2016-10-17 09:20:44 INFO juju.worker.uniter resolver.go:121 no operations in progress; waiting for changes\n2016-10-17 09:24:13 INFO juju.worker.uniter resolver.go:121 no operations in progress; waiting for changes\n2016-10-17 09:24:14 INFO juju-log Reactive main running for hook config-changed\n2016-10-17 09:24:14 INFO juju-log Invoking reactive handler: reactive/flannel.py:185:set_flannel_version\n2016-10-17 09:24:14 INFO juju.worker.uniter.operation runhook.go:113 ran \"config-changed\" hook\n2016-10-17 09:24:14 INFO juju.worker.uniter resolver.go:121 no operations in progress; waiting for changes\n```\n\nNevertheless, the configuration in etcd has not changed, while it should be: \n\n```\nbcruser8@hnode1-15:~$ curl -ks --cert /etc/ssl/flannel/client-cert.pem --key /etc/ssl/flannel/client-key.pem --cacert /etc/ssl/flannel/client-ca.pem https://250.248.110.181:2379/v2/keys/coreos.com/network/subnets | jq '.'\n{\n  \"action\": \"get\",\n  \"node\": {\n    \"key\": \"/coreos.com/network/subnets\",\n    \"dir\": true,\n    \"nodes\": [\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.27.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"250.248.79.1\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"06:fb:3a:b3:f6:a0\\\"}}\",\n        \"expiration\": \"2016-10-18T06:02:07.573703Z\",\n        \"ttl\": 73805,\n        \"modifiedIndex\": 20,\n        \"createdIndex\": 20\n      },\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.43.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"250.248.110.1\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"f6:cd:ea:07:18:15\\\"}}\",\n        \"expiration\": \"2016-10-18T06:04:20.737466Z\",\n        \"ttl\": 73939,\n        \"modifiedIndex\": 22,\n        \"createdIndex\": 22\n      }\n    ],\n    \"modifiedIndex\": 20,\n    \"createdIndex\": 20\n  }\n}\n```\n\nSo then I removed the relation between flannel and k8s. That gave me an error, but I still forced it. Then I added again the relation (successfully), and now I have: \n\n```\nbcruser8@hnode1-15:~$ curl -ks --cert /etc/ssl/flannel/client-cert.pem --key /etc/ssl/flannel/client-key.pem --cacert /etc/ssl/flannel/client-ca.pem https://250.248.110.181:2379/v2/keys/coreos.com/network/subnets | jq '.'\n{\n  \"action\": \"get\",\n  \"node\": {\n    \"key\": \"/coreos.com/network/subnets\",\n    \"dir\": true,\n    \"nodes\": [\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.27.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"172.31.248.79\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"06:fb:3a:b3:f6:a0\\\"}}\",\n        \"expiration\": \"2016-10-18T06:02:07.573703Z\",\n        \"ttl\": 73427,\n        \"modifiedIndex\": 20,\n        \"createdIndex\": 20\n      },\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.43.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"172.31.248.110\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"f6:cd:ea:07:18:15\\\"}}\",\n        \"expiration\": \"2016-10-18T06:04:20.737466Z\",\n        \"ttl\": 73560,\n        \"modifiedIndex\": 22,\n        \"createdIndex\": 22\n      },\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.91.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"250.248.79.1\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"42:31:8f:e6:b7:dd\\\"}}\",\n        \"expiration\": \"2016-10-18T09:37:27.017682Z\",\n        \"ttl\": 86347,\n        \"modifiedIndex\": 29,\n        \"createdIndex\": 29\n      },\n      {\n        \"key\": \"/coreos.com/network/subnets/10.1.11.0-24\",\n        \"value\": \"{\\\"PublicIP\\\":\\\"250.248.110.1\\\",\\\"BackendType\\\":\\\"vxlan\\\",\\\"BackendData\\\":{\\\"VtepMAC\\\":\\\"da:29:b0:43:ee:1c\\\"}}\",\n        \"expiration\": \"2016-10-18T09:37:34.189083Z\",\n        \"ttl\": 86354,\n        \"modifiedIndex\": 31,\n        \"createdIndex\": 31\n      }\n    ],\n    \"modifiedIndex\": 20,\n    \"createdIndex\": 20\n  }\n}\n```\n\nThoughts? \n"}}
{"actor":{"display_login":"chuckbutler"}}