ec2: systemctl restart cloud-init after upgrade 17.1.46 -> 17.2.30
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
High
|
Chad Smith |
Bug Description
During proposed SRU testing, I discovered an upgrade issue for EC2 customers who don't reboot their instances after cloud-init upgrade and instead issue the commandline 'systemctl restart cloud-init'.
The following traceback is caused by the new instance document changes added in rev https:/
What this changeset didn't account for is our pickled ec2localdatasource from earlier get_data runs, not persisting an Ec2LocalDatasou
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: cloud-init 17.2-30-
ProcVersionSign
Uname: Linux 4.4.0-1050-aws x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CloudName: Amazon - Ec2
Date: Thu Feb 8 23:42:52 2018
Ec2AMI: ami-c9a693ac
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t2.micro
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-init-
2018-02-08 23:35:05,664 - DataSourceEc2.
2018-02-08 23:39:12,559 - util.py[WARNING]: failed stage init
AttributeError: 'DataSourceEc2L
2018-02-08 23:42:09,995 - util.py[WARNING]: failed stage init
AttributeError: 'DataSourceEc2L
user_data.txt:
Related branches
- Scott Moser: Pending requested
-
Diff: 722 lines (+396/-58)11 files modifiedcloudinit/cmd/status.py (+4/-1)
cloudinit/cmd/tests/test_status.py (+28/-7)
cloudinit/net/__init__.py (+46/-17)
cloudinit/net/tests/test_init.py (+91/-0)
cloudinit/sources/DataSourceEc2.py (+6/-0)
cloudinit/ssh_util.py (+1/-4)
debian/changelog (+11/-0)
tests/cloud_tests/collect.py (+3/-2)
tests/cloud_tests/platforms/lxd/instance.py (+106/-26)
tests/unittests/test_datasource/test_ec2.py (+58/-1)
tests/unittests/test_sshutil.py (+42/-0)
- Scott Moser: Pending requested
-
Diff: 722 lines (+396/-58)11 files modifiedcloudinit/cmd/status.py (+4/-1)
cloudinit/cmd/tests/test_status.py (+28/-7)
cloudinit/net/__init__.py (+46/-17)
cloudinit/net/tests/test_init.py (+91/-0)
cloudinit/sources/DataSourceEc2.py (+6/-0)
cloudinit/ssh_util.py (+1/-4)
debian/changelog (+11/-0)
tests/cloud_tests/collect.py (+3/-2)
tests/cloud_tests/platforms/lxd/instance.py (+106/-26)
tests/unittests/test_datasource/test_ec2.py (+58/-1)
tests/unittests/test_sshutil.py (+42/-0)
- Server Team CI bot: Needs Fixing (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 108 lines (+64/-1)2 files modifiedcloudinit/sources/DataSourceEc2.py (+6/-0)
tests/unittests/test_datasource/test_ec2.py (+58/-1)
Changed in cloud-init: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
This bug was fixed in the package cloud-init - 17.2-34- g644048e3- 0ubuntu1
--------------- g644048e3- 0ubuntu1) bionic; urgency=medium
cloud-init (17.2-34-
* New upstream snapshot.
- EC2: Fix get_instance_id called against cached datasource pickle.
[Chad Smith] (LP: #1748354)
- cli: fix cloud-init status to report running when before result.json
[Chad Smith] (LP: #1747965)
- net: accept network-config in netplan format for renaming interfaces
[Ryan Harper] (LP: #1709715)
- Fix ssh keys validation in ssh_util [Tatiana Kholkina]
-- Scott Moser <email address hidden> Fri, 09 Feb 2018 17:04:03 -0500