← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1596690] Re: restoring from datasource without dsmode causes stacktrace

 

fixed in trunk at revno 1246

** Changed in: cloud-init
   Importance: Undecided => High

** Changed in: cloud-init
       Status: New => Fix Committed

** Changed in: cloud-init
     Assignee: (unassigned) => Scott Moser (smoser)

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => High

** Also affects: cloud-init (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu Xenial)
       Status: New => Fix Committed

** Changed in: cloud-init (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu Xenial)
     Assignee: (unassigned) => Scott Moser (smoser)

** Changed in: cloud-init (Ubuntu)
     Assignee: (unassigned) => Scott Moser (smoser)

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1596690

Title:
  restoring from datasource without dsmode causes stacktrace

Status in cloud-init:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Xenial:
  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