Error when formatting devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Storage Charm |
Invalid
|
Medium
|
Unassigned | ||
swift-storage (Juju Charms Collection) |
Invalid
|
Medium
|
Unassigned |
Bug Description
014-08-29 13:52:58 INFO install 1+0 records out
2014-08-29 13:52:58 INFO install 1048576 bytes (1.0 MB) copied, 0.00161497 s, 649 MB/s
2014-08-29 13:52:58 INFO install 100+0 records in
2014-08-29 13:52:58 INFO install 100+0 records out
2014-08-29 13:52:58 INFO install 51200 bytes (51 kB) copied, 0.00295606 s, 17.3 MB/s
2014-08-29 13:52:58 INFO install mkfs.xfs: /dev/vdb contains a mounted filesystem
2014-08-29 13:52:58 INFO install Usage: mkfs.xfs
2014-08-29 13:52:58 INFO install /* blocksize */ [-b log=n|size=num]
2014-08-29 13:52:58 INFO install /* metadata */ [-m crc=0|1,finobt=0|1]
2014-08-29 13:52:58 INFO install /* data subvol */ [-d agcount=
2014-08-29 13:52:58 INFO install (sunit=
2014-08-29 13:52:58 INFO install sectlog=
2014-08-29 13:52:58 INFO install /* force overwrite */ [-f]
2014-08-29 13:52:58 INFO install /* inode size */ [-i log=n|perblock=
2014-08-29 13:52:58 INFO install projid32bit=0|1]
2014-08-29 13:52:58 INFO install /* no discard */ [-K]
2014-08-29 13:52:58 INFO install /* log subvol */ [-l agnum=n,
2014-08-29 13:52:58 INFO install sunit=value|
2014-08-29 13:52:58 INFO install lazy-count=0|1]
2014-08-29 13:52:58 INFO install /* label */ [-L label (maximum 12 characters)]
2014-08-29 13:52:58 INFO install /* naming */ [-n log=n|size=
2014-08-29 13:52:58 INFO install /* no-op info only */ [-N]
2014-08-29 13:52:58 INFO install /* prototype file */ [-p fname]
2014-08-29 13:52:58 INFO install /* quiet */ [-q]
2014-08-29 13:52:58 INFO install /* realtime subvol */ [-r extsize=
2014-08-29 13:52:58 INFO install /* sectorsize */ [-s log=n|size=num]
2014-08-29 13:52:58 INFO install /* version */ [-V]
2014-08-29 13:52:58 INFO install devicename
2014-08-29 13:52:58 INFO install <devicename> is required unless -d name=xxx is given.
2014-08-29 13:52:58 INFO install <num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
2014-08-29 13:52:58 INFO install xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
2014-08-29 13:52:58 INFO install <value> is xxx (512 byte blocks).
2014-08-29 13:52:58 INFO install Traceback (most recent call last):
2014-08-29 13:52:58 INFO install File "/var/lib/
2014-08-29 13:52:58 INFO install main()
2014-08-29 13:52:58 INFO install File "/var/lib/
2014-08-29 13:52:58 INFO install hooks.execute(
2014-08-29 13:52:58 INFO install File "/var/lib/
2014-08-29 13:52:58 INFO install setup_storage()
2014-08-29 13:52:58 INFO install File "/var/lib/
2014-08-29 13:52:58 INFO install mkfs_xfs(dev)
2014-08-29 13:52:58 INFO install File "/var/lib/
2014-08-29 13:52:58 INFO install check_call(cmd)
2014-08-29 13:52:58 INFO install File "/usr/lib/
2014-08-29 13:52:58 INFO install raise CalledProcessEr
2014-08-29 13:52:58 INFO install subprocess.
2014-08-29 13:52:58 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1
tags: | added: openstack |
Changed in swift-storage (Juju Charms Collection): | |
assignee: | nobody → Edward Hope-Morley (hopem) |
status: | New → In Progress |
tags: | added: cts |
Changed in swift-storage (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in swift-storage (Juju Charms Collection): | |
status: | In Progress → Confirmed |
assignee: | Edward Hope-Morley (hopem) → nobody |
summary: |
- Unable to install swift charm + Error when formatting devices |
Changed in charm-swift-storage: | |
importance: | Undecided → Medium |
Changed in swift-storage (Juju Charms Collection): | |
status: | New → Invalid |
Ok, this is easily reproducible if the device being formatted (a) has a filesystem on it and (b) is mounted. Question is, if the charm has been told to "overwrite", do we want the charm to unmount prior to reformat or just error out and notify the user that they need to unmount and re-run.