package multipath-tools 0.8.8-1ubuntu1 failed to install/upgrade: installed multipath-tools package post-installation script subprocess returned error exit status 1

Bug #1971954 reported by Lars Kollstedt
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
multipath-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Bug-Report suggested by mechanism during `do-release-upgrade -d` from 20.04 focal to 22.04 jammy on a test machine. First upgrade attempt.

| Extra debug information will be added to the bug report automatically.
Haven't seen this information, yet. ;-)

#1928374 does'nt really match, since that was on upgrade von 20.10 to 21.04, but might be related. The Error message displayed "multipath-tools package post-installation script subprocess returned error exit status 1" is the same, but not saying much.

Kind regards,
   Lars

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: multipath-tools 0.8.8-1ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-109.123-generic 5.4.178
Uname: Linux 5.4.0-109-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri May 6 10:10:37 2022
ErrorMessage: installed multipath-tools package post-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2
 apt 2.4.5
SourcePackage: multipath-tools
Title: package multipath-tools 0.8.8-1ubuntu1 failed to install/upgrade: installed multipath-tools package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to jammy on 2022-05-06 (0 days ago)

Revision history for this message
Lars Kollstedt (lk-x) wrote :
Revision history for this message
Lars Kollstedt (lk-x) wrote :
Download full text (4.9 KiB)

The interessting part of the Error message is:
```
Failed to restart multipath-tools.service: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists
See system logs and 'systemctl status multipath-tools.service' for details.
invoke-rc.d: initscript multipath-tools, action "restart" failed.
○ multipath-tools.service
     Loaded: error (Reason: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists)
     Active: inactive (dead)
Warning: The unit file, source configuration file or drop-ins of multipath-tools.service changed on disk. Run 'systemctl daemon-reload' to reload units.
```

After reboot this is still the case:
```
root@resolver-test:~# systemctl status multipath-tools.service
Warning: The unit file, source configuration file or drop-ins of multipath-tools.service changed on disk. Run 'systemctl daemon-reload' to reload units.
○ multipath-tools.service
     Loaded: error (Reason: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists)
     Active: inactive (dead)
root@resolver-test:~# systemctl restart multipath-tools.service
Failed to restart multipath-tools.service: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists
See system logs and 'systemctl status multipath-tools.service' for details.
root@resolver-test:~# journalctl -u multipath-tools.service
-- No entries --
root@resolver-test:~# systemctl status multipath-tools.service
Warning: The unit file, source configuration file or drop-ins of multipath-tools.service changed on disk. Run 'systemctl daemon-reload' to reload units.
○ multipath-tools.service
     Loaded: error (Reason: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists)
     Active: inactive (dead)
root@resolver-test:~# systemctl daemon-reload
root@resolver-test:~# systemctl restart multipath-tools.service
Failed to restart multipath-tools.service: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists
See system logs and 'systemctl status multipath-tools.service' for details.
root@resolver-test:~# systemctl status multipath-tools.service
Warning: The unit file, source configuration file or drop-ins of multipath-tools.service changed on disk. Run 'systemctl daemon-reload' to reload units.
○ multipath-tools.service
     Loaded: error (Reason: Unit multipath-tools.service failed to load properly, please adjust/correct and reload service manager: File exists)
     Active: inactive (dead)

```

multipath-tools is depended by ubuntu-server but not really used.

Even purging it fails:

```
root@resolver-test:~# aptitude purge multipath-tools
The following packages will be REMOVED:
  multipath-tools{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 1,256 kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 182822 files and directories currently...

Read more...

Revision history for this message
Lars Kollstedt (lk-x) wrote :

Afterwards the unit is masked:
```
root@resolver-test:~# systemctl status multipath-tools
○ multipathd.service
     Loaded: masked (Reason: Unit multipathd.service is masked.)
     Active: inactive (dead)

```

Revision history for this message
Paride Legovini (paride) wrote :

Hello and thanks for this bug report. I tried doing a `do-release-upgrade -d` from Focal to Jammy, checking that multipathd was healthy in the first place, before beginning the upgrade. I couldn't reproduce the issue.

We're willing to investigate this failure case, but what we need are some steps to reproduce it starting from a clean Ubuntu system. Could you please provide us with those, and any other bit of context that can help us better understand what's happening? Thanks!

Changed in multipath-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Lars Kollstedt (lk-x) wrote :

After thinking a while about this, and having a look at our configuration for focal I thik the reason for this issue during the upgrade is that the `multipathd.service` and `multipathd.socket` were already masked in our focal setup.
The `multipath-tools` packet is nevertheless attempting to restart them and this obviously fails.

We had diskussed to remove/purge the `multipath-tools` due to a massive amount of the following messages in focal:
```
multipathd[696]: sda: add missing path
multipathd[696]: sda: failed to get udev uid: Invalid argument
multipathd[696]: sda: failed to get sysfs uid: Invalid argument
multipathd[696]: sda: failed to get sgio uid: No such file or directory
multipathd[696]: sdb: add missing path
multipathd[696]: sdb: failed to get udev uid: Invalid argument
multipathd[696]: sdb: failed to get sysfs uid: Invalid argument
multipathd[696]: sdb: failed to get sgio uid: No such file or directory
```

And due to the dependency of the `ubuntu-servers` metapackage we decided to mask the `multipathd.service` and `multipathd.socket` units.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for the followup, Lars.

Based on your comment (and if I understood it correctly), the issue was caused because of a local configuration choice instead of a bug in the package itself. Therefore, I'm closing this bug as Invalid. Feel free to reopen it and provide more details if you don't agree with the decision.

Thanks.

Changed in multipath-tools (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.