GCE: cloud-init 17.2.35 no longer processes user data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
SRU update in ubuntu Artful to cloud-init 17.2.35 breaks user-data processing on Google's cloud.
Changes that made it into this release changed how user-data is being processed and it was not being saved in the datasource's userdata. As a result custom #cloud-config is not performed on a google artful instance.
You can see instance-data is properly discovered by cloud-init, but it's not actually being saved as the user-data in the datasource by looking at the 'ds':'user-data' key in /run/cloud-
$ cat /run/cloud-
"instance-data": "{\"user-
"user-data": null,
We should actually see the content of user-data instead of null since instance-data has it.
This is broken on Artful and Bionic, limited to Google's cloud. It would affect xenial too if 17.2.35 publishes to xenial.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 18.1-0ubuntu1 [modified: usr/lib/
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CloudName: GCE - Google Compute Engine
Date: Thu Mar 1 22:04:45 2018
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-init-
user_data.txt:
Related branches
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 70 lines (+26/-9)2 files modifiedcloudinit/sources/DataSourceGCE.py (+7/-8)
tests/unittests/test_datasource/test_gce.py (+19/-1)