[1.9,2.0,UX] Creating a Bcache disk is not prevented when is not created in partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse | ||
2.0 |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Steps to replicate:
* create small partition on a block device so that there is space left
* try to create bcache by clicking on the block device with free space (see maas1.png and maas2.png attachments)
* when "Create bcache" is clicked the block device with free space disappears from "Available disks and partitions" (attachment maas3.png) but does not appear under "Filesystems. Also "Create bcache" causes the following traceback:
2016-07-08 11:13:41 [-] Error on request (54) node.create_bcache: <ul class="
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
return target()
--- <exception caught here> ---
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
raise HandlerError(
maasserver.
Problems:
1. MAAS UI suggests it's possible to create bcache on a disk with free space but that does not work
2. MAAS UI does not show error message or create bcache as requested
Ideally default behavior should be to just use all free disk space as backing device but simple error message similar to "Please create partition first" would do the job
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
un maas <none> <none> (no description available)
ii maas-cli 1.9.3+bzr4577-
un maas-cluster-
ii maas-common 1.9.3+bzr4577-
un maas-dhcp <none> <none> (no description available)
ii maas-dns 1.9.3+bzr4577-
ii maas-proxy 1.9.3+bzr4577-
ii maas-region-
ii maas-region-
ii python-django-maas 1.9.3+bzr4577-
ii python-maas-client 1.9.3+bzr4577-
ii python-
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 238 lines (+150/-15)3 files modifiedsrc/maasserver/static/js/angular/controllers/node_details_storage.js (+35/-8)
src/maasserver/static/js/angular/controllers/tests/test_node_details_storage.js (+112/-5)
src/maasserver/static/partials/node-details.html (+3/-2)
- Blake Rouse (community): Approve
-
Diff: 238 lines (+150/-15)3 files modifiedsrc/maasserver/static/js/angular/controllers/node_details_storage.js (+35/-8)
src/maasserver/static/js/angular/controllers/tests/test_node_details_storage.js (+112/-5)
src/maasserver/static/partials/node-details.html (+3/-2)
Changed in maas: | |
milestone: | none → 2.0.0 |
milestone: | 2.0.0 → 2.1.0 |
summary: |
- Bcache creation is unintuitive and causes traceback + [1.9,2.0,UX] Bcache creation is unintuitive and causes traceback |
summary: |
- [1.9,2.0,UX] Bcache creation is unintuitive and causes traceback + [1.9,2.0,UX] Creating a Bcache disk is not prevented when is not created + in partition |
Changed in maas: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.0.1 → none |
status: | Fix Committed → Fix Released |