Always suggests restarting cloud-init-local
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
needrestart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
An Ubuntu Xenial AWS node up to date with needrestart will always suggest needing to restart cloud-init-local even after a fresh reboot.
root@ip-
Description: Ubuntu 16.04.3 LTS
Release: 16.04
root@ip-
[main] eval /etc/needrestar
[main] running in root-mode
[Core] Using UI 'NeedRestart:
[main] detected systemd
[main] #699 uses obsolete binary /var/tmp/
[main] #699 is not a child
[Core] #1272 is a NeedRestart:
[main] #699 exe => /var/tmp/
[main] #699 unexpected cgroup ''
[main] #699 is cloud-init-
[Kernel] Linux: kernel release 4.4.0-1041-aws, kernel version #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017
Failed to load NeedRestart:
[Kernel/Linux] /boot/vmlinuz-
[Kernel/Linux] /boot/vmlinuz-
[Kernel/Linux] Expected linux version: 4.4.0-1041-aws
Running kernel seems to be up-to-date.
Services to be restarted:
Restart cloud-init-
root@ip-
* cloud-init-
Loaded: loaded (/lib/systemd/
Active: active (exited) since Mon 2017-11-27 13:13:17 MST; 51min ago
Process: 714 ExecStart=
Process: 465 ExecStart=
Main PID: 714 (code=exited, status=0/SUCCESS)
Tasks: 1
Memory: 19.9M
CPU: 794ms
CGroup: /system.
`-699 /var/tmp/
Nov 27 13:13:16 ip-172-31-39-154 dhclient[696]: bound to 172.31.39.154 -- renewal in 1367 seconds.
Nov 27 13:13:16 ip-172-31-39-154 dhclient[699]: receive_packet failed on eth0: Network is down
Nov 27 13:13:17 ip-172-31-39-154 cloud-init[465]: Cloud-init v. 17.1 running 'init-local' at Mon, 27 Nov 2017 20:13:15 +0000. Up 5.66 seconds.
Nov 27 13:13:17 ip-172-31-39-154 systemd[1]: Started Initial cloud-init job (pre-networking).
Nov 27 13:36:04 ip-172-31-39-154 dhclient[699]: DHCPREQUEST of 172.31.39.154 on eth0 to 172.31.32.1 port 67 (xid=0x63ff3185)
Nov 27 13:36:04 ip-172-31-39-154 dhclient[699]: DHCPACK of 172.31.39.154 from 172.31.32.1
Nov 27 13:36:04 ip-172-31-39-154 dhclient[699]: bound to 172.31.39.154 -- renewal in 1444 seconds.
Nov 27 14:00:08 ip-172-31-39-154 dhclient[699]: DHCPREQUEST of 172.31.39.154 on eth0 to 172.31.32.1 port 67 (xid=0x63ff3185)
Nov 27 14:00:08 ip-172-31-39-154 dhclient[699]: DHCPACK of 172.31.39.154 from 172.31.32.1
Nov 27 14:00:08 ip-172-31-39-154 dhclient[699]: bound to 172.31.39.154 -- renewal in 1735 seconds.
root@ip-
UID PID PPID C STIME TTY TIME CMD
root 699 1 0 13:13 ? 00:00:00 /var/tmp/
root 795 1 0 13:13 ? 00:00:00 /sbin/dhclient -1 -v -pf /run/dhclient.
root 2585 2128 0 14:07 pts/0 00:00:00 awk NR==1||
root@ip-
/var/tmp/
total 8
drwxrwxrwt 2 root root 4096 Nov 27 13:13 .
drwxrwxrwt 3 root root 4096 Nov 27 08:56 ..
Of course if I do restart cloud-init-
root@ip-
root@ip-
* cloud-init-
Loaded: loaded (/lib/systemd/
Active: active (exited) since Mon 2017-11-27 14:09:05 MST; 26s ago
Process: 2624 ExecStart=
Process: 2613 ExecStart=
Main PID: 2624 (code=exited, status=0/SUCCESS)
Nov 27 14:09:05 ip-172-31-39-154 systemd[1]: Stopping Initial cloud-init job (pre-networking)...
Nov 27 14:09:05 ip-172-31-39-154 systemd[1]: Stopped Initial cloud-init job (pre-networking).
Nov 27 14:09:05 ip-172-31-39-154 systemd[1]: Starting Initial cloud-init job (pre-networking)...
Nov 27 14:09:05 ip-172-31-39-154 cloud-init[2613]: Cloud-init v. 17.1 running 'init-local' at Mon, 27 Nov 2017 21:09:05 +0000. Up 3354.77 seconds.
Nov 27 14:09:05 ip-172-31-39-154 systemd[1]: Started Initial cloud-init job (pre-networking).
root@ip-
[main] eval /etc/needrestar
[main] running in root-mode
[Core] Using UI 'NeedRestart:
[main] detected systemd
[Core] #1272 is a NeedRestart:
[Kernel] Linux: kernel release 4.4.0-1041-aws, kernel version #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017
Failed to load NeedRestart:
[Kernel/Linux] /boot/vmlinuz-
[Kernel/Linux] /boot/vmlinuz-
[Kernel/Linux] Expected linux version: 4.4.0-1041-aws
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
root@ip-
UID PID PPID C STIME TTY TIME CMD
root 795 1 0 13:13 ? 00:00:00 /sbin/dhclient -1 -v -pf /run/dhclient.
root 2632 2128 0 14:10 pts/0 00:00:00 awk NR==1||
Thank you for maintaining needrestart in Ubuntu.
tags: | added: cloud-images xenial |