[2.5] Can create a bcache from a pre-existing bcache.

Bug #1803594 reported by Newell Jensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Steve Rydz

Bug Description

While playing around with bcaches I noticed that in the UI, you can create a bcache from a pre-existing bcache. To reproduce, create a bcache. Once the bcache is created it will show up in the list of available disks and partitions. Click on it and choose to create a bcache again. After this, when trying to deploy the installation fails as seen below:

curtin: Installation started. (18.1-51-gb812ae80-0ubuntu2~18.04.1)
third party drivers not installed or necessary.
UUID: b84f88c9-4100-45f5-b010-6207565400a2
Set UUID: 7abffb02-0c31-4a2b-947e-8efc130feda4
version: 1
block_size: 1
data_offset: 16
UUID: be7cac36-90d5-4a9d-ae50-778def68462c
Set UUID: c239917b-a6d8-4f07-9a88-2f768b96172e
version: 1
block_size: 1
data_offset: 16
UUID: 8ca4bdcd-c339-4934-b354-ca9027a20f35
Set UUID: b34e1150-16a2-4418-a8ae-28f1ee636726
version: 1
block_size: 1
data_offset: 16
An error occured handling 'bcache4': RuntimeError - ('Unexpected old bcache device: %s', '/dev/bcache0')
('Unexpected old bcache device: %s', '/dev/bcache0')
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: UUID: b84f88c9-4100-45f5-b010-6207565400a2
        Set UUID: 7abffb02-0c31-4a2b-947e-8efc130feda4
        version: 1
        block_size: 1
        data_offset: 16
        UUID: be7cac36-90d5-4a9d-ae50-778def68462c
        Set UUID: c239917b-a6d8-4f07-9a88-2f768b96172e
        version: 1
        block_size: 1
        data_offset: 16
        UUID: 8ca4bdcd-c339-4934-b354-ca9027a20f35
        Set UUID: b34e1150-16a2-4418-a8ae-28f1ee636726
        version: 1
        block_size: 1
        data_offset: 16
        An error occured handling 'bcache4': RuntimeError - ('Unexpected old bcache device: %s', '/dev/bcache0')
        ('Unexpected old bcache device: %s', '/dev/bcache0')

Stderr: ''

Related branches

summary: - [2.5] Can create a bcache from a pre-existing bcache.
+ Can create a bcache from a pre-existing bcache.
Changed in maas:
milestone: next → 2.5.1
summary: - Can create a bcache from a pre-existing bcache.
+ [2.5] Can create a bcache from a pre-existing bcache.
Changed in maas:
milestone: 2.5.1 → 2.5.2
Changed in maas:
milestone: 2.5.2 → 2.5.3
Changed in maas:
milestone: 2.5.3 → 2.6.0beta2
Changed in maas:
milestone: 2.6.0beta2 → 2.6.0rc1
Changed in maas:
milestone: 2.6.0rc1 → 2.6.0rc2
Changed in maas:
assignee: nobody → Steve Rydz (steverydz)
Steve Rydz (steverydz)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 2.6.0rc2 → 2.6.0rc1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.