Skip to content

Conversation

@nucklehead
Copy link
Contributor

@rackhdmirror
Copy link

@RackHD/corecommitters please review.

@@ -245,7 +245,8 @@ wget http://<%=server%>:<%=port%>/api/current/templates/<%=rackhdCallbackScript%
esxcli system shutdown reboot -d 10 -r "Rebooting after first boot host configuration"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this is showing as a diff. I got the change from master.
https://github.com/RackHD/on-http/blob/master/data/templates/esx-ks#L248

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nucklehead I think your branch didn't rebase, so didn't include this commit 7340e79, just rebase and submit again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright thanks. I will squash the commits as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JenkinsRHD
Copy link
Contributor

@RackHD/corecommitters please review.

@nucklehead
Copy link
Contributor Author

@mtannous this is the PR for centos-ks.

@anhou
Copy link
Member

anhou commented Oct 18, 2016

@nucklehead I see that there are many meanlingless commits, could you help squash them?

sed -i '/^BOOTPROTO=/d' /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
sed -i '/^ONBOOT=/d' /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>

echo 'BOOTPROTO=dhcp' >> /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ipv4 or ipv6 is not specified, Isn't DHCP the default behavior ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is I had an issue with dhcp and thought it was related. I just verified and it is not. I will remove this from the PR

@anhou
Copy link
Member

anhou commented Oct 18, 2016

@nucklehead Also find many meanlingless commits. 👍 after squash the commits and rebase the branch

@anhou
Copy link
Member

anhou commented Oct 18, 2016

@nucklehead Just realize that there's no 'hwaddr' in 'networkDevices' in docs http://rackhd.readthedocs.io/en/latest/rackhd/install_os.html#networkdevices , and could it be extended to other OSes? @yyscamper @pengz1 @lanchongyizu

%post --interpreter=busybox

#disable firewall
localcli network firewall set --enabled no
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which issue this change is going to fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment above. It should not show as diff I just need to rebase my branch.

sed -i '/^BOOTPROTO=/d' /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
sed -i '/^ONBOOT=/d' /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
echo "DEVICE=<%=n.device%>" >> /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
echo "HWADDR=<%=n.hwaddr%>" >> /etc/sysconfig/network-scripts/ifcfg-<%=n.device%>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think copying the ESXi design will be better, ESXi's networkDevices[].device can be either macAddress or interface name, the CentOS can also have such design. If it detects the device is MAC, then auto lookup its interface name and set the correct IP address against the interface name.

@yyscamper
Copy link
Contributor

jenkins: ok to test

@rackhdmirror
Copy link

Build finished.

@JenkinsRHD
Copy link
Contributor

BUILD on-http #2653 : FAILURE

@nucklehead
Copy link
Contributor Author

can you please test this please

@brianparry
Copy link
Contributor

test this please

@rackhdmirror
Copy link

Build finished.

@JenkinsRHD
Copy link
Contributor

BUILD on-http #2656 : FAILURE

@nucklehead nucklehead force-pushed the ztip-centos-kickstart-update branch from b48d58b to 380d23d Compare October 26, 2016 15:52
@@ -0,0 +1,14 @@
define({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'define' is not defined.

},
"header": {
"title": "About",
"content": "<p>For more information on how to use these tasks, please also see our development guide documentation at <a href=\"http://rackhd.readthedocs.org/en/latest/development_guide.html\">http://rackhd.readthedocs.org/en/latest/development_guide.html</a></p>\n<p>&copy;2016, EMC, Inc.</p>\n"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

});
});

it('should delete an OBM instance and publish one event if node exists in obm', function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

describe("removeObmById", function() {
it('should delete an OBM instance and publish no event if no node exists in obm', function () {
var obm = { node: ''};
var oldNode = undefined;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary to initialize 'oldNode' to 'undefined'.

});

describe("removeObmById", function() {
it('should delete an OBM instance and publish no event if no node exists in obm', function () {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

done(new Error("Expected service to fail"));
})
.catch(function (e) {
expect(e).to.have.property('message').that.equals('Invalid node ID in query or body');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

});

it('should fail with nodeId that is not a string', function () {
return notificationApiService.postNodeNotification(_.assign({}, nodeNotificationMessage, {nodeId: {data: "I am an object"}}))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

done(new Error("Expected service to fail"));
})
.catch(function (e) {
expect(e).to.have.property('message').that.equals('Invalid node ID in query or body');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

});

it('should fail with no nodeId', function () {
return notificationApiService.postNodeNotification(_.omit(nodeNotificationMessage, 'nodeId'))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

data: 'dummy data'
};

var node = {_id: nodeNotificationMessage.nodeId}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

waterline.nodes.needByIdentifier.resolves(Promise.resolve(enclosure));
waterline.nodes.findByIdentifier.resolves(Promise.resolve(system));
waterline.catalogs.findLatestCatalogOfSource.resolves(Promise.resolve({
nodeApi.getPollersByNodeId.resolves()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

sinon.stub(waterline.catalogs);
sinon.stub(waterline.workitems);
self.sandbox.stub(waterline.nodes);
waterline.nodes.findByIdentifier.withArgs('4567efgh4567efgh4567efgh').resolves(enclosure);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

var Errors;
var workflowApiService;
var arpCache = {
var arpCache = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arpCache' is defined but never used.

self.sandbox.stub(views, 'get').resolves({});
self.sandbox.stub(views, 'render').resolves('{"friendlyName": "dummy", "injectableName": "dummyName", "options": {"oids": "SNMPv2-MIB::sysDescr"}}');
self.sandbox.stub(helper.injector.get('ejs'), 'render')
.resolves('{"friendlyName": "dummy", "injectableName": "dummyName", "options": {"oids": "SNMPv2-MIB::sysDescr"}}');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

return helper.stopServer();
views = helper.injector.get('Views');
self.sandbox.stub(views, 'get').resolves({});
self.sandbox.stub(views, 'render').resolves('{"friendlyName": "dummy", "injectableName": "dummyName", "options": {"oids": "SNMPv2-MIB::sysDescr"}}');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

.expect(function(res){
expect(res.body[0])
.to.have.property('tasks')
.to.deep.equal([{"label": "create-redfish-pollers", "taskName": "/api/2.0/workflows/tasks/Task.Pollers.CreateDefault"}]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long.

@nucklehead nucklehead force-pushed the ztip-centos-kickstart-update branch from 380d23d to 39088fb Compare October 26, 2016 16:16
copying the ESXi design where networkDevices[].device can be either macAddress or interface name
@JenkinsRHD
Copy link
Contributor

BUILD on-http #2724 : UNSTABLE

BUILD smoke-test #3637 Error Logs ▼

Test Name: test_nodes_discovery
Error Details: timeout waiting for task discovery
-------------------- >> begin captured logging << --------------------
tests.api.v1_1.nodes_tests: INFO: Wait start time: 2016-10-26 12:08:38.672189
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
kombu: INFO: Starting AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.>
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
kombu.mixins: INFO: Connected to amqp://guest:__@127.0.0.1:9091//
amqp: DEBUG: using channel_id: 1
amqp: DEBUG: Channel open
modules.worker: ERROR: subtask timeout after 1200 seconds, (id=discovery), stopping..
kombu: INFO: Stopping AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.
>
modules.worker: INFO: stopping subtask for discovery
amqp: DEBUG: Closed channel #1
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self.testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v1_1/nodes_tests.py", line 123, in test_nodes_discovery
message='timeout waiting for task {0}'.format(self.__task.id))
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/asserts.py", line 67, in assert_false
raise ASSERTION_ERROR(message)
"timeout waiting for task discovery\n-------------------- >> begin captured logging << --------------------\ntests.api.v1_1.nodes_tests: INFO: Wait start time: 2016-10-26 12:08:38.672189\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\nkombu: INFO: Starting AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.
>\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\nkombu.mixins: INFO: Connected to amqp://guest:__@127.0.0.1:9091//\namqp: DEBUG: using channel_id: 1\namqp: DEBUG: Channel open\nmodules.worker: ERROR: subtask timeout after 1200 seconds, (id=discovery), stopping..\nkombu: INFO: Stopping AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished._>\nmodules.worker: INFO: stopping subtask for discovery\namqp: DEBUG: Closed channel #1\n--------------------- >> end captured logging << ---------------------"

Test Name: teardown
Error Details: 'X-Auth-Token'
-------------------- >> begin captured logging << --------------------
modules.redfish_auth: INFO: auth already disabled.
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/redfish_1_0/session_service_tests.py", line 38, in teardown
Auth.disable()
File "/home/jenkins/workspace/on-http/RackHD/test/modules/redfish_auth.py", line 67, in disable
del config.api_client.default_headers['X-Auth-Token']
"'X-Auth-Token'\n-------------------- >> begin captured logging << --------------------\nmodules.redfish_auth: INFO: auth already disabled.\n--------------------- >> end captured logging << ---------------------"

Test Name: teardown
Error Details: 'X-Auth-Token'
-------------------- >> begin captured logging << --------------------
modules.redfish_auth: INFO: auth already disabled.
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/redfish_1_0/account_service_tests.py", line 38, in teardown
Auth.disable()
File "/home/jenkins/workspace/on-http/RackHD/test/modules/redfish_auth.py", line 67, in disable
del config.api_client.default_headers['X-Auth-Token']
"'X-Auth-Token'\n-------------------- >> begin captured logging << --------------------\nmodules.redfish_auth: INFO: auth already disabled.\n--------------------- >> end captured logging << ---------------------"

Test Name: test_node_workflows_post
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '83', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"53-Twwka9dTNy8GhI2mvi4HXw"', 'Date': 'Wed, 26 Oct 2016 16:28:39 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task"}

-------------------- >> begin captured logging << --------------------
tests.api.v1_1.workflows_tests: INFO: Starting AMQP listener for node 5810d50f762e69b108e596df
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes/5810d50f762e69b108e596df/workflows/active
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v1_1/workflows_tests.py", line 243, in test_node_workflows_post
self.post_workflows("Graph.noop-example")
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v1_1/workflows_tests.py", line 172, in post_workflows
Nodes().nodes_identifier_workflows_post(node, name=graph_name, body=data)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/apis/nodes_api.py", line 1427, in nodes_identifier_workflows_post
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 358, in request
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 208, in POST
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 177, in request
raise ApiException(http_resp=r)
'(400)\nReason: Bad Request\nHTTP response headers: HTTPHeaderDict({'Content-Length': '83', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"53-Twwka9dTNy8GhI2mvi4HXw"', 'Date': 'Wed, 26 Oct 2016 16:28:39 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})\nHTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task"}\n\n-------------------- >> begin captured logging << --------------------\ntests.api.v1_1.workflows_tests: INFO: Starting AMQP listener for node 5810d50f762e69b108e596df\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/\', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\nurllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes/5810d50f762e69b108e596df/workflows/active\n--------------------- >> end captured logging << ---------------------'

Test Name: setup
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '85', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"55-PxpKRkBl79JcM8mtRPZTeQ"', 'Date': 'Wed, 26 Oct 2016 16:28:42 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/obm-control"}

-------------------- >> begin captured logging << --------------------
tests.api.v1_1.redfish_endpoint_tests: INFO: Adding graph definition "Graph.Set.IndentifyLED.On"
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/workflows
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v1_1/redfish_endpoint_tests.py", line 114, in setup
WorkflowApi().workflows_put(body=graph)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/apis/workflow_api.py", line 519, in workflows_put
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 364, in request
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 215, in PUT
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 177, in request
raise ApiException(http_resp=r)
'(400)\nReason: Bad Request\nHTTP response headers: HTTPHeaderDict({'Content-Length': '85', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"55-PxpKRkBl79JcM8mtRPZTeQ"', 'Date': 'Wed, 26 Oct 2016 16:28:42 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})\nHTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/obm-control"}\n\n-------------------- >> begin captured logging << --------------------\ntests.api.v1_1.redfish_endpoint_tests: INFO: Adding graph definition "Graph.Set.IndentifyLED.On"\nurllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/workflows\n--------------------- >> end captured logging << ---------------------'

Test Name: test_node_catalogs
Error Details: Node catalog is empty!
Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/nodes_tests.py", line 259, in test_node_catalogs
assert_not_equal(0, len(resp), message='Node catalog is empty!')
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/asserts.py", line 151, in assert_not_equal
raise ASSERTION_ERROR(message)
AssertionError: Node catalog is empty!

Test Name: test_catalogs
Error Details: Catalog dmi not found in node 5810d50f762e69b108e596df!
Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/catalogs_tests.py", line 48, in test_catalogs
fail('Catalog {0} not found in node {1}!'.format(source,node.get('id')))
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/asserts.py", line 220, in fail
raise ASSERTION_ERROR(message)
AssertionError: Catalog dmi not found in node 5810d50f762e69b108e596df!

Test Name: pollers_data_get
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '137', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"89-fkDjxwj62BxFtOBR3Bs7Xw"', 'Date': 'Wed, 26 Oct 2016 16:28:44 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Request Timed Out (on.task:methods.requestPollerCache:Object).","status":"400","UUID":"29bdbc11-29c7-4b25-8803-1fef5058d504"}

Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/pollers_tests.py", line 151, in pollers_data_get
Api().pollers_data_get(poller['id'])
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 4280, in pollers_data_get
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 342, in request
headers=headers)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 184, in GET
query_params=query_params)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '137', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"89-fkDjxwj62BxFtOBR3Bs7Xw"', 'Date': 'Wed, 26 Oct 2016 16:28:44 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Request Timed Out (on.task:methods.requestPollerCache:Object).","status":"400","UUID":"29bdbc11-29c7-4b25-8803-1fef5058d504"}

Test Name: test_workflows_post
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '144', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"90-ndb9ZW76OKOQC4Xpry86Iw"', 'Date': 'Wed, 26 Oct 2016 16:28:45 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task","status":"400","UUID":"64d6b6c2-668c-4a89-8fcc-b9326a72ce92"}

Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/workflows_tests.py", line 74, in test_workflows_post
Api().workflows_post(body={"name": 'Graph.noop-example'})
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 8154, in workflows_post
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 358, in request
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 208, in POST
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '144', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"90-ndb9ZW76OKOQC4Xpry86Iw"', 'Date': 'Wed, 26 Oct 2016 16:28:45 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task","status":"400","UUID":"64d6b6c2-668c-4a89-8fcc-b9326a72ce92"}

Test Name: test_node_workflows_post
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '144', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"90-hWtwEeaXNPBpWOpl3pjDCQ"', 'Date': 'Wed, 26 Oct 2016 16:28:46 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task","status":"400","UUID":"a5f5e100-58cd-469f-a478-442d8f21c487"}

-------------------- >> begin captured logging << --------------------
tests.api.v2_0.workflows_tests: INFO: starting amqp listener for node 5810d50f762e69b108e596df
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/workflows_tests.py", line 199, in test_node_workflows_post
Api().nodes_post_workflow_by_id(id, name='Graph.noop-example', body={})
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 2934, in nodes_post_workflow_by_id
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 358, in request
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 208, in POST
body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
'(400)\nReason: Bad Request\nHTTP response headers: HTTPHeaderDict({'Content-Length': '144', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"90-hWtwEeaXNPBpWOpl3pjDCQ"', 'Date': 'Wed, 26 Oct 2016 16:28:46 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})\nHTTP response body: {"message":"Cannot find the task schema with id rackhd/schemas/v1/tasks/noop-task","status":"400","UUID":"a5f5e100-58cd-469f-a478-442d8f21c487"}\n\n-------------------- >> begin captured logging << --------------------\ntests.api.v2_0.workflows_tests: INFO: starting amqp listener for node 5810d50f762e69b108e596df\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/\', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\n--------------------- >> end captured logging << ---------------------'

Test Name: test_tag_create
Error Details: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Length': '110', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6e-mqqOXGxZax6WS3bcWRF6jA"', 'Date': 'Wed, 26 Oct 2016 16:28:46 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"No Catalogs Found for Source (dmi).","status":"404","UUID":"2e692a7b-a166-435d-93cb-775ffb01eaee"}

Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/tags_tests.py", line 45, in test_tag_create
tagsWithRules = self.__create_tag_rule(n.get('id'))
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/tags_tests.py", line 26, in __create_tag_rule
Api().nodes_get_catalog_source_by_id(identifier=id,source='dmi')
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 1862, in nodes_get_catalog_source_by_id
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 342, in request
headers=headers)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 184, in GET
query_params=query_params)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Length': '110', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6e-mqqOXGxZax6WS3bcWRF6jA"', 'Date': 'Wed, 26 Oct 2016 16:28:46 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"No Catalogs Found for Source (dmi).","status":"404","UUID":"2e692a7b-a166-435d-93cb-775ffb01eaee"}

Test Name: get_sku_nodes
Error Details: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Length': '110', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6e-tYBDLP4XSWaf8c8ZJKotkw"', 'Date': 'Wed, 26 Oct 2016 16:28:47 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"No Catalogs Found for Source (dmi).","status":"404","UUID":"2ec3c769-6f5b-4346-b41c-946650cf4db6"}

Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/skupack_tests.py", line 148, in get_sku_nodes
Api().nodes_get_catalog_source_by_id(identifier=node_id,source='dmi')
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 1862, in nodes_get_catalog_source_by_id
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 342, in request
headers=headers)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 184, in GET
query_params=query_params)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Length': '110', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6e-tYBDLP4XSWaf8c8ZJKotkw"', 'Date': 'Wed, 26 Oct 2016 16:28:47 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"No Catalogs Found for Source (dmi).","status":"404","UUID":"2ec3c769-6f5b-4346-b41c-946650cf4db6"}

@nucklehead
Copy link
Contributor Author

nucklehead commented Oct 26, 2016

I have updated the PR according to the suggestion.
See my seconcmmit
@anhou and @yyscamper see my changes.

@JenkinsRHD
Copy link
Contributor

BUILD on-http #2728 : FAILURE

@JenkinsRHD
Copy link
Contributor

BUILD on-http #2731 : UNSTABLE

BUILD smoke-test #3644 Error Logs ▼

Test Name: redfish_emc_compose_test
Error Details: Failure running Graph.Emc.Compose.System
-------------------- >> begin captured logging << --------------------
tests.api.v1_1.workflows_tests: INFO: Starting AMQP listener for node 5810f3da81c9599e089fa04d
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes/5810f3da81c9599e089fa04d/workflows/active
kombu: INFO: Starting AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.>
amqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']
amqp: DEBUG: Open OK!
kombu.mixins: INFO: Connected to amqp://guest:__@127.0.0.1:9091//
amqp: DEBUG: using channel_id: 1
amqp: DEBUG: Channel open
kombu: INFO: Stopping AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.
>
tests.api.v1_1.workflows_tests: ERROR: {
"active_task": {
"223895b4-ff16-48a4-93e8-136fb7fceb15": {
"friendlyName": "Create Default Pollers",
"ignoreFailure": false,
"implementsTask": "Task.Base.Pollers.Redfish.CreateDefault",
"injectableName": "Task.Inline.Pollers.Redfish.CreateDefault",
"instanceId": "223895b4-ff16-48a4-93e8-136fb7fceb15",
"label": "create-redfish-pollers",
"name": "Task.Inline.Pollers.Redfish.CreateDefault",
"options": {
"_taskTimeout": 86400000,
"pollers": [
{
"config": {
"command": "systems.logservices"
},
"pollInterval": 10000,
"type": "redfish"
}
]
},
"properties": {},
"runJob": "Job.Pollers.CreateDefault",
"state": "failed",
"taskEndTime": "2016-10-26T18:20:21.053Z",
"terminalOnStates": [
"succeeded",
"timeout",
"cancelled",
"failed"
],
"waitingOn": {
"51fb8001-b096-44cb-a0b1-0d978ce85ca3": "succeeded"
}
},
"51fb8001-b096-44cb-a0b1-0d978ce85ca3": {
"error": "Error: EndPoint Resource(s) Already Allocated: ComputeElement0,StorageElement1,StorageElement3
at /home/vagrant/src/on-taskgraph/node_modules/on-tasks/lib/jobs/emc-compose-system.js:244:23
at tryCatcher (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Async._drainQueue (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues as _onImmediate
at processImmediate as _immediateCallback",
"friendlyName": "EMC Compose System",
"ignoreFailure": false,
"implementsTask": "Task.Base.Emc.Compose.System",
"injectableName": "Task.Emc.Compose.System",
"instanceId": "51fb8001-b096-44cb-a0b1-0d978ce85ca3",
"label": "emc-compose-system",
"name": "Task.Emc.Compose.System",
"options": {
"taskTimeout": 86400000,
"action": "compose",
"endpoints": [
"ComputeElement0",
"StorageElement1",
"StorageElement3"
],
"name": "newSystem"
},
"properties": {},
"runJob": "Job.Emc.Compose.System",
"state": "failed",
"taskEndTime": "2016-10-26T18:20:21.054Z",
"taskStartTime": "2016-10-26T18:20:19.423Z",
"terminalOnStates": [
"timeout",
"cancelled",
"failed"
],
"waitingOn": {}
}
},
"graph_name": "Graph.Emc.Compose.System",
"route_id": "ec38af3f-0bc9-4e90-9ecc-d278f736fe25",
"status": "failed",
"target": "5810f3da81c9599e089fa04d"
}
amqp: DEBUG: Closed channel #1
modules.worker: INFO: stopping subtask for 5810f3da81c9599e089fa04d
--------------------- >> end captured logging << ---------------------
Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self.testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http@2/RackHD/test/tests/api/v1_1/redfish_endpoint_tests.py", line 262, in redfish_emc_compose_test
self.__post_node_workflow([id], 'Graph.Emc.Compose.System', body)
File "/home/jenkins/workspace/on-http@2/RackHD/test/tests/api/v1_1/redfish_endpoint_tests.py", line 92, in __post_node_workflow
workflow.post_workflows(graph_name, nodes=nodes, tasks=tasks, data=body, callback=callback)
File "/home/jenkins/workspace/on-http@2/RackHD/test/tests/api/v1_1/workflows_tests.py", line 174, in post_workflows
self.run_workflow_tasks(self.__tasks, timeout_sec)
File "/home/jenkins/workspace/on-http@2/RackHD/test/tests/api/v1_1/workflows_tests.py", line 205, in run_workflow_tasks
fail('Failure running {0}'.format(self.__graph_name))
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/asserts.py", line 220, in fail
raise ASSERTION_ERROR(message)
'Failure running Graph.Emc.Compose.System\n-------------------- >> begin captured logging << --------------------\ntests.api.v1_1.workflows_tests: INFO: Starting AMQP listener for node 5810f3da81c9599e089fa04d\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/\', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\nurllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/nodes/5810f3da81c9599e089fa04d/workflows/active\nkombu: INFO: Starting AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.
>\namqp: DEBUG: Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/\', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2013 GoPivotal, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'connection.blocked': True, u'authentication_failure_close': True, u'basic.nack': True, u'consumer_priorities': True, u'consumer_cancel_notify': True, u'publisher_confirms': True}, u'platform': u'Erlang/OTP', u'version': u'3.2.4'}, mechanisms: [u'AMQPLAIN', u'PLAIN'], locales: [u'en_US']\namqp: DEBUG: Open OK!\nkombu.mixins: INFO: Connected to amqp://guest:__@127.0.0.1:9091//\namqp: DEBUG: using channel_id: 1\namqp: DEBUG: Channel open\nkombu: INFO: Stopping AMQP worker <unbound Queue graph.finished -> <unbound Exchange on.events(topic)> -> graph.finished.
>\ntests.api.v1_1.workflows_tests: ERROR: {\n "active_task": {\n "223895b4-ff16-48a4-93e8-136fb7fceb15": {\n "friendlyName": "Create Default Pollers",\n "ignoreFailure": false,\n "implementsTask": "Task.Base.Pollers.Redfish.CreateDefault",\n "injectableName": "Task.Inline.Pollers.Redfish.CreateDefault",\n "instanceId": "223895b4-ff16-48a4-93e8-136fb7fceb15",\n "label": "create-redfish-pollers",\n "name": "Task.Inline.Pollers.Redfish.CreateDefault",\n "options": {\n "_taskTimeout": 86400000,\n "pollers": [\n {\n "config": {\n "command": "systems.logservices"\n },\n "pollInterval": 10000,\n "type": "redfish"\n }\n ]\n },\n "properties": {},\n "runJob": "Job.Pollers.CreateDefault",\n "state": "failed",\n "taskEndTime": "2016-10-26T18:20:21.053Z",\n "terminalOnStates": [\n "succeeded",\n "timeout",\n "cancelled",\n "failed"\n ],\n "waitingOn": {\n "51fb8001-b096-44cb-a0b1-0d978ce85ca3": "succeeded"\n }\n },\n "51fb8001-b096-44cb-a0b1-0d978ce85ca3": {\n "error": "Error: EndPoint Resource(s) Already Allocated: ComputeElement0,StorageElement1,StorageElement3\n at /home/vagrant/src/on-taskgraph/node_modules/on-tasks/lib/jobs/emc-compose-system.js:244:23\n at tryCatcher (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)\n at Promise._settlePromiseFromHandler (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)\n at Promise._settlePromiseAt (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)\n at Async._drainQueue (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)\n at Async._drainQueues (/home/vagrant/src/on-taskgraph/node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)\n at Immediate.Async.drainQueues as _onImmediate\n at processImmediate as _immediateCallback",\n "friendlyName": "EMC Compose System",\n "ignoreFailure": false,\n "implementsTask": "Task.Base.Emc.Compose.System",\n "injectableName": "Task.Emc.Compose.System",\n "instanceId": "51fb8001-b096-44cb-a0b1-0d978ce85ca3",\n "label": "emc-compose-system",\n "name": "Task.Emc.Compose.System",\n "options": {\n "_taskTimeout": 86400000,\n "action": "compose",\n "endpoints": [\n "ComputeElement0",\n "StorageElement1",\n "StorageElement3"\n ],\n "name": "newSystem"\n },\n "properties": {},\n "runJob": "Job.Emc.Compose.System",\n "state": "failed",\n "taskEndTime": "2016-10-26T18:20:21.054Z",\n "taskStartTime": "2016-10-26T18:20:19.423Z",\n "terminalOnStates": [\n "timeout",\n "cancelled",\n "failed"\n ],\n "waitingOn": {}\n }\n },\n "graph_name": "Graph.Emc.Compose.System",\n "route_id": "ec38af3f-0bc9-4e90-9ecc-d278f736fe25",\n "status": "failed",\n "target": "5810f3da81c9599e089fa04d"\n}\namqp: DEBUG: Closed channel #1\nmodules.worker: INFO: stopping subtask for 5810f3da81c9599e089fa04d\n--------------------- >> end captured logging << ---------------------'

@tannoa2
Copy link
Contributor

tannoa2 commented Oct 26, 2016

test this please

@nucklehead
Copy link
Contributor Author

@brianparry can you please merge this

Copy link
Contributor

@yyscamper yyscamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks.

@yyscamper yyscamper merged commit df01768 into RackHD:master Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants