yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #52878
[Bug 1596690] Re: restoring from datasource without dsmode causes stacktrace
This bug was fixed in the package cloud-init - 0.7.7~bzr1246-0ubuntu1
---------------
cloud-init (0.7.7~bzr1246-0ubuntu1) yakkety; urgency=medium
* New upstream snapshot.
- fix restoring from a datasource that did not have dsmode (LP: #1596690)
-- Scott Moser <smoser@xxxxxxxxxx> Mon, 27 Jun 2016 16:28:39 -0400
** Changed in: cloud-init (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1596690
Title:
restoring from datasource without dsmode causes stacktrace
Status in cloud-init:
New
Status in cloud-init package in Ubuntu:
Fix Released
Bug description:
On reboot, if cloud-init found a cached /var/lib/cloud/instance/obj.pkl it would restore from it.
If that class did not have a 'dsmode', then main would stack trace like:
| "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 530, in status_wrapper
| ret = functor(name, args)
| File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 247, in main_init
| if mode == sources.DSMODE_NETWORK and init.datasource.dsmode != mode:
| AttributeError: 'DataSourceAzureNet' object has no attribute 'dsmode'
This would affect upgrade and reboot on any datasource that did not
have a dsmode previously.
That list is
cloudinit/sources/DataSourceAzure.py
cloudinit/sources/DataSourceBigstep.py
cloudinit/sources/DataSourceCloudStack.py
cloudinit/sources/DataSourceDigitalOcean.py
cloudinit/sources/DataSourceEc2.py
cloudinit/sources/DataSourceGCE.py
cloudinit/sources/DataSourceMAAS.py
cloudinit/sources/DataSourceNone.py
cloudinit/sources/DataSourceOVF.py
cloudinit/sources/DataSourceSmartOS.py
The non-broken datasources then were the ones that previously had a dsmode:
cloudinit/sources/DataSourceAltCloud.py
cloudinit/sources/DataSourceCloudSigma.py
cloudinit/sources/DataSourceConfigDrive.py
cloudinit/sources/DataSourceNoCloud.py
cloudinit/sources/DataSourceOpenNebula.py
cloudinit/sources/DataSourceOpenStack.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1596690/+subscriptions
References