Resize Flavor Validation Overly Restrictive, Blocks VCPU Increase + More

Bug #1382931 reported by Auston McReynolds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Davide Agnello

Bug Description

the resize instance validation is overly restrictive. in short, the resize instance operation should be permitted if the new flavor id is different than the old flavor id.

why: even if the ram, cpu, and root disk are the same, a flavor can have scheduler hints placed on it.

the logic today blocks these very valid scenarios:

(1) resize to a flavor with more vcpus, but the same amount of ram
(2) resize to a flavor with the same amount of ram + vcpus, but more root-disk.
(3) resize to a flavor with the same ram + vcpus + root-or-ephemeral, but different flavor-id.
(4) etc.

Revision history for this message
Auston McReynolds (amcrn) wrote :

i'm leaving this unassigned at the moment because i'm working on a few other bugs; if anyone is interested in fixing this, go for it.

Changed in trove:
importance: Undecided → Medium
milestone: none → kilo-1
status: New → Triaged
summary: - Resize Flavor Validation Overly Restrictive
+ Resize Flavor Validation Overly Restrictive, Blocks VCPU Increase + More
Changed in trove:
milestone: kilo-1 → kilo-2
Changed in trove:
milestone: kilo-2 → kilo-3
Changed in trove:
assignee: nobody → Nikhil Manchanda (slicknik)
Changed in trove:
assignee: Nikhil Manchanda (slicknik) → Saurabh Surana (saurabh-surana)
Changed in trove:
assignee: Saurabh Surana (saurabh-surana) → Davide Agnello (dagnello)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: Triaged → In Progress
Changed in trove:
milestone: kilo-3 → kilo-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/164547
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=5d5cc38467d0caa0366fb5a05b8f82343586a476
Submitter: Jenkins
Branch: master

commit 5d5cc38467d0caa0366fb5a05b8f82343586a476
Author: dagnello <email address hidden>
Date: Sun Mar 15 14:05:42 2015 -0700

    Updating Flavor Resize Restrictions

    Updating instance flavor resize restriction logic to:
    Resize the instance if current flavor id and new flavor id are
    different.
    Except when:
      * current flavor allows for volume support and new flavor does not
      * current flavor has ephemeral support enabled and new flavor does
        not

    Change-Id: If708f795858489114cfa09901591d95b1bcb530b
    closing-bug: 1382931

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-rc1 → 2015.1.0
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.