Hi Ray, I don't believe the below fix applies in your case. I think you'll need to add some debugging in various files to figure out why profile is not being passed down to install_server's functions.
FWIW, the job fail is real because we expected a profile called "None", but got instead a profile, probably called "rhel6.2-server" -- which doesn't match. That the expectation was "None" is a bug :) You could see if the below does work for you but the below patch should only matter if using the branch/pull request that has the extra cobbler integration patches in it. Thanks, Nish On 18.05.2012 [18:46:09 +0000], Spear, Raymond (Mission Critical Linux) wrote: > > I do not know if this is related or not. I am running autotest with this > commit as the "head" > > commit 58ede1aed30d6545fb2b2be14f38b8dbdf4b33dc > Author: Lucas Meneghel Rodrigues <l...@redhat.com> > Date: Thu May 17 21:35:43 2012 -0300 > > > When I do the server install "test" I get the following in the debug log: > > 05/18 15:27:34 INFO |server_job:0117| START reinstall reinstall > timestamp=1337380054 localtime=May 18 15:27:34 > 05/18 15:27:34 INFO |server_job:0117| START ---- install > timestamp=1337380054 localtime=May 18 15:27:34 tcd380-08.cce.hp.com > 05/18 15:27:34 INFO |server_job:0117| GOOD ---- > install.start timestamp=1337380054 localtime=May 18 15:27:34 > tcd380-08.cce.hp.com > 05/18 15:27:34 INFO |install_se:0115| Installing machine tcd380-08.cce.hp.com > with profile None (timeout 3600 s) > 05/18 15:35:52 DEBUG|install_se:0140| Cobbler got signaled that host > tcd380-08.cce.hp.com installation is finished > 05/18 15:35:52 INFO |install_se:0152| Host tcd380-08.cce.hp.com installation > resulted in different profile > 05/18 15:38:09 DEBUG|install_se:0140| Cobbler got signaled that host > tcd380-08.cce.hp.com installation is finished > 05/18 15:38:09 INFO |install_se:0152| Host tcd380-08.cce.hp.com installation > resulted in different profile > > and the "test" then fails even though the SUT successfully installed > (unfortunately twice). > > Why is my profile "None". > > I have this in the global_config.ini file: > [INSTALL_SERVER] > # Install server type > type: cobbler > # URL for xmlrpc_server, such as http://foo.com/cobbler_api > xmlrpc_url: http://hilbert.cce.hp.com/cobbler_api > # XMLRPC user, in case the server requires authentication > user: cobbler > # XMLRPC password, in case the server requires authentication > password: mclinux > # Profile to install by default on your client machine > fallback_profile: rhel6.2_server > > and my cobbler serve does have that profile. > > > Thanks, ray spear > > -----Original Message----- > From: autotest-boun...@test.kernel.org > [mailto:autotest-boun...@test.kernel.org] On Behalf Of Nishanth Aravamudan > Sent: Thursday, May 17, 2012 4:29 PM > To: l...@redhat.com > Cc: autotest@test.kernel.org > Subject: [Autotest] [PATCH] install_server: fix repair > > If we do not pass a profile to install_host(), we end up un-setting the > host's profile in cobbler, which causes subsequent sync's to throw > exceptions. It makes sense in this situation to use the existing profile from > the system. But rather than call this repeatedly, pull it up before we start > the install. > > Found during verify/repair testing. > > Signed-off-by: Nishanth Aravamudan <n...@us.ibm.com> > > diff --git a/server/hosts/install_server.py b/server/hosts/install_server.py > index 9a6c013..5a4a637 100644 > --- a/server/hosts/install_server.py > +++ b/server/hosts/install_server.py > @@ -109,6 +109,10 @@ class CobblerInterface(object): > # 1 hour of timeout by default > timeout = 3600 > > + system, system_handle = self.get_system_handle(host) > + if profile is None: > + profile = self.server.get_system(system).get('profile') > + > host.record("START", None, "install", host.hostname) > host.record("GOOD", None, "install.start", host.hostname) > logging.info("Installing machine %s with profile %s (timeout %s s)", > @@ -122,7 +126,6 @@ class CobblerInterface(object): > (time_elapsed < timeout)): > > self._set_host_profile(host, profile) > - system, system_handle = self.get_system_handle(host) > self.server.power_system(system_handle, > 'reboot', self.token) > installations_attempted += 1 > > > -- > Nishanth Aravamudan <n...@us.ibm.com> > IBM Linux Technology Center > > _______________________________________________ > Autotest mailing list > Autotest@test.kernel.org > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > -- Nishanth Aravamudan <n...@us.ibm.com> IBM Linux Technology Center _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest