curtin fails to export zpool

Bug #1770280 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Medium
Unassigned

Bug Description

When redeploying on a host that has disks that have been in zfs pools, curtin attempts to export the pool to release the device, however, those devices may not be part of an ONLINE pool and exporting them does not help and causes a failure.

Unexpected error while running command.
Command: ['zpool', 'export', 'rpool']
Exit code: 1
Reason: -
Stdout: ''
Stderr: ''
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: cannot open 'rpool': no such pool
        Unexpected error while running command.
        Command: ['zpool', 'export', 'rpool']
        Exit code: 1
        Reason: -
        Stdout: ''
        Stderr: ''

Related branches

Revision history for this message
Ryan Harper (raharper) wrote :

I can recreate this failure by exporting the root pool between curtin install invocations. Curtin should ignore zpool members that aren't currently online.

Ryan Harper (raharper)
Changed in curtin:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Ryan Harper (raharper) wrote :

An upstream commit landed for this bug.

To view that commit see the following URL:
https://git.launchpad.net/curtin/commit/?id=736808c0

Changed in curtin:
status: In Progress → Fix Committed
Revision history for this message
Ryan Harper (raharper) wrote : Fixed in curtin version 18.1-17-gae48e86f-0ubuntu1.

This bug is believed to be fixed in curtin in version18.1-17-gae48e86f-0ubuntu1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
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.