[Bug 1948986] [NEW] ceph-osd doesn't fix /var/lib/ceph/osd ownership in postinst

Simon Déziel 1948986 at bugs.launchpad.net
Wed Oct 27 19:50:36 UTC 2021


Public bug reported:

Steps to reproduce:

1) Setup and enter a LXD VM
$ lxc launch images:ubuntu/focal foo --vm
$ lxc shell foo
2) Install ceph-base in the VM
# apt-get update -qq
# apt-get --assume-yes --option=Dpkg::Options::=--force-confold install ceph-base
3) Install ceph-osd
# apt-get --assume-yes --option=Dpkg::Options::=--force-confold install ceph-osd
4) check the ownership of /var/lib/ceph/osd
# ll /var/lib/ceph/
total 48
drwxr-x--- 12 ceph ceph 4096 Oct 27 19:20 ./
drwxr-xr-x 23 root root 4096 Oct 27 19:20 ../
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-mds/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-mgr/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-osd/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rbd/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rbd-mirror/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rgw/
drwxr-xr-x  3 ceph ceph 4096 Oct 27 19:19 crash/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 mds/
drwxr-xr-x  2 root root 4096 Sep  6 08:41 osd/
drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 tmp/

The osd/ should be owned by "ceph:ceph" like the other directories.

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1948986

Title:
  ceph-osd doesn't fix /var/lib/ceph/osd ownership in postinst

Status in ceph package in Ubuntu:
  New

Bug description:
  Steps to reproduce:

  1) Setup and enter a LXD VM
  $ lxc launch images:ubuntu/focal foo --vm
  $ lxc shell foo
  2) Install ceph-base in the VM
  # apt-get update -qq
  # apt-get --assume-yes --option=Dpkg::Options::=--force-confold install ceph-base
  3) Install ceph-osd
  # apt-get --assume-yes --option=Dpkg::Options::=--force-confold install ceph-osd
  4) check the ownership of /var/lib/ceph/osd
  # ll /var/lib/ceph/
  total 48
  drwxr-x--- 12 ceph ceph 4096 Oct 27 19:20 ./
  drwxr-xr-x 23 root root 4096 Oct 27 19:20 ../
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-mds/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-mgr/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-osd/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rbd/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rbd-mirror/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 bootstrap-rgw/
  drwxr-xr-x  3 ceph ceph 4096 Oct 27 19:19 crash/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 mds/
  drwxr-xr-x  2 root root 4096 Sep  6 08:41 osd/
  drwxr-xr-x  2 ceph ceph 4096 Sep  6 08:41 tmp/

  The osd/ should be owned by "ceph:ceph" like the other directories.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1948986/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list