lp:~jocha/cloud-init

Owned by Joshua Chan
Get this repository:
git clone https://git.launchpad.net/~jocha/cloud-init
Only Joshua Chan can upload to this repository. If you are Joshua Chan please log in for upload directions.

Branches

Name Last Modified Last Commit
jocha-reboot-bugfix 2018-04-18 22:51:42 UTC 2018-04-18
moved deletion of marker file after it is safe from reboot

Author: Joshua Chan
Author Date: 2018-04-18 22:51:42 UTC

moved deletion of marker file after it is safe from reboot

master 2018-04-18 17:55:17 UTC 2018-04-18
DataSourceSmartOS: fix hang when metadata service is down

Author: Mike Gerdts
Author Date: 2018-04-18 17:55:17 UTC

DataSourceSmartOS: fix hang when metadata service is down

If the metadata service in the host is down while a guest that uses
DataSourceSmartOS is booting, the request from the guest falls into the
bit bucket. When the metadata service is eventually started, the guest
has no awareness of this and does not resend the request. This results in
cloud-init hanging forever with a guest reboot as the only recovery
option.

This fix updates the metadata protocol to implement the initialization
phase, just as is implemented by mdata-get and related utilities. The
initialization phase includes draining all pending data from the serial
port, writing an empty command and getting an expected error message in
reply. If the initialization phase times out, it is retried every five
seconds. Each timeout results in a warning message: "Timeout while
initializing metadata client. Is the host metadata service running?" By
default, warning messages are logged to the console, thus the reason for a
hung boot is readily apparent.

LP: #1667735

12 of 2 results
This repository contains Public information 
Everyone can see this information.

Subscribers