You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/09 15:09:00 UTC

[jira] [Commented] (CLOUDSTACK-9862) list template with id= no longer work as domain admin

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

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

khos2ow opened a new pull request #2556: CLOUDSTACK-9862: list template with id no longer works as domain admin
URL: https://github.com/apache/cloudstack/pull/2556
 
 
   ## Description
   <!--- Describe your changes in detail -->
   As domain admin, listTemplates templatefilter=featured no longer work if id= is specified.
   
   Using cloudmonkey with domain-admin credential:
   
   ```
   (beta2r1-ninja) > list templates templatefilter=featured filter=name,id
   count = 9
   template:
   +--------------------------------------+---------------------------------+
   |                  id                  |               name              |
   +--------------------------------------+---------------------------------+
   | 513b3a6d-c011-46f0-a4a3-2a954cadb673 |      CoreOS Alpha 1367.5.0      |
   | 0c04d876-1f85-45a7-b6f4-504de435bf12 |    Debian 8.5 PV base (64bit)   |
   | 285f2203-449a-428f-997a-1ffbebbf1382 |           CoreOS Alpha          |
   | 332b6ca8-b3d6-42c7-83e5-60fe87be6576 |          CoreOS Stable          |
   | 3b705008-c186-464d-ad59-312d902420af |   Windows Server 2016 std SPLA  |
   | 4256aebe-a1c1-4b49-9993-de2bc712d521 |       Ubuntu 16.04.01 HVM       |
   | 59e6b00a-b88e-4539-aa3c-75c9c7e9fa6c | Ubuntu 14.04.5 HVM base (64bit) |
   | 3ab936eb-d8c2-44d8-a64b-17ad5adf8a51 |          CentOS 6.8 PV          |
   | 7de5d423-c91e-49cc-86e8-9d6ed6abd997 |          CentOS 7.2 HVM         |
   +--------------------------------------+---------------------------------+
   (beta2r1-ninja) > list templates templatefilter=featured id=7de5d423-c91e-49cc-86e8-9d6ed6abd997 filter=name,id
   Error 531: Acct[b285d62e-0ec2-4a7c-b773-961595ec6356-Ninja-5664] does not have permission to operate within domain id=c9b4f83d-16eb-11e7-a8b9-367e6fe958a9
   cserrorcode = 4365
   errorcode = 531
   errortext = Acct[b285d62e-0ec2-4a7c-b773-961595ec6356-Ninja-5664] does not have permission to operate within domain id=c9b4f83d-16eb-11e7-a8b9-367e6fe958a9
   uuidList:
   (beta2r1-ninja) > list templates templatefilter=featured ids=7de5d423-c91e-49cc-86e8-9d6ed6abd997 filter=name,id
   count = 1
   template:
   +--------------------------------------+----------------+
   |                  id                  |      name      |
   +--------------------------------------+----------------+
   | 7de5d423-c91e-49cc-86e8-9d6ed6abd997 | CentOS 7.2 HVM |
   +--------------------------------------+----------------+
   ```
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## Screenshots (if appropriate):
   
   ## How Has This Been Tested?
   
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   <!-- see how your change affects other areas of the code, etc. -->
   
   ## Checklist:
   <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
   <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
   - [x] I have read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document.
   - [x] My code follows the code style of this project.
   - [ ] My change requires a change to the documentation.
   - [ ] I have updated the documentation accordingly.
   Testing
   - [ ] I have added tests to cover my changes.
   - [ ] All relevant new and existing integration tests have passed.
   - [ ] A full integration testsuite with all test that can run on my environment has passed.
   
   <!-- The following will kick a packaging job, remove if as applicable -->
   @blueorangutan package
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> list template with id= no longer work as domain admin
> -----------------------------------------------------
>
>                 Key: CLOUDSTACK-9862
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9862
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Template
>    Affects Versions: 4.10.0.0
>            Reporter: Pierre-Luc Dion
>            Assignee: Rohit Yadav
>            Priority: Major
>
> As domain admin, listTemplates templatefilter=featured no longer work if id= is specified.
> Using cloudmonkey with domain-admin credential:
> {code}
> (beta2r1-ninja) > list templates templatefilter=featured filter=name,id
> count = 9
> template:
> +--------------------------------------+---------------------------------+
> |                  id                  |               name              |
> +--------------------------------------+---------------------------------+
> | 513b3a6d-c011-46f0-a4a3-2a954cadb673 |      CoreOS Alpha 1367.5.0      |
> | 0c04d876-1f85-45a7-b6f4-504de435bf12 |    Debian 8.5 PV base (64bit)   |
> | 285f2203-449a-428f-997a-1ffbebbf1382 |           CoreOS Alpha          |
> | 332b6ca8-b3d6-42c7-83e5-60fe87be6576 |          CoreOS Stable          |
> | 3b705008-c186-464d-ad59-312d902420af |   Windows Server 2016 std SPLA  |
> | 4256aebe-a1c1-4b49-9993-de2bc712d521 |       Ubuntu 16.04.01 HVM       |
> | 59e6b00a-b88e-4539-aa3c-75c9c7e9fa6c | Ubuntu 14.04.5 HVM base (64bit) |
> | 3ab936eb-d8c2-44d8-a64b-17ad5adf8a51 |          CentOS 6.8 PV          |
> | 7de5d423-c91e-49cc-86e8-9d6ed6abd997 |          CentOS 7.2 HVM         |
> +--------------------------------------+---------------------------------+
> (beta2r1-ninja) > list templates templatefilter=featured id=7de5d423-c91e-49cc-86e8-9d6ed6abd997 filter=name,id
> Error 531: Acct[b285d62e-0ec2-4a7c-b773-961595ec6356-Ninja-5664] does not have permission to operate within domain id=c9b4f83d-16eb-11e7-a8b9-367e6fe958a9
> cserrorcode = 4365
> errorcode = 531
> errortext = Acct[b285d62e-0ec2-4a7c-b773-961595ec6356-Ninja-5664] does not have permission to operate within domain id=c9b4f83d-16eb-11e7-a8b9-367e6fe958a9
> uuidList:
> (beta2r1-ninja) > list templates templatefilter=featured ids=7de5d423-c91e-49cc-86e8-9d6ed6abd997 filter=name,id
> count = 1
> template:
> +--------------------------------------+----------------+
> |                  id                  |      name      |
> +--------------------------------------+----------------+
> | 7de5d423-c91e-49cc-86e8-9d6ed6abd997 | CentOS 7.2 HVM |
> +--------------------------------------+----------------+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)