[Bug 2045828] Re: rbd-target-{api, gw}.service doesn't start after a reboot
Nobuto Murata
2045828 at bugs.launchpad.net
Thu Dec 7 02:14:14 UTC 2023
> In the debian/rules, there is an override so I suppose not starting it by default is on purpose since the service doesn't work if there is no config written.
>
> [debian/rules]
> override_dh_installinit:
> dh_installinit -pceph-iscsi --name rbd-target-api
> dh_installinit -pceph-iscsi --name rbd-target-gw
Hmm, the package structure looks weird to me. The override is to use a service name different from the package name, which makes sense. Then it will render the postinst script as:
====
invoke-rc.d --skip-systemd-native rbd-target-api $_dh_action || exit 1
...
invoke-rc.d --skip-systemd-native rbd-target-gw $_dh_action || exit 1
====
To defer it to systemd. However, the package doesn't leverage
dh_installsystemd with --no-enable and --no-start. Instead, it uses
debian/ceph-iscsi.install to manually copy
usr/lib/systemd/system/*.service to the system.
** Also affects: ceph-iscsi (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
ceph-iscsi quincy/stable 28
+
+ $ apt policy ceph-iscsi
+ ceph-iscsi:
+ Installed: 3.5-2ubuntu1
+ Candidate: 3.5-2ubuntu1
+ Version table:
+ *** 3.5-2ubuntu1 500
+ 500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
+ 100 /var/lib/dpkg/status
How to reproduce:
once the ceph-iscsi charm is deployed with 2 units per the documentation, reboot one of the units.
- # systemctl status rbd-target-gw.service
+ # systemctl status rbd-target-gw.service
○ rbd-target-gw.service - Setup system to export rbd images through LIO
- Loaded: loaded (/lib/systemd/system/rbd-target-gw.service; disabled; vendor preset: enabled)
- Active: inactive (dead)
+ Loaded: loaded (/lib/systemd/system/rbd-target-gw.service; disabled; vendor preset: enabled)
+ Active: inactive (dead)
- # systemctl status rbd-target-api.service
+ # systemctl status rbd-target-api.service
○ rbd-target-api.service - Ceph iscsi target configuration API
- Loaded: loaded (/lib/systemd/system/rbd-target-api.service; disabled; vendor preset: enabled)
- Active: inactive (dead)
+ Loaded: loaded (/lib/systemd/system/rbd-target-api.service; disabled; vendor preset: enabled)
+ Active: inactive (dead)
This is probably because the systemd services are disabled.
- # systemctl is-enabled rbd-target-{api,gw}.service
+ # systemctl is-enabled rbd-target-{api,gw}.service
disabled
disabled
-
A possible workaround is to enable those services by hand.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/2045828
Title:
rbd-target-{api,gw}.service doesn't start after a reboot
Status in OpenStack Ceph iSCSI Charm:
New
Status in ceph-iscsi package in Ubuntu:
New
Bug description:
ceph-iscsi quincy/stable 28
$ apt policy ceph-iscsi
ceph-iscsi:
Installed: 3.5-2ubuntu1
Candidate: 3.5-2ubuntu1
Version table:
*** 3.5-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
100 /var/lib/dpkg/status
How to reproduce:
once the ceph-iscsi charm is deployed with 2 units per the documentation, reboot one of the units.
# systemctl status rbd-target-gw.service
○ rbd-target-gw.service - Setup system to export rbd images through LIO
Loaded: loaded (/lib/systemd/system/rbd-target-gw.service; disabled; vendor preset: enabled)
Active: inactive (dead)
# systemctl status rbd-target-api.service
○ rbd-target-api.service - Ceph iscsi target configuration API
Loaded: loaded (/lib/systemd/system/rbd-target-api.service; disabled; vendor preset: enabled)
Active: inactive (dead)
This is probably because the systemd services are disabled.
# systemctl is-enabled rbd-target-{api,gw}.service
disabled
disabled
A possible workaround is to enable those services by hand.
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-ceph-iscsi/+bug/2045828/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list