Thanks to Alan Crosswell for responding and being a "2nd set" of eyes. I am on
the same broadcast domain as the kickstart server but the DNS server is not on
the same subnet. I realized that my problem was in the /etc/cobbler/settings
file.
The issue was that for:
server: <full qualname>
next_server: <full qualname>
I was using the fully qualified domain name for the server instead of IP. The
python script picks this up and builds a file:
http://<cobblerserver>/cblr/svc/op/ks/system/<system name>
If you use the fully qualified name the file does as well. The issue is that
since it doesn't setup the DNS until later in the build the repo's can't be
accessed because it doesn't know where they are.
Once I changed them from name to IP everything worked like a charm.
On Apr 6, 2011, at 3:38 PM, Alan Crosswell wrote:
> My /etc/dhcp/dhcpd.conf looks substantially the same except there's an
> "option routers" for the specific host:
>
> host generic5 {
> hardware ethernet 00:11:11:B3:72:87;
> fixed-address 10.0.0.2;
> option host-name "w2eca";
> option subnet-mask 255.0.0.0;
> option routers 10.0.0.1;
> filename "/pxelinux.0";
> next-server 10.1.1.1;
> }
>
> snipped from "cobbler system report --name=w2eca":
>
> Name : w2eca
> Comment : D-star gateway. Grasslands.
> Gateway : 10.0.0.1
> Hostname : w2eca
> Image :
> ...
> Name Servers : ['127.0.0.1']
> ...
>
> Gateway and name servers are set by "cobbler system add --gateway ...
> --name-servers=..." or in the GUI, under Networking (Global):
>
> <moz-screenshot.png>
>
> Hope this helps.
>
> /a
>
> On 04/06/2011 02:20 PM, Tom Zurita wrote:
>>
>> Here are my settings:
>>
>> # ******************************************************************
>> # Cobbler managed dhcpd.conf file
>> # generated from cobbler dhcp.conf template (Wed Apr 6 17:53:25 2011)
>> # Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
>> # in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
>> # overwritten.
>> # ******************************************************************
>>
>> ddns-update-style interim;
>>
>> allow booting;
>> allow bootp;
>>
>> ignore client-updates;
>> set vendorclass = option vendor-class-identifier;
>>
>> subnet 160.111.105.128 netmask 255.255.255.128 {
>> option routers 160.111.105.129;
>> option domain-name-servers 160.111.8.10, 160.111.8.10;
>> option domain-name "si.edu";
>> option subnet-mask 255.255.255.128;
>> range dynamic-bootp 160.111.105.201 160.111.105.210;
>> filename "/pxelinux.0";
>> default-lease-time 21600;
>> max-lease-time 43200;
>> next-server si-erpdr6.si.edu;
>> }
>>
>> # group for Cobbler DHCP tag: default
>> group {
>> host generic1 {
>> hardware ethernet 78:2B:CB:0D:3D:C8;
>> option host-name "si-erppd1.si.edu";
>> filename "/pxelinux.0";
>> next-server si-erpdr6.si.edu;
>> }
>> }
>>
>>
>> [root@si-erpdr6 log]# cobbler system dumpvars --name=si-erppd1
>> allow_duplicate_hostnames : 0
>> allow_duplicate_ips : 0
>> allow_duplicate_macs : 0
>> anamon_enabled : 0
>> arch : x86_64
>> bonding_eth0 :
>> bonding_master_eth0 :
>> bonding_opts_eth0 :
>> breed : redhat
>> build_reporting_email : ['root@localhost']
>> build_reporting_enabled : 0
>> build_reporting_sender :
>> build_reporting_smtp_server : localhost
>> build_reporting_subject :
>> build_reporting_to_address :
>> cheetah_import_whitelist : ['random', 're', 'time']
>> cobbler_master :
>> comment :
>> createrepo_flags : -c cache -s sha
>> ctime : 1302112611.43
>> default_deployment_method : ssh
>> default_kickstart : /var/lib/cobbler/kickstarts/default.ks
>> default_name_servers : []
>> default_name_servers_search : []
>> default_ownership : ['admin']
>> default_password_crypted : $1$mF86/UHC$WvcIcX2t6crBz2onWxyac.
>> default_virt_bridge : xenbr0
>> default_virt_file_size : 5
>> default_virt_ram : 512
>> default_virt_type : xenpv
>> depth : 2
>> dhcp_tag : default
>> dhcp_tag_eth0 :
>> distro : RH55-x86_64
>> distro_name : RH55-x86_64
>> dns_name_eth0 :
>> enable_menu : 1
>> func_auto_setup : 0
>> func_master : overlord.example.org
>> gateway : 160.111.105.129
>> hostname : si-erppd1.si.edu
>> http_port : 80
>> http_server : si-erpdr6.si.edu
>> image :
>> initrd : /var/www/cobbler/ks_mirror/RH55/images/pxeboot/initrd.img
>> interfaces : {'eth0': {'dhcp_tag': '', 'subnet': '', 'virt_bridge': '',
>> 'static_routes': [], 'dns_name': '', 'bonding': '', 'static': False,
>> 'bonding_opts': '', 'mac_address': '78:2B:CB:0D:3D:C8', 'bonding_master':
>> '', 'ip_address': ''}}
>> ip_address_eth0 :
>> isc_set_host_name : 0
>> kerberos_realm : EXAMPLE.COM
>> kernel : /var/www/cobbler/ks_mirror/RH55/images/pxeboot/vmlinuz
>> kernel_options : ksdevice=bootif lang= kssendmac text
>> kernel_options_post :
>> kernel_options_s390x : {'vnc': '~', 'ip': False, 'RUNKS': 1, 'ramdisk_size':
>> 40000, 'ro': '~', 'root': '/dev/ram0'}
>> kickstart : /var/lib/cobbler/kickstarts/sample.ks
>> ks_meta : tree=http://@@http_server@@/cblr/links/RH55-x86_64
>> ldap_anonymous_bind : 1
>> ldap_base_dn : DC=example,DC=com
>> ldap_port : 389
>> ldap_search_bind_dn :
>> ldap_search_passwd :
>> ldap_search_prefix : uid=
>> ldap_server : ldap.example.com
>> ldap_tls : 1
>> mac_address_eth0 : 78:2B:CB:0D:3D:C8
>> manage_dhcp : 1
>> manage_dns : 0
>> manage_forward_zones : []
>> manage_reverse_zones : []
>> mgmt_classes : []
>> mgmt_parameters : {'from_cobbler': 1, 'tree':
>> 'http://@@http_server@@/cblr/links/RH55-x86_64'}
>> mtime : 1302112611.43
>> name : si-erppd1
>> name_servers : ['160.111.8.10']
>> name_servers_search : []
>> netboot_enabled : True
>> next_server : si-erpdr6.si.edu
>> os_version : rhel5
>> owners : ['admin']
>> parent :
>> power_address :
>> power_id :
>> power_management_default_type : ipmitool
>> power_pass :
>> power_template_dir : /etc/cobbler/power
>> power_type : ipmitool
>> power_user :
>> profile : RH55-x86_64
>> profile_name : RH55-x86_64
>> pxe_just_once : 0
>> pxe_template_dir : /etc/cobbler/pxe
>> redhat_management_key :
>> redhat_management_permissive : 0
>> redhat_management_server : xmlrpc.rhn.redhat.com
>> redhat_management_type : off
>> register_new_installs : 0
>> repos :
>> reposync_flags : -l -m -d
>> restart_dhcp : 1
>> restart_dns : 1
>> run_install_triggers : 1
>> safe_templating : True
>> scm_track_enabled : 0
>> scm_track_mode : git
>> server : si-erpdr6.si.edu
>> snippetsdir : /var/lib/cobbler/snippets
>> source_repos :
>> [['http://@@http_server@@/cobbler/ks_mirror/config/RH55-x86_64-0.repo',
>> 'http://@@http_server@@/cobbler/ks_mirror/RH55/Cluster'],
>> ['http://@@http_server@@/cobbler/ks_mirror/config/RH55-x86_64-1.repo',
>> 'http://@@http_server@@/cobbler/ks_mirror/RH55/VT'],
>> ['http://@@http_server@@/cobbler/ks_mirror/config/RH55-x86_64-2.repo',
>> 'http://@@http_server@@/cobbler/ks_mirror/RH55/Server'
>>
>> tp://@@http_server@@/cobbler/ks_mirror/RH55/ClusterStorage']]
>> static_eth0 : False
>> static_routes_eth0 : []
>> subnet_eth0 :
>> system_name : si-erppd1
>> template_files :
>> template_remote_kickstarts : 0
>> tree_build_time : 1269263646.69
>> uid : MTMwMjExMjYxMS40MzYwMDUzOTguNjQ2Mw
>> virt_auto_boot : 1
>> virt_bridge : xenbr0
>> virt_bridge_eth0 :
>> virt_cpus : 1
>> virt_file_size : 5
>> virt_path :
>> virt_ram : 512
>> virt_type : qemu
>> webdir : /var/www/cobbler
>> xmlrpc_port : 25151
>> yum_distro_priority : 1
>> yum_post_install_mirror : 1
>> yumdownloader_flags : --resolve
>>
>>
>> On Apr 6, 2011, at 2:09 PM, Alan Crosswell wrote:
>>
>>> Tom,
>>>
>>> Start by looking at your /etc/dhcp/dhcpd.conf to see what Cobbler has
>>> filled in for the DNS and GW info. If they are blank, this means you
>>> are missing a setup step which I think is labeled something Global
>>> Networking under Systems in the GUI. Or there's
>>> /etc/cobbler/dhcp.template where this info might go. Sorry, I don't
>>> have my cobbler system in front of me right now to be more specific.
>>> /a
>>>
>>> On 4/6/2011 1:52 PM, Tom Zurita wrote:
>>>> I have just setup a cobbler server on Centos5.5. My cobbler server is also
>>>> serving dhcp for the bootp requests but the following is not getting set:
>>>>
>>>> Defaultgw
>>>> DNS Server
>>>>
>>>> get INFO: DHCPv4 eth4 - option routers:
>>>> no DNS server's, can't look up hostname
>>>> doing kickstart... setting it up
>>>> starting to STEP_URL
>>>> URL_STAGE_MAIN - url is
>>>> htp://si-xxxx.domain.com/cblr/links/RH-x86_64/images/stage2.img
>>>> can't determine address family of si-xxxx.domain.com
>>>>
>>>> Then it fails. I can put in the IP address and then it will work but I
>>>> want it to work automatically. I don't believe that it dhcpd is fully
>>>> giving the client the dns and router info. Any ideas?
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Tom Zurita
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> cobbler mailing list
>>>> [email protected]
>>>> https://fedorahosted.org/mailman/listinfo/cobbler
>>>>
>>
>> Regards,
>>
>>
>> Tom Zurita
>>
>>
>>
>>
>>
>>
>>
>>
>>
Regards,
Tom Zurita
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler