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/08/22 12:36:13 UTC

[GitHub] [cloudstack] shwstppr opened a new issue, #6663: Source nat IP for an active VPC can be disassociated

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

   <!--
   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.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Improvement Request
    * Enhancement Request
    * Feature Idea
    * Documentation Report
    * Other
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VPC
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.13.1 - 4.17.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Source NAT IP of a VPC can be disassociated while its VR is stilt in the running state. This causes MAC address-IP address conflict when the same IP is assigned to a new network/VPC.
   
   ##### 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 -->
   ~~~
   - Deploy a VPC, no need to deploy any tier or VM
   - Check VPC has a public IP assigned as source nat
   - Disassociate the above IP using disassociateIpAddress API. CloudStack allows the action.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   An error should be thrown preventing source nat IP of the VPC from getting disassociated
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   IP is disassociated while VR of the VPC is still running with the same IP.
   ~~~
   
   
   ```
   (localcloud) 🐱 > list vpcs id=88dc6bed-7d1a-49c4-981b-9493594e57a1 filter=id,name,vpcofferingname,
   {
     "count": 1,
     "vpc": [
       {
         "id": "88dc6bed-7d1a-49c4-981b-9493594e57a1",
         "name": "test",
         "vpcofferingname": "Default VPC offering"
       }
     ]
   }
   (localcloud) 🐱 > list routers vpcid=88dc6bed-7d1a-49c4-981b-9493594e57a1 
   {
     "count": 1,
     "router": [
       {
         "account": "admin",
         "created": "2022-08-22T12:11:35+0000",
         "dns1": "10.0.32.1",
         "dns2": "8.8.8.8",
         "domain": "ROOT",
         "domainid": "ecc52a37-1a08-11ed-981f-1e00f100018f",
         "gateway": "10.0.48.1",
         "hasannotations": false,
         "healthchecksfailed": false,
         "hostid": "80492e2e-017c-497e-8291-3f4baaf57501",
         "hostname": "10.0.35.44",
         "hypervisor": "VMware",
         "id": "8077143d-b064-4446-bbae-49623d7b8094",
         "isredundantrouter": false,
         "linklocalip": "10.0.40.178",
         "linklocalmacaddress": "02:00:03:74:00:0d",
         "linklocalnetmask": "255.255.240.0",
         "linklocalnetworkid": "b6709ce9-c3e4-4e3e-81ca-6715b0820af9",
         "name": "r-100009-VM",
         "nic": [
           {
             "gateway": "10.0.32.1",
             "id": "4c2ebf4f-a304-441d-9335-6306ccaf888b",
             "ipaddress": "10.0.40.178",
             "isdefault": false,
             "macaddress": "02:00:03:74:00:0d",
             "netmask": "255.255.240.0",
             "networkid": "b6709ce9-c3e4-4e3e-81ca-6715b0820af9",
             "traffictype": "Control"
           },
           {
             "broadcasturi": "vlan://51",
             "gateway": "10.0.48.1",
             "id": "2bddf1ac-da0f-4888-bd26-0292a2caa6f4",
             "ipaddress": "10.0.56.185",
             "isdefault": true,
             "isolationuri": "vlan://51",
             "macaddress": "1e:00:d5:00:00:05",
             "netmask": "255.255.240.0",
             "networkid": "37b39d3b-56f9-4f6d-a865-ebda814b8207",
             "traffictype": "Public"
           }
         ],
         "podid": "ab424ab8-629b-4a2b-af40-3fce9d80d157",
         "podname": "Pod1",
         "publicip": "10.0.56.185",
         "publicmacaddress": "1e:00:d5:00:00:05",
         "publicnetmask": "255.255.240.0",
         "publicnetworkid": "37b39d3b-56f9-4f6d-a865-ebda814b8207",
         "redundantstate": "UNKNOWN",
         "requiresupgrade": false,
         "role": "VIRTUAL_ROUTER",
         "scriptsversion": "f2e6fd7d3ee688a2a6976b73080a3b67\n",
         "serviceofferingid": "b975321e-8c00-4cf5-a0cb-7ac7b789d79e",
         "serviceofferingname": "ggfd",
         "softwareversion": "4.17.1.0",
         "state": "Running",
         "templateid": "870e415e-6a2c-41ab-86f2-e15a1b4285d8",
         "templatename": "SystemVM Template (vSphere)",
         "version": "4.17.0",
         "vpcid": "88dc6bed-7d1a-49c4-981b-9493594e57a1",
         "vpcname": "test",
         "zoneid": "9a95cda0-12fa-4f98-ab4b-ad386ca4ecb0",
         "zonename": "pr6276-t4676-vmware-67u3"
       }
     ]
   }
   (localcloud) 🐱 > list publicipaddresses vpcid=88dc6bed-7d1a-49c4-981b-9493594e57a1 
   {
     "count": 1,
     "publicipaddress": [
       {
         "account": "admin",
         "allocated": "2022-08-22T12:11:35+0000",
         "domain": "ROOT",
         "domainid": "ecc52a37-1a08-11ed-981f-1e00f100018f",
         "fordisplay": true,
         "forvirtualnetwork": true,
         "hasannotations": false,
         "id": "91316012-5b6d-46ee-b42f-0ee68cb0922e",
         "ipaddress": "10.0.56.185",
         "isportable": false,
         "issourcenat": true,
         "isstaticnat": false,
         "issystem": false,
         "networkid": "37b39d3b-56f9-4f6d-a865-ebda814b8207",
         "physicalnetworkid": "fe9a87c6-a7fb-4718-b2d7-2f1932fe397f",
         "state": "Allocated",
         "tags": [],
         "vlanid": "d9a7c65f-de06-409f-89d0-af1fd993dba5",
         "vlanname": "vlan://51",
         "vpcid": "88dc6bed-7d1a-49c4-981b-9493594e57a1",
         "vpcname": "test",
         "zoneid": "9a95cda0-12fa-4f98-ab4b-ad386ca4ecb0",
         "zonename": "pr6276-t4676-vmware-67u3"
       }
     ]
   }
   (localcloud) 🐱 > disassociate ipaddress id=91316012-5b6d-46ee-b42f-0ee68cb0922e
   {
     "success": true
   }
   (localcloud) 🐱 > list routers vpcid=88dc6bed-7d1a-49c4-981b-9493594e57a1 
   {
     "count": 1,
     "router": [
       {
         "account": "admin",
         "created": "2022-08-22T12:11:35+0000",
         "dns1": "10.0.32.1",
         "dns2": "8.8.8.8",
         "domain": "ROOT",
         "domainid": "ecc52a37-1a08-11ed-981f-1e00f100018f",
         "gateway": "10.0.48.1",
         "hasannotations": false,
         "healthchecksfailed": false,
         "hostid": "80492e2e-017c-497e-8291-3f4baaf57501",
         "hostname": "10.0.35.44",
         "hypervisor": "VMware",
         "id": "8077143d-b064-4446-bbae-49623d7b8094",
         "isredundantrouter": false,
         "linklocalip": "10.0.40.178",
         "linklocalmacaddress": "02:00:03:74:00:0d",
         "linklocalnetmask": "255.255.240.0",
         "linklocalnetworkid": "b6709ce9-c3e4-4e3e-81ca-6715b0820af9",
         "name": "r-100009-VM",
         "nic": [
           {
             "gateway": "10.0.32.1",
             "id": "4c2ebf4f-a304-441d-9335-6306ccaf888b",
             "ipaddress": "10.0.40.178",
             "isdefault": false,
             "macaddress": "02:00:03:74:00:0d",
             "netmask": "255.255.240.0",
             "networkid": "b6709ce9-c3e4-4e3e-81ca-6715b0820af9",
             "traffictype": "Control"
           },
           {
             "broadcasturi": "vlan://51",
             "gateway": "10.0.48.1",
             "id": "2bddf1ac-da0f-4888-bd26-0292a2caa6f4",
             "ipaddress": "10.0.56.185",
             "isdefault": true,
             "isolationuri": "vlan://51",
             "macaddress": "1e:00:d5:00:00:05",
             "netmask": "255.255.240.0",
             "networkid": "37b39d3b-56f9-4f6d-a865-ebda814b8207",
             "traffictype": "Public"
           }
         ],
         "podid": "ab424ab8-629b-4a2b-af40-3fce9d80d157",
         "podname": "Pod1",
         "publicip": "10.0.56.185",
         "publicmacaddress": "1e:00:d5:00:00:05",
         "publicnetmask": "255.255.240.0",
         "publicnetworkid": "37b39d3b-56f9-4f6d-a865-ebda814b8207",
         "redundantstate": "UNKNOWN",
         "requiresupgrade": false,
         "role": "VIRTUAL_ROUTER",
         "scriptsversion": "f2e6fd7d3ee688a2a6976b73080a3b67\n",
         "serviceofferingid": "b975321e-8c00-4cf5-a0cb-7ac7b789d79e",
         "serviceofferingname": "ggfd",
         "softwareversion": "4.17.1.0",
         "state": "Running",
         "templateid": "870e415e-6a2c-41ab-86f2-e15a1b4285d8",
         "templatename": "SystemVM Template (vSphere)",
         "version": "4.17.0",
         "vpcid": "88dc6bed-7d1a-49c4-981b-9493594e57a1",
         "vpcname": "test",
         "zoneid": "9a95cda0-12fa-4f98-ab4b-ad386ca4ecb0",
         "zonename": "pr6276-t4676-vmware-67u3"
       }
     ]
   }
   ```


-- 
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


[GitHub] [cloudstack] shwstppr closed issue #6663: Source nat IP for an active VPC can be disassociated

Posted by GitBox <gi...@apache.org>.
shwstppr closed issue #6663: Source nat IP for an active VPC can be disassociated
URL: https://github.com/apache/cloudstack/issues/6663


-- 
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] shwstppr commented on issue #6663: Source nat IP for an active VPC can be disassociated

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

   Fixed with #6664


-- 
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