Skip to content

Instantly share code, notes, and snippets.

@kbrwn
Created October 25, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbrwn/78825f3525baef6d747b24bb93c35935 to your computer and use it in GitHub Desktop.
Save kbrwn/78825f3525baef6d747b24bb93c35935 to your computer and use it in GitHub Desktop.
$ cat /etc/coreos/update.conf
reboot-strategy=off
GROUP=stable
$ cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=835.13.0
VERSION_ID=835.13.0
BUILD_ID=
PRETTY_NAME="CoreOS 835.13.0"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
$ sudo systemctl stop locksmithd.service
$ sudo cgpt show /dev/vda
start size part contents
0 1 Hybrid MBR
1 1 Pri GPT header
2 32 Pri GPT table
4096 262144 1 Label: "EFI-SYSTEM"
Type: EFI System Partition
UUID: D1C81D64-F50C-4960-918C-CD24813B4E3D
Attr: Legacy BIOS Bootable
266240 4096 2 Label: "BIOS-BOOT"
Type: BIOS Boot Partition
UUID: B69671A9-168C-4F75-AD03-04AB36213F5C
270336 2097152 3 Label: "USR-A"
Type: Alias for coreos-rootfs
UUID: 7130C94A-213A-4E5A-8E26-6CCE9662F132
Attr: priority=1 tries=0 successful=1
2367488 2097152 4 Label: "USR-B"
Type: Alias for coreos-rootfs
UUID: E03DD35C-7C2D-4A47-B3FE-27F15780A57C
Attr: priority=0 tries=0 successful=0
4464640 262144 6 Label: "OEM"
Type: Alias for linux-data
UUID: 1B516BF6-EF1F-403C-81C3-E951B61675C0
4726784 131072 7 Label: "OEM-CONFIG"
Type: CoreOS reserved
UUID: 186B6AAD-D8A6-4E41-8D07-1CBB03427340
4857856 12943360 9 Label: "ROOT"
Type: CoreOS auto-resize
UUID: 5A7B506A-71D9-4122-897C-2CB04EF06DC5
17805279 32 Sec GPT table
17805311 1 Sec GPT header
$ sudo update_engine_client -update
[1025/202339:INFO:update_engine_client.cc(243)] Initiating update check and install.
[1025/202339:INFO:update_engine_client.cc(248)] Waiting for update to complete.
LAST_CHECKED_TIME=1477427019
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.090589
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.261786
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.513546
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.664603
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.886152
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
LAST_CHECKED_TIME=1477427019
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATED_NEED_REBOOT
NEW_VERSION=0.0.0.0
NEW_SIZE=213129575
[1025/202424:INFO:update_engine_client.cc(193)] Update succeeded -- reboot needed.
$ sus
start size part contents
0 1 Hybrid MBR
1 1 Pri GPT header
2 32 Pri GPT table
4096 262144 1 Label: "EFI-SYSTEM"
Type: EFI System Partition
UUID: D1C81D64-F50C-4960-918C-CD24813B4E3D
Attr: Legacy BIOS Bootable
266240 4096 2 Label: "BIOS-BOOT"
Type: BIOS Boot Partition
UUID: B69671A9-168C-4F75-AD03-04AB36213F5C
270336 2097152 3 Label: "USR-A"
Type: Alias for coreos-rootfs
UUID: 7130C94A-213A-4E5A-8E26-6CCE9662F132
Attr: priority=1 tries=0 successful=1
2367488 2097152 4 Label: "USR-B"
Type: Alias for coreos-rootfs
UUID: E03DD35C-7C2D-4A47-B3FE-27F15780A57C
Attr: priority=2 tries=1 successful=0
4464640 262144 6 Label: "OEM"
Type: Alias for linux-data
UUID: 1B516BF6-EF1F-403C-81C3-E951B61675C0
4726784 131072 7 Label: "OEM-CONFIG"
Type: CoreOS reserved
UUID: 186B6AAD-D8A6-4E41-8D07-1CBB03427340
4857856 12943360 9 Label: "ROOT"
Type: CoreOS auto-resize
UUID: 5A7B506A-71D9-4122-897C-2CB04EF06DC5
17805279 32 Sec GPT table
17805311 1 Sec GPT header
$ sudo systemctl restart update-engine.service
$ sudo cgpt show /dev/vda
start size part contents
0 1 Hybrid MBR
1 1 Pri GPT header
2 32 Pri GPT table
4096 262144 1 Label: "EFI-SYSTEM"
Type: EFI System Partition
UUID: D1C81D64-F50C-4960-918C-CD24813B4E3D
Attr: Legacy BIOS Bootable
266240 4096 2 Label: "BIOS-BOOT"
Type: BIOS Boot Partition
UUID: B69671A9-168C-4F75-AD03-04AB36213F5C
270336 2097152 3 Label: "USR-A"
Type: Alias for coreos-rootfs
UUID: 7130C94A-213A-4E5A-8E26-6CCE9662F132
Attr: priority=1 tries=0 successful=1
2367488 2097152 4 Label: "USR-B"
Type: Alias for coreos-rootfs
UUID: E03DD35C-7C2D-4A47-B3FE-27F15780A57C
Attr: priority=2 tries=1 successful=0
4464640 262144 6 Label: "OEM"
Type: Alias for linux-data
UUID: 1B516BF6-EF1F-403C-81C3-E951B61675C0
4726784 131072 7 Label: "OEM-CONFIG"
Type: CoreOS reserved
UUID: 186B6AAD-D8A6-4E41-8D07-1CBB03427340
4857856 12943360 9 Label: "ROOT"
Type: CoreOS auto-resize
UUID: 5A7B506A-71D9-4122-897C-2CB04EF06DC5
17805279 32 Sec GPT table
17805311 1 Sec GPT header
$ sudo update_engine_client -status
[1025/202910:INFO:update_engine_client.cc(233)] Querying Update Engine status...
LAST_CHECKED_TIME=0
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATED_NEED_REBOOT
NEW_VERSION=0.0.0.0
NEW_SIZE=0
$ journalctl -u update-engine -f
-- Logs begin at Tue 2016-10-25 20:17:46 UTC. --
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: Is Delta Payload = 0
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: Max Failure Count Per Url = 10
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: Disable Payload Backoff = 1
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202801:INFO:payload_state.cc(377)] Payload Attempt Number = 1
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202801:INFO:payload_state.cc(400)] Current URL Index = 0
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202801:INFO:payload_state.cc(421)] Current URL (Url0)'s Failure Count = 0
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202801:INFO:payload_state.cc(448)] Backoff Expiry Time = 1/1/1601 0:00:00 GMT
Oct 25 20:28:01 coreos_production_qemu-835-13-0 systemd[1]: Started Update Engine.
Oct 25 20:28:01 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202801:INFO:update_check_scheduler.cc(82)] Next update check in 2m12s
Oct 25 20:28:46 coreos_production_qemu-835-13-0 update_engine[958]: [1025/202846:INFO:update_attempter.cc(485)] Updating boot flags...
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:prefs.cc(51)] certificate-report-to-send-update not present in /var/lib/update_engine/prefs
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:prefs.cc(51)] certificate-report-to-send-download not present in /var/lib/update_engine/prefs
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:update_attempter.cc(132)] Not updating b/c we already updated and we're waiting for reboot, we'll ping Omaha instead
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:action_processor.cc(36)] ActionProcessor::StartProcessing: OmahaRequestAction
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:omaha_request_action.cc(257)] Posting an Omaha request to
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:omaha_request_action.cc(258)] Request: <?xml version="1.0" encoding="UTF-8"?>
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: <request protocol="3.0" version="CoreOSUpdateEngine-0.1.0.0" updaterversion="CoreOSUpdateEngine-0.1.0.0" installsource="scheduler" ismachine="1">
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: <os version="Chateau" platform="CoreOS" sp=""></os>
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: <app appid="{e96281a6-d1af-4bde-9a0a-97b76e56dc57}" version="" track="stable" bootid="" oem="" oemversion="" alephversion="" machineid="" lang="" board="" hardware_class="" delta_okay="true" >
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: <ping active="1"></ping>
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: </app>
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: </request>
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:libcurl_http_fetcher.cc(48)] Starting/Resuming transfer
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:libcurl_http_fetcher.cc(164)] Setting up curl options for HTTPS
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:ERROR:libcurl_http_fetcher.cc(243)] Unable to get http response code: <url> malformed
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:libcurl_http_fetcher.cc(274)] Transfer resulted in an error (0), 0 bytes downloaded
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:omaha_request_action.cc(574)] Omaha request response:
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:ERROR:omaha_request_action.cc(588)] Omaha request network transfer failed.
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:action_processor.cc(65)] ActionProcessor::ActionComplete: finished last action of type OmahaRequestAction
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:action_processor.cc(73)] ActionProcessor::ActionComplete: finished last action of type OmahaRequestAction
Oct 25 20:30:13 coreos_production_qemu-835-13-0 update_engine[958]: [1025/203013:INFO:update_check_scheduler.cc(82)] Next update check in 43m8s
$ sudo cgpt show /dev/vda
start size part contents
0 1 Hybrid MBR
1 1 Pri GPT header
2 32 Pri GPT table
4096 262144 1 Label: "EFI-SYSTEM"
Type: EFI System Partition
UUID: D1C81D64-F50C-4960-918C-CD24813B4E3D
Attr: Legacy BIOS Bootable
266240 4096 2 Label: "BIOS-BOOT"
Type: BIOS Boot Partition
UUID: B69671A9-168C-4F75-AD03-04AB36213F5C
270336 2097152 3 Label: "USR-A"
Type: Alias for coreos-rootfs
UUID: 7130C94A-213A-4E5A-8E26-6CCE9662F132
Attr: priority=2 tries=0 successful=1
2367488 2097152 4 Label: "USR-B"
Type: Alias for coreos-rootfs
UUID: E03DD35C-7C2D-4A47-B3FE-27F15780A57C
Attr: priority=1 tries=1 successful=0
4464640 262144 6 Label: "OEM"
Type: Alias for linux-data
UUID: 1B516BF6-EF1F-403C-81C3-E951B61675C0
4726784 131072 7 Label: "OEM-CONFIG"
Type: CoreOS reserved
UUID: 186B6AAD-D8A6-4E41-8D07-1CBB03427340
4857856 12943360 9 Label: "ROOT"
Type: CoreOS auto-resize
UUID: 5A7B506A-71D9-4122-897C-2CB04EF06DC5
17805279 32 Sec GPT table
17805311 1 Sec GPT header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment