On Wednesday, February 15, 2012 at 9:28 PM, Joshua J. Kugler wrote:
So, this problem:Doing koan installs and allowing auto-register gives me a system with"localhost" as the host name and a weird floating point number as thesystem name in Cobbler, instead of what I expected, which was the valueI provided to koan as --virt-name.
if self.hostname != "" and self.hostname != "*AUTO*":hostname = self.hostnamesysname = self.hostnameelse:hostname = socket.getfqdn()if hostname == "localhost.localdomain":if self.hostname == '*AUTO*':hostname = ""sysname = str(time.time())else:raise InfoException("must specify --fqdn, could not discover")if sysname == "":
lead to this attempted solution:I defined a system using the profile I wanted, and then try to run koanwith --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 --profilewas not run when I installed via a --system= that used the samepreviously mentioned profile.
which lead to this attempt:koan --virt --profile=builder-el6-x86_64 --system=builder-el6-64-01\--server=cobbler.example.com --virt-path=vg_groupwhich lead to this interesting bug:- looking for Cobbler at http://cobbler.example.com:80/cobbler_api- reading URL: http://172.29.1.101/cblr/svc/op/ks/system/builder-el6-x86_64Traceback (most recent call last):<snip>raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)HTTPError: HTTP Error 404: NOT FOUNDWhy was it trying to pull the profile from the system section of theAPI?Can't you "override" the profile when you specify a system?
This is Cobbler/Koan 2.2.2 by the way.Thanks for any help you can render!j--Joshua J. Kugler - Fairbanks, AlaskaAzariah Enterprises - Programming and Website Designjoshua@azariah.com - Jabber: pedahzur@gmail.comPGP Key: http://pgp.mit.edu/ ID 0x73B13B6A_______________________________________________cobbler mailing list