cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koushik Das (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9371) Regular user cannot resize volume
Date Tue, 30 Aug 2016 05:12:20 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15448065#comment-15448065
] 

Koushik Das commented on CLOUDSTACK-9371:
-----------------------------------------

This is fixed in 4.9 by the following PR. I think API allowed end users to resize but the
option wasn't available through UI.
https://github.com/apache/cloudstack/pull/1595

> Regular user cannot resize volume
> ---------------------------------
>
>                 Key: CLOUDSTACK-9371
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9371
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: UI
>    Affects Versions: 4.9.0
>         Environment: N/A
>            Reporter: Mike Tutkowski
>             Fix For: 4.9.1
>
>
> The GUI is not showing the "Resize Volume" button for regular users when it should (i.e.
for KVM, XenServer, and VMware).
> From an e-mail chain on dev@:
> Re: Resizing a volume
> DELETEREPLYREPLY ALLFORWARD
> Mark as unread
> Tutkowski, Mike <Mike.Tutkowski@netapp.com>
> Wed 4/27/2016 7:13 PM
> To:
> dev@cloudstack.apache.org;
> It appears the offending code was added here: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commitdiff;h=d6e21f74163212b198731ddf23dd48bc4c787b84
> ________________________________________
> From: Tutkowski, Mike <Mike.Tutkowski@netapp.com>
> Sent: Wednesday, April 27, 2016 5:33 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Resizing a volume
> I see the problem.
> It's in storage.js
>         if (jsonObj.hypervisor == "KVM" || jsonObj.hypervisor == "XenServer" || jsonObj.hypervisor
== "VMware") {
>             if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") {
>                 allowedActions.push("resize");
>             }
>         }
> jsonObj.hypervisor is equal to undefined (it has the correct hypervisor type when I'm
logged in as an admin).
> We appear to have other code in the vicinity that depends on jsonObj.hypervisor and is
probably misbehaving.
> Maybe a GUI developer can fill us in as to what's expected here?
> ________________________________________
> From: Tutkowski, Mike <Mike.Tutkowski@netapp.com>
> Sent: Wednesday, April 27, 2016 5:13 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Resizing a volume
> Here's a pic:
> http://imgur.com/2k380Yd
> It's for a volume on KVM, but I see the same behavior on XenServer and VMware, too.
> I'm logged in as a regular user.
> ________________________________________
> From: Tutkowski, Mike <Mike.Tutkowski@netapp.com>
> Sent: Wednesday, April 27, 2016 4:23 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Resizing a volume
> Hi Wido,
> I'm referring to the commands.properties file, where you can set permissions for a given
API.
> However, I see volumeResize has the following setting, which should enable users to access
it:
> resizeVolume=15
> Perhaps there's just a bug in the GUI not showing the button?
> Talk to you later,
> Mike
> ________________________________________
> From: Wido den Hollander <wido@widodh.nl>
> Sent: Wednesday, April 27, 2016 1:33 AM
> To: Tutkowski, Mike; dev@cloudstack.apache.org
> Subject: Re: Resizing a volume
> > Op 26 april 2016 om 22:37 schreef "Tutkowski, Mike" <Mike.Tutkowski@netapp.com>:
> >
> >
> > ??Hi,
> >
> >
> > I noticed that by default non-admins cannot resize a volume to a different disk
offering.
> >
> >
> > Anyone know why that's the default behavior? I would think that would be an expected
operation for end users.
> >
> You mean that it's a setting? I'd say it is preferred that they can do so indeed by default.
> Wido
> >
> > Thanks,
> >
> > Mike



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message