master flannel etcd port

Bug #1485133 reported by Daneyon Hansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Daneyon Hansen

Bug Description

This patch updated the ports used by etcd:

https://bugs.launchpad.net/magnum/+bug/1480025

By doing so, it introduced a bug where the flannel-config service does not start on the k8s master because by default the service uses port 4001 to communicate with etcd. Since etcd's port numbers have been updated, flannel-config uses the old 4001 port and is unable to start. This causes a domino effect of services being unable to start.

Changed in magnum:
assignee: nobody → Daneyon Hansen (danehans)
Changed in magnum:
status: New → In Progress
Revision history for this message
Daneyon Hansen (danehans) wrote :

Thisis the way the flannel-config serviec status should appear:

# systemctl status flannel-config -l
● flannel-config.service
   Loaded: loaded (/etc/systemd/system/flannel-config.service; enabled)
   Active: inactive (dead) since Sun 2015-08-16 23:08:11 UTC; 4min 11s ago
  Process: 846 ExecStart=/usr/local/bin/flannel-config (code=exited, status=0/SUCCESS)
 Main PID: 846 (code=exited, status=0/SUCCESS)

Aug 16 23:08:10 k8-ofvpt2rwhs-0-ebmgcm3x3vld-kube-master-gnaebagomz52.novalocal flannel-config[846]: creating flanneld config in etcd
Aug 16 23:08:11 k8-ofvpt2rwhs-0-ebmgcm3x3vld-kube-master-gnaebagomz52.novalocal systemd[1]: Started flannel-config.service.
Aug 16 23:08:11 k8-ofvpt2rwhs-0-ebmgcm3x3vld-kube-master-gnaebagomz52.novalocal flannel-config[846]: {"action":"set","node":{"key":"/coreos.com/network/config","value":"{\n \"Network\": \"10.100.0.0/16\",\n \"Subnetlen\": 24\n}\n","modifiedIndex":3,"createdIndex":3}}

description: updated
Revision history for this message
Daneyon Hansen (danehans) wrote :

With the flannel-config service working as described above, this is what the flanneld service should looks like on a minion/node:

# systemctl status flanneld -l
● flanneld.service - Flanneld overlay address etcd agent
   Loaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled)
  Drop-In: /etc/systemd/system/flanneld.service.d
           └─flannel-docker-bridge.conf
   Active: active (running) since Sun 2015-08-16 23:08:47 UTC; 6min ago
 Main PID: 842 (flanneld)
   CGroup: /system.slice/flanneld.service
           └─842 /usr/bin/flanneld -etcd-endpoints=http://10.0.0.3:2379 -etcd-prefix=/coreos.com/network

Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.645082 842 main.go:247] Installing signal handlers
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.645105 842 main.go:118] Determining IP address of default interface
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.645526 842 main.go:205] Using 10.0.0.6 as external interface
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.646607 842 subnet.go:320] Picking subnet in range 10.100.1.0 ... 10.100.255.0
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.684015 842 subnet.go:83] Subnet lease acquired: 10.100.75.0/24
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal systemd[1]: Started Flanneld overlay address etcd agent.
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.709945 842 main.go:215] UDP mode initialized
Aug 16 23:08:47 k8-2klur5bwnj-0-asbbgvtgo5cu-kube-minion-e4nyleq3wnny.novalocal flanneld[842]: I0816 23:08:47.709992 842 udp.go:239] Watching for new subnet leases

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/213364
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=5bd5a523068373df9e4e8278d4a1d9b774f65711
Submitter: Jenkins
Branch: master

commit 5bd5a523068373df9e4e8278d4a1d9b774f65711
Author: Daneyon Hansen <email address hidden>
Date: Fri Aug 14 21:57:25 2015 +0000

    Sets FLANNEL_ETCD to 127.0.0.1:2379

    This change sets FLANNEL_ETCD to 127.0.0.1:2379 in
    /etc/sysconfig/flanneld

    Closes-Bug: #1485133

    Change-Id: I0312b3670a6cc15e8dc60bb4509d429165469259

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.