>
> Hi Jeremy,
>
> Looking over your configuration I see you do have one system record, stored
> as "win7.json". That's fine, you've encountered a Cobbler bug because of
> it though. Here's the contents of that file:
>
> {"comment": "", "kickstart": "<<inherit>>", "name_servers_search": [],
> "ks_meta": {}, "kernel_options_post": {}, "image": "win7-x64_64",
> "redhat_management_key": "<<inherit>>", "virt_path": "<<inherit>>",
> "power_user": "", "kernel_options": {}, "name_servers": [], "mtime":
> 1243049642.635572, "template_files": {}, "gateway": "", "uid":
> "MTI0MzA0OTY0Mi42NDk0MTE3MjQuNTAxOTc", "power_type": "ipmitool",
> "virt_cpus": "<<inherit>>", "hostname": "", "mgmt_classes": [],
> "power_pass": "", "netboot_enabled": true, "profile": "", "virt_bridge":
> "<<inherit>>", "parent": "", "virt_type": "<<inherit>>", "interfaces": {},
> "power_address": "", "virt_file_size": "<<inherit>>", "ctime":
> 1243049642.635572, "owners": ["admin"], "name": "win7", "virt_ram":
> "<<inherit>>", "power_id": "", "random_id": "FQ3L", "server": "<<inherit>>",
> "redhat_management_server": "<<inherit>>", "depth": 1}
>
> It looks like 2.0 has a bug WRT image objects that we need to fix. Our
> code to validate systems looks like this:
>
> def check_if_valid(self):
> if self.name is None or self.name == "":
> raise CX("name is required")
> if self.profile is None or self.profile == "":
> raise CX("profile is required")
>
> Basically the validation code assumes that the profile be set to something,
> but for a systems object, it can also be "parented" from an image.
> Either a profile or an image must be assigned, but not both. This has
> drifted from what it used to do.
>
> Images have largely been used by OVirt.org at this point (which, IIRC, does
> not use system records), so I believe this warrants some wholesale testing
> of the image chain, all the way through to koan. They are clearly subject
> to a little bit of bitrot as I mostly concentrate on kickstart
> installations. We need to fix this as well as add-in a good series of
> tests to validate lesser-exercised sections of the app, no doubt.
>
> If you want to get the rest of Cobbler working for testing purposes, you
> could temporarily move the win7.json file out the systems directory and
> restart cobblerd. Profiles should work fine, though it is clear we need to
> pound on images some more.
>
> Thanks very much for the info!
>
> --Michael
>
Awesome, thanks. I had completely forgotten about that system definition
as I haven't played with the imaging stuff for a few months. Removing the
system definition did allow cobblerd to start.
-- jeremy
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler