Horizon doesn't show "visibility" option under "Edit image" tab for non-admin users

Bug #1859041 reported by Ivan Kolodyazhny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Ivan Kolodyazhny

Bug Description

After changibg the glance policy.json rule "publicize_image": "" both in horizon and glance, and after that user is able to set the private image to public via CLI but when done through dashboard, “Edit image” doesn’t show the visibility option to set the image to public for users with any other role except “admin”. User is able to create public images via horizon but not edit the image to public.

1.Update the glance policy.json rule "publicize_image" similar to "publicize_image": "", 2.Update the policy for glance in horizon to the same on prx0* nodes under /usr/share/openstack-dashboard/openstack_dashboard/conf/glance_policy.json3. Login to horizon as non-admin/memeber user in to a project and create a image and set the visibility to public.4. Try to edit the image to set the visibility to private. "visibility" option is not seen.

Expected result:Should be able to get the "visibility" option and set the image to either public or private depending on user choice.

Actual result:"Visibility" Option doesn't appear on horizon under "Edit image"

Affected versions: starting ocata till stein

Ivan Kolodyazhny (e0ne)
Changed in horizon:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Ivan Kolodyazhny (e0ne)
description: updated
tags: added: ocata-backport-potential pike-backport-potential queens-backport-potential rocky-backport-potential stein-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/701766

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/701768

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.opendev.org/701769

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.opendev.org/701770

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

Reviewed: https://review.opendev.org/701762
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fe61f2358a6e16ea462630747180b83337eb5b55
Submitter: Zuul
Branch: stable/stein

commit fe61f2358a6e16ea462630747180b83337eb5b55
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Jan 9 18:12:18 2020 +0200

    Fix typo in publicize_image policy name

    This patch is not cherry-picked from stable/train because if was fixed
    in a scope of a new feature implementation with
    https://review.opendev.org/#/c/602468/ commit.

    Change-Id: I519e15afc975e6da2afb9c72a05448541572bd10
    Closes-Bug: 1859041

tags: added: in-stable-stein
Revision history for this message
Akihiro Motoki (amotoki) wrote :

Maring this as Fix Released as a fix has been merged into the latest branch (stable/stein in this case).

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

Reviewed: https://review.opendev.org/701766
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ed23eb60d4674e7d50f9f13cc926d3e3bb4f1121
Submitter: Zuul
Branch: stable/rocky

commit ed23eb60d4674e7d50f9f13cc926d3e3bb4f1121
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Jan 9 18:12:18 2020 +0200

    Fix typo in publicize_image policy name

    This patch is not cherry-picked from stable/train because if was fixed
    in a scope of a new feature implementation with
    https://review.opendev.org/#/c/602468/ commit.

    Change-Id: I519e15afc975e6da2afb9c72a05448541572bd10
    Closes-Bug: 1859041
    (cherry picked from commit fe61f2358a6e16ea462630747180b83337eb5b55)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 15.2.0

This issue was fixed in the openstack/horizon 15.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 14.1.0

This issue was fixed in the openstack/horizon 14.1.0 release.

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

Reviewed: https://review.opendev.org/701768
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=e3f40725a4f16140f1c423bc9456b670b9bb76b9
Submitter: Zuul
Branch: stable/queens

commit e3f40725a4f16140f1c423bc9456b670b9bb76b9
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Jan 9 18:12:18 2020 +0200

    Fix typo in publicize_image policy name

    This patch is not cherry-picked from stable/train because if was fixed
    in a scope of a new feature implementation with
    https://review.opendev.org/#/c/602468/ commit.

    Change-Id: I519e15afc975e6da2afb9c72a05448541572bd10
    Closes-Bug: 1859041
    (cherry picked from commit fe61f2358a6e16ea462630747180b83337eb5b55)
    (cherry picked from commit ed23eb60d4674e7d50f9f13cc926d3e3bb4f1121)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/ocata)

Reviewed: https://review.opendev.org/701770
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=891ac88e6f4014f9b36699601b6b3fc21eee6318
Submitter: Zuul
Branch: stable/ocata

commit 891ac88e6f4014f9b36699601b6b3fc21eee6318
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Jan 9 18:12:18 2020 +0200

    Fix typo in publicize_image policy name

    This patch is not cherry-picked from stable/train because if was fixed
    in a scope of a new feature implementation with
    https://review.opendev.org/#/c/602468/ commit.

    Change-Id: I519e15afc975e6da2afb9c72a05448541572bd10
    Closes-Bug: 1859041
    (cherry picked from commit fe61f2358a6e16ea462630747180b83337eb5b55)
    (cherry picked from commit ed23eb60d4674e7d50f9f13cc926d3e3bb4f1121)
    (cherry picked from commit e3f40725a4f16140f1c423bc9456b670b9bb76b9)
    (cherry picked from commit 7fbe9ab5cee0765f9913f765125a5423c35a8a1b)

tags: added: in-stable-ocata
tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/pike)

Reviewed: https://review.opendev.org/701769
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=7fbe9ab5cee0765f9913f765125a5423c35a8a1b
Submitter: Zuul
Branch: stable/pike

commit 7fbe9ab5cee0765f9913f765125a5423c35a8a1b
Author: Ivan Kolodyazhny <email address hidden>
Date: Thu Jan 9 18:12:18 2020 +0200

    Fix typo in publicize_image policy name

    This patch is not cherry-picked from stable/train because if was fixed
    in a scope of a new feature implementation with
    https://review.opendev.org/#/c/602468/ commit.

    Change-Id: I519e15afc975e6da2afb9c72a05448541572bd10
    Closes-Bug: 1859041
    (cherry picked from commit fe61f2358a6e16ea462630747180b83337eb5b55)
    (cherry picked from commit ed23eb60d4674e7d50f9f13cc926d3e3bb4f1121)
    (cherry picked from commit e3f40725a4f16140f1c423bc9456b670b9bb76b9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon ocata-eol

This issue was fixed in the openstack/horizon ocata-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon pike-eol

This issue was fixed in the openstack/horizon pike-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon queens-eol

This issue was fixed in the openstack/horizon queens-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers