Project

General

Profile

Bug #9056 » build-error.txt

API errors when rebuilding host - Benjamin Roberts, 01/22/2015 05:44 PM

 


ERROR:root:
####################################
url = http://10.10.24.20/api/hosts
headers = {'Authorization': '*****', 'Cookie': '_session_id=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJTQ4YTFjOWRhZjM1MDY2ODE0ZGExOWZjMThlMzc5MzllBjsAVEkiEW9yaWdpbmFsX3VyaQY7AEYiBi9JIgtsb2NhbGUGOwBGSSIHZW4GOwBG--84c52ef2b521295069651d9f1c8256baa1a8a323', 'Accept': 'application/json; version=2', 'Content-type': 'application/json', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Content-Length': '864', 'User-Agent': 'python-requests/2.5.1 CPython/3.4.1 Linux/3.17.4-301.fc21.x86_64'}
-------- data sent -----------------
{"host": {"compute_attributes": {"template": "6b0fcbb8-beb5-4776-af52-49aa88054fc3", "cores": "1", "volumes_attributes": {"new_1421018766999": {"bootable": "true", "preallocate": "0", "_delete": "", "size_gb": "80", "storage_domain": "9f81eeca-c537-45d9-a315-cc40450802aa", "id": "7"}, "new_volumes": {"size_gb": "", "storage_domain": "9f81eeca-c537-45d9-a315-cc40450802aa", "id": "", "preallocate": "0", "_delete": ""}}, "interfaces_attributes": {"new_1421018766988": {"name": "nic1", "network": "cbbda965-a5dd-41b2-9351-9ae3c601daee", "_delete": ""}, "new_interfaces": {"name": "", "network": "d69cfc29-e009-43ba-841d-42f9ab7a9fc7", "_delete": ""}}, "cluster": "3127ca60-d2da-47c1-b361-7daeef172d59", "memory": "2147483648"}, "build": "0", "provision_method": "image", "image_id": 13, "subnet_id": 2, "name": "vm-2", "hostgroup_id": 5, "compute_resource_id": 3}}
------------------------------------
@@@@@ response @@@@@@@@@@@@@@@@
headers = {'X-Rack-Cache': 'invalidate, pass', 'Content-Type': 'application/json; charset=utf-8', 'Foreman_api_version': '2', 'Status': '422 Unprocessable Entity', 'Cache-Control': 'no-cache', 'Connection': 'close', 'Set-Cookie': '_session_id=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJTQ4YTFjOWRhZjM1MDY2ODE0ZGExOWZjMThlMzc5MzllBjsAVEkiEW9yaWdpbmFsX3VyaQY7AEYiBi9JIgtsb2NhbGUGOwBGSSIHZW4GOwBG--84c52ef2b521295069651d9f1c8256baa1a8a323; path=/; HttpOnly', 'Transfer-Encoding': 'chunked', 'Server': 'Apache/2.2.15 (CentOS)', 'X-Powered-By': 'Phusion Passenger 4.0.18', 'Foreman_version': '1.7.1', 'X-UA-Compatible': 'IE=Edge,chrome=1', 'Date': 'Thu, 22 Jan 2015 22:34:51 GMT', 'Apipie-Checksum': '803eab88badc572411ce285e99bdc800', 'X-Request-Id': '103f7f0a084d274374347e69885f1cac', 'X-Runtime': '10.355040'}
code = 422
reason = Unprocessable Entity
--------- data received ------------
{
"error": {"id":null,"errors":{"base":["Create DHCP Settings for vm-2.intern02.lan task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy http://ovirt-node.intern02.lan:8443/dhcp"]},"full_messages":["Create DHCP Settings for vm-2.intern02.lan task failed with the following error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::Conflict]: 409 Conflict) for proxy http://ovirt-node.intern02.lan:8443/dhcp"]}
}

------------------------------------
####################################

vm-2: Attempting with overwrite flag
ERROR:root:
####################################
url = http://10.10.24.20/api/hosts
headers = {'Authorization': '*****', 'Cookie': '_session_id=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJTQ4YTFjOWRhZjM1MDY2ODE0ZGExOWZjMThlMzc5MzllBjsAVEkiEW9yaWdpbmFsX3VyaQY7AEYiBi9JIgtsb2NhbGUGOwBGSSIHZW4GOwBG--84c52ef2b521295069651d9f1c8256baa1a8a323', 'Accept': 'application/json; version=2', 'Content-type': 'application/json', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Content-Length': '885', 'User-Agent': 'python-requests/2.5.1 CPython/3.4.1 Linux/3.17.4-301.fc21.x86_64'}
-------- data sent -----------------
{"host": {"overwrite": "true", "compute_attributes": {"template": "6b0fcbb8-beb5-4776-af52-49aa88054fc3", "cores": "1", "volumes_attributes": {"new_1421018766999": {"bootable": "true", "preallocate": "0", "_delete": "", "size_gb": "80", "storage_domain": "9f81eeca-c537-45d9-a315-cc40450802aa", "id": "7"}, "new_volumes": {"size_gb": "", "storage_domain": "9f81eeca-c537-45d9-a315-cc40450802aa", "id": "", "preallocate": "0", "_delete": ""}}, "interfaces_attributes": {"new_1421018766988": {"name": "nic1", "network": "cbbda965-a5dd-41b2-9351-9ae3c601daee", "_delete": ""}, "new_interfaces": {"name": "", "network": "d69cfc29-e009-43ba-841d-42f9ab7a9fc7", "_delete": ""}}, "cluster": "3127ca60-d2da-47c1-b361-7daeef172d59", "memory": "2147483648"}, "build": "0", "provision_method": "image", "image_id": 13, "subnet_id": 2, "name": "vm-2", "hostgroup_id": 5, "compute_resource_id": 3}}
------------------------------------
@@@@@ response @@@@@@@@@@@@@@@@
headers = {'X-Rack-Cache': 'invalidate, pass', 'Content-Type': 'application/json; charset=utf-8', 'Foreman_api_version': '2', 'Status': '500 Internal Server Error', 'Cache-Control': 'no-cache', 'Connection': 'close', 'Set-Cookie': '_session_id=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJTQ4YTFjOWRhZjM1MDY2ODE0ZGExOWZjMThlMzc5MzllBjsAVEkiEW9yaWdpbmFsX3VyaQY7AEYiBi9JIgtsb2NhbGUGOwBGSSIHZW4GOwBG--84c52ef2b521295069651d9f1c8256baa1a8a323; path=/; HttpOnly', 'Transfer-Encoding': 'chunked', 'Server': 'Apache/2.2.15 (CentOS)', 'X-Powered-By': 'Phusion Passenger 4.0.18', 'Foreman_version': '1.7.1', 'X-UA-Compatible': 'IE=Edge,chrome=1', 'Date': 'Thu, 22 Jan 2015 22:35:01 GMT', 'Apipie-Checksum': '803eab88badc572411ce285e99bdc800', 'X-Request-Id': 'edf1f202e6c92cd214b082397cf892e6', 'X-Runtime': '2.122073'}
code = 500
reason = Internal Server Error
--------- data received ------------
{
"error": {"message":"Invalid MAC "}
}

------------------------------------
####################################
(1-1/3)