[opensuse-autoinstall] Strange problem with creating a modified.xml
What does "Can't detect Profile Version" usually indicate?
From y2log.. === 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] AutoinstScripts.ycp:545 Script Execution command: /bin/sh /tmp/YaST2-03375-S80cIe/pre-scripts/pre.sh 2&> /tmp/YaST2-03375-S80cIe/pre-scripts/logs/pre.sh.log 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] XML.ycp:113 Reading /tmp/profile/modified.xml 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [agent-xml] XmlAgent.cc(Read):758 Setting XML generic error handler 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [agent-xml] XmlAgent.cc(Read):793 Freeing generic XML error handler 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] Profile.ycp:167 importing profile 2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] Profile.ycp:149 Can't detect Profile Version ===
The bizarre thing is that I'm trying to use a pre.sh script to replace some lines in the profile, writing it out as /tmp/profile/modified.xml and this fails. But, if I take exactly that modified.xml file (scp'd off via the console) and feed that back into the same host again on a new attempt at installing, I get the above error, but the autoinst.xml (which should be invalid too since it's identical[*]) works fine. This makes no sense... why would it reject modified.xml but work just fine as the fallback? Is there something in the parsing of modified.xml that is a little more strict I might be missing? [*]there are differences in a couple of the scripts, the parsing I'm doing removes the backslashes that I used i some sed commands, so I double backslash them. This doesn't effect the profile itself though. A diff shows that the autoinst.xml (which works) vs the modified.xml (which is rejected) are the same, other then the backslashes inside the scripts CDATA blocks. -- Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com Grandpa: "Quick! We have to kill the boy!" Marge: "How'd you know he's a vampire?" Grandpa: "He's a vampire?!? Ahhh...." [runs away] ==> Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Tue, Feb 27, 2007 at 10:37:08PM -0800, Mike Marion wrote:
What does "Can't detect Profile Version" usually indicate?
Forgot to mention the problem I'm having is while trying to install SLED10. -- Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com Lisa: "As you know, we've been swimming. And we've developed a taste for it. We agree that getting our own pool is the way to go. Now before you respond, you should know that your refusal will result in months and months of..." Bart, Lisa: "CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad?" Homer: "I understand. Let us celebrate our agreement with the adding of chocolate to milk." -- Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wednesday 28 February 2007 07:37, Mike Marion wrote:
2007-02-28 01:27:04 <1> 10.42.37.174(3375) [YCP] Profile.ycp:149 Can't detect Profile Version ===
that message can be ignored
The bizarre thing is that I'm trying to use a pre.sh script to replace some lines in the profile, writing it out as /tmp/profile/modified.xml and this fails.
how does it fail? what is the error message?
Is there something in the parsing of modified.xml that is a little more strict I might be missing?
no -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Faderhead - Melt Into Your Eyes -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wed, Feb 28, 2007 at 11:25:30AM +0100, Uwe Gansert wrote:
how does it fail? what is the error message?
Hmm.. now I'm REALLY confused. :) I might've had errors that made my post-installs and such fail but this is _really_ odd. I fed in a profile that had a pre.sh that would output a modified.xml with 1 line change. I saved off /tmp/profile/*.xml and diff shows: $ diff autoinst.xml modified.xml 697c697 < sed -e 's/ /_SP_/g' -e 's/ /_TAB_/g' -e 's/\\/\\\\/g' $xmlin | while read line ---
sed -e 's/ / /g' -e 's/ / /g' -e 's/\\/\\\\/g' $xmlin | while read line
699,700c699,700 < line=${line//_SP_/ } < line=${line//_TAB_/ } ---
line=${line// / } line=${line// / }
848c848 < <timezone>US/Pacific</timezone> ---
<timezone>US/Eastern</timezone>
It's ok to ignore the 2 sed lines.. they're in the pre.sh part and have no effect, but the timezone is the bit that's important. After the install is done, I find: lnxlabbld3:/var/adm/autoinstall # diff -q modified.xml cache/installedSystem.xml Files modified.xml and cache/installedSystem.xml differ lnxlabbld3:/var/adm/autoinstall # diff -q autoinst.xml cache/installedSystem.xml lnxlabbld3:/var/adm/autoinstall # However: lnxlabbld3:/var/adm/autoinstall # date Wed Feb 28 17:53:34 EST 2007 So at the very least, autoyast seems to copy /tmp/profiles/autoinst.xml into /var/adm/autoinstall/cache/installedSystem.xml instead of copying modified.xml into there. The fact that I had my scripts failing in a way that seemed to indicate networking misconfiguration problems, and that the installedSystem.xml wasn't the modified.xml file.. led me to think that modified.xml was being ignored.. perhaps it's not. I'm going to try another test with my parts fixed (they're working in the above install test) and see if it semes to work or not. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Antonio: "No more lonely Saturday nights, lying in a dark room listening to the faucet drip, drip, drip. Wondering what's the point to going on?" Brian: "Yeah? What are you going to do?:" Antonio: "I'm volunteering at the Suicide Hotline." Brian: "All right! PARTY ON!" -- Wings -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Wednesday 28 February 2007 23:55, Mike Marion wrote:
So at the very least, autoyast seems to copy /tmp/profiles/autoinst.xml into /var/adm/autoinstall/cache/installedSystem.xml instead of copying modified.xml into there.
okay, we can call that a bug -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Mar 01, 2007 at 12:58:09PM +0100, Uwe Gansert wrote:
On Wednesday 28 February 2007 23:55, Mike Marion wrote:
So at the very least, autoyast seems to copy /tmp/profiles/autoinst.xml into /var/adm/autoinstall/cache/installedSystem.xml instead of copying modified.xml into there.
okay, we can call that a bug
FYI, this still exists (or cropped up again) in at least SLED10-SP1. I did some installs prep-ing our updated image last week and the resulting file in cache was not the modified copy. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com _Colonel Slade_: "There is nothing like the sight of an amputated spirit. There is no prosthetic for that." - From _Scent of a Woman_ -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Am 27.09.2007 um 00:57 schrieb Mike Marion:
So at the very least, autoyast seems to copy /tmp/profiles/ autoinst.xml into /var/adm/autoinstall/cache/installedSystem.xml instead of copying modified.xml into there.
okay, we can call that a bug
FYI, this still exists (or cropped up again) in at least SLED10- SP1. I did some installs prep-ing our updated image last week and the resulting file in cache was not the modified copy.
hm. That seems to went of my radar somehow. I have filed a bugreport for me. Thanx. https://bugzilla.novell.com/show_bug.cgi?id=328837 ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Sep 27, 2007 at 11:24:48AM +0200, Uwe Gansert wrote:
hm. That seems to went of my radar somehow. I have filed a bugreport for me. Thanx. https://bugzilla.novell.com/show_bug.cgi?id=328837
Thanks. Come to think of it, you might've asked me to submit a case and I probably never got around to it. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Lisa: "As you know, we've been swimming. And we've developed a taste for it. We agree that getting our own pool is the way to go. Now before you respond, you should know that your refusal will result in months and months of..." Bart, Lisa: "CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad? CanwehaveapoolDad?" Homer: "I understand. Let us celebrate our agreement with the adding of chocolate to milk." -- Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Thu, Mar 01, 2007 at 12:58:09PM +0100, Uwe Gansert wrote:
On Wednesday 28 February 2007 23:55, Mike Marion wrote:
So at the very least, autoyast seems to copy /tmp/profiles/autoinst.xml into /var/adm/autoinstall/cache/installedSystem.xml instead of copying modified.xml into there.
okay, we can call that a bug
FYI, this still exists (or cropped up again) in at least SLED10-SP1. I did some installs prep-ing our updated image last week and the resulting file in cache was not the modified copy.
FWIW, at Intel we've long had a line in a chroot script which copies the modified.xml file to the /var/adm/autoinstall/cache directory alongside the installedSystem.xml file. Although I agree it would be nice if autoyast saved the modified one itself, I'd like to point out that it's sometimes useful, for debugging, to have both the original and modified profiles. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Fri, Sep 28, 2007 at 03:49:22PM -0700, Joseph V Moss wrote:
Although I agree it would be nice if autoyast saved the modified one itself, I'd like to point out that it's sometimes useful, for debugging, to have both the original and modified profiles.
I added this request into the case he opened about the modified file not being copied at all. So I wasn't wrong in assuming it'd be helpful to more then just us. :) -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com [Bart & Lisa are reading a magazine at the Kwik-E-Mart.] Apu: "Hey, hey, this is not a lending library. If you're not going to buy that thing put it down or I'll blow your heads off!" -- Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Joseph V Moss
-
Mike Marion
-
Uwe Gansert