block.wipe_volume(mode='pvremove') fails on ubuntu precise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Wesley Wiedenmeier |
Bug Description
On versions of ubuntu trusty and up, lvmetad keeps a cache of pvscan results. In order to refresh this cache after pvremove has been run, block.wipe_volume therefore uses 'pvscan --cache'. However, on ubuntu precise, lvmetad is not yet present. The pvscan utility does not have a --cache flag. That results in block.wipe_volume stacktracing:
ubuntu@
Python 2.7.3 (default, Jun 22 2015, 19:33:41)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from curtin import block
>>> block.wipe_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "curtin/
util.subp(cmd, rcs=[0, 5], capture=True)
File "curtin/util.py", line 141, in subp
return _subp(*args, **kwargs)
File "curtin/util.py", line 91, in _subp
cmd=args)
curtin.
Command: ['pvscan', '--cache']
Exit code: 3
Reason: -
Stdout: ''
Stderr: u"pvscan: unrecognized option '--cache'\n Error during parsing of comma
nd line.\n"
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Wesley Wiedenmeier (community): Needs Resubmitting
- curtin developers: Pending requested
-
Diff: 2214 lines (+1515/-265)15 files modifiedcurtin/block/__init__.py (+176/-47)
curtin/block/clear_holders.py (+379/-0)
curtin/block/lvm.py (+96/-0)
curtin/commands/block_info.py (+75/-0)
curtin/commands/block_meta.py (+82/-203)
curtin/commands/block_wipe.py (+0/-1)
curtin/commands/clear_holders.py (+48/-0)
curtin/commands/main.py (+4/-3)
curtin/config.py (+2/-3)
curtin/util.py (+35/-8)
doc/devel/clear_holders_doc.txt (+85/-0)
tests/unittests/test_block.py (+99/-0)
tests/unittests/test_block_lvm.py (+94/-0)
tests/unittests/test_clear_holders.py (+321/-0)
tests/unittests/test_util.py (+19/-0)
Changed in curtin: | |
assignee: | nobody → Wesley Wiedenmeier (wesley-wiedenmeier) |
Changed in curtin: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New
Thank you.