[Bug 1840347] Re: Ceph 12.2.12 restarts services during upgrade
Eric Desrochers
eric.desrochers at canonical.com
Fri Aug 16 13:20:38 UTC 2019
Another thing I'm not sure about how it should react this way but worth
to explore:
77 override_dh_installinit:
....
131 # Ensure Debian/Ubuntu specific systemd units are NOT automatically enabled and started
132 # Enable systemd targets only
133 dh_systemd_enable -Xceph-mon.service -Xceph-osd.service -X ceph-mds.service
134 # Start systemd targets only
135 dh_systemd_start --no-restart-on-upgrade -Xceph-mon.service -Xceph-osd.service -X ceph-mds.service
136
137 override_dh_systemd_enable:
138 # systemd enable done as part of dh_installinit
139
140 override_dh_systemd_start:
141 # systemd start done as part of dh_installinit
Documentation:
Note that dh_systemd_start should be run after dh_installinit so that it can detect
corresponding SysV init scripts. The default sequence in dh does the right thing, this
note is only relevant when you are calling dh_systemd_start manually.
I would first try with the following to place the
dh_systemd_[enable|start] execution where it should belong.
77 override_dh_installinit:
....
- 131 # Ensure Debian/Ubuntu specific systemd units are NOT automatically enabled and started
- 132 # Enable systemd targets only
- 133 dh_systemd_enable -Xceph-mon.service -Xceph-osd.service -X ceph-mds.service
- 134 # Start systemd targets only
- 135 dh_systemd_start --no-restart-on-upgrade
136
137 override_dh_systemd_enable:
+ # Ensure Debian/Ubuntu specific systemd units are NOT automatically enabled and started
- 138 # systemd enable done as part of dh_installinit
+ 138 dh_systemd_enable -Xceph-mon.service -Xceph-osd.service -X ceph-mds.service
139
140 override_dh_systemd_start:
+ # Enable systemd targets only
- 141 # systemd start done as part of dh_installinit
+ 141 dh_systemd_start --no-restart-on-upgrade
That's what I would do first and give that a try.
- Eric
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1840347
Title:
Ceph 12.2.12 restarts services during upgrade
Status in ceph package in Ubuntu:
New
Bug description:
Upgrading from 12.2.11-0ubuntu0.18.04.2 to 12.2.12-0ubuntu0.18.04.1 on
Ubuntu 18.04 causes the ceph-osd services to be restarted without
prompting.
This appears to be in the configure section on the ceph-common,postinst:
# Automatically added by dh_systemd_start/11.1.6ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action 'ceph.target' >/dev/null || true
fi
fi
# End automatically added section
dpkg.log after the upgrade shows that "configure" was exercised:
2019-08-15 10:49:18 upgrade ceph-common:amd64 12.2.11-0ubuntu0.18.04.2 12.2.12-
...
2019-08-15 10:49:29 configure ceph-common:amd64 12.2.12-0ubuntu0.18.04.1 <none>
..
2019-08-15 10:49:56 status installed ceph-common:amd64 12.2.12-0ubuntu0.18.04.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1840347/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list