kops icon indicating copy to clipboard operation
kops copied to clipboard

Instance protection causing Not Ready state

Open brvtl opened this issue 10 years ago • 6 comments

The cause is a little grey but I believe this was caused by trying to downsize a cluster when the ec2 instances have instance protection applied.

There was a kops cluster with 2 instances. Instance protection was added. I then changed the min instancegroup size to 3. Then back down to 2. I believe it tried to remove an instance that had protection applied.

Below is where I believe the attempted instance termination happens

Nov 30 16:43:03 ip-172-20-101-170 systemd-udevd[14818]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:43:04 ip-172-20-101-170 systemd-udevd[14888]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:43:05 ip-172-20-101-170 systemd-udevd[14922]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:43:10 ip-172-20-101-170 systemd-udevd[14888]: timeout 'bridge-network-interface'
Nov 30 16:43:16 ip-172-20-101-170 systemd-udevd[14922]: timeout 'bridge-network-interface'
Nov 30 16:43:20 ip-172-20-101-170 systemd-udevd[14818]: timeout 'bridge-network-interface'
Nov 30 16:43:26 ip-172-20-101-170 systemd-udevd[14922]: timeout 'net.agent'
Nov 30 16:43:32 ip-172-20-101-170 systemd-udevd[14888]: timeout 'net.agent'
Nov 30 16:44:04 ip-172-20-101-170 systemd-udevd[14818]: timeout 'net.agent'
Nov 30 16:44:09 ip-172-20-101-170 systemd-udevd[14922]: timeout '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/veth5dbe8777 --prefix=/proc/sys/net/ipv4/neigh/veth5dbe8777 --prefix=/proc/sys/net/ipv6/conf/veth5dbe8777 --prefix=/proc/sys/net/ipv6/neigh/veth5dbe8777'
Nov 30 16:44:16 ip-172-20-101-170 systemd-udevd[14888]: timeout '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/veth610a21d2 --prefix=/proc/sys/net/ipv4/neigh/veth610a21d2 --prefix=/proc/sys/net/ipv6/conf/veth610a21d2 --prefix=/proc/sys/net/ipv6/neigh/veth610a21d2'
Nov 30 16:44:21 ip-172-20-101-170 systemd-udevd[14818]: timeout '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/veth6cc93662 --prefix=/proc/sys/net/ipv4/neigh/veth6cc93662 --prefix=/proc/sys/net/ipv6/conf/veth6cc93662 --prefix=/proc/sys/net/ipv6/neigh/veth6cc93662'
Nov 30 16:44:28 ip-172-20-101-170 systemd-udevd[15174]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:44:37 ip-172-20-101-170 systemd-udevd[15296]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:44:56 ip-172-20-101-170 systemd-udevd[15375]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:45:03 ip-172-20-101-170 systemd-udevd[15174]: timeout: killing '/etc/sysconfig/network-scripts/ec2net.hotplug' [15176]
Nov 30 16:45:14 ip-172-20-101-170 systemd-udevd[15375]: timeout: killing '/etc/sysconfig/network-scripts/ec2net.hotplug' [15377]
Nov 30 16:45:28 ip-172-20-101-170 systemd-udevd[15174]: '/etc/sysconfig/network-scripts/ec2net.hotplug' [15176] terminated by signal 9 (Killed)
Nov 30 16:45:40 ip-172-20-101-170 systemd-udevd[15174]: timeout 'bridge-network-interface'
Nov 30 16:46:04 ip-172-20-101-170 systemd-udevd[15375]: timeout: killing 'net.agent' [16080]
Nov 30 16:46:15 ip-172-20-101-170 systemd-udevd[15174]: timeout '/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/vethd339f086 --prefix=/proc/sys/net/ipv4/neigh/vethd339f086 --prefix=/proc/sys/net/ipv6/conf/vethd339f086 --prefix=/proc/sys/net/ipv6/neigh/vethd339f086'
Nov 30 16:46:28 ip-172-20-101-170 systemd-udevd[14818]: timeout '/etc/sysconfig/network-scripts/ec2net.hotplug'
Nov 30 16:46:48 ip-172-20-101-170 systemd-udevd[14818]: timeout: killing '/etc/sysconfig/network-scripts/ec2net.hotplug' [16097]
Nov 30 16:52:20 ip-172-20-101-170 dhclient: DHCPREQUEST on eth0 to 172.20.96.1 port 67
Nov 30 16:52:32 ip-172-20-101-170 dhclient: DHCPACK from 172.20.96.1
Nov 30 16:52:39 ip-172-20-101-170 dhclient: bound to 172.20.101.170 -- renewal in 1460 seconds.
Nov 30 16:52:53 ip-172-20-101-170 systemd-udevd[14818]: '/etc/sysconfig/network-scripts/ec2net.hotplug' [16097] terminated by signal 9 (Killed)
Nov 30 16:52:58 ip-172-20-101-170 systemd-udevd[14818]: timeout 'net.agent'
Nov 30 16:53:06 ip-172-20-101-170 systemd-udevd[14818]: timeout: killing 'net.agent' [16111]
Nov 30 16:53:11 ip-172-20-101-170 systemd-udevd[14888]: timeout: killing '/etc/sysconfig/network-scripts/ec2net.hotplug' [16099]
Nov 30 16:53:19 ip-172-20-101-170 systemd-udevd[14922]: '/etc/sysconfig/network-scripts/ec2net.hotplug' [16100] terminated by signal 9 (Killed)
Nov 30 16:53:32 ip-172-20-101-170 systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
Nov 30 16:59:16 ip-172-20-101-170 systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Nov 30 16:59:16 ip-172-20-101-170 systemd[1]: systemd-journald.service watchdog timeout (limit 1min)!
Nov 30 16:59:27 ip-172-20-101-170 systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
Nov 30 17:00:43 ip-172-20-101-170 systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Nov 30 17:04:33 ip-172-20-101-170 systemd[1]: Received SIGINT.
Nov 30 17:09:00 ip-172-20-101-170 rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="409" x-info="http://www.rsyslog.com"] start
Nov 30 17:09:00 ip-172-20-101-170 rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]

I was working with @justinsb when this happened. What happened was, one instance entered a "Not Ready" state and was unavailable to even ssh until it was rebooted. Once rebooted that instance was still not removed from the cluster (instance protection removed)

brvtl avatar Nov 30 '16 18:11 brvtl

More info please on what the system did

chrislovecnm avatar Nov 30 '16 21:11 chrislovecnm

bump

chrislovecnm avatar Dec 03 '16 20:12 chrislovecnm

I have added all the information I have. I believe @justinsb's intent is to test and see what happens with instance protection enabled as that's the best clue we have as to why this happened at the moment

brvtl avatar Dec 04 '16 08:12 brvtl

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle stale

fejta-bot avatar Dec 21 '17 00:12 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle rotten /remove-lifecycle stale

fejta-bot avatar Jan 20 '18 00:01 fejta-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

fejta-bot avatar Feb 19 '18 00:02 fejta-bot