juju add-storage doesn't always grab ebs volumes on aws
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
Using Juju 2.2rc1 from the develop branch of today 5/22/17
Reproducer (run all in sequence):
juju bootstrap aws/us-east-1
juju deploy canonical-
juju deploy cs:ceph-mon -n 3
juju deploy cs:ceph-osd -n 3
juju add-relation ceph-mon ceph-osd
juju add-storage ceph-osd/0 osd-devices=
juju add-storage ceph-osd/1 osd-devices=
juju add-storage ceph-osd/2 osd-devices=
juju add-relation kubernetes-master ceph-mon
Problem:
Sometimes ebs volumes get attached other times it uses the machines loop device:
[adam:~] $ juju storage
[Storage]
Unit Id Type Pool Provider id Size Status Message
ceph-osd/0 osd-devices/0 block loop volume-12-0 1.0GiB attached
ceph-osd/1 osd-devices/1 block ebs vol-0aaf312a37a
ceph-osd/2 osd-devices/2 block ebs vol-0a10b11e58c
Juju status:
http://
unit-ceph-osd-0.log
http://
There are times where this problem doesn't present itself as well, and other times when all ebs volumes fail to attach.
One additional thing to note is if we wait for canonical-
description: | updated |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Andrew Wilkins (axwalk) |
milestone: | none → 2.2-rc1 |
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I think the trigger for this is the unit not yet being assigned to a machine. i.e. if you add a unit and then immediately run "juju add-storage" to that unit, and it hasn't yet been assigned a machine, then you'll get "loop" storage.