'is_public' filter should be handled when nova calls glance via V2

Bug #1201266 reported by Amala Basha
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Gorka Eguileor
OpenStack Compute (nova)
Invalid
Wishlist
Mike Fedosin

Bug Description

During an image- list call via Nova, it appends an 'is_public:None' to the filters, to ensure that private images are not filtered out. In glance V2 Api, this value should be parsed to something useful, say returning True and preserving the default behaviour of returning all public images ( As is done in V1). Currently image-list to V2 via Nova returns an empty list.

Amala Basha (amalabasha)
Changed in glance:
assignee: nobody → Amala Basha (amalabasha)
description: updated
Changed in glance:
status: New → In Progress
Revision history for this message
Amala Basha (amalabasha) wrote :

Is_public filter is replaced by 'visibility' in glance V2, so also sending is_public might seem inappropriate

Changed in nova:
assignee: nobody → Amala Basha (amalabasha)
Matt Riedemann (mriedem)
affects: nova → python-novaclient
Revision history for this message
Andrew Laski (alaski) wrote :

novaclient doesn't append the is_public param, nova does.

affects: python-novaclient → nova
Changed in nova:
importance: Undecided → Low
importance: Low → Wishlist
status: New → Confirmed
Revision history for this message
Andrew Laski (alaski) wrote :

Nova is currently hardcoded to use the Glance V1 api for the image-list call. Therefore it's not really a bug at the moment for it to use V1 specific params.

If/when Nova uses the V2 api for the image-list call then this becomes an issue.

Amala Basha (amalabasha)
Changed in glance:
assignee: Amala Basha (amalabasha) → nobody
Changed in nova:
assignee: Amala Basha (amalabasha) → nobody
Revision history for this message
Iccha Sethi (iccha-sethi) wrote :

I am not sure this is a glance v2 bug. Nova should use the glance v2 api correctly.

Tom Fifield (fifieldt)
Changed in glance:
status: In Progress → Confirmed
Revision history for this message
Mark Washenberger (markwash) wrote :

Not a glance bug.

no longer affects: glance
Mike Fedosin (mfedosin)
Changed in nova:
assignee: nobody → Mike Fedosin (mfedosin)
Changed in nova:
status: Confirmed → In Progress
Changed in nova:
assignee: Mike Fedosin (mfedosin) → Sudipta Biswas (sbiswas7)
Changed in nova:
assignee: Sudipta Biswas (sbiswas7) → Mike Fedosin (mfedosin)
Changed in nova:
status: In Progress → Confirmed
Revision history for this message
Mehdi Abaakouk (sileht) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
assignee: nobody → Mehdi Abaakouk (sileht)
status: New → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :

The nova part of this needs to be fixed in the glance v2 support blueprint:

https://blueprints.launchpad.net/nova/+spec/use-glance-v2-api

Changed in nova:
status: Confirmed → Invalid
Mehdi Abaakouk (sileht)
Changed in cinder:
assignee: Mehdi Abaakouk (sileht) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Mehdi Abaakouk (sileht) (<email address hidden>) on branch: master
Review: https://review.openstack.org/296998
Reason: Well two months to get reviewed, no more for me.
Takeover my change if you want your software fixed, or keep it buggy.

Cheers.

Changed in cinder:
assignee: nobody → Gorka Eguileor (gorka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/296998
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=4e7624ed65626bd34fa354eb50bc7228f0dd0e26
Submitter: Jenkins
Branch: master

commit 4e7624ed65626bd34fa354eb50bc7228f0dd0e26
Author: Mehdi Abaakouk <email address hidden>
Date: Thu Mar 24 11:23:17 2016 +0100

    image: don't use is_public with glance V2 API

    Glance v2 API has replaced "is_public" argument with "visibility", and,
    unlike "is_public" the default value of "visibility" returns all images,
    which is what we want to get when no value has been provided.

    This patch makes sure that we only send a default value for "is_public"
    when it's not defined when working with API v1.

    Closes-bug: #1201266
    Co-Authored-By: Gorka Eguileor <email address hidden>
    Change-Id: I9ca13567744dbe5895012429679e013b859dbb03

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/316048

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/mitaka)

Reviewed: https://review.openstack.org/316048
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=b472931a7f3a897d65d15df1a2f9146397365475
Submitter: Jenkins
Branch: stable/mitaka

commit b472931a7f3a897d65d15df1a2f9146397365475
Author: Mehdi Abaakouk <email address hidden>
Date: Thu Mar 24 11:23:17 2016 +0100

    image: don't use is_public with glance V2 API

    Glance v2 API has replaced "is_public" argument with "visibility", and,
    unlike "is_public" the default value of "visibility" returns all images,
    which is what we want to get when no value has been provided.

    This patch makes sure that we only send a default value for "is_public"
    when it's not defined when working with API v1.

    Closes-bug: #1201266
    Co-Authored-By: Gorka Eguileor <email address hidden>
    Change-Id: I9ca13567744dbe5895012429679e013b859dbb03
    (cherry picked from commit 4e7624ed65626bd34fa354eb50bc7228f0dd0e26)

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 9.0.0.0b1

This issue was fixed in the openstack/cinder 9.0.0.0b1 development milestone.

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

Change abandoned by Mike Fedosin (<email address hidden>) on branch: master
Review: https://review.openstack.org/238309

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 8.1.0

This issue was fixed in the openstack/cinder 8.1.0 release.

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.