Race condition: rbd device not yet available when mkfs is called
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Same bug as https:/
When establishing a relation with ceph, there is a race condition in which the rbd device is not yet available but the charm attempts to format it:
2013-08-08 21:42:19 INFO juju juju-log.go:64 mysql/0 ceph:7: ceph: Creating new pool mysql.
2013-08-08 21:42:19 INFO juju context.go:235 worker/uniter: HOOK successfully created pool mysql
2013-08-08 21:42:20 INFO juju server.go:105 worker/
2013-08-08 21:42:20 DEBUG juju server.go:106 worker/
2013-08-08 21:42:20 INFO juju juju-log.go:64 mysql/0 ceph:7: ceph: Creating RBD image (mysql1).
2013-08-08 21:42:20 INFO juju server.go:105 worker/
2013-08-08 21:42:20 DEBUG juju server.go:106 worker/
2013-08-08 21:42:20 INFO juju juju-log.go:64 mysql/0 ceph:7: ceph: Mapping RBD Image as a Block Device.
2013-08-08 21:42:20 INFO juju server.go:105 worker/
2013-08-08 21:42:20 DEBUG juju server.go:106 worker/
2013-08-08 21:42:20 INFO juju juju-log.go:64 mysql/0 ceph:7: ceph: Formatting block device /dev/rbd/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK mke2fs 1.42 (29-Nov-2011)
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK Could not stat /dev/rbd/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK The device apparently does not exist; did you specify it correctly?
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK Traceback (most recent call last):
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK utils.do_
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK hook_func()
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK system_
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK make_filesystem
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK execute(cmd)
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/var/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK subprocess.
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK File "/usr/lib/
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK raise CalledProcessEr
2013-08-08 21:42:20 INFO juju context.go:235 worker/uniter: HOOK subprocess.
2013-08-08 21:42:20 ERROR juju uniter.go:352 worker/uniter: hook failed: exit status 1
Related branches
- Adam Gandelman (community): Approve
-
Diff: 46 lines (+18/-6)2 files modifiedhooks/lib/ceph_utils.py (+17/-5)
revision (+1/-1)
Changed in mysql (Juju Charms Collection): | |
status: | New → Fix Released |
tags: | added: landscape |