← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1859041] [NEW] Horizon doesn't show "visibility" option under "Edit image" tab for non-admin users

 

Public bug reported:

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

** Affects: horizon
     Importance: Medium
     Assignee: Ivan Kolodyazhny (e0ne)
         Status: In Progress


** Tags: ocata-backport-potential pike-backport-potential queens-backport-potential rocky-backport-potential stein-backport-potential

** Changed in: horizon
   Importance: Undecided => Medium

** Changed in: horizon
       Status: New => In Progress

** Changed in: horizon
     Assignee: (unassigned) => Ivan Kolodyazhny (e0ne)

** Description changed:

  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

** Tags added: ocata-backport-potential pike-backport-potential queens-
backport-potential rocky-backport-potential stein-backport-potential

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1859041

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

Status in OpenStack Dashboard (Horizon):
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1859041/+subscriptions


Follow ups