Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hosts/ubuntu: apt-get update before unattended-upgrades #7

Merged
merged 1 commit into from
May 22, 2018

Conversation

SpComb
Copy link
Contributor

@SpComb SpComb commented May 22, 2018

Fixes #4

@SpComb SpComb added the enhancement New feature or request label May 22, 2018
@SpComb
Copy link
Contributor Author

SpComb commented May 22, 2018

Testing

2018/05/22 16:15:53 hosts/ubuntu probe success: systemd.HostInfo{KernelName:"Linux", Hostname:"ubuntu-xenial", OperatingSystemPrettyName:"Ubuntu 16.04.4 LTS", KernelVersion:"#153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018", KernelRelease:"4.4.0-127-generic"}
2018/05/22 16:15:53 Probed host: hosts.HostInfo{OperatingSystem:"Ubuntu", OperatingSystemRelease:"16.04.4", Kernel:"Linux", KernelRelease:"4.4.0-127-generic"}
2018/05/22 16:15:53 Using --kube-namespace=kube-system --kube-daemonset=host-upgrades --kube-node=ubuntu-xenial
2018/05/22 16:15:53 kube/lock kube-system/daemonsets/host-upgrades: get
2018/05/22 16:15:53 kube/lock kube-system/daemonsets/host-upgrades: test pharos-host-upgrades.kontena.io/lock=: free
2018/05/22 16:15:53 Using kube lock kube-system/daemonsets/host-upgrades (acquired=false, value=)
2018/05/22 16:15:53 Using --schedule="0 * * * *", first upgrade at: 2018-05-22 16:16:00 +0000 UTC (in 6.217162167s)
2018/05/22 16:16:00 Acquiring kube lock...
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: wait
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: get
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: test pharos-host-upgrades.kontena.io/lock=: free
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: acquire
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: set pharos-host-upgrades.kontena.io/lock=ubuntu-xenial
2018/05/22 16:16:00 kube/lock kube-system/daemonsets/host-upgrades: update
2018/05/22 16:16:00 Running host upgrades...
2018/05/22 16:16:00 hosts/ubuntu upgrade: [/usr/bin/unattended-upgrade -v]
2018/05/22 16:16:00 systemd/exec host-upgrades.service: cmd=[/usr/bin/apt-get update]
2018/05/22 16:16:00 systemd/exec host-upgrades.service: reset
2018/05/22 16:16:00 systemd/exec host-upgrades.service: start []dbus.Property{dbus.Property{Name:"ExecStart", Value:dbus.Variant{sig:dbus.Signature{str:"a(sasb)"}, value:[]dbus.execStart{dbus.execStart{Path:"/usr/bin/apt-get", Args:[]string{"/usr/bin/apt-get", "update"}, UncleanIsFailure:false}}}}, dbus.Property{Name:"Type", Value:dbus.Variant{sig:dbus.Signature{str:"s"}, value:"oneshot"}}}
2018/05/22 16:16:00 systemd/exec host-upgrades.service: wait
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.371655 +0000 UTC: Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.372186 +0000 UTC: Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.409008 +0000 UTC: Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.611001 +0000 UTC: Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.629588 +0000 UTC: Hit:5 https://download.docker.com/linux/ubuntu xenial InRelease
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.715019 +0000 UTC: Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [203 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:00.846317 +0000 UTC: Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [783 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:01.01078 +0000 UTC: Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [631 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:01.050847 +0000 UTC: Get:10 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [65.4 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:01.157435 +0000 UTC: Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [253 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:01.4695 +0000 UTC: Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [351 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:01.677598 +0000 UTC: Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [131 kB]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:02.073587 +0000 UTC: Hit:7 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:04.951037 +0000 UTC: Fetched 2,739 kB in 1s (1,381 kB/s)
2018/05/22 16:16:06 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:06.024002 +0000 UTC: Reading package lists...
2018/05/22 16:16:06 systemd/exec host-upgrades.service: done
2018/05/22 16:16:06 systemd/exec host-upgrades.service: cmd=[/usr/bin/unattended-upgrade -v]
2018/05/22 16:16:06 systemd/exec host-upgrades.service: reset
2018/05/22 16:16:06 systemd/exec host-upgrades.service: start []dbus.Property{dbus.Property{Name:"ExecStart", Value:dbus.Variant{sig:dbus.Signature{str:"a(sasb)"}, value:[]dbus.execStart{dbus.execStart{Path:"/usr/bin/unattended-upgrade", Args:[]string{"/usr/bin/unattended-upgrade", "-v"}, UncleanIsFailure:false}}}}, dbus.Property{Name:"Type", Value:dbus.Variant{sig:dbus.Signature{str:"s"}, value:"oneshot"}}}
2018/05/22 16:16:06 systemd/exec host-upgrades.service: wait
2018/05/22 16:16:08 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:06.314007 +0000 UTC: Initial blacklisted packages:
2018/05/22 16:16:08 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:06.314134 +0000 UTC: Initial whitelisted packages:
2018/05/22 16:16:08 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:06.314226 +0000 UTC: Starting unattended upgrades script
2018/05/22 16:16:08 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:06.314512 +0000 UTC: Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial']
2018/05/22 16:16:08 systemd/exec host-upgrades.service: journal 2018-05-22 16:16:08.246073 +0000 UTC: No packages found that can be upgraded unattended and no pending auto-removals
2018/05/22 16:16:08 systemd/exec host-upgrades.service: done
2018/05/22 16:16:08 kube/lock kube-system/daemonsets/host-upgrades: get
2018/05/22 16:16:08 kube/lock kube-system/daemonsets/host-upgrades: release
2018/05/22 16:16:08 kube/lock kube-system/daemonsets/host-upgrades: clear pharos-host-upgrades.kontena.io/lock=ubuntu-xenial
2018/05/22 16:16:08 kube/lock kube-system/daemonsets/host-upgrades: update
2018/05/22 16:16:08 Schedule run completed in 8.317362923s, next upgrade at: 2018-05-22 16:17:00 +0000 UTC (in 51.681524944s)

@SpComb SpComb merged commit 6993d54 into master May 22, 2018
@SpComb SpComb deleted the feature/ubuntu-apt-update branch May 22, 2018 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant