DevStack using deprecated —os-image-api-version=1 in Magnum config

Bug #1672535 reported by Treva Nichole Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Treva Nichole Williams
devstack
Invalid
Undecided
Unassigned

Bug Description

Howdy folks,

I found a bug in magnum/devstack/lib/magnum that is causing ./stack.sh to fail. Devstack attempts to upload the fedora-atomic-latest image using OpenStack CLI api v1, which has been deprecated. Should be v2, I believe.

from openstack --help:

--os-image-api-version OS_IMAGE_API_VERSION
                       Defaults to env[OS_IMAGE_API_VERSION] or 2.

error message:

2017-03-13 20:00:22.184 | ++/opt/stack/magnum/devstack/lib/magnum:magnum_register_image:276 break
2017-03-13 20:00:22.191 | ++/opt/stack/magnum/devstack/lib/magnum:magnum_register_image:279 '[' -z fedora-atomic-latest ']'
2017-03-13 20:00:22.197 | ++/opt/stack/magnum/devstack/lib/magnum:magnum_register_image:283 openstack --os-url http://104.130.239.210:9292 --os-image-api-version 1 image set fedora-atomic-latest --property os_distro=fedora-atomic
2017-03-13 20:00:37.366 | HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is not available.
2017-03-13 20:00:37.425 | +/opt/stack/magnum/devstack/lib/magnum:magnum_register_image:1 exit_trap
2017-03-13 20:00:37.430 | +stack.sh:exit_trap:487 local r=1
2017-03-13 20:00:37.437 | ++stack.sh:exit_trap:488 jobs -p
2017-03-13 20:00:37.445 | +stack.sh:exit_trap:488 jobs=
2017-03-13 20:00:37.452 | +stack.sh:exit_trap:491 [[ -n '' ]]
2017-03-13 20:00:37.458 | +stack.sh:exit_trap:497 kill_spinner
2017-03-13 20:00:37.463 | +stack.sh:kill_spinner:383 '[' '!' -z '' ']'
2017-03-13 20:00:37.468 | +stack.sh:exit_trap:499 [[ 1 -ne 0 ]]
2017-03-13 20:00:37.474 | +stack.sh:exit_trap:500 echo 'Error on exit'
2017-03-13 20:00:37.474 | Error on exit
2017-03-13 20:00:37.480 | +stack.sh:exit_trap:501 generate-subunit 1489432969 2268 fail
2017-03-13 20:00:37.828 | +stack.sh:exit_trap:502 [[ -z /opt/stack/logs ]]
2017-03-13 20:00:37.834 | +stack.sh:exit_trap:505 /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2017-03-13 20:00:38.953 | +stack.sh:exit_trap:511 exit 1

Changed in devstack:
assignee: nobody → T. Nichole Williams (trilliams)
Revision history for this message
Treva Nichole Williams (trilliams) wrote :

added info

Changed in devstack:
status: New → Confirmed
description: updated
Revision history for this message
Rico Lin (rico-lin) wrote :
Rico Lin (rico-lin)
Changed in magnum:
assignee: nobody → Rico Lin (rico-lin)
status: New → In Progress
Changed in magnum:
assignee: Rico Lin (rico-lin) → yatin (yatinkarel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Rico Lin (<email address hidden>) on branch: master
Review: https://review.openstack.org/445300
Reason: In favor of https://review.openstack.org/#/c/445246

Changed in devstack:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

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

Changed in magnum:
assignee: yatin (yatinkarel) → T. Nichole Williams (trilliams)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/445246
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=3a9e8cfb40b1be2804a38c375110040ccaf2da8b
Submitter: Jenkins
Branch: master

commit 3a9e8cfb40b1be2804a38c375110040ccaf2da8b
Author: trilliams <email address hidden>
Date: Mon Mar 13 19:00:22 2017 -0500

    Glance v1 is deprecated and removed in devstack [1]

    With this patch we will use glance v2 api's for interacting
    with glance.

    [1] I7f962a07317cdad917ee896d79e49ee18938d074

    Closes-Bug: 1672535

    Change-Id: Iedc25b55ad2751e14d3794b1cb80f724f1a735c4

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Treva Nichole Williams (<email address hidden>) on branch: master
Review: https://review.openstack.org/445584

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Treva Nichole Williams (<email address hidden>) on branch: master
Review: https://review.openstack.org/445607

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

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

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

Reviewed: https://review.openstack.org/445971
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=159e277b0ffcc325ae5e71a4b7d5ca044600603a
Submitter: Jenkins
Branch: master

commit 159e277b0ffcc325ae5e71a4b7d5ca044600603a
Author: trilliams <email address hidden>
Date: Wed Mar 15 08:53:59 2017 -0500

    Update quickstart to use OpenStack CLI

    Removed reference to glance commandline client as this generates errors.
    Switched commands for image management to OpenStack CLI.

    Change-Id: I2785ed54da7d2e2a162d163a8a9fa4c1cfe083be
    Related-Bug: 1672535
    Implements: OpenStackCLI APIv2

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by yatin (<email address hidden>) on branch: master
Review: https://review.openstack.org/445218
Reason: https://review.openstack.org/#/c/445246/

Revision history for this message
Sean Dague (sdague) wrote :

No open reviews found in this bug, unassigning. Please add a comment with active reviews before assigning an individual, or tag the bug in the gerrit review, which will do that automatically. We try not to assign bugs without patches as that discourages other folks from looking into bugs.

Changed in devstack:
assignee: Treva Nichole Williams (trilliams) → nobody
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 5.0.0

This issue was fixed in the openstack/magnum 5.0.0 release.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

If I read the history correctly, this was an issue in magnum. Please update if there is still an issue with devstack.

Changed in devstack:
status: New → Invalid
Revision history for this message
Spyros Trigazis (strigazi) wrote :

Not an issue in magnum since sometime now. Thanks

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.