Private images not listed when creating volume or instance from image

Bug #1686588 reported by Oisin on 2017-04-27
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Undecided
Unassigned

Bug Description

In Horizon with Image API v2 enabled, in the "Create Volume", "Create Instance" and "Rebuild Instance" dialogs, when selecting an image, only public images are listed. Private images are missing from the list. This only occurs when Horizon is configured to use the glance image API v2, when v1 is used the issues is resolved.

In /etc/openstack-dashboard/local_settings to contain, the following works;

OPENSTACK_API_VERSIONS = {
    "data-processing": 1.1,
    "identity": 3,
    "volume": 2,
    "image": 1,
}

And the following doesn't;

OPENSTACK_API_VERSIONS = {
    "data-processing": 1.1,
    "identity": 3,
    "volume": 2,
    "image": 2,
}

Testing was done with Newton Horizon version 10.0.1.

Mateusz Kowalski (makowals) wrote :

Hi,

Can you give a bit more informations about "only public images" are listed ? There is https://review.openstack.org/#/c/418246/ in progress, but it addresses issue where also some part of private images is visible (it solves the problem with private but shared images).

There are three classes of images
1) public ("is_public": True)
2) project-owned ("property-owner_id": project_id)
3) project-shared ("visibility": "shared")

Can you confirm you see only (1) ?

Oisin (oisin-omalley) wrote :

With v2 API, I only see (1) public images. Only images with the property is_public:True are listed, Project-owned and project-shared aren't visible in the drop-down list.

Oisin (oisin-omalley) wrote :

https://bugs.launchpad.net/horizon/+bug/1655259 looks similar but I think it is a different issue, though they may be related. In that case public and private images are listed and shared images are missing. In this issue both private and shared are missing.

Changed in horizon:
status: New → Confirmed
status: Confirmed → New
Changed in horizon:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers