[Bug 1587516] Re: Packaging: incorrect /etc/default

James Page james.page at ubuntu.com
Mon Jun 6 10:18:29 UTC 2016


** Description changed:

+ [Impact]
+ Its not possible to pass environment variables to ceph daemons due to mis-installation of /etc/default/ceph (its a nested dir, not a file).
+ 
+ [Test Case]
+ sudo apt-get install ceph
+ ls -la /etc/default/ceph
+ 
+ [Regression Potential]
+ Minimal - tweak to packaging only.
+ 
+ [Original Bug Report]
  I am running ceph 10.2 on trusty (via upstart). The /etc/default are:
  
- # ls -la /etc/default/ceph/ceph 
+ # ls -la /etc/default/ceph/ceph
  -rw-r--r-- 1 root root 325 Apr 29 19:54 /etc/default/ceph/ceph
  
  Is ceph/ceph really intended? The upstart conf has this in it
  
- # fgrep /etc/default /etc/init/ceph-osd.conf 
-     test -f /etc/default/ceph && . /etc/default/ceph
+ # fgrep /etc/default /etc/init/ceph-osd.conf
+     test -f /etc/default/ceph && . /etc/default/ceph
  
  The debian/rules seem to create that dir, fwiw:
  
- 	install -d -m0755 debian/ceph-common/etc/default/ceph
- 	install -m0644 etc/default/ceph debian/ceph-common/etc/default/ceph
- 
+  install -d -m0755 debian/ceph-common/etc/default/ceph
+  install -m0644 etc/default/ceph debian/ceph-common/etc/default/ceph
  
  # apt-cache policy ceph
  ceph:
-   Installed: 10.2.0-0ubuntu0.16.04.1~cloud0
-   Candidate: 10.2.0-0ubuntu0.16.04.1~cloud0
-   Version table:
-  *** 10.2.0-0ubuntu0.16.04.1~cloud0 0
-         500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/mitaka/main amd64 Packages
-         100 /var/lib/dpkg/status
-      0.80.11-0ubuntu1.14.04.1 0
-         500 http://archive.ubuntu.com//ubuntu/ trusty-updates/main amd64 Packages
-      0.79-0ubuntu1 0
-         500 http://archive.ubuntu.com//ubuntu/ trusty/main amd64 Packages
+   Installed: 10.2.0-0ubuntu0.16.04.1~cloud0
+   Candidate: 10.2.0-0ubuntu0.16.04.1~cloud0
+   Version table:
+  *** 10.2.0-0ubuntu0.16.04.1~cloud0 0
+         500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/mitaka/main amd64 Packages
+         100 /var/lib/dpkg/status
+      0.80.11-0ubuntu1.14.04.1 0
+         500 http://archive.ubuntu.com//ubuntu/ trusty-updates/main amd64 Packages
+      0.79-0ubuntu1 0
+         500 http://archive.ubuntu.com//ubuntu/ trusty/main amd64 Packages

** Changed in: ceph (Ubuntu Xenial)
       Status: Triaged => In Progress

** Changed in: ceph (Ubuntu Xenial)
     Assignee: (unassigned) => James Page (james-page)

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

Title:
  Packaging: incorrect /etc/default

Status in ceph package in Ubuntu:
  In Progress
Status in ceph source package in Xenial:
  In Progress
Status in ceph source package in Yakkety:
  In Progress

Bug description:
  [Impact]
  Its not possible to pass environment variables to ceph daemons due to mis-installation of /etc/default/ceph (its a nested dir, not a file).

  [Test Case]
  sudo apt-get install ceph
  ls -la /etc/default/ceph

  [Regression Potential]
  Minimal - tweak to packaging only.

  [Original Bug Report]
  I am running ceph 10.2 on trusty (via upstart). The /etc/default are:

  # ls -la /etc/default/ceph/ceph
  -rw-r--r-- 1 root root 325 Apr 29 19:54 /etc/default/ceph/ceph

  Is ceph/ceph really intended? The upstart conf has this in it

  # fgrep /etc/default /etc/init/ceph-osd.conf
      test -f /etc/default/ceph && . /etc/default/ceph

  The debian/rules seem to create that dir, fwiw:

   install -d -m0755 debian/ceph-common/etc/default/ceph
   install -m0644 etc/default/ceph debian/ceph-common/etc/default/ceph

  # apt-cache policy ceph
  ceph:
    Installed: 10.2.0-0ubuntu0.16.04.1~cloud0
    Candidate: 10.2.0-0ubuntu0.16.04.1~cloud0
    Version table:
   *** 10.2.0-0ubuntu0.16.04.1~cloud0 0
          500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/mitaka/main amd64 Packages
          100 /var/lib/dpkg/status
       0.80.11-0ubuntu1.14.04.1 0
          500 http://archive.ubuntu.com//ubuntu/ trusty-updates/main amd64 Packages
       0.79-0ubuntu1 0
          500 http://archive.ubuntu.com//ubuntu/ trusty/main amd64 Packages

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



More information about the Ubuntu-openstack-bugs mailing list