Actions
Bug #10797
openceph.py fallback fails because mkfs.ext4 does not have -f option on trusty
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
https://github.com/ceph/ceph-qa-suite/blob/master/tasks/ceph.py#L530
will run mkfs once more after adding the \-f flag in case it fails. It should be restricted to btrfs as the comment suggests.
try: remote.run(args= ['yes', run.Raw('|')] + ['sudo'] + mkfs + [dev]) except run.CommandFailedError: # Newer btfs-tools doesn't prompt for overwrite, use -f if '-f' not in mount_options: mkfs_options.append('-f')
If mkfs.ext4 is being used, it will fail again because -f is not supported
2015-02-09T02:42:33.042 INFO:teuthology.orchestra.run.mira059:Running: 'yes | sudo mkfs.ext4 /dev/sdg' 2015-02-09T02:42:33.125 INFO:teuthology.orchestra.run.mira059.stderr:mke2fs 1.42.9 (4-Feb-2014) 2015-02-09T02:42:33.126 INFO:teuthology.orchestra.run.mira059.stdout:/dev/sdg is entire device, not just one partition! 2015-02-09T02:42:33.126 INFO:teuthology.orchestra.run.mira059.stderr:/dev/sdg is apparently in use by the system; will not make a filesystem here! 2015-02-09T02:42:33.127 INFO:teuthology.orchestra.run.mira059.stdout:Proceed anyway? (y,n) 2015-02-09T02:42:33.127 INFO:tasks.ceph:['mkfs.ext4', '-f'] on /dev/sdg on ubuntu@mira059.front.sepia.ceph.com 2015-02-09T02:42:33.128 INFO:teuthology.orchestra.run.mira059:Running: 'yes | sudo mkfs.ext4 -f /dev/sdg' 2015-02-09T02:42:33.208 INFO:teuthology.orchestra.run.mira059.stderr:mkfs.ext4: invalid option -- 'f' 2015-02-09T02:42:33.208 INFO:teuthology.orchestra.run.mira059.stderr:Usage: mkfs.ext4 [-c|-l filename] [-b block-size] [-C cluster-size] 2015-02-09T02:42:33.209 INFO:teuthology.orchestra.run.mira059.stderr: [-i bytes-per-inode] [-I inode-size] [-J journal-options]
see http://pulpito.ceph.com/loic-2015-02-09_11:30:40-rgw-dumpling-backports---basic-multi/748360/ for the complete logs
Updated by Dan Mick over 8 years ago
- Assignee set to Dan Mick
- Regression set to No
Actions