Bug 788036 - Wrong message displayed if a user have a role as "zone user" tries to destroy zone.
Summary: Wrong message displayed if a user have a role as "zone user" tries to destro...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-conductor
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
Assignee: Scott Seago
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-07 10:07 UTC by Aziza Karol
Modified: 2012-09-04 15:47 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-04 15:47:01 UTC


Attachments (Terms of Use)
err (238.19 KB, image/png)
2012-02-07 10:09 UTC, Aziza Karol
no flags Details

Description Aziza Karol 2012-02-07 10:07:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
Broswer1:
login as admin and created a user "azdev".
created a newzone called "test" and launched an deployment in it.
To the zone  "test" added a user "azdev" with role "Zone owner".

broswer2:
login as "azdev" and stop the instance and then delete the deployment.
instances were stopped and deleted successfully.

Browser1:
change the role from "Zone owner to Zone user"

browser2:
try to destroy the zone "test"


it displays "Cloud resource zone was not deleted. There are instances associated with it".
see attached screenshot.



Expected results:
It should not display this message as there were no instances associated with it. it was already deleted.
zone user should not be allowed to destroy zones"





Additional info:
rpm -qa | grep aeolus
rubygem-aeolus-image-0.3.0-7.el6.noarch
aeolus-conductor-daemons-0.8.0-20.el6.noarch
aeolus-configure-2.5.0-11.el6.noarch
aeolus-conductor-doc-0.8.0-20.el6.noarch
aeolus-all-0.8.0-20.el6.noarch
rubygem-aeolus-cli-0.3.0-7.el6.noarch
aeolus-conductor-0.8.0-20.el6.noarch

Comment 1 Aziza Karol 2012-02-07 10:09:56 UTC
Created attachment 559904 [details]
err

Comment 2 Scott Seago 2012-08-29 17:41:12 UTC
See if you can reproduce this now. I'm getting the proper 'permission denied' error, and looking at the code, it looks like it's been fixed already.

https://bugzilla.redhat.com/show_bug.cgi?id=795666 Seems to report something similar, and that's when the code was changed, so I suspect this can be closed as a duplicate of the other.

Comment 3 Aziza Karol 2012-09-03 06:46:55 UTC
zone user is not allowed to delete zones.
Edit/delete option not avaliable.Hence this issue can be closed.

verified on:
rpm -qa | grep aeolus
aeolus-conductor-0.13.0-0.20120903030010git55da509.fc16.noarch
rubygem-aeolus-image-0.6.0-0.20120902230031git902c81c.fc16.noarch
rubygem-aeolus-cli-0.7.0-0.20120902230028gitd64d64f.fc16.noarch
aeolus-configure-2.8.0-0.20120902230026git7dfddaf.fc16.noarch
aeolus-conductor-daemons-0.13.0-0.20120903030010git55da509.fc16.noarch
aeolus-all-0.13.0-0.20120903030010git55da509.fc16.noarch
aeolus-conductor-doc-0.13.0-0.20120903030010git55da509.fc16.noarch


Note You need to log in before you can comment on or make changes to this bug.