You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/08/08 12:09:50 UTC

[GitHub] [cloudstack-cloudmonkey] DaanHoogland opened a new issue, #117: filter is ignored on e.g. deploy virtual machine

DaanHoogland opened a new issue, #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117

   when issuing a list command one can filter fields being output by the `filter` parameter. when excuting `deploy virtualmachine` this is also a valid parameter, but the result is an empty output if it is used.
   ```
   $ cmk deploy virtualmachine filter=name,id templateid=a7c5034d-13fe-11ed-9ef2-e884a5ebaa69 serviceofferingid=adf53e72-9ffa-4ee1-80d4-5f619a7c13ef zoneid=86f5e781-f6ee-4b40-ab06-70c97cf4d6c2 domainid=fddc5725-19f9-482a-b207-32c7e3b49ad0 account=user1
   {}
   ```
   
   or
   
   ```
   $ cmk deploy virtualmachine filter=virtualmachine.id templateid=a7c5034d-13fe-11ed-9ef2-e884a5ebaa69 serviceofferingid=adf53e72-9ffa-4ee1-80d4-5f619a7c13ef zoneid=86f5e781-f6ee-4b40-ab06-70c97cf4d6c2 domainid=fddc5725-19f9-482a-b207-32c7e3b49ad0 account=user1
   {}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] DaanHoogland commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1208179866

   I am doing a test in which I want to make sure that not all of the deploy VM commands succeed and want to get only the name and id of those VMs that do succeed. At the same time I want to see the error output of those that fail without feeding those into a grep command.
   I think the second command syntax I gave in the description would be the best intuitive way to deal with this, but the first one would be the most consistent with the list APIs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] DaanHoogland commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1208162377

   I know, and that could be im[proved, couldnĀ“t it, @rohityadavcloud ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1208174140

   @DaanHoogland can you suggest your use-case? maybe you can grab the VM's uuid and call the list API subsequently to filter stuff (I'm not sure if the deploy vm response sends the entire list VM response as expected, incl things like details etc)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] borisstoyanov commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by "borisstoyanov (via GitHub)" <gi...@apache.org>.
borisstoyanov commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1423726653

   @DaanHoogland I'm working on the milestone for 6.3.0 and I'm wondering should we add this improvement. Do you have any idea how much effort it is going to take, are you willing to work on it? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1493708664

   Guys, I will prefer that filter is supported and used only for list/get APIs as originally intended and documented - https://github.com/apache/cloudstack-cloudmonkey/wiki/Usage#output
   
   CloudStack has 100s of async APIs, to support all of those APIs by a simple CLI would be too much of a task both in terms of implementation and testing. Perhaps filter autocompletion can be made such that it's not available for any async APIs to restrict that. cc @borisstoyanov @nvazquez 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] rohityadavcloud commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1208054820

   @DaanHoogland filters are used only for list/get API or any sync API - https://github.com/apache/cloudstack-cloudmonkey/wiki/Usage#output


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] nvazquez commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1233582907

   Hi guys, +1 on the improvement request


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] DaanHoogland commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1456083945

   So I had a look, and this will require the filter() method from the output module to be converted into a small module and to add knowledge of the possible structures of the response to be filtered. This might have to be extendible if more possible response structures come up. but initially it just needs to distinct list-responses from the requested deployVirtualMachine response. a middle sized project probably.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-cloudmonkey] borisstoyanov commented on issue #117: filter is ignored on e.g. deploy virtual machine

Posted by "borisstoyanov (via GitHub)" <gi...@apache.org>.
borisstoyanov commented on issue #117:
URL: https://github.com/apache/cloudstack-cloudmonkey/issues/117#issuecomment-1451505946

   @DaanHoogland to look for exact estimate and come back


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org