← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1369394] Re: selecting a protected image makes delete image clickable

 

Not sure if this is a bug, as enabling of "Delete Images" button due to
checking dialog box is caused by javascript action, and same issue can
be seen in Volumes table and Instances table as well (may be other
tables havent explored all), if a volume is attached to an instance, it
cannot be deleted and also in instances table, if  an instance is in
shutoff state, it cannot be terminated or rebooted by clicking "Soft
Reboot Instance" and "Terminate Instance" respectively.

According to current implementation, the clicking of dialog box will
enable the corresponding buttons (Delete Images, Delete Volumes,
Terminate instance).

One more thing what behaviour we are expecting if we have one image as
protected and others are not protected and both are selected. Right now,
clicking on Delete Images will delete the one one image successfully and
for protected image it will through an error, which IMHO is correct
behaviour.

** Changed in: horizon
     Assignee: Ashish Chandra (ashish-chandra) => (unassigned)

** Changed in: horizon
       Status: Confirmed => Opinion

-- 
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/1369394

Title:
  selecting a protected image makes delete image clickable

Status in OpenStack Dashboard (Horizon):
  Opinion

Bug description:
  When selecting a protected image from the Images list, the delete button becomes clickable.
  Deleting would fail here as expected, but the user should not see that option.

  Steps:
  1. Define an image with property protected = True
  2. Wait for the image to be displayed in the images list
  3. Select the image's checkbox

  Expected:
  Delete Image button is grayed out

  Actual:
  Delete Image button is clickable

  Tested on:
  Fedora 20 x86_64
  Devstack
  Horizon at commit cdd64c2f6169c0eb94024fc71840bed255ce6c96

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


References