[2.4] Creating bcache partitions fails in some situations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Unassigned | ||
2.3 |
Fix Released
|
Critical
|
Blake Rouse | ||
2.4 |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
MAAS version: 2.3.2 (6485-ge93e044-
A disk with multiple partitions and if one of the partition is bcache, MAAS umount / mount point. It has to do with the order when the bcache partitions are created. The workaround is to create the non-bcache partition and mount it at /. Then create the rest of the partions with bcache.
create sda_part1
create sda_part2_bcache
mount sda_part1 / <=== maas will umount this right after it is mounted
work around:
create sda_part1
mount sda_part1 /
create sda_part2_bcache
create sda_part3_bcache
2018-05-29 20:00:59 maasserver.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
params.
params.
File "/usr/lib/
raise HandlerError(
maasserver.
Related branches
- Blake Rouse (community): Approve
-
Diff: 631 lines (+443/-50)4 files modifiedsrc/maasserver/models/partition.py (+4/-9)
src/maasserver/models/tests/test_partition.py (+15/-0)
src/maasserver/preseed_storage.py (+58/-41)
src/maasserver/tests/test_preseed_storage.py (+366/-0)
- Blake Rouse (community): Approve
-
Diff: 656 lines (+454/-50)4 files modifiedsrc/maasserver/models/partition.py (+4/-9)
src/maasserver/models/tests/test_partition.py (+15/-0)
src/maasserver/preseed_storage.py (+58/-41)
src/maasserver/tests/test_preseed_storage.py (+377/-0)
summary: |
- MAAS removes / mount point with bcache + MAAA umount / mount point with bcache |
description: | updated |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.4.1 |
milestone: | 2.4.1 → 2.5.x |
Changed in maas: | |
status: | Triaged → Invalid |
milestone: | 2.5.0 → none |
Changed in maas: | |
status: | Invalid → Fix Released |
Another work around i have tested in 2.4 is:
1. create unformatted partition 1 (sda-part1)
2. Create unformatted partition 2 (sda-part2)
3. Select sda-part2 and 'Create bcache' and mount in /var/lib/lxc
4. Select sda-part1 and 'Edit' and mount to /