lead to this attempted solution:
I defined a system using the profile I wanted, and then try to run
koan with --system=SYSTEM_NAME.
which lead to this problem:
System installs fine, but the kickstart meta data does not take
affect; in this case, the chef job that was run when I installed
via --profile was not run when I installed via a --system= that
used the same previously mentioned profile.
You might be using different kickstart templates if you assigned
--kickstart to the system. Hard to tell without seeing more.
I would find it unlikely that the metadata merger is broken as that's
a pretty core piece of functionality.
In the profile I have:
Kickstart: /var/lib/cobbler/kickstarts/el6.ks
Kickstart Metadata: chef_args=-j
user_packages=@Development Tools,koan
In the system, Kickstart and Kickstart Metadata are blank (I had tried
putting <<inherit>> in there when I defined the system, but when I
saved, it blanked it out.
My install command line was:
koan --virt --virt-name="test-jk-el6-64" --profile=builder-el6-x86_64 --
server=ourcobblerserver --virt-path=VolGroupName
It followed all the specs of the profile except for the Kickstart
Metadata.
which lead to this attempt:
koan --virt --profile=builder-el6-x86_64
which lead to this interesting bug:
- reading URL:
Traceback (most recent call last):
<snip>
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: NOT FOUND
Why was it trying to pull the profile from the system section of
the API?
Can't you "override" the profile when you specify a system?
Kickstart metadata is hash merged such that ks meta values in the
profile blend with the system, with the system replacing any keys
defined in the system. Though if you had a key set in the profile
and not in the system, it would obviously remain.
OK, I understand that. However, please look at the error again. When I
specify both the profile and the builder, it tries to pull the *PROFILE*
from /system/
/cblr/svc/op/ks/system/builder-el6-x86_64
instead of from
/cblr/svc/op/ks/profile/builder-el6-x86_64
The latter one works.
j
--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
_______________________________________________
cobbler mailing list