HARRIS Jimmy (AXA-Tech-AU) wrote: >>> This is very useful for our (non-DHCP) environment - thanks! Will >>> >> Kickstart then use the network details specified in the system record >> > or > >> will we still have to manually add them during the install? >> >> Kickstart will use the ones in the record, at least the ip address, >> subnet, and gateway of the first interface as stored in Cobbler. >> (Cobbler can store info on more than one). >> >> It does not store any nameserver info, so you will want to see that >> /etc/cobbler/settings has server as an ip address in that case, or you >> can add "nameserver" to the kernel options line manually, your >> choice. An easy way to do this is add it to the default kernel >> options in /etc/cobbler/settings. >> > > If I add an option for nameserver to /etc/cobbler/settings and restart > cobblerd (cobbler-1.2.4-1), I get an error. > > Settings: > > kernel_options: > ksdevice: eth0 > lang: ' ' > text: ~ > nameserver: '80.44.0.80' > > Error: > > [EMAIL PROTECTED] service cobblerd restart > Stopping cobbler daemon: [FAILED] > Starting cobbler daemon: Traceback (most recent call last): > File "/usr/bin/cobblerd", line 32, in ? > api = bootapi.BootAPI() > File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 90, in > __init__ > self.deserialize() > File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 448, in > deserialize > return self._config.deserialize() > File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 194, > in deserialize > if not serializer.deserialize(x,topological=True): > File "/usr/lib/python2.4/site-packages/cobbler/serializer.py", line > 125, in deserialize > rc = storage_module.deserialize(obj,topological) > File > "/usr/lib/python2.4/site-packages/cobbler/modules/serializer_yaml.py", > line 136, in deserialize > obj.from_datastruct(datastruct) > File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line > 144, in from_datastruct > item = self.factory_produce(self.config,seed_data) > File "/usr/lib/python2.4/site-packages/cobbler/collection_distros.py", > line 40, in factory_produce > return distro.Distro(config).from_datastruct(seed_data) > File "/usr/lib/python2.4/site-packages/cobbler/item.py", line 53, in > __init__ > self.clear(is_subobject) # reset behavior differs for > inheritance cases > File "/usr/lib/python2.4/site-packages/cobbler/item_distro.py", line > 44, in clear > self.owners = self.settings.default_ownership > File "/usr/lib/python2.4/site-packages/cobbler/settings.py", line 137, > in __getattr__ > if self._attributes.has_key(name): > AttributeError: 'list' object has no attribute 'has_key' > [FAILED] > > ********************************************************************************* > Important Note > This email (including any attachments) contains information which is > confidential and may be subject to legal privilege. If you are not > the intended recipient you must not use, distribute or copy this > email. If you have received this email in error please notify the > sender immediately and delete this email. Any views expressed in this > email are not necessarily the views of AXA-Tech Australia. Thank you. > ********************************************************************************** > > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler >
Most likely you have edited the file such that it is no longer in valid YAML format. See http://en.wikipedia.org/wiki/YAML and yaml.org for further info. --Michael _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
