Merge lp:~nuclearbob/utah/loop-exception into lp:utah
Proposed by
Max Brustkern
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Max Brustkern | ||||||||
Approved revision: | 821 | ||||||||
Merged at revision: | 815 | ||||||||
Proposed branch: | lp:~nuclearbob/utah/loop-exception | ||||||||
Merge into: | lp:utah | ||||||||
Diff against target: |
47 lines (+12/-7) 1 file modified
utah/provisioning/baremetal/cobbler.py (+12/-7) |
||||||||
To merge this branch: | bzr merge lp:~nuclearbob/utah/loop-exception | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joe Talbott (community) | Approve | ||
Max Brustkern (community) | Needs Resubmitting | ||
Javier Collado (community) | Approve | ||
Review via email:
|
Description of the change
This branch raises an exception when an attempt to mount an ISO fails. If the status is 2, the exception suggests a lack of loop devices as the most likely cause.
To test this, I copied the inventory database from mangers-orchestra, installed NFS on my local machine, mounted enough ISOs to fill up all of my loop devices, and ran this command from the branch directory:
PYTHONPATH=. ./examples/
To post a comment you must log in.
Looks good to me.
On line 41 perhaps you could just have:
raise UTAHBMProvision ingException( self.installtyp e)
'NFS needed for {}'.format(
)