Merge ~mfo/ubuntu/+source/cinder:lp1987663-noble into ~ubuntu-openstack-dev/ubuntu/+source/cinder:master

Proposed by Mauricio Faria de Oliveira
Status: Merged
Merge reported by: Corey Bryant
Merged at revision: 5ded29643924dec87fadcf3a52ddbcbe211514a8
Proposed branch: ~mfo/ubuntu/+source/cinder:lp1987663-noble
Merge into: ~ubuntu-openstack-dev/ubuntu/+source/cinder:master
Diff against target: 36 lines (+9/-4)
2 files modified
debian/changelog (+7/-2)
debian/cinder-volume.init.in (+2/-2)
Reviewer Review Type Date Requested Status
Corey Bryant Pending
Review via email: mp+455467@code.launchpad.net

Description of the change

Hi Corey,

This fixes cinder-volume.service/Wants=tgt.service for Noble.

Per your request in Mantic MR [1] it uses openstack-pkg-tools
123ubuntu2, which emits Wants= for Should-Start: as well.

Could you please review and upload to Noble?
(I can only uploads to stable releases for now.)

The changes work as expected in a test package:

    $ sudo apt build-dep -y cinder
    $ dpkg -s openstack-pkg-tools | grep Version:
    Version: 123ubuntu2

    $ dpkg-source -x cinder_23.0.0-0ubuntu2.dsc
    $ cd cinder-*
    $ DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -b -uc

    $ dpkg-deb -x ../cinder-volume_23.0.0-0ubuntu2_all.deb /tmp/cinder-volume-deb
    $ fgrep tgt.service /tmp/cinder-volume-deb/lib/systemd/system/cinder-volume.service
    After=... tgt.service ...
    Wants=... tgt.service ...

Thanks,
Mauricio

[1] https://code.launchpad.net/~mfo/ubuntu/+source/cinder/+git/cinder/+merge/454428/comments/1218839
[2] https://launchpad.net/ubuntu/+source/openstack-pkg-tools/123ubuntu2

To post a comment you must log in.
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Merged, thanks! I did make a small update to d/control to make sure the min version of openstack-pkg-tools is the fixed version. This is less important for noble, and more important for when it gets backported to the jammy-based cloud-archive.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index d456fff..7f2a25b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,9 +1,14 @@
6-cinder (2:23.0.0-0ubuntu2) UNRELEASED; urgency=medium
7+cinder (2:23.0.0-0ubuntu2) noble; urgency=medium
8
9+ [ Corey Bryant ]
10 * d/gbp.conf, .launchpad.yaml: Sync from cloud-archive-tools for
11 caracal.
12
13- -- Corey Bryant <corey.bryant@canonical.com> Tue, 24 Oct 2023 16:17:55 -0400
14+ [ Mauricio Faria de Oliveira ]
15+ * d/cinder-volume.init.in: add tgt to Should-Start/Stop (LP: #1987663)
16+ Requires rebuild to pick up openstack-pkg-tools 123ubuntu2 in noble.
17+
18+ -- Mauricio Faria de Oliveira <mfo@canonical.com> Fri, 10 Nov 2023 13:10:45 -0300
19
20 cinder (2:23.0.0-0ubuntu1) mantic; urgency=medium
21
22diff --git a/debian/cinder-volume.init.in b/debian/cinder-volume.init.in
23index 15193ef..0e3d117 100644
24--- a/debian/cinder-volume.init.in
25+++ b/debian/cinder-volume.init.in
26@@ -3,8 +3,8 @@
27 # Provides: cinder-volume
28 # Required-Start: $network $local_fs $remote_fs $syslog
29 # Required-Stop: $remote_fs
30-# Should-Start: postgresql mysql keystone rabbitmq-server ntp
31-# Should-Stop: postgresql mysql keystone rabbitmq-server ntp
32+# Should-Start: postgresql mysql keystone rabbitmq-server ntp tgt
33+# Should-Stop: postgresql mysql keystone rabbitmq-server ntp tgt
34 # Default-Start: 2 3 4 5
35 # Default-Stop: 0 1 6
36 # Short-Description: Cinder Volume

Subscribers

People subscribed via source and target branches