Error contacting Ironic server for 'node.update'

Bug #1375641 reported by Derek Higgins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Critical
Dmitry Tantsur
tripleo
Invalid
Critical
Unassigned

Bug Description

All ironic tripleo ci jobs failing,
Started at 2014-09-29 23:00 UTC Approx

Error in compute log:
http://logs.openstack.org/93/124493/12/check-tripleo/check-tripleo-ironic-undercloud-precise-nonha/2bb28b6/logs/seed_logs/nova-compute.txt.gz

WARNING nova.virt.ironic.client_wrapper [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 None] Error contacting Ironic server for 'node.update'. Attempt 58 of 60
WARNING ironicclient.common.http [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 ] Request returned failure status.
WARNING nova.virt.ironic.client_wrapper [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 None] Error contacting Ironic server for 'node.update'. Attempt 59 of 60
WARNING ironicclient.common.http [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 ] Request returned failure status.
ERROR nova.virt.ironic.client_wrapper [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 None] Error contacting Ironic server for 'node.update'. Attempt 60 of 60
ERROR nova.compute.manager [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 None] [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] Instance failed to spawn
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] Traceback (most recent call last):
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 2231, in _build_resources
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] yield resources
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 2101, in _build_and_run_instance
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] block_device_info=block_device_info)
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 595, in spawn
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] self._add_driver_fields(node, instance, image_meta, flavor)
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/ironic/driver.py", line 290, in _add_driver_fields
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] icli.call('node.update', node.uuid, patch)
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] File "/opt/stack/venvs/nova/local/lib/python2.7/site-packages/nova/virt/ironic/client_wrapper.py", line 120, in call
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] raise exception.NovaException(msg)
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f] NovaException: Error contacting Ironic server for 'node.update'. Attempt 60 of 60
TRACE nova.compute.manager [instance: be479e2b-2a6c-4973-8472-ce1e09c2439f]
WARNING nova.virt.ironic.driver [req-03f2175d-d45a-44ad-9eb2-13d9a9671bb6 None] Destroy called on non-existing instance be479e2b-2a6c-4973-8472-ce1e09c2439f.

Tags: ci
Revision history for this message
Dmitry Tantsur (divius) wrote :

In Ironic API logs:

Sep 29 10:11:08 ubuntu ironic-api: 2014-09-29 10:11:08.593 3702 WARNING wsme.api [-] Client-side error: Node ddf182cf-ed69-4100-bce5-fba864dffe4d can not be updated while a state transition is in progress.
Sep 29 10:11:08 ubuntu ironic-api: 192.0.2.1 - - [29/Sep/2014 10:11:08] "PATCH /v1/nodes/ddf182cf-ed69-4100-bce5-fba864dffe4d HTTP/1.1" 409 193
Sep 29 10:11:10 ubuntu ironic-api: 2014-09-29 10:11:10.969 3702 WARNING wsme.api [-] Client-side error: Node ddf182cf-ed69-4100-bce5-fba864dffe4d can not be updated while a state transition is in progress.
Sep 29 10:11:10 ubuntu ironic-api: 192.0.2.1 - - [29/Sep/2014 10:11:10] "PATCH /v1/nodes/ddf182cf-ed69-4100-bce5-fba864dffe4d HTTP/1.1" 409 193
Sep 29 10:11:13 ubuntu ironic-api: 2014-09-29 10:11:13.252 3702 WARNING wsme.api [-] Client-side error: Node ddf182cf-ed69-4100-bce5-fba864dffe4d can not be updated while a state transition is in progress.
....and so on.

We suspect https://review.openstack.org/#/c/124225/ may be the cause, trying revert in https://review.openstack.org/#/c/124990/

Changed in ironic:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → juno-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/124994

Changed in ironic:
assignee: nobody → Dmitry "Divius" Tantsur (divius)
status: Confirmed → In Progress
Revision history for this message
Dmitry Tantsur (divius) wrote :

This patch ^^^ is an attempt to fix the problem without reverting.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/124994
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=1ca9d5f4fba5c15b646a692e94570b2d1b67cb3a
Submitter: Jenkins
Branch: master

commit 1ca9d5f4fba5c15b646a692e94570b2d1b67cb3a
Author: Dmitry Tantsur <email address hidden>
Date: Tue Sep 30 11:48:47 2014 +0200

    Always reset target_power_state in node_power_action

    Currently under some conditions target_power_state can be left
    on the node, making it impossible to operate on via API.

    Change-Id: Iba92c9bfae3616661cadf602618a66d2664264ee
    Closes-Bug: #1375641

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
status: Fix Committed → Fix Released
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Fixed in Ironic.

Changed in tripleo:
status: Triaged → Invalid
Thierry Carrez (ttx)
Changed in ironic:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.