You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/12/19 15:48:40 UTC

[GitHub] [cloudstack] soreana opened a new issue, #6999: Security group fields in the listVirtualmachines API call's response doesn't change

soreana opened a new issue, #6999:
URL: https://github.com/apache/cloudstack/issues/6999

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   In listVirtualMachines' response, we have a security group field. After further investigation, we noticed that this field doesn't change at all even if I add the ingress rule to the VM.
   
   ```
   (local) > list virtualmachines id="152ee2cf-d9fb-4281-b222-1a9b1b73ef57" filter=id,name,displayname,securitygroup listall=true
   {
     "count": 1,
     "virtualmachine": [
       {
         "displayname": "Sina-test-security-groups",
         "id": "152ee2cf-d9fb-4281-b222-1a9b1b73ef57",
         "name": "Sina-test-security-groups",
         "securitygroup": [
           {
             "account": "admin",
             "description": "",
             "egressrule": [],
             "id": "a2a75240-a7f2-42a4-9812-a9954b2d5ab2",
             "ingressrule": [],
             "name": "Sina-test",
             "tags": [],
             "virtualmachineids": []
           }
         ]
       }
     ]
   }
   (local) > list securitygroups virtualmachineid=152ee2cf-d9fb-4281-b222-1a9b1b73ef57
   {
     "count": 1,
     "securitygroup": [
       {
         "account": "admin",
         "description": "",
         "domain": "ROOT",
         "domainid": "84c14489-6263-11e3-aa07-d89d6717918c",
         "egressrule": [],
         "id": "a2a75240-a7f2-42a4-9812-a9954b2d5ab2",
         "ingressrule": [
           {
             "cidr": "10.0.0.0/8",
             "endport": 20,
             "protocol": "tcp",
             "ruleid": "506815f8-1586-4353-ac70-8009cff65be8",
             "startport": 20,
             "tags": []
           }
         ],
         "name": "Sina-test",
         "tags": [],
         "virtualmachinecount": 1,
         "virtualmachineids": [
           "152ee2cf-d9fb-4281-b222-1a9b1b73ef57"
         ]
       }
     ]
   }
   ```
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.17.2
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   ~~~
   Basic network with security group
   ~~~
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   When I was testing a firewall rules, I noticed that adding an ingress rules to a VM's security group doesn't have any affect on the `listVirtualmachines` api call output. The ingress rule is always empty. As a result our automation tools should call two APIs rather than one to get correct informations. One to get the informations about the VM and another one to get security groups.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. Call list virtual machine api call using cmk and check `securitygroup` field, it is empty.
   2. Add some ingress rules to the security group.
   3. Call list virtual machine api call using cmk and check `securitygroup` field again, it is empty. 
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The ingress rule added to the `securitygroup` field of the virtual machine API call.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The ingress rule in `securitygroup` is empty.
   ~~~
   


-- 
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: commits-unsubscribe@cloudstack.apache.org.apache.org

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


Re: [I] Security group fields in the listVirtualmachines API call's response doesn't change [cloudstack]

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

   @soreana my language skills were failing on that last message obviously. I created a 4.19.2 and moved this one into it. If you make it in time we can always move it 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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] soreana commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

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

   @DaanHoogland @weizhouapache Sorry for late answer I was on holiday.
   
   We discussed it internally and see that this issue doesn't impact us that much and it doesn't have a priority now. We call `listVirtualmachines` and then call `listSecurityGroups` to get the security groups of the VM.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] weizhouapache commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #6999:
URL: https://github.com/apache/cloudstack/issues/6999#issuecomment-1370974236

   ping @soreana 
   any update ?


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] soreana commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

Posted by GitBox <gi...@apache.org>.
soreana commented on issue #6999:
URL: https://github.com/apache/cloudstack/issues/6999#issuecomment-1365777268

   @DaanHoogland Sorry I was on holiday.
   
   It is missing functionality. I also checked that in 4.14. The listVirtualmachines returns an empty ingress rules list there as well.
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] DaanHoogland commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

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

   @soreana is this a regression since 4.17.2 or is it missing functionality?


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] DaanHoogland commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

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

   @soreana any code for this yet?


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] DaanHoogland commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

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

   @soreana I tentatively marked it for 4.19, we can move it back into 4.18 at your wish.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] DaanHoogland commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

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

   ok, if there is a PR soon we can add it to 4.18, otherwise I'll mark it for 4.19. 


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


[GitHub] [cloudstack] soreana commented on issue #6999: Security group fields in the listVirtualmachines API call's response doesn't change

Posted by GitBox <gi...@apache.org>.
soreana commented on issue #6999:
URL: https://github.com/apache/cloudstack/issues/6999#issuecomment-1372189062

   @weizhouapache I'm busy with the HA Proxy customisation PR.
   Couldn't find a time to look into this one.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


Re: [I] Security group fields in the listVirtualmachines API call's response doesn't change [cloudstack]

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

   @soreana , any time for cloudstack lately?


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


Re: [I] Security group fields in the listVirtualmachines API call's response doesn't change [cloudstack]

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

   @soreana , kind of, but 'we' are free to postpone as well ;) . On the other hand we can `Severity:Minor` so we can postpone. please adjust the milestone (4.20 or create a 4.19.2) if you wish.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


Re: [I] Security group fields in the listVirtualmachines API call's response doesn't change [cloudstack]

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

   @DaanHoogland, I'm setting up a CloudStack to see if I can reproduce the issue. Are we on a tight schedule for the release of 4.19.1?


-- 
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: commits-unsubscribe@cloudstack.apache.org

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


Re: [I] Security group fields in the listVirtualmachines API call's response doesn't change [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6999:
URL: https://github.com/apache/cloudstack/issues/6999#issuecomment-4585459497

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
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: commits-unsubscribe@cloudstack.apache.org

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