[Bug 1544647] Re: postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only)
thanks for update :) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1544647 Title: postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1544647/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1544647] Re: postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only)
Hi, the first issue, syntax error was fixed, thanks! but the path error still there, when it is trying to setup "ceph-mds", it says, --- Setting up ceph-mds (9.2.0-0ubuntu5) ... chown: cannot access ‘/var/lib/ceph/mds’: No such file or directory dpkg: error processing package ceph-mds (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: ceph-mds E: Sub-process /usr/bin/dpkg returned an error code (1) --- as you said, bootstrap-mds have done by "ceph.postinst", there is a for loop out for finding sub-folder path, so it won't hit the path problem, but "ceph-mds.postinst" not, it still trying to "chown" on a non-exist folder, seems like we could to remove section of "bootstrap-mds"? or wrap it in `if [ -d /var/lib/ceph/ceph ]; then ...` ** Changed in: ceph (Ubuntu) Status: Fix Released => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1544647 Title: postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1544647/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1544647] [NEW] postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only)
Public bug reported: in ceph-mds.postinst, Line 35:if ! dpkg-statoverride --list /var/lib/ceph/mds >/dev/null Line 36:chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/mds Line 37:fi should be, Line 35:if ! dpkg-statoverride --list /var/lib/ceph/bootstrap-mds >/dev/null; then Line 36:chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/bootstrap-mds Line 37:fi there are 2 bugs need to be corrected, 1. syntax error, missing "then" 2. path error, target directory path should be "/var/lib/ceph/bootstrap-mds" reproduce step, 1. boot fresh new Ubuntu Trusty (with cloudarchive:mitaka), or Ubuntu Xenial (any version of daily build) 2. apt-get update 3. apt-get install ceph-common (or ceph-mds only) 4. installation should block while processing ceph-mds.postinst ** Affects: ceph (Ubuntu) Importance: Undecided Status: New ** Tags: trusty verification-needed xenial ** Patch added: "ceph-mds.postinst.patch" https://bugs.launchpad.net/bugs/1544647/+attachment/4569391/+files/ceph-mds.postinst.patch ** Also affects: ceph Importance: Undecided Status: New ** No longer affects: ceph -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1544647 Title: postinst syntax error, if condition without "then", and directory path error (Ceph 9.2.0 only) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1544647/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs