>
> OK this is going to be long, lets begin
>
> # cobbler check
> The following potential problems were detected:
> #0: yum-utils need to be at least version 1.1.17 for reposync -l, 
> current version is 0.5
> #1: The default password used by the sample templates for newly 
> installed machines (default_password_crypted in /etc/cobbler/settings) 
> is still set to 'cobbler' and should be changed
> #2: fencing tools were not found, and are required to use the (optional) 
> power management features. install cman to use them
>
> That looks reasonable so lets start
>
> # cobbler distro list
>
> OK blank system
>
> Add distro -
>
> # cobbler import --path=/var/mirror/5.2/os/x86_64 
> --name=CentOS-5.2-x86_64 
> --available-as=http://10.10.10.234/mirror/5.2/os/x86_64
> ---------------- (adding distros)
> - found content (breed=redhat) at /var/mirror/5.2/os/x86_64/images/pxeboot
> - creating new distro: CentOS-5.2-x86_64
> - creating new profile: CentOS-5.2-x86_64
> - creating new profile: rescue-CentOS-5.2-x86_64
> - found content (breed=redhat) at /var/mirror/5.2/os/x86_64/images/xen
> - creating new distro: CentOS-5.2-xen-x86_64
> - creating new profile: CentOS-5.2-xen-x86_64
> ---------------- (associating kickstarts)
> - found content (breed=redhat) at /var/mirror/5.2/os/x86_64/images/pxeboot
> - found content (breed=redhat) at /var/mirror/5.2/os/x86_64/images/xen
> - found content (breed=redhat) at /var/mirror/5.2/os/x86_64/images/pxeboot
>
> # cobbler distro list
> CentOS-5.2-x86_64
> CentOS-5.2-xen-x86_64
>
> Now point the created profile at the correct ks
>
> # cobbler profile edit --name=CentOS-5.2-xen-x86_64 
> --kickstart=/var/lib/cobbler/kickstarts/CentOS-5.2-xen-x86_64.ks
>
> # cobbler profile report CentOS-5.2-xen-x86_64
> profile              : CentOS-5.2-xen-x86_64
> distro               : CentOS-5.2-xen-x86_64
> comment              :
> created              : Tue Apr  7 10:22:33 2009
> dhcp tag             : default
> enable menu          : True
> kernel options       : {}
> kickstart            : /var/lib/cobbler/kickstarts/CentOS-5.2-xen-x86_64.ks
> ks metadata          : {}
> mgmt classes         : []
> modified             : Tue Apr  7 10:24:56 2009
> name servers         : []
> name servers search  : []
> owners               : [u'admin']
> post kernel options  : {}
> redhat mgmt key      : <<inherit>>
> redhat mgmt server   : <<inherit>>
> repos                : []
> server               : <<inherit>>
> template_files       : {}
> virt bridge          : xenbr0
> virt cpus            : 1
> virt file size       : 5
> virt path            :
> virt ram             : 512
> virt type            : xenpv
>
> Now lets add some repos
>
> # cobbler repo add --name=CentOS-5.2-x86_64-base 
> --mirror=http://10.10.10.234/mirror/5.2/os/x86_64 --mirror-locally=0
>
> And run the sync
>
> # cobbler reposync
> - /usr/bin/wget -q 
> http://10.10.10.234/mirror/5.2/os/x86_64/repodata/comps.xml -O 
> /var/www/cobbler/repo_mirror/CentOS-5.2-x86_64-base/repodata/comps.xml
> - creating: /var/www/cobbler/repo_mirror/CentOS-5.2-x86_64-base/config.repo
>
> Now lets add that repo to the profile
>
> # cobbler profile edit --name=CentOS-5.2-xen-x86_64 
> --repos='CentOS-5.2-x86_64-base'
>
> And check the report for that profile to see that it has that repo now
>
> # cobbler profile report --name=CentOS-5.2-xen-x86_64
> profile              : CentOS-5.2-xen-x86_64
> distro               : CentOS-5.2-xen-x86_64
> comment              :
> created              : Tue Apr  7 10:22:33 2009
> dhcp tag             : default
> enable menu          : True
> kernel options       : {}
> kickstart            : /var/lib/cobbler/kickstarts/CentOS-5.2-xen-x86_64.ks
> ks metadata          : {}
> mgmt classes         : []
> modified             : Tue Apr  7 10:29:40 2009
> name servers         : []
> name servers search  : []
> owners               : [u'admin']
> post kernel options  : {}
> redhat mgmt key      : <<inherit>>
> redhat mgmt server   : <<inherit>>
> repos                : ['uCentOS-5.2-x86_64-base']
> server               : <<inherit>>
> template_files       : {}
> virt bridge          : xenbr0
> virt cpus            : 1
> virt file size       : 5
> virt path            :
> virt ram             : 512
> virt type            : xenpv
>
> Now add a system to that profile
>
> # cobbler system add --name=test-box --hostname=test-box.linux.lab 
> --ip=10.10.92.210 --netmask=255.255.255.0 --gateway=10.10.92.1 
> --mac=7E:A9:3C:17:BB:B4 --profile=CentOS-5.2-xen-x86_64
>
> Now lets get the ks for that box and look see if the addition repo is 
> available
>
> # cobbler system getks --name=test-box
>
> # System language
> lang en_US.UTF-8
> langsupport --default=en_US.UTF-8 en_US.UTF-8
> timezone --utc UTC
> # Use network installation
> url --url=http://10.10.10.234/mirror/5.2/os/x86_64/
> # If any cobbler repo definitions were referenced in the kickstart 
> profile, include them here.
>
> # Network information
> # Using "new" style networking config, by matching networking 
> information to the physical interface's
> # MAC-address
> %include /tmp/pre_install_network_config
>
> Nope - the repo information is missing
>
> Lets look at the config file for that profile
>
> # more /var/lib/cobbler/config/profiles.d/CentOS-5.2-xen-x86_64.json
> {"comment": "", "kickstart": 
> "\/var\/lib\/cobbler\/kickstarts\/CentOS-5.2-xen-x86_64.ks", 
> "name_servers_search": [], "ks_meta": {}, "kernel_options_post": {}, 
> "repos": ["CentOS-5.2-x86_64-base"], "
> redhat_management_key": "<<inherit>>", "virt_path": "", 
> "kernel_options": {}, "name_servers": [], "mtime": 1239096580.127852, 
> "template_files": {}, "uid": "MTIzOTA5NjE1My45MzQzNzcyNDQuOTMxODM", "vi
> rt_cpus": 1, "mgmt_classes": [], "distro": "CentOS-5.2-xen-x86_64", 
> "virt_bridge": "xenbr0", "parent": "", "virt_type": "xenpv", 
> "enable_menu": true, "virt_file_size": 5, "ctime": 1239096153.927331
> 9, "dhcp_tag": "default", "owners": ["admin"], "name": 
> "CentOS-5.2-xen-x86_64", "virt_ram": 512, "random_id": "bOef", "server": 
> "<<inherit>>", "redhat_management_server": "<<inherit>>", "depth": 1}
>
> Yep - repo info in there, now lets look at the config for that system
>
> # more /var/lib/cobbler/config/systems.d/test-box.json
> {"comment": "", "kickstart": "<<inherit>>", "name_servers_search": [], 
> "ks_meta": {}, "kernel_options_post": {}, "image": "", 
> "redhat_management_key": "<<inherit>>", "virt_path": "<<inherit>>", "po
> wer_user": "", "kernel_options": {}, "name_servers": [], "mtime": 
> 1239096767.978888, "template_files": {}, "gateway": "10.10.92.1", "uid": 
> "MTIzOTA5Njc2Ny45ODUxNjA2OS44NjQ4NTE", "power_type": "ipmi
> tool", "virt_cpus": "<<inherit>>", "hostname": "test-box.linux.lab", 
> "mgmt_classes": [], "power_pass": "", "netboot_enabled": true, 
> "profile": "CentOS-5.2-xen-x86_64", "virt_bridge": "<<inh
> erit>>", "parent": "", "virt_type": "<<inherit>>", "interfaces": 
> {"eth0": {"dhcp_tag": "", "subnet": "255.255.255.0", "dns_name": "", 
> "virt_bridge": "", "static_routes": [], "bonding_master": "", "
> bonding": "", "static": false, "bonding_opts": "", "mac_address": 
> "7E:A9:3C:17:BB:B4", "ip_address": "10.10.92.210"}}, "power_address": 
> "", "virt_file_size": "<<inherit>>", "ctime": 1239096767.9788
> 88, "owners": ["admin"], "name": "test-box", "virt_ram": "<<inherit>>", 
> "power_id": "", "random_id": "", "server": "<<inherit>>", 
> "redhat_management_server": "<<inherit>>", "depth": 2}
>
> Yep - the system is in the profile that has that repo listed and yet 
> that repo is not available to the system.
>
> # cobbler check
> The following potential problems were detected:
> #0: yum-utils need to be at least version 1.1.17 for reposync -l, 
> current version is 0.5
> #1: The default password used by the sample templates for newly 
> installed machines (default_password_crypted in /etc/cobbler/settings) 
> is still set to 'cobbler' and should be changed
> #2: One or more repos referenced by profile objects is no longer defined 
> in cobbler: uCentOS-5.2-x86_64-base
> #3: fencing tools were not found, and are required to use the (optional) 
> power management features. install cman to use them
>
> is that any help ?
>
>   


i am investigating my theory that this is caused by python-simplejson < 2



_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to