Blazar should allow updating or removing extra capability key/value pairs

Bug #1674524 reported by Pierre Riteau on 2017-03-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Masahito Muroi

Bug Description

Currently, Blazar allows users to add extra capabilities (as a key/value pair) to a host while creating or updating it, but doesn't allow updating the value or removing the key/value pair.

This will require changes to the Blazar service (and maybe to the API?) and to the command-line client.

Pierre Riteau (priteau) on 2017-03-21
Changed in blazar:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 0.3.0

Submitter: Jenkins
Branch: master

commit 03e005993262357eb955601fb8acef38654eadf8
Author: Pierre Riteau <email address hidden>
Date: Fri Aug 11 09:20:04 2017 +0100

    Allow update host API to add new extra capabilities

    The update host API can only update existing extra capabilities.
    However, we can support adding new extra capabilities to hosts without
    API change.

    With this patch, Blazar can both create and update extra capabilities
    via the update host API.

    Partial-Bug: #1674524
    Change-Id: Ic9bd743a1c31858db9390a3379dc19e1e54327a8

Masahito Muroi (muroi-masahito) wrote :

Partial bug fix, supporting update extra capacity, was released in Pike. The concrete bug fix or discussions about supporting update/delete or not is targeted to Queens release.

Changed in blazar:
milestone: 0.3.0 → 0.4.0

Updating or deleting of extra capabilities can break a lease. For example, the following scenario can happen:

1. A user create a lease including a host reservation with 'sample-excap=true'.
2. Then, a hostA which has 'sample-excap=true' in it's extra capability is reserved.
3. After that, the sample-excap is removed from the extra capability of the hostA.
4. Though the hostA does not satisfy 'sample-excap=true', it's still reserved for the user.

So, before updating or deleting extra capabilities, blazar should check if it breaks existing leases.

Changed in blazar:
milestone: 0.4.0 → queens-3
Masahito Muroi (muroi-masahito) wrote :

Based on the discussion in the Dublin PTG, host API will support PATCH update.

Changed in blazar:
milestone: queens-3 → rocky-2
Changed in blazar:
assignee: nobody → Masahito Muroi (muroi-masahito)
Pierre Riteau (priteau) on 2018-09-10
Changed in blazar:
milestone: rocky-2 → stein-2
Pierre Riteau (priteau) on 2019-01-10
Changed in blazar:
milestone: stein-2 → stein-3
Pierre Riteau (priteau) on 2019-04-15
Changed in blazar:
milestone: stein-3 → train-1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers