Merge lp:~doanac/utah/bug1172495 into lp:utah

Proposed by Andy Doan
Status: Merged
Merged at revision: 876
Proposed branch: lp:~doanac/utah/bug1172495
Merge into: lp:utah
Diff against target: 35 lines (+1/-2)
3 files modified
utah/provisioning/baremetal/bamboofeeder.py (+0/-1)
utah/provisioning/baremetal/cobbler.py (+0/-1)
utah/provisioning/provisioning.py (+1/-0)
To merge this branch: bzr merge lp:~doanac/utah/bug1172495
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Review via email: mp+160953@code.launchpad.net

Description of the change

this should fix the regression I caused.

tested on:
 alderamin: desktop and server vm's
 magners: desktop and server iso on veriton-04

To post a comment you must log in.
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I almost wonder if uuid check should come before setting provisioned to True? It probably doesn't make a difference since failing the uuid check will raise an Exception anyway.

Revision history for this message
Andy Doan (doanac) wrote :

On 04/25/2013 01:27 PM, Max Brustkern wrote:
> I almost wonder if uuid check should come before setting provisioned to True? It probably doesn't make a difference since failing the uuid check will raise an Exception anyway.

The problem is that uuid_check uses "run" which in practice uses ssh
which checks if provisioned=True. I think I have a cleaner idea, i'm
going to try where we get the UUID via rsyslog. Testing the patch(es) today.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

That makes a sense. The current version works for me, but if you're planning something else, I can look at that.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'utah/provisioning/baremetal/bamboofeeder.py'
2--- utah/provisioning/baremetal/bamboofeeder.py 2013-04-18 17:17:45 +0000
3+++ utah/provisioning/baremetal/bamboofeeder.py 2013-04-25 16:49:32 +0000
4@@ -285,7 +285,6 @@
5 retry_timeout=config.checktimeout)
6
7 self.active = True
8- self._uuid_check()
9 self.logger.info('System installed')
10 self.cleanfunction(self.run, (
11 'dd', 'bs=512k', 'count=10', 'if=/dev/zero', 'of=/dev/mmcblk0'),
12
13=== modified file 'utah/provisioning/baremetal/cobbler.py'
14--- utah/provisioning/baremetal/cobbler.py 2013-04-18 17:48:44 +0000
15+++ utah/provisioning/baremetal/cobbler.py 2013-04-25 16:49:32 +0000
16@@ -217,7 +217,6 @@
17 self._removenfs()
18
19 self.active = True
20- self._uuid_check()
21 self.logger.info('System installed')
22
23 def _disable_netboot(self, match):
24
25=== modified file 'utah/provisioning/provisioning.py'
26--- utah/provisioning/provisioning.py 2013-04-24 11:37:21 +0000
27+++ utah/provisioning/provisioning.py 2013-04-25 16:49:32 +0000
28@@ -411,6 +411,7 @@
29 self.logger.debug('Failed to load machine: %s', str(err))
30 self._create()
31 self.provisioned = True
32+ self._uuid_check()
33
34 def _create(self):
35 # TODO: discuss separation of this vs. start when separating Install

Subscribers

People subscribed via source and target branches

to all changes: