[Group.of.nepali.translators] [Bug 1889555] Re: cc_grub_dpkg was fixed to support nvme drives, but didn't clear the state of cc_grub_dpkg and didn't rerun it on upgrades

2020-09-15 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init - 20.3-15-g6d332e5c-
0ubuntu1

---
cloud-init (20.3-15-g6d332e5c-0ubuntu1) groovy; urgency=medium

  * d/cloud-init.postinst: fix the grub install device for NVMe-rooted
instances on upgrade.  (LP: #1889555)
  * d/cloud-init.templates: add RbxCloud to Choices-C.
  * Add d/clean to fully clean the build artifacts.
  * d/control:
- Bump Standards-Version to 4.5.0, no changes needed.
- B-D on debhelper-compat; drop d/compat.
  * Bump the debhelper compat level to 13. Required changes:
- Stop including the dh systemd plugin.
- Switch from dh_systemd_start to dh_installsystemd
  * New upstream snapshot.
- create a shutdown_command method in distro classes (#567)
  [Emmanuel Thomé]
- user_data: remove unused constant (#566)
- network: Fix type and respect name when rendering vlan in
  sysconfig. (#541) [Eduardo Otubo] (LP: #1788915, #1826608)
- Retrieve SSH keys from IMDS first with OVF as a fallback (#509)
  [Thomas Stringer]
- Add jqueuniet as contributor (#569) [Johann Queuniet]
- distros: minor typo fix (#562)
- Bump the integration-requirements versioned dependencies (#565)
  [Paride Legovini]
- network-config-format-v1: fix typo in nameserver example (#564)
  [Stanislas]
- Run cloud-init-local.service after the hv_kvp_daemon (#505)
  [Robert Schweikert]
- Add method type hints for Azure helper (#540) [Johnson Shi]
- systemd: add Before=shutdown.target when Conflicts=shutdown.target is
  used (#546) [Paride Legovini]
- LXD: detach network from profile before deleting it (#542)
  [Paride Legovini] (LP: #1776958)
- redhat spec: add missing BuildRequires (#552) [Paride Legovini]

 -- Chad Smith   Tue, 15 Sep 2020 20:19:10
-0600

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

-- 
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/1889555

Title:
  cc_grub_dpkg was fixed to support nvme drives, but didn't clear the
  state of cc_grub_dpkg and didn't rerun it on upgrades

Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Xenial:
  Fix Committed
Status in cloud-init source package in Bionic:
  Fix Committed
Status in cloud-init source package in Focal:
  Fix Committed
Status in cloud-init source package in Groovy:
  Fix Released

Bug description:
  === Begin SRU Template ===
  [Impact]
  Older versions of cloud-init could misconfigure grub on nvme devices,
  which could prevent instances from booting after a grub upgrade.

  [Test Case]
  For focal, bionic, and xenial verify the following:
  1. on an affected instance, test that installing the new version of 
cloud-init appropriately updates debconf
  2. on an affected instance, modify of the debconf settings and test that 
installing the new version of cloud-init does not touch those values
  3. in a container, confirm that cloud-init does not touch the values
  4. in an unaffected instance (i.e. one without an NVMe root), confirm that 
cloud-init does not touch the values

  Steps for test 1:
  # Find an old affected image with
  aws ec2 describe-images --filters "Name=name,Values=Ubuntu *"

  # Launch an AWS with affected image-id, ssh in

  # After startup, connect via SSH, then
  # Verify we're on an nvme device
  lsblk | grep nvme

  # Verify install_devices set incorrectly
  debconf-show grub-pc | grep "install_devices:"

  # update cloud-init to proposed
  mirror=http://archive.ubuntu.com/ubuntu
  echo deb $mirror $(lsb_release -sc)-proposed main | tee 
/etc/apt/sources.list.d/proposed.list
  apt-get update -q
  apt-get install -qy cloud-init

  # Verify "Reconfiguring grub" message in upgrade output

  # Verify install_devices set correctly
  debconf-show grub-pc | grep "install_devices:"

  # Verify that after reboot we can still connect

  Steps for test 2:
  # Find an old affected image with
  aws ec2 describe-images --filters "Name=name,Values=Ubuntu *"

  # Launch an AWS with affected image-id

  # After startup, connect via SSH, then
  # Verify we're on an nvme device
  lsblk | grep nvme

  # Verify install_devices set incorrectly
  debconf-show grub-pc | grep "install_devices:"

  # Update install device to something (anything) else
  echo 'set grub-pc/install_devices /dev/sdb' | debconf-communicate

  # update cloud-init to proposed
  mirror=http://archive.ubuntu.com/ubuntu
  echo deb $mirror $(lsb_release -sc)-proposed main | tee 
/etc/apt/sources.list.d/proposed.list
  apt-get update -q
  apt-get install -qy cloud-init

  # Verify no "Reconfiguring grub" message in upgrade output
  # Verify install_devices not changed
  debconf-show grub-pc | grep "install_devices:"

  Steps for test 3:
  # lxd launch affected image
  lxc launch 

  # Obtain bash shell
  lxc ex

[Group.of.nepali.translators] [Bug 1889555] Re: cc_grub_dpkg was fixed to support nvme drives, but didn't clear the state of cc_grub_dpkg and didn't rerun it on upgrades

2020-09-16 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init - 20.3-2-g371b392c-
0ubuntu1~18.04.1

---
cloud-init (20.3-2-g371b392c-0ubuntu1~18.04.1) bionic; urgency=medium

  * d/cloud-init.postinst: fix the grub install device for NVMe-rooted
instances on upgrade.  (LP: #1889555)
  * refresh patches:
   + debian/patches/ubuntu-advantage-revert-tip.patch
  * New upstream snapshot. (LP: #1893064)
- util: remove debug statement (#556) [Joshua Powers]
- Fix cloud config on chef example (#551) [lucasmoura]
- Release 20.3 (#547) [James Falcon]
- tox: bump the pylint version to 2.6.0 in the default run (#544)
  [Paride Legovini]
- Azure: Add netplan driver filter when using hv_netvsc driver (#539)
  [James Falcon]
- query: do not handle non-decodable non-gzipped content (#543)
- DHCP sandboxing failing on noexec mounted /var/tmp (#521) [Eduardo Otubo]
- Update the list of valid ssh keys. (#487) [Ole-Martin Bratteng]
- cmd: cloud-init query to handle compressed userdata (#516)
- Pushing cloud-init log to the KVP (#529) [Moustafa Moustafa]
- Add Alpine Linux support. (#535) [dermotbradley]
- Detect kernel version before swap file creation (#428) [Eduardo Otubo]
- cli: add devel make-mime subcommand (#518)
- user-data: only verify mime-types for TYPE_NEEDED and x-shellscript
  (#511)
- DataSourceOracle: retry twice (and document why we retry at all) (#536)
- Refactor Azure report ready code (#468) [Johnson Shi]
- tox.ini: pin correct version of httpretty in xenial{,-dev} envs (#531)
- Support Oracle IMDSv2 API (#528) [James Falcon]
- .travis.yml: run a doc build during CI (#534)
- doc/rtd/topics/datasources/ovf.rst: fix doc8 errors (#533)
- Fix 'Users and Groups' configuration documentation (#530) [sshedi]
- cloudinit.distros: update docstrings of add_user and create_user (#527)
- Fix headers for device types in network v2 docs (#532)
  [Caleb Xavier Berger]
- Add AlexBaranowski as contributor (#508) [Aleksander Baranowski]
- DataSourceOracle: refactor to use only OPC v1 endpoint (#493)
- .github/workflows/stale.yml: s/Josh/Rick/ (#526)
- Fix a typo in apt pipelining module (#525) [Xiao Liang]
- test_util: parametrize devlist tests (#523) [James Falcon]
- Recognize LABEL_FATBOOT labels (#513) [James Falcon]
- Handle additional identifier for SLES For HPC (#520) [Robert Schweikert]
- Revert "test-requirements.txt: pin pytest to <6 (#512)" (#515)
- test-requirements.txt: pin pytest to <6 (#512)
- Add "tsanghan" as contributor (#504) [tsanghan]
- fix brpm building
- Adding eandersson as a contributor (#502) [Erik Olof Gunnar Andersson]
- azure: disable bouncing hostname when setting hostname fails (#494)
  [Anh Vo]
- VMware: Support parsing DEFAULT-RUN-POST-CUST-SCRIPT (#441)
  [xiaofengw-vmware]
- DataSourceAzure: Use ValueError when JSONDecodeError is not available
  (#490) [Anh Vo]
- cc_ca_certs.py: fix blank line problem when removing CAs and adding
  new one (#483) [dermotbradley]
- freebsd: py37-serial is now py37-pyserial (#492) [Gonéri Le Bouder]
- ssh exit with non-zero status on disabled user (#472) [Eduardo Otubo]
- cloudinit: remove global disable of pylint W0107 and fix errors (#489)
- networking: refactor wait_for_physdevs from cloudinit.net (#466)
- HACKING.rst: add pytest.param pytest gotcha (#481)
- cloudinit: remove global disable of pylint W0105 and fix errors (#480)
- Fix two minor warnings (#475)
- test_data: fix faulty patch (#476)
- cc_mounts: handle missing fstab (#484)
- LXD cloud_tests: support more lxd image formats (#482) [Paride Legovini]
- Add update_etc_hosts as default module on *BSD (#479) [Adam Dobrawy]
- cloudinit: fix tip-pylint failures and bump pinned pylint version (#478)
- Added BirknerAlex as contributor and sorted the file (#477)
  [Alexander Birkner]
- Update list of types of modules in cli.rst [saurabhvartak1982]
- tests: use markers to configure disable_subp_usage (#473)
- Add mention of vendor-data to no-cloud format documentation (#470)
  [Landon Kirk]
- Fix broken link to OpenStack metadata service docs (#467)
  [Matt Riedemann]
- Disable ec2 mirror for non aws instances (#390) [lucasmoura]
- cloud_tests: don't pass --python-version to read-dependencies (#465)
- networking: refactor is_physical from cloudinit.net (#457)
- Enable use of the caplog fixture in pytest tests, and add a
  cc_final_message test using it (#461)
- RbxCloud: Add support for FreeBSD (#464) [Adam Dobrawy]
- Add schema for cc_chef module (#375) [lucasmoura]
- test_util: add (partial) testing for util.mount_cb (#463)
- .travis.yml: revert to installing ubuntu-dev-tools (#460)
- HACKING.rst: add details of net refactor tracking (#456)
- .travis.yml: rationalise installation of dependencies in ho

[Group.of.nepali.translators] [Bug 1889555] Re: cc_grub_dpkg was fixed to support nvme drives, but didn't clear the state of cc_grub_dpkg and didn't rerun it on upgrades

2020-09-16 Thread Launchpad Bug Tracker
This bug was fixed in the package cloud-init - 20.3-2-g371b392c-
0ubuntu1~20.04.1

---
cloud-init (20.3-2-g371b392c-0ubuntu1~20.04.1) focal; urgency=medium

  * d/cloud-init.postinst: fix the grub install device for NVMe-rooted
instances on upgrade.  (LP: #1889555)
  * New upstream snapshot. (LP: #1893064)
- util: remove debug statement (#556) [Joshua Powers]
- Fix cloud config on chef example (#551) [lucasmoura]
- Release 20.3 (#547) [James Falcon]
- tox: bump the pylint version to 2.6.0 in the default run (#544)
  [Paride Legovini]
- Azure: Add netplan driver filter when using hv_netvsc driver (#539)
  [James Falcon]
- query: do not handle non-decodable non-gzipped content (#543)
- DHCP sandboxing failing on noexec mounted /var/tmp (#521) [Eduardo Otubo]
- Update the list of valid ssh keys. (#487) [Ole-Martin Bratteng]
- cmd: cloud-init query to handle compressed userdata (#516)
- Pushing cloud-init log to the KVP (#529) [Moustafa Moustafa]
- Add Alpine Linux support. (#535) [dermotbradley]
- Detect kernel version before swap file creation (#428) [Eduardo Otubo]
- cli: add devel make-mime subcommand (#518)
- user-data: only verify mime-types for TYPE_NEEDED and x-shellscript
  (#511)
- DataSourceOracle: retry twice (and document why we retry at all) (#536)
- Refactor Azure report ready code (#468) [Johnson Shi]
- tox.ini: pin correct version of httpretty in xenial{,-dev} envs (#531)
- Support Oracle IMDSv2 API (#528) [James Falcon]
- .travis.yml: run a doc build during CI (#534)
- doc/rtd/topics/datasources/ovf.rst: fix doc8 errors (#533)
- Fix 'Users and Groups' configuration documentation (#530) [sshedi]
- cloudinit.distros: update docstrings of add_user and create_user (#527)
- Fix headers for device types in network v2 docs (#532)
  [Caleb Xavier Berger]
- Add AlexBaranowski as contributor (#508) [Aleksander Baranowski]
- DataSourceOracle: refactor to use only OPC v1 endpoint (#493)
- .github/workflows/stale.yml: s/Josh/Rick/ (#526)
- Fix a typo in apt pipelining module (#525) [Xiao Liang]
- test_util: parametrize devlist tests (#523) [James Falcon]
- Recognize LABEL_FATBOOT labels (#513) [James Falcon]
- Handle additional identifier for SLES For HPC (#520) [Robert Schweikert]
- Revert "test-requirements.txt: pin pytest to <6 (#512)" (#515)
- test-requirements.txt: pin pytest to <6 (#512)
- Add "tsanghan" as contributor (#504) [tsanghan]
- fix brpm building
- Adding eandersson as a contributor (#502) [Erik Olof Gunnar Andersson]
- azure: disable bouncing hostname when setting hostname fails (#494)
  [Anh Vo]
- VMware: Support parsing DEFAULT-RUN-POST-CUST-SCRIPT (#441)
  [xiaofengw-vmware]
- DataSourceAzure: Use ValueError when JSONDecodeError is not available
  (#490) [Anh Vo]
- cc_ca_certs.py: fix blank line problem when removing CAs and adding
  new one (#483) [dermotbradley]
- freebsd: py37-serial is now py37-pyserial (#492) [Gonéri Le Bouder]
- ssh exit with non-zero status on disabled user (#472) [Eduardo Otubo]
- cloudinit: remove global disable of pylint W0107 and fix errors (#489)
- networking: refactor wait_for_physdevs from cloudinit.net (#466)
- HACKING.rst: add pytest.param pytest gotcha (#481)
- cloudinit: remove global disable of pylint W0105 and fix errors (#480)
- Fix two minor warnings (#475)
- test_data: fix faulty patch (#476)
- cc_mounts: handle missing fstab (#484)
- LXD cloud_tests: support more lxd image formats (#482) [Paride Legovini]
- Add update_etc_hosts as default module on *BSD (#479) [Adam Dobrawy]
- cloudinit: fix tip-pylint failures and bump pinned pylint version (#478)
- Added BirknerAlex as contributor and sorted the file (#477)
  [Alexander Birkner]
- Update list of types of modules in cli.rst [saurabhvartak1982]
- tests: use markers to configure disable_subp_usage (#473)
- Add mention of vendor-data to no-cloud format documentation (#470)
  [Landon Kirk]
- Fix broken link to OpenStack metadata service docs (#467)
  [Matt Riedemann]
- Disable ec2 mirror for non aws instances (#390) [lucasmoura]
- cloud_tests: don't pass --python-version to read-dependencies (#465)
- networking: refactor is_physical from cloudinit.net (#457)
- Enable use of the caplog fixture in pytest tests, and add a
  cc_final_message test using it (#461)
- RbxCloud: Add support for FreeBSD (#464) [Adam Dobrawy]
- Add schema for cc_chef module (#375) [lucasmoura]
- test_util: add (partial) testing for util.mount_cb (#463)
- .travis.yml: revert to installing ubuntu-dev-tools (#460)
- HACKING.rst: add details of net refactor tracking (#456)
- .travis.yml: rationalise installation of dependencies in host (#449)
- Add dermotbradley as contributor. (#458) [dermotbradley]