Handle IronicExceptions raised by agent_client

Bug #1542506 reported by Ruby Loo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Won't Fix
Low
Michael Turek

Bug Description

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/290131

Changed in ironic:
assignee: Ruby Loo (rloo) → Michael Turek (mjturek)
status: New → In Progress
Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi Ruby. This bug is too broad and I'm closing it. Please provide specific places where handing IronicException is *required*. E.g. what https://review.openstack.org/290131 is currently doing is just incorrect.

Changed in ironic:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to ironic (master)

Reviewed: https://review.openstack.org/269311
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=22ea3fb3b72b614bb1a052a04b5cf5a5359b5b40
Submitter: Zuul
Branch: master

commit 22ea3fb3b72b614bb1a052a04b5cf5a5359b5b40
Author: Jim Rollenhagen <email address hidden>
Date: Mon Jan 18 14:24:29 2016 -0800

    Fail deploy if agent returns >= 400

    Currently the status code returned by IPA's POST /v1/commands API is
    completely ignored by Ironic. This causes deploys to get stuck, as
    future heartbeats will see that the command has not yet been accepted
    and will continue to wait.

    If IPA returns an error code to Ironic's agent client, we should bubble
    that exception up, causing a deploy failure higher in the chain.

    This adds an AgentAPIError exception class, and raises it when the agent
    returns a 400 status code or higher when issuing a command.

    Co-Authored-By: Jay Faulkner <email address hidden>

    Related-bug: 1542506
    Change-Id: I07fb8115d254e877d8781207eaec203e3fdf8ad6

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to ironic (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/521649

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

Reviewed: https://review.openstack.org/521649
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=a7ef398337f90db4e60bbfb1c97c429e6669794e
Submitter: Zuul
Branch: master

commit a7ef398337f90db4e60bbfb1c97c429e6669794e
Author: Ruby Loo <email address hidden>
Date: Mon Nov 20 15:14:30 2017 -0500

    Followup to I07fb8115d254e877d8781207eaec203e3fdf8ad6

    This adds punctuation to a log string and clarifies an
    exception string.

    Change-Id: Ifde1ebbc8457d33e8d063bf1dbb9b5fbf14857ea
    Related-bug: 1542506

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.