o2cb service doesn't have online/offline/configure commands on Ubuntu 20.04 LTS

Bug #1939406 reported by Pierre Allétru
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocfs2-tools (Debian)
Fix Released
Unknown
ocfs2-tools (Ubuntu)
Fix Released
Undecided
Athos Ribeiro

Bug Description

On Ubuntu 20.04 the service `o2cb` has some important commands missing, such as `online`, `offline`, and `configure`. The issue doesn't happen on Ubuntu 18.04 and below.

Ubuntu 18.04:
```
$ o2cb --version
o2cb 1.8.5
$ sudo service o2cb something
Usage: /etc/init.d/o2cb {start|stop|restart|force-reload|enable|disable|configure|load|unload|online|offline|force-offline|status|online-status}
```

Ubuntu 20.04:
```
$ o2cb --version
o2cb 1.8.6
$ sudo service o2cb online
Usage: /etc/init.d/o2cb {start|stop|status|restart|try-restart|force-reload}
```

In both cases I installed `o2cb` via:
```
$ sudo apt-get update && sudo apt-get install ocfs2-tools -y
```

Is there something I am missing? The [manpage](http://manpages.ubuntu.com/manpages/focal/man7/o2cb.7.html) for Ubuntu 20.04 does mention the `online` command.

See related Github issue: https://github.com/markfasheh/ocfs2-tools/issues/50

Revision history for this message
Pierre Allétru (doobled) wrote :

The package version is 1.8.6-2ubuntu1.

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Hi Pierre,

Thanks for reporting this issue.

I can confirm the commands are no longer available.

This also affects the version of this package in impish (current development version).

This is the point where the package changed the init scripts in Debian, which causes those actions to be missing: https://salsa.debian.org/ha-team/ocfs2-tools/-/commit/68e48fcc3469e7d5def42746be24137fd786bfc9

I filed a bug for the Debian package [1] and would like to hear from the maintainer before we proceed to introducing any deltas to this package.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992103

Changed in ocfs2-tools (Ubuntu):
status: New → Triaged
Revision history for this message
Pierre Allétru (doobled) wrote :

Thanks for the prompt answer and action Athos, much appreciated!

description: updated
Changed in ocfs2-tools (Debian):
status: Unknown → New
Changed in ocfs2-tools (Debian):
status: New → Fix Released
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

This was fixed in Debian in 1.8.7-1 and was sync'd to jammy.

Since the change will not just extend the init interface with the additional (missing) commands, but change it (try-restart and force-reload will no longer be available), I am not entirely sure this is fit for an SRU.

Changed in ocfs2-tools (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Athos Ribeiro (athos-ribeiro)
Revision history for this message
Pierre Allétru (doobled) wrote :

Thank you Athos!

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

This is now available in jammy

Changed in ocfs2-tools (Ubuntu):
status: Fix Committed → Fix Released
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.