cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9611) Dedicating a Guest VLAN range to Project does not work
Date Thu, 16 Feb 2017 20:27:41 GMT

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

ASF GitHub Bot commented on CLOUDSTACK-9611:
--------------------------------------------

Github user ustcweizhou commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1771#discussion_r101618476
  
    --- Diff: server/src/com/cloud/network/NetworkServiceImpl.java ---
    @@ -3085,9 +3085,10 @@ public GuestVlan dedicateGuestVlanRange(DedicateGuestVlanRangeCmd
cmd) {
             // Verify account is valid
             Account vlanOwner = null;
             if (projectId != null) {
    -            if (accountName != null) {
    -                throw new InvalidParameterValueException("accountName and projectId are
mutually exclusive");
    -            }
    +            //accountName and projectId are mutually exclusive
    --- End diff --
    
    @nitin-maharana I disagree this change. We'd better keep like it.
    I suggest to make ui change to add a new field 'scope' which can be set to 'domain', 'account',
'project'.
    It is similar to the scope field in the dialog to create a shared network in advanced
zone.
    
    scope='Domain', domain field is shown.
    scope='Account, domain and account are shown
    scope='Project', domain and project are shown.
    



> Dedicating a Guest VLAN range to Project does not work
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-9611
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9611
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Nitin Kumar Maharana
>
> Trying to dedicate a guest VLAN range to an account fails. If we pass both account and
projectid parameters to the dedicateGuestVlanRange (which are not mentioned as mutually exclusive
in API description) the API layer throws error saying both are mutually exclusive.
> Steps to Reproduce:
> ================
> Create an account. Create a project in that account.
> Go to admin account and change view to the above project.
> Navigate to Infrastructure -> Zone -> Physical Network -> Guest -> Dedicate
Guest VLAN range.
> Try to dedicate the guest VLAN range from the project view for the account associated
with the project.
> It fails with Error saying accountName and projectId are mutually exclusive.
> Expected:
> ========
> The VLAN range should get dedicated to the project account.
> Notes:
> =====
> If we do the dedication from default view then it works fine as no projectid is associated
over there.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message