documentation doesn't match nova code when image and flavor specify different settings

Bug #1687077 reported by Chris Friesen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Chris Friesen

Bug Description

As part of investigating https://bugs.launchpad.net/nova/+bug/1687067 someone referred me to https://docs.openstack.org/admin-guide/compute-cpu-topologies.html where it says "Image metadata takes precedence over flavor extra specs."

This is generally not true, in fact it is exactly backwards. The flavors are created by administrator-level users, while images can be created by regular users. Thus, flavor extra-specs can be used to restrict what regular users are allowed to set in the image properties.

I looked through the docs for cases discussing mismatch between flavor extra-specs and image properties. I found three cases and in all three cases the docs did not match the code.

I'm proposing a fixup to deal with this.

There's one remaining piece that I haven't dealt with, which is what happens when the flavor specifies a cpu threading policy of "prefer" and the image specifies "isolate" or "require". This is still in discussion within the nova team, since the code behaviour was accidentally changed between Mitaka and Newton. Once the nova team sorts it out a final fix will be made to the docs in a separate commit.

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

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

Changed in openstack-manuals:
assignee: nobody → Chris Friesen (cbf123)
status: New → In Progress
Changed in openstack-manuals:
importance: Undecided → High
milestone: none → pike
Changed in openstack-manuals:
assignee: Chris Friesen (cbf123) → Joseph Robinson (joseph-r-email)
Changed in openstack-manuals:
assignee: Joseph Robinson (joseph-r-email) → Chris Friesen (cbf123)
Changed in openstack-manuals:
assignee: Chris Friesen (cbf123) → Alexandra Settle (alexandra-settle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/461110
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=97a025801f8a75f79ae6ff4f2ddb165fb5a3ffcb
Submitter: Jenkins
Branch: master

commit 97a025801f8a75f79ae6ff4f2ddb165fb5a3ffcb
Author: Chris Friesen <email address hidden>
Date: Fri Apr 28 11:38:45 2017 -0600

    Fix docs covering mismatch between flavor/image

    If there is a mismatch between flavor extra-specs and image properties
    the result varies depending on the specific options being configured.

    This fixes up the docs to align with the nova code.

    Change-Id: Ie42bf8e9a98a055411fc2e2b28ce00cb13af4725
    Partial-Bug: 1687077

Changed in openstack-manuals:
assignee: Alexandra Settle (alexandra-settle) → Chris Friesen (cbf123)
Changed in openstack-manuals:
status: In Progress → Fix Released
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.