Greetings,
Long time listener (false) first time caller (true.) I am experimenting with Puppet 3.0.1 and Cobbler 2.2.3. I created a test profile, a test sub profile, and a test system in cobbler (via the GUI.) When calling cobbler-ext-nodes hostname, I am getting nil values for both classes and parameters. Some facts have been obfuscated, any values that do not appear valid are likely obfuscated. All files are appears to be parsed by cobbler properly as there are no errors with 'cobbler sync.'
[root@cobbler-test profiles.d]#cobbler-ext-nodes matt-test.domain.com classes: [] parameters: {}
[root@cobbler-test systems.d]# cat matt-test.json { "boot_files": {}, "comment": "", "ctime": 1353957758.8682129, "depth": 3, "enable_gpxe": 0, "fetchable_files": {}, "gateway": "", "hostname": "matt-test.domain.com", "image": "", "interfaces": {}, "ipv6_autoconfiguration": false, "ipv6_default_device": "", "kernel_options": { "1": null }, "kernel_options_post": {}, "kickstart": "<<inherit>>", "ks_meta": {}, "ldap_enabled": false, "ldap_type": "authconfig", "mgmt_classes": [ "existing_class,BS_fake_class,BS_fake_class2" ], "mgmt_parameters": "<<inherit>>", "monit_enabled": false, "mtime": 1353958428.8554339, "name": "matt-test", "name_servers": [], "name_servers_search": [], "netboot_enabled": false, "owners": [ "admin" ], "power_address": "", "power_id": "", "power_pass": "", "power_type": "ipmitool", "power_user": "", "profile": "existing_working_with_other_systems_profile", "proxy": "<<inherit>>", "redhat_management_key": "<<inherit>>", "redhat_management_server": "<<inherit>>", "repos_enabled": false, "server": "<<inherit>>", "status": "production", "template_files": {}, "template_remote_kickstarts": 0, "uid": "MTM1Mzk1Nzc1OC44NzMyODY0MTEuM00000", "virt_auto_boot": 0, "virt_cpus": "<<inherit>>", "virt_disk_driver": "<<inherit>>", "virt_file_size": "<<inherit>>", "virt_path": "<<inherit>>", "virt_ram": "<<inherit>>", "virt_type": "xenpv"
[root@cobbler-test profiles.d]# cat existing_working_with_other_systems_profile {"comment": "", "kickstart": "<<inherit>>", "name_servers_search": [], "ks_meta": {}, "kernel_options_post": {}, "repos": ["epel-5-noarch"], "redhat_management_key": "<<inherit>>", "virt_path": "<<inherit>>", "kernel_options": {}, "name_servers": [], "mtime": 1330096515.039284, "enable_gpxe": 0, "template_files": {}, "uid": "MTMyODIwNDM5Ni44MTI5NzgzNDAuOD00000", "virt_auto_boot": 0, "virt_cpus": 4, "mgmt_parameters": "<<inherit>>", "boot_files": {}, "mgmt_classes": ["base"], "distro": "<<inherit>>", "dhcp_tag": "<<inherit>>", "virt_bridge": "<<inherit>>", "parent": "rhel5u6-x86_64", "virt_type": "qemu", "proxy": "", "enable_menu": false, "fetchable_files": {}, "virt_file_size": 48, "ctime": 1328204396.81303, "virt_disk_driver": "raw", "owners": ["admin"], "name": "JENIE2", "virt_ram": 4096, "server": "<<inherit>>", "redhat_management_server": "<<inherit>>", "depth": 2, "template_remote_kickstarts": 0}
Matt Luettgen
On Nov 26, 2012 2:35 PM, Matthew_Luettgen@aotx.uscourts.gov wrote:
Greetings,
Long time listener (false) first time caller (true.) I am experimenting with Puppet 3.0.1 and Cobbler 2.2.3. I created a test profile, a test sub profile, and a test system in cobbler (via the GUI.) When calling cobbler-ext-nodes hostname, I am getting nil values for both classes and parameters. Some facts have been obfuscated, any values that do not
appear
valid are likely obfuscated. All files are appears to be parsed by
cobbler
properly as there are no errors with 'cobbler sync.'
[root@cobbler-test profiles.d]#cobbler-ext-nodes matt-test.domain.com classes: [] parameters: {}
[root@cobbler-test systems.d]# cat matt-test.json { "boot_files": {}, "comment": "", "ctime": 1353957758.8682129, "depth": 3, "enable_gpxe": 0, "fetchable_files": {}, "gateway": "", "hostname": "matt-test.domain.com", "image": "", "interfaces": {}, "ipv6_autoconfiguration": false, "ipv6_default_device": "", "kernel_options": { "1": null }, "kernel_options_post": {}, "kickstart": "<<inherit>>", "ks_meta": {}, "ldap_enabled": false, "ldap_type": "authconfig", "mgmt_classes": [ "existing_class,BS_fake_class,BS_fake_class2" ], "mgmt_parameters": "<<inherit>>", "monit_enabled": false, "mtime": 1353958428.8554339, "name": "matt-test", "name_servers": [], "name_servers_search": [], "netboot_enabled": false, "owners": [ "admin" ], "power_address": "", "power_id": "", "power_pass": "", "power_type": "ipmitool", "power_user": "", "profile": "existing_working_with_other_systems_profile", "proxy": "<<inherit>>", "redhat_management_key": "<<inherit>>", "redhat_management_server": "<<inherit>>", "repos_enabled": false, "server": "<<inherit>>", "status": "production", "template_files": {}, "template_remote_kickstarts": 0, "uid": "MTM1Mzk1Nzc1OC44NzMyODY0MTEuM00000", "virt_auto_boot": 0, "virt_cpus": "<<inherit>>", "virt_disk_driver": "<<inherit>>", "virt_file_size": "<<inherit>>", "virt_path": "<<inherit>>", "virt_ram": "<<inherit>>", "virt_type": "xenpv"
[root@cobbler-test profiles.d]# cat existing_working_with_other_systems_profile {"comment": "", "kickstart": "<<inherit>>", "name_servers_search": [], "ks_meta": {}, "kernel_options_post": {}, "repos": ["epel-5-noarch"], "redhat_management_key": "<<inherit>>", "virt_path": "<<inherit>>", "kernel_options": {}, "name_servers": [], "mtime": 1330096515.039284, "enable_gpxe": 0, "template_files": {}, "uid": "MTMyODIwNDM5Ni44MTI5NzgzNDAuOD00000", "virt_auto_boot": 0, "virt_cpus":
4,
"mgmt_parameters": "<<inherit>>", "boot_files": {}, "mgmt_classes": ["base"], "distro": "<<inherit>>", "dhcp_tag": "<<inherit>>", "virt_bridge": "<<inherit>>", "parent": "rhel5u6-x86_64", "virt_type": "qemu", "proxy": "", "enable_menu": false, "fetchable_files": {}, "virt_file_size": 48, "ctime": 1328204396.81303, "virt_disk_driver":
"raw",
"owners": ["admin"], "name": "JENIE2", "virt_ram": 4096, "server": "<<inherit>>", "redhat_management_server": "<<inherit>>", "depth": 2, "template_remote_kickstarts": 0}
The external nodes script in 2.2.3 uses the --dns-name field in the interface only, not the hostname field. 2.4.0 will also check the hostname field (added that fix a little while back).
That was it, thanks James!
Matt Luettgen
From: James Cammarata jimi@sngx.net To: cobbler mailing list cobbler@lists.fedorahosted.org Date: 11/26/2012 02:47 PM Subject: Re: [cobbler] cobbler-ext-nodes returning nil results for system with mgmt classes and parameters Sent by: cobbler-bounces@lists.fedorahosted.org
On Nov 26, 2012 2:35 PM, Matthew_Luettgen@aotx.uscourts.gov wrote:
Greetings,
Long time listener (false) first time caller (true.) I am experimenting with Puppet 3.0.1 and Cobbler 2.2.3. I created a test profile, a test
sub
profile, and a test system in cobbler (via the GUI.) When calling cobbler-ext-nodes hostname, I am getting nil values for both classes and parameters. Some facts have been obfuscated, any values that do not
appear
valid are likely obfuscated. All files are appears to be parsed by
cobbler
properly as there are no errors with 'cobbler sync.'
[root@cobbler-test profiles.d]#cobbler-ext-nodes matt-test.domain.com classes: [] parameters: {}
[root@cobbler-test systems.d]# cat matt-test.json { "boot_files": {}, "comment": "", "ctime": 1353957758.8682129, "depth": 3, "enable_gpxe": 0, "fetchable_files": {}, "gateway": "", "hostname": "matt-test.domain.com", "image": "", "interfaces": {}, "ipv6_autoconfiguration": false, "ipv6_default_device": "", "kernel_options": { "1": null }, "kernel_options_post": {}, "kickstart": "<<inherit>>", "ks_meta": {}, "ldap_enabled": false, "ldap_type": "authconfig", "mgmt_classes": [ "existing_class,BS_fake_class,BS_fake_class2" ], "mgmt_parameters": "<<inherit>>", "monit_enabled": false, "mtime": 1353958428.8554339, "name": "matt-test", "name_servers": [], "name_servers_search": [], "netboot_enabled": false, "owners": [ "admin" ], "power_address": "", "power_id": "", "power_pass": "", "power_type": "ipmitool", "power_user": "", "profile": "existing_working_with_other_systems_profile", "proxy": "<<inherit>>", "redhat_management_key": "<<inherit>>", "redhat_management_server": "<<inherit>>", "repos_enabled": false, "server": "<<inherit>>", "status": "production", "template_files": {}, "template_remote_kickstarts": 0, "uid": "MTM1Mzk1Nzc1OC44NzMyODY0MTEuM00000", "virt_auto_boot": 0, "virt_cpus": "<<inherit>>", "virt_disk_driver": "<<inherit>>", "virt_file_size": "<<inherit>>", "virt_path": "<<inherit>>", "virt_ram": "<<inherit>>", "virt_type": "xenpv"
[root@cobbler-test profiles.d]# cat existing_working_with_other_systems_profile {"comment": "", "kickstart": "<<inherit>>", "name_servers_search": [], "ks_meta": {}, "kernel_options_post": {}, "repos": ["epel-5-noarch"], "redhat_management_key": "<<inherit>>", "virt_path": "<<inherit>>", "kernel_options": {}, "name_servers": [], "mtime": 1330096515.039284, "enable_gpxe": 0, "template_files": {}, "uid": "MTMyODIwNDM5Ni44MTI5NzgzNDAuOD00000", "virt_auto_boot": 0, "virt_cpus":
4,
"mgmt_parameters": "<<inherit>>", "boot_files": {}, "mgmt_classes": ["base"], "distro": "<<inherit>>", "dhcp_tag": "<<inherit>>", "virt_bridge": "<<inherit>>", "parent": "rhel5u6-x86_64", "virt_type": "qemu", "proxy": "", "enable_menu": false, "fetchable_files": {}, "virt_file_size": 48, "ctime": 1328204396.81303, "virt_disk_driver":
"raw",
"owners": ["admin"], "name": "JENIE2", "virt_ram": 4096, "server": "<<inherit>>", "redhat_management_server": "<<inherit>>", "depth": 2, "template_remote_kickstarts": 0}
The external nodes script in 2.2.3 uses the --dns-name field in the interface only, not the hostname field. 2.4.0 will also check the hostname field (added that fix a little while back). _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org