Description of problem: -Bug with the oo-init-quota with node module. While installing, it fails at the 'Initialize quota DB' stage if there is more than one pattern containing of the same file system mount point in /etc/fstab, one being commented. This is due to the script : https://github.com/openshift/origin-server/blob/master/node-util/sbin/oo-init-quota#L52 # find the filesystem type above a given file or directory function get_filesystem_type() { egrep "\s+$1\s+" /etc/fstab | awk '{ print $3 }' } It should exclude commented-out lines in /etc/fstab Later on, the script evaluate the result of print $3, and compare it to 'ext4' https://github.com/openshift/origin-server/blob/master/node-util/sbin/oo-init-quota#L104 Version-Release number of selected component (if applicable):v2.2 How reproducible: Have more than one pattern containing /var/lib/openshift in /etc/fstab and go through puppet install on node module. Steps to Reproduce: 1.Copy line line in fstab and comment it out 2.Use oo-init-quota /mount/point 3.If you have multiple entries it will fail because it includes the commented out line Actual results: Error: oo-init-quota only supports ext4 filesystems. You will need to setup user quotas for the 'ext4 ext4' filesystem. Expected results: No Error Additional info:
https://github.com/openshift/origin-server/pull/6155
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/807b9c94115f89a36da485a04963c3afd0432253 oo-init-quota: Ignore commented lines in /etc/fstab Bug 1225943 Bugzilla Link https://bugzilla.redhat.com/show_bug.cgi?id=1225943
QA can reproduce this issue. Now waiting new puddle to verify it.
Verified this bug with 2.2/2015-09-21.1, PASS. Reproduce this bug with old version - openshift-origin-node-util-1.35.1.1-1.el6op.noarch: # /usr/sbin/oo-init-quota oo-init-quota only supports ext4 filesystems. You will need to setup user quotas for the 'ext4 ext4' filesystem. Fix in new version - openshift-origin-node-util-1.37.2.1-1.el6op.noarch: # /usr/sbin/oo-init-quota /dev/mapper/vg_dhcp128178-lv_root / ext4 defaults,usrquota,usrjquota=aquota.user,jqfmt=vfsv0 1 1 mount: / not mounted already, or bad option chmod: changing permissions of `/aquota.user': Operation not permitted quotaon: using //aquota.user on /dev/mapper/vg_dhcp128178-lv_root [/]: Device or resource busy
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1844.html