Last active
August 29, 2015 13:58
-
-
Save stefancocora/10369030 to your computer and use it in GitHub Desktop.
getting foreman-proxy to download the CentOS 6.4 install img file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foreman_proxy.log output: | |
D, [2014-04-10T12:04:13.315124 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf | |
D, [2014-04-10T12:04:13.315340 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.hosts | |
D, [2014-04-10T12:04:13.315479 #2343] DEBUG -- : Loading subnets for 127.0.0.1 | |
D, [2014-04-10T12:04:13.315620 #2343] DEBUG -- : Added 10.220.103.0/255.255.255.0 to 127.0.0.1 | |
D, [2014-04-10T12:04:13.316579 #2343] DEBUG -- : trying to find an ip address, we got {:to=>"10.220.103.220", :mac=>nil, :from=>"10.220.103.200"} | |
D, [2014-04-10T12:04:13.318015 #2343] DEBUG -- : Loading subnet data for 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:13.318914 #2343] DEBUG -- : Added testname62.foremantest (10.220.103.202 / 00:50:56:86:6b:db) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:13.319339 #2343] DEBUG -- : Added testname63.foremantest (10.220.103.203 / 00:50:56:86:6b:dd) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:13.319874 #2343] DEBUG -- : Added testname64.foremantest (10.220.103.204 / 00:50:56:86:6b:df) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:13.320309 #2343] DEBUG -- : Added testname65.foremantest (10.220.103.205 / 00:50:56:86:6b:e1) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:13.320807 #2343] DEBUG -- : Added testname66.foremantest (10.220.103.206 / 00:50:56:86:6b:e3) to 10.220.103.0/255.255.255.0 | |
I, [2014-04-10T12:04:13.320959 #2343] INFO -- : Enumerated hosts on 10.220.103.0 | |
D, [2014-04-10T12:04:13.321021 #2343] DEBUG -- : Lazy loaded 10.220.103.0/255.255.255.0 records | |
D, [2014-04-10T12:04:13.321907 #2343] DEBUG -- : Searching for free ip - pinging 10.220.103.207 | |
D, [2014-04-10T12:04:15.346780 #2343] DEBUG -- : Found free ip 10.220.103.207 out of a total of 21 free ips | |
D, [2014-04-10T12:04:15.586493 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf | |
D, [2014-04-10T12:04:15.586825 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.hosts | |
D, [2014-04-10T12:04:15.586980 #2343] DEBUG -- : Loading subnets for 127.0.0.1 | |
D, [2014-04-10T12:04:15.587113 #2343] DEBUG -- : Added 10.220.103.0/255.255.255.0 to 127.0.0.1 | |
D, [2014-04-10T12:04:15.587398 #2343] DEBUG -- : Loading subnet data for 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.588362 #2343] DEBUG -- : Added testname62.foremantest (10.220.103.202 / 00:50:56:86:6b:db) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.588840 #2343] DEBUG -- : Added testname63.foremantest (10.220.103.203 / 00:50:56:86:6b:dd) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.589245 #2343] DEBUG -- : Added testname64.foremantest (10.220.103.204 / 00:50:56:86:6b:df) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.589669 #2343] DEBUG -- : Added testname65.foremantest (10.220.103.205 / 00:50:56:86:6b:e1) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.590150 #2343] DEBUG -- : Added testname66.foremantest (10.220.103.206 / 00:50:56:86:6b:e3) to 10.220.103.0/255.255.255.0 | |
I, [2014-04-10T12:04:15.590282 #2343] INFO -- : Enumerated hosts on 10.220.103.0 | |
D, [2014-04-10T12:04:15.590343 #2343] DEBUG -- : Lazy loaded 10.220.103.0/255.255.255.0 records | |
D, [2014-04-10T12:04:15.590454 #2343] DEBUG -- : Added testname67.foremantest (10.220.103.207 / 00:50:56:86:6b:e5) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:15.594790 #2343] DEBUG -- : omshell: executed - set name = "testname67.foremantest" | |
D, [2014-04-10T12:04:15.594906 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:15.594992 #2343] DEBUG -- : omshell: executed - set ip-address = 10.220.103.207 | |
D, [2014-04-10T12:04:15.595046 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:15.595121 #2343] DEBUG -- : omshell: executed - set hardware-address = 00:50:56:86:6b:e5 | |
D, [2014-04-10T12:04:15.595175 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:15.595255 #2343] DEBUG -- : omshell: executed - set hardware-type = 1 | |
D, [2014-04-10T12:04:15.595307 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:15.595507 #2343] DEBUG -- : omshell: executed - set statements = "filename = \"pxelinux.0\"; next-server = 0a:dc:67:18; option host-name = \"testname67.foremantest\";" | |
D, [2014-04-10T12:04:15.595565 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:15.595643 #2343] DEBUG -- : omshell: executed - create | |
D, [2014-04-10T12:04:15.595783 #2343] DEBUG -- : true | |
I, [2014-04-10T12:04:15.684069 #2343] INFO -- : Added DHCP reservation for testname67.foremantest (10.220.103.207 / 00:50:56:86:6b:e5) | |
I, [2014-04-10T12:04:15.860727 #2343] INFO -- : TFTP: entry for 00:50:56:86:6b:e5 created successfully | |
D, [2014-04-10T12:04:15.919341 #2343] DEBUG -- : TFTP: entry for 00:50:56:86:6b:e5 removed successfully | |
D, [2014-04-10T12:04:16.003461 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf | |
D, [2014-04-10T12:04:16.003657 #2343] DEBUG -- : Reading config file /etc/dhcp/dhcpd.hosts | |
D, [2014-04-10T12:04:16.003923 #2343] DEBUG -- : Loading subnets for 127.0.0.1 | |
D, [2014-04-10T12:04:16.004069 #2343] DEBUG -- : Added 10.220.103.0/255.255.255.0 to 127.0.0.1 | |
D, [2014-04-10T12:04:16.004238 #2343] DEBUG -- : Loading subnet data for 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.005219 #2343] DEBUG -- : Added testname62.foremantest (10.220.103.202 / 00:50:56:86:6b:db) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.005639 #2343] DEBUG -- : Added testname63.foremantest (10.220.103.203 / 00:50:56:86:6b:dd) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.006141 #2343] DEBUG -- : Added testname64.foremantest (10.220.103.204 / 00:50:56:86:6b:df) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.006544 #2343] DEBUG -- : Added testname65.foremantest (10.220.103.205 / 00:50:56:86:6b:e1) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.007049 #2343] DEBUG -- : Added testname66.foremantest (10.220.103.206 / 00:50:56:86:6b:e3) to 10.220.103.0/255.255.255.0 | |
D, [2014-04-10T12:04:16.007456 #2343] DEBUG -- : Added testname67.foremantest (10.220.103.207 / 00:50:56:86:6b:e5) to 10.220.103.0/255.255.255.0 | |
I, [2014-04-10T12:04:16.007538 #2343] INFO -- : Enumerated hosts on 10.220.103.0 | |
D, [2014-04-10T12:04:16.007598 #2343] DEBUG -- : Lazy loaded 10.220.103.0/255.255.255.0 records | |
D, [2014-04-10T12:04:16.009129 #2343] DEBUG -- : omshell: executed - set hardware-address = 00:50:56:86:6b:e5 | |
D, [2014-04-10T12:04:16.009270 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:16.009357 #2343] DEBUG -- : omshell: executed - open | |
D, [2014-04-10T12:04:16.009419 #2343] DEBUG -- : true | |
D, [2014-04-10T12:04:16.009533 #2343] DEBUG -- : omshell: executed - remove | |
D, [2014-04-10T12:04:16.009600 #2343] DEBUG -- : true | |
I, [2014-04-10T12:04:16.019743 #2343] INFO -- : Removed DHCP reservation for testname67.foremantest => testname67.foremantest (10.220.103.207 / 00:50:56:86:6b:e5) | |
Foreman production.log: | |
Started POST "/api/hosts" for 10.210.134.64 at 2014-04-10 12:04:13 +0100 | |
Processing by Api::V1::HostsController#create as JSON | |
Parameters: {"name"=>"testname67", "mac"=>"00:50:56:86:6b:e5", "architecture_id"=>1, "operatingsystem_id"=>"1", "enabled"=>true, "build"=>true, "domain_id"=>1, "environment_id"=>"1", "ptable_id"=>6, "subnet_id"=>1, "apiv"=>"v1", "host"=>{"name"=>"testname67", "mac"=>"00:50:56:86:6b:e5", "architecture_id"=>1, "operatingsystem_id"=>"1", "enabled"=>true, "build"=>true, "domain_id"=>1, "environment_id"=>"1", "ptable_id"=>6, "subnet_id"=>1}} | |
Authorized user admin(Admin User) | |
Create DHCP reservation for testname67.foremantest-00:50:56:86:6b:e5/10.220.103.207 | |
Add the TFTP configuration for testname67.foremantest | |
Fetching required TFTP boot files for testname67.foremantest | |
Failed to fetch boot files: invalid medium for CentOS 6.4 | |
Rolling back due to a problem: [Fetch TFTP boot files for testname67.foremantest 25 failed [#<Host::Managed id: nil, name: "testname67.foremantest", ip: "10.220.103.207", last_compile: nil, last_freshcheck: nil, last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: "00:50:56:86:6b:e5", root_pass: nil, serial: nil, puppet_status: 0, domain_id: 1, architecture_id: 1, operatingsystem_id: 1, environment_id: 1, subnet_id: 1, ptable_id: 6, medium_id: nil, build: true, comment: nil, disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 1, owner_type: "User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", compute_profile_id: nil>, :setTFTPBootFiles]] | |
Delete the TFTP configuration for testname67.foremantest | |
Delete DHCP reservation for testname67.foremantest-00:50:56:86:6b:e5/10.220.103.207 | |
Unprocessable entity Host::Managed (id: new): | |
Failed to fetch boot files: invalid medium for CentOS 6.4 | |
The error from the API: | |
"Foreman registration was not successful ! This is why:" | |
HTTP response code from foreman: | |
"422 Unprocessable Entity" | |
HTTP headers from foreman: | |
{"date"=>["Thu, 10 Apr 2014 11:04:13 GMT"], "server"=>["Apache/2.2.15 (CentOS)"], "foreman_version"=>["1.4.2"], "foreman_api_version"=>["1"], "x-ua-compatible"=>["IE=Edge,chrome=1"], "cache-control"=>["no-cache"], "x-request-id"=>["cc8c47d043592c8471dfc4807c4149d4"], "x-runtime"=>["2.809505"], "x-rack-cache"=>["invalidate, pass"], "x-powered-by"=>["Phusion Passenger 4.0.5"], "set-cookie"=>["_session_id=1c0afef911d25f3333c8f03dbc2ab59e; path=/; HttpOnly"], "status"=>["422 Unprocessable Entity"], "connection"=>["close"], "transfer-encoding"=>["chunked"], "content-type"=>["application/json; charset=utf-8"]} | |
HTTP body from foreman: | |
{"host":{"id":null,"errors":{"base":["Failed to fetch boot files: invalid medium for CentOS 6.4"]},"full_messages":["Failed to fetch boot files: invalid medium for CentOS 6.4"]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment