Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu/mantic 23.4.x #4704

Merged

Conversation

aciba90
Copy link
Contributor

@aciba90 aciba90 commented Dec 15, 2023

Do not squash

Steps to reproduce

new_upstream_snapshot.py -c 23.4.1 -b 2045582
dch -r -D mantic ''
git commit -m 'releasing cloud-init version 23.4.1-0ubuntu0~23.10.1' debian/changelog
git tag ubuntu/23.4.1-0ubuntu1_23.10.1
  • build-package -- -S -d
  • sbuild --dist=mantic --arch=amd64 --arch-all ../out/cloud-init_23.4.1-0ubuntu1~23.10.1.dsc
  • No lintian errors / warnings.

TheRealFalcon and others added 3 commits December 14, 2023 11:17
fix: Handle systemctl commands when dbus not ready

During `cloud-init status`, we check systemctl to ensure the status
we're reporting is accurate. However, we can get an error from systemctl
if dbus isn't ready yet. This commit will either ignore the error if we
can assume that cloud-init is still running, or retry until we get a
proper response from systemctl.

Fixes canonicalGH-4676
Bump the version in cloudinit/version.py to 23.4.1 and update ChangeLog.
@aciba90 aciba90 force-pushed the ubuntu/mantic-23.4.x branch from 3f933af to abc3c47 Compare December 15, 2023 11:36
@blackboxsw blackboxsw self-assigned this Jan 2, 2024
blackboxsw and others added 2 commits January 2, 2024 15:22
Commit 46992d3 unintentionally redacted the second part of the
changeset moving Before=systemd-user-sessions.service from
cloud-config.service back into cloud-init.service.

Replace the dropped patchset.
patches:
debian/patches/retain-apt-pre-deb822.patch
debian/patches/status-do-not-remove-duplicated-data.patch
Copy link
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. quilt patch fix needed for d/p/do-not-block-user-login.patch
  2. debian/changelog info to report and amend all quilt patch changes that took place.


* d/p/retain-apt-pre-deb822.patch:
- Disable apt source list generation with DEB822 style
* Upstream snapshot based on 23.4.1. (LP: #2045582).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch here in debian/patches/do-not-block-user-login.patch still has a redacted patch due to 46992d3. This was fixed in other series, but ignored in mantic for some reason. I've cherry-picked a functional change 8e66cec from focal's branch to correct this issue in mantic-23.4.x branch. We need this in upstream/ubuntu/mantic as well so it's not forgotten on next release. I'll put up a separate PR to sync that fix into upstream/ubuntu/mantic now. Also debian changelog doesn't note the refreshed quilt patches, or the dropped cherry-pick(cpick) files. I've added a changelog delta to reflect this content.

  1. first diff for fixing/reverting the quilt patch to avoid redacting the patchset
--- a/debian/patches/do-not-block-user-login.patch
+++ b/debian/patches/do-not-block-user-login.patch
@@ -16,3 +16,13 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  Wants=network-online.target cloud-config.target
  ConditionPathExists=!/etc/cloud/cloud-init.disabled
  ConditionKernelCommandLine=!cloud-init=disabled
+--- a/systemd/cloud-init.service.tmpl
++++ b/systemd/cloud-init.service.tmpl
+@@ -38,6 +38,7 @@ Conflicts=shutdown.target
+ Before=shutdown.target
+ Conflicts=shutdown.target
+ {% endif %}
++Before=systemd-user-sessions.service
+ ConditionPathExists=!/etc/cloud/cloud-init.disabled
+ ConditionKernelCommandLine=!cloud-init=disabled
+ ConditionEnvironment=!KERNEL_CMDLINE=cloud-init=disabled
  1. second diff for the updated debian/changelog capturing both the refreshed patches, the dropped cherry-picks and the fixed do-not-block-user-login.patch
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,11 @@ cloud-init (23.4.1-0ubuntu1~23.10.1) mantic; urgency=medium
 
   * d/p/retain-apt-pre-deb822.patch:
     - Disable apt source list generation with DEB822 style
+  * d/p/do-not-block-user-login.patch:
+    - revert redacted patch content introduced in 23.4-0
+  * refresh patches:
+    - d/p/status-do-not-remove-duplicated-data.patch
+  * d/changelog: amend 23.4-0 refresh patches and dropped cherry-picks entry
   * Upstream snapshot based on 23.4.1. (LP: #2045582).
     List of changes from upstream can be found at
     https://raw.githubusercontent.com/canonical/cloud-init/23.4.1/ChangeLog
@@ -13,6 +18,14 @@ cloud-init (23.4-0ubuntu1~23.10.1) mantic; urgency=medium
   * d/p/status-do-not-remove-duplicated-data.patch:
     - Revert behavior downstream, leave duplicate data
   * d/control: add python3-apt as Recommends to read APT config from apt_pkg
+  * refresh patches:
+    - d/p/do-not-block-user-login.patch
+  * drop the following cherry-picks now included:
+    - cpick-0d9f149a-Pytestify-apt-config-test-modules-4424
+    - cpick-5023e9f9-Refactor-test_apt_source_v1.py-to-use-pytest-4427
+    - cpick-e9cdd7e3-Install-gnupg-if-gpg-not-found-4431
+    - cpick-015543d3-apt-install-software-properties-common-when-absent-but
+    - cpick-2ab1f340-fix-cc_apt_configure-avoid-unneeded-call-to-apt-install
   * Upstream snapshot based on 23.4. (LP: #2045582).
     List of changes from upstream can be found at
     https://raw.githubusercontent.com/canonical/cloud-init/23.4/ChangeLog

@blackboxsw blackboxsw force-pushed the ubuntu/mantic-23.4.x branch from abc3c47 to 87de247 Compare January 2, 2024 22:39
@aciba90
Copy link
Contributor Author

aciba90 commented Jan 3, 2024

LGTM, thanks for catching this up! Just to clarify.

  1. quilt patch fix needed for d/p/do-not-block-user-login.patch

This is something we forgot to add to ubuntu/mantic or ubuntu/mantic-23.3.x.

  1. debian/changelog info to report and amend all quilt patch changes that took place.

This should have been automatically generated by new_upstream_snapshot.py for this and the other branches, right? If so, I think we should create an issue to fix it.

@blackboxsw blackboxsw merged commit 87de247 into canonical:ubuntu/mantic-23.4.x Jan 3, 2024
26 checks passed
@aciba90 aciba90 deleted the ubuntu/mantic-23.4.x branch January 4, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants