[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-05-05 Thread James Falcon
This bug is believed to be fixed in cloud-init in version 21.2. If this
is still a problem for you, please make a comment and set the state back
to New

Thank you.

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu1~16.04.2

---
cloud-init (21.1-19-gbad84ad4-0ubuntu1~16.04.2) xenial; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 14:06:47
-0500

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu1~18.04.2

---
cloud-init (21.1-19-gbad84ad4-0ubuntu1~18.04.2) bionic; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 14:02:27
-0500

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu1~20.04.2

---
cloud-init (21.1-19-gbad84ad4-0ubuntu1~20.04.2) focal; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 14:00:12
-0500

** Changed in: cloud-init (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu1~20.10.2

---
cloud-init (21.1-19-gbad84ad4-0ubuntu1~20.10.2) groovy; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 13:58:19
-0500

** Changed in: cloud-init (Ubuntu Groovy)
   Status: Fix Committed => Fix Released

** Changed in: cloud-init (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu3

---
cloud-init (21.1-19-gbad84ad4-0ubuntu3) hirsute; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 13:41:21
-0500

** Changed in: cloud-init (Ubuntu Hirsute)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread James Falcon
For regression testing, I ran the suite of cloud-init integration tests
against hirsute.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-27 Thread Dan Watkins
For hirsute, the bug does not reproduce on upgrade from the release day
image.  However, it can present when upgrading between releases.

To test, I launched a groovy instance with an old cloud-init (the same
image as previously for groovy validation).

I performed a `do-release-upgrade -d` (-d, as upgrades to hirsute are
not yet enabled) and rebooted: I saw the Traceback from this bug, as
expected.

I then launched another groovy instance, performed another release
upgrade but, before rebooting, installed cloud-init from hirsute-
proposed.  On reboot, I then did not see the Traceback for this bug.

** Tags added: verification-done-hirsute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-23 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init -
21.1-19-gbad84ad4-0ubuntu3

---
cloud-init (21.1-19-gbad84ad4-0ubuntu3) hirsute; urgency=medium

  * cherry-pick 83f6bbfb: Fix unpickle for source paths missing run_dir
(#863) (LP: #1899299)
  * cherry-pick d132356c: fix error on upgrade caused by new vendordata2
attributes (LP: #1922739)

 -- James Falcon   Mon, 19 Apr 2021 13:41:21
-0500

** Changed in: cloud-init (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-22 Thread Dan Watkins
For xenial, I'm performing the same process but with the
`ubuntu:bb8e87956495` image, serial of 20201210.

UPGRADE does fail:

$ CLOUD_INIT_OS_IMAGE=ubuntu:bb8e87956495::ubuntu::xenial 
CLOUD_INIT_CLOUD_INIT_SOURCE=UPGRADE pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
FAILED 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
 - assert False

$ CLOUD_INIT_OS_IMAGE=ubuntu:bb8e87956495::ubuntu::xenial 
CLOUD_INIT_CLOUD_INIT_SOURCE=PROPOSED pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
PASSED

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-22 Thread Dan Watkins
For bionic, I'm performing the same process but with the
`ubuntu:c2bdb694ecc2` image, serial of 20201211.1.

UPGRADE does fail:

$ CLOUD_INIT_OS_IMAGE=ubuntu:c2bdb694ecc2::ubuntu::bionic 
CLOUD_INIT_CLOUD_INIT_SOURCE=UPGRADE pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
FAILED 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
 - assert False

$ CLOUD_INIT_OS_IMAGE=ubuntu:c2bdb694ecc2::ubuntu::bionic 
CLOUD_INIT_CLOUD_INIT_SOURCE=PROPOSED pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
PASSED

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-22 Thread Dan Watkins
For focal, I'm performing the same process but with the
`ubuntu:b321e3832dbb` image, serial of 20201210.

UPGRADE does fail:

$ CLOUD_INIT_OS_IMAGE=ubuntu:b321e3832dbb::ubuntu::focal 
CLOUD_INIT_CLOUD_INIT_SOURCE=UPGRADE pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
FAILED 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
 - assert False

and PROPOSED passes:

$ CLOUD_INIT_OS_IMAGE=ubuntu:b321e3832dbb::ubuntu::focal 
CLOUD_INIT_CLOUD_INIT_SOURCE=PROPOSED pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
PASSED

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-22 Thread Dan Watkins
For groovy, I'm testing with the `ubuntu:bac1692e9ec7` image, with a
serial of 20201210.  First, I confirm that the test does trigger the bug
on UPGRADE to the version of cloud-init in the release:

$ CLOUD_INIT_OS_IMAGE=ubuntu:bac1692e9ec7::ubuntu::groovy 
CLOUD_INIT_CLOUD_INIT_SOURCE=UPGRADE pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
FAILED 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
 - assert False

and I then verify that the same test passes with the package in groovy-
proposed:

$ CLOUD_INIT_OS_IMAGE=ubuntu:bac1692e9ec7::ubuntu::groovy 
CLOUD_INIT_CLOUD_INIT_SOURCE=PROPOSED pytest 
tests/integration_tests/test_upgrade.py::test_subsequent_boot_of_upgraded_package
...
PASSED

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-22 Thread Dan Watkins
I'm performing verification of this locally using the cloud-init
integration testing framework.  Specifically, I'm running
test_upgrade_package[0] with the following diff applied (to trigger this
bug):

@@ -104,18 +104,19 @@ def test_upgrade(session_cloud: IntegrationCloud):
 
 @pytest.mark.ci
 @pytest.mark.ubuntu
-def test_upgrade_package(session_cloud: IntegrationCloud):
-if get_validated_source(session_cloud) != CloudInitSource.DEB_PACKAGE:
-not_run_message = 'Test only supports upgrading to build deb'
+def test_subsequent_boot_of_upgraded_package(session_cloud: IntegrationCloud):
+source = get_validated_source(session_cloud)
+if not source.installs_new_version():
 if os.environ.get('TRAVIS'):
 # If this isn't running on CI, we should know
-pytest.fail(not_run_message)
+pytest.fail(UNSUPPORTED_INSTALL_METHOD_MSG.format(source))
 else:
-pytest.skip(not_run_message)
+pytest.skip(UNSUPPORTED_INSTALL_METHOD_MSG.format(source))
+return  # type checking doesn't understand that skip raises
 
 launch_kwargs = {'image_id': session_cloud.released_image_id}
 
 with session_cloud.launch(launch_kwargs=launch_kwargs) as instance:
-instance.install_deb()
+instance.install_new_cloud_init(source, take_snapshot=False, 
clean=False)
 instance.restart()
 assert instance.execute('cloud-init status --wait --long').ok

The important changes here are that I can run it against both the
release pocket and -proposed, and that it doesn't perform a clean any
longer.  I'll propose these changes to cloud-init upstream after
validation is complete.

[0] https://github.com/canonical/cloud-
init/blob/master/tests/integration_tests/test_upgrade.py#L105-L121

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-21 Thread James P
Verified fixed for 20.04.2 LTS (5.4.0-72-generic)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Taylor Yu
Verified on 20.04.2 LTS focal.

Got this in the wild in /var/log/cloud-init.log after upgrading from
20.3-2-g371b392c-0ubuntu1~20.04.1 to 21.1-19-gbad84ad4-0ubuntu1~20.04.1:

2021-04-16 19:42:33,005 - util.py[WARNING]: failed stage init
2021-04-16 19:42:33,009 - util.py[DEBUG]: failed stage init
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 652, in stat
us_wrapper
ret = functor(name, args)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 376, in main
_init
init.update()
  File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 371, in update
self._store_raw_vendordata(self.datasource.get_vendordata2_raw(),
  File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 506,
 in get_vendordata2_raw
return self.vendordata2_raw
AttributeError: 'DataSourceDigitalOcean' object has no attribute 'vendordata2_ra
w'

Installed 21.1-19-gbad84ad4-0ubuntu1~20.04.2; rebooted. Confirmed no
traceback in /var/log/cloud-init.log. cloud-init status --long reports:

status: done
time: Tue, 20 Apr 2021 23:32:42 +
detail:
DataSourceDigitalOcean

instead of an error as with the previous version.

Thanks!


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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread glitsj16
I originally filed https://bugs.launchpad.net/ubuntu/+source/cloud-
init/+bug/1924755 and got informed that was a duplicate of this bug. I
just installed the proposed fix from
https://launchpad.net/ubuntu/+source/cloud-
init/21.1-19-gbad84ad4-0ubuntu1~16.04.2. I can confirm this fixes it for
me on Xenial.

Thanks to all involved, regards.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Brian Murray
Hello Dan, or anyone else affected,

Accepted cloud-init into focal-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/cloud-
init/21.1-19-gbad84ad4-0ubuntu1~20.04.2 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: cloud-init (Ubuntu Focal)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Brian Murray
Hello Dan, or anyone else affected,

Accepted cloud-init into groovy-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/cloud-
init/21.1-19-gbad84ad4-0ubuntu1~20.10.2 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
groovy to verification-done-groovy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-groovy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: cloud-init (Ubuntu Groovy)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed verification-needed-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cloud-init (Ubuntu Groovy)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cloud-init (Ubuntu Focal)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cloud-init (Ubuntu Bionic)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cloud-init (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-19 Thread James Falcon
** Description changed:

  === Begin SRU Template ===
  [Impact]
  In PR #777, we added 'vendordata2' and 'vendordata2_raw' attributes to the 
DataSource class, but didn't use the upgrade framework to deal with an unpickle 
after upgrade. Because of this, anybody upgrading their cloud-init from an 
older version to 21.1 who hasn't also run `cloud-init clean` will have 
cloud-init fail with a traceback.
  
  The change here should fix that failure.
  
  [Test Plan]
  Launch an instance or install a cloud-init package using version earlier than 
21.1-19-gbad84ad4-0ubuntu1 (if downgrading also run `cloud-init clean`).
  
  Upgrade to 21.1-19-gbad84ad4-0ubuntu1 or later, then reboot (without
  running `cloud-init clean`).
  
  On un-patched versions, `cloud-init status` will show error, and there
  will be a traceback in /var/log/cloud-init.log. Patched versions should
  show no error or traceback.
  
  [Where problems could occur]
- Any problem here would mean we're continuing to unpickle data incorrectly, 
thus we'd see similar behavior to the bug we're fixing. 
+ Any problem here would mean we're continuing to unpickle data incorrectly, 
thus we'd see similar behavior to the bug we're fixing.
  
  [Other Info]
  Pull request: https://github.com/canonical/cloud-init/pull/869
- A test has also been added upstream and to our CI to prevent these types of 
errors from happening in the future: 
https://github.com/canonical/cloud-init/blob/master/tests/integration_tests/test_upgrade.py#L107
+ Commit: 
https://github.com/canonical/cloud-init/commit/d132356cc361abef2d90d4073438f3ab759d5964
+ 
+ A test has also been added upstream and to our CI to prevent these types
+ of errors from happening in the future: https://github.com/canonical
+ /cloud-init/blob/master/tests/integration_tests/test_upgrade.py#L107
  
  == End SRU Template ==
  
  == Original Description ==
  
  On a test LXD VM instance, I see:
  
  2021-04-06 14:05:11,296 - util.py[WARNING]: failed stage init
  2021-04-06 14:05:11,302 - util.py[DEBUG]: failed stage init
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 652, in 
status_wrapper
  ret = functor(name, args)
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 376, in 
main_init
  init.update()
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 371, in 
update
  self._store_raw_vendordata(self.datasource.get_vendordata2_raw(),
    File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 
506, in get_vendordata2_raw
  return self.vendordata2_raw
  AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-19 Thread James Falcon
** Description changed:

+ === Begin SRU Template ===
+ [Impact]
+ In PR #777, we added 'vendordata2' and 'vendordata2_raw' attributes to the 
DataSource class, but didn't use the upgrade framework to deal with an unpickle 
after upgrade. Because of this, anybody upgrading their cloud-init from an 
older version to 21.1 who hasn't also run `cloud-init clean` will have 
cloud-init fail with a traceback.
+ 
+ The change here should fix that failure.
+ 
+ [Test Plan]
+ Launch an instance or install a cloud-init package using version earlier than 
21.1-19-gbad84ad4-0ubuntu1 (if downgrading also run `cloud-init clean`).
+ 
+ Upgrade to 21.1-19-gbad84ad4-0ubuntu1 or later, then reboot (without
+ running `cloud-init clean`).
+ 
+ On un-patched versions, `cloud-init status` will show error, and there
+ will be a traceback in /var/log/cloud-init.log. Patched versions should
+ show no error or traceback.
+ 
+ [Where problems could occur]
+ Any problem here would mean we're continuing to unpickle data incorrectly, 
thus we'd see similar behavior to the bug we're fixing. 
+ 
+ [Other Info]
+ Pull request: https://github.com/canonical/cloud-init/pull/869
+ A test has also been added upstream and to our CI to prevent these types of 
errors from happening in the future: 
https://github.com/canonical/cloud-init/blob/master/tests/integration_tests/test_upgrade.py#L107
+ 
+ == End SRU Template ==
+ 
+ == Original Description ==
+ 
  On a test LXD VM instance, I see:
  
  2021-04-06 14:05:11,296 - util.py[WARNING]: failed stage init
  2021-04-06 14:05:11,302 - util.py[DEBUG]: failed stage init
  Traceback (most recent call last):
-   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 652, in 
status_wrapper
- ret = functor(name, args)
-   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 376, in 
main_init
- init.update()
-   File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 371, in 
update
- self._store_raw_vendordata(self.datasource.get_vendordata2_raw(),
-   File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 
506, in get_vendordata2_raw
- return self.vendordata2_raw
+   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 652, in 
status_wrapper
+ ret = functor(name, args)
+   File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 376, in 
main_init
+ init.update()
+   File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 371, in 
update
+ self._store_raw_vendordata(self.datasource.get_vendordata2_raw(),
+   File "/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 
506, in get_vendordata2_raw
+ return self.vendordata2_raw
  AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1922739] Re: AttributeError: 'DataSourceNoCloud' object has no attribute 'vendordata2_raw'

2021-04-19 Thread James Falcon
** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
   Status: New

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

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

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

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

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922739

Title:
  AttributeError: 'DataSourceNoCloud' object has no attribute
  'vendordata2_raw'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1922739/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs