Comply with upper-constraints when building images

Bug #1603506 reported by Peter Stachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Unassigned

Bug Description

Currently building an image uses requirements but not upper-constraints. This can cause an issue when libraries change and the image becomes out of sync with the server code (for example when oslo.context changes).

Trove integration should use upper-constraints as well.

Revision history for this message
jian.song (jiansong) wrote :

function cmd_build_image() {
    IMAGE_DATASTORE_TYPE=${1:-'mysql'}
    ESCAPED_PATH_TROVE=${2:-'\/opt\/stack\/trove'}
    HOST_SCP_USERNAME=${3:-'ubuntu'}
    GUEST_USERNAME=${4:-'ubuntu'}

    exclaim "Ensuring we have all packages needed to build image."
    sudo $HTTP_PROXY $PKG_MGR $PKG_GET_ARGS update
    sudo $HTTP_PROXY $PKG_MGR $PKG_GET_ARGS install qemu
    sudo -H $HTTP_PROXY pip install --upgrade pip dib-utils

    install_devstack_code

    cmd_clone_projects do_not_force_update $REDSTACK_SCRIPTS/image-projects-list

    exclaim "Use tripleo-diskimagebuilder to actually build the Trove Guest Agent Image."
    build_guest_image $IMAGE_DATASTORE_TYPE
}

Is here to change? ...

Revision history for this message
Amrith Kumar (amrith) wrote :

This has already been fixed.

Revision history for this message
Amrith Kumar (amrith) wrote :

And, no, that's not where the fix must go.

Revision history for this message
jian.song (jiansong) wrote :

ok,thanks

Amrith Kumar (amrith)
Changed in trove:
status: New → Fix Committed
status: Fix Committed → 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.