mkfs.xfs: cannot open /dev/sdb: Device or resource busy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Storage Charm |
Invalid
|
Undecided
|
Unassigned | ||
swift-storage (Juju Charms Collection) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The mkfs.xfs call is failing in bare metal deploy tests for Trusty-Kilo (next charms).
http://
2015-11-04 20:06:24 INFO install mkfs.xfs: cannot open /dev/sdb: Device or resource busy
2015-11-04 20:06:24 INFO install Traceback (most recent call last):
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install main()
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install hooks.execute(
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install self._hooks[
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install setup_storage()
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install mkfs_xfs(dev)
2015-11-04 20:06:24 INFO install File "/var/lib/
2015-11-04 20:06:24 INFO install check_call(cmd)
2015-11-04 20:06:24 INFO install File "/usr/lib/
2015-11-04 20:06:24 INFO install raise CalledProcessEr
2015-11-04 20:06:24 INFO install subprocess.
2015-11-04 20:06:24 INFO juju.worker.
2015-11-04 20:06:24 ERROR juju.worker.
Related branches
- OpenStack Charmers: Pending requested
-
Diff: 29 lines (+10/-1)1 file modifiedlib/swift_storage_utils.py (+10/-1)
- OpenStack Charmers: Pending requested
-
Diff: 11378 lines (+11055/-2) (has conflicts)49 files modified.bzrignore (+3/-0)
.testr.conf (+8/-0)
actions.yaml (+6/-0)
actions/actions.py (+108/-0)
actions/openstack_upgrade.py (+34/-0)
charm-helpers-hooks.yaml (+5/-0)
charmhelpers.new/cli/__init__.py (+191/-0)
charmhelpers.new/cli/benchmark.py (+36/-0)
charmhelpers.new/cli/commands.py (+32/-0)
charmhelpers.new/cli/hookenv.py (+23/-0)
charmhelpers.new/cli/host.py (+31/-0)
charmhelpers.new/cli/unitdata.py (+39/-0)
charmhelpers.new/contrib/hahelpers/cluster.py (+316/-0)
charmhelpers.new/contrib/network/ip.py (+456/-0)
charmhelpers.new/contrib/openstack/amulet/deployment.py (+197/-0)
charmhelpers.new/contrib/openstack/amulet/utils.py (+963/-0)
charmhelpers.new/contrib/openstack/context.py (+1443/-0)
charmhelpers.new/contrib/openstack/ip.py (+151/-0)
charmhelpers.new/contrib/openstack/neutron.py (+370/-0)
charmhelpers.new/contrib/openstack/templates/ceph.conf (+21/-0)
charmhelpers.new/contrib/openstack/templating.py (+323/-0)
charmhelpers.new/contrib/openstack/utils.py (+978/-0)
charmhelpers.new/contrib/python/packages.py (+121/-0)
charmhelpers.new/contrib/storage/linux/ceph.py (+657/-0)
charmhelpers.new/contrib/storage/linux/utils.py (+71/-0)
charmhelpers.new/core/files.py (+45/-0)
charmhelpers.new/core/hookenv.py (+930/-0)
charmhelpers.new/core/host.py (+586/-0)
charmhelpers.new/core/hugepage.py (+69/-0)
charmhelpers.new/core/kernel.py (+68/-0)
charmhelpers.new/core/services/base.py (+353/-0)
charmhelpers.new/core/services/helpers.py (+283/-0)
charmhelpers.new/core/strutils.py (+72/-0)
charmhelpers.new/core/unitdata.py (+521/-0)
charmhelpers.new/fetch/__init__.py (+456/-0)
charmhelpers.new/fetch/archiveurl.py (+167/-0)
charmhelpers.new/fetch/giturl.py (+73/-0)
lib/misc_utils.py (+110/-0)
lib/swift_storage_utils.py (+363/-0)
requirements.txt (+11/-0)
test-requirements.txt (+8/-0)
tests/020-basic-trusty-liberty (+11/-0)
tests/021-basic-wily-liberty (+9/-0)
tests/tests.yaml (+20/-0)
tox.ini (+29/-0)
unit_tests/test_actions.py (+220/-0)
unit_tests/test_actions_openstack_upgrade.py (+58/-0)
unit_tests/test_swift_storage_relations.py (+9/-1)
unit_tests/test_swift_storage_utils.py (+1/-1)
Changed in swift-storage (Juju Charms Collection): | |
status: | New → Invalid |
After waiting a while, I was able to manually run the same mkfs command on the unit:
http:// paste.ubuntu. com/13105459/
ubuntu@ international- steam:~ $ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
└─sda1 8:1 0 465.8G 0 part /
sdb 8:16 0 465.8G 0 disk
sr0 11:0 1 1024M 0 rom
...
ubuntu@ international- steam:~ $ sudo parted -l
Model: ATA ST9500620NS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 500GB 500GB primary ext4 boot
Error: /dev/sdb: unrecognised disk label
...
ubuntu@ international- steam:~ $ sudo mkfs.xfs -f -i size=1024 /dev/sdb international- steam:~ $ echo $?
meta-data=/dev/sdb isize=1024 agcount=4, agsize=30524162 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=122096646, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=59617, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
ubuntu@
0
...
ubuntu@ international- steam:~ $ sudo parted -l
Model: ATA ST9500620NS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 500GB 500GB primary ext4 boot
Model: ATA ST9500620NS (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 500GB 500GB xfs