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/09/05 07:13:46 UTC

[GitHub] [cloudstack] shwstppr commented on issue #6698: Dedication of public IP ranges broken after upgrade to 4.17.0.1

shwstppr commented on issue #6698:
URL: https://github.com/apache/cloudstack/issues/6698#issuecomment-1236621729

   @Hudratronium I'm not able to reproduce this on 4.17 branch. I added a new public range and set `system.vm.public.ip.reservation.mode.strictness` to `true`. New system vms came up fine in the new range
   
   ```
   (local) 🐓 > list zones id=8395094c-305b-46cd-878a-b1dcc01c37d0 
   {
     "count": 1,
     "zone": [
       {
         "allocationstate": "Enabled",
         "dhcpprovider": "VirtualRouter",
         "dns1": "10.147.28.6",
         "guestcidraddress": "10.1.1.0/24",
         "hasannotations": false,
         "id": "8395094c-305b-46cd-878a-b1dcc01c37d0",
         "internaldns1": "10.147.28.6",
         "localstorageenabled": false,
         "name": "Sandbox-simulator",
         "networktype": "Advanced",
         "securitygroupsenabled": false,
         "tags": [],
         "zonetoken": "bfd27e96-3ba0-3df3-b387-f8ff690c63c5"
       }
     ]
   }
   (local) 🐗 > list systemvms zoneid=8395094c-305b-46cd-878a-b1dcc01c37d0 
   {
     "count": 2,
     "systemvm": [
       {
         "activeviewersessions": 0,
         "created": "2022-09-05T12:36:52+0530",
         "dns1": "10.147.28.6",
         "gateway": "192.168.2.1",
         "hasannotations": false,
         "hostid": "fc35ad4a-bdc8-496a-94e9-46d9d228526a",
         "hostname": "SimulatedAgent.9d862bb4-6179-4a90-ab8a-f91b23fac374",
         "hypervisor": "Simulator",
         "id": "52ff1944-20d5-4954-8cfd-dcd0ed96b46f",
         "isdynamicallyscalable": false,
         "linklocalip": "169.254.196.124",
         "linklocalmacaddress": "0e:00:a9:fe:c4:7c",
         "linklocalnetmask": "255.255.0.0",
         "name": "v-9-VM",
         "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
         "podname": "POD0",
         "privateip": "172.16.15.65",
         "privatemacaddress": "1e:00:54:00:00:40",
         "privatenetmask": "255.255.255.0",
         "publicip": "192.168.2.2",
         "publicmacaddress": "1e:00:91:00:00:c8",
         "publicnetmask": "255.255.255.0",
         "state": "Running",
         "systemvmtype": "consoleproxy",
         "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
         "templatename": "SystemVM Template (simulator)",
         "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
         "zonename": "Sandbox-simulator"
       },
       {
         "agentstate": "Up",
         "created": "2022-09-05T12:36:53+0530",
         "dns1": "10.147.28.6",
         "gateway": "192.168.2.1",
         "hasannotations": false,
         "hostid": "bdefc6c3-4a43-4d6a-9570-0fc9a6ac6d14",
         "hostname": "SimulatedAgent.d1b801a8-36b8-47e7-bfd7-710402b63a99",
         "hypervisor": "Simulator",
         "id": "eb726c05-b467-48b7-b42e-8a6c0a9bca42",
         "isdynamicallyscalable": false,
         "linklocalip": "169.254.181.229",
         "linklocalmacaddress": "0e:00:a9:fe:b5:e5",
         "linklocalnetmask": "255.255.0.0",
         "name": "s-10-VM",
         "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
         "podname": "POD0",
         "privateip": "172.16.15.20",
         "privatemacaddress": "1e:00:75:00:00:13",
         "privatenetmask": "255.255.255.0",
         "publicip": "192.168.2.3",
         "publicmacaddress": "1e:00:16:00:00:c9",
         "publicnetmask": "255.255.255.0",
         "state": "Running",
         "systemvmtype": "secondarystoragevm",
         "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
         "templatename": "SystemVM Template (simulator)",
         "version": "4.17.1.0-SNAPSHOT",
         "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
         "zonename": "Sandbox-simulator"
       }
     ]
   }
   (local) 🐰 > list vlanipranges zoneid=8395094c-305b-46cd-878a-b1dcc01c37d0 
   {
     "count": 1,
     "vlaniprange": [
       {
         "account": "system",
         "cidr": "192.168.2.0/24",
         "domain": "ROOT",
         "domainid": "fe476c7c-2cdc-11ed-b1e6-645d8651f45a",
         "endip": "192.168.2.200",
         "forsystemvms": false,
         "forvirtualnetwork": true,
         "gateway": "192.168.2.1",
         "id": "10b19120-cfd8-441c-81c8-e156c09c38e4",
         "netmask": "255.255.255.0",
         "networkid": "234ef426-bb2f-445e-83d9-5363fc6bfb38",
         "physicalnetworkid": "a44e9a10-6682-42e1-81b3-ffabfdfc30f9",
         "startip": "192.168.2.2",
         "vlan": "vlan://50",
         "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0"
       }
     ]
   }
   (local) 🐈 > list configurations name=system.vm.public.ip.reservation.mode.strictness
   {
     "configuration": [
       {
         "category": "Advanced",
         "description": "If enabled, the use of System VMs public IP reservation is strict, preferred if not.",
         "isdynamic": true,
         "name": "system.vm.public.ip.reservation.mode.strictness",
         "value": "false"
       }
     ],
     "count": 1
   }
   (local) 🐬 > create vlaniprange gateway=192.168.3.1 netmask=255.255.255.0 startip=192.168.3.2 endip=192.168.3.200 zoneId=8395094c-305b-46cd-878a-b1dcc01c37d0 vlan=51 forsystemvms=true forvirtualnetwork=true
   {
     "vlan": {
       "account": "system",
       "cidr": "192.168.3.0/24",
       "domain": "ROOT",
       "domainid": "fe476c7c-2cdc-11ed-b1e6-645d8651f45a",
       "endip": "192.168.3.200",
       "forsystemvms": true,
       "forvirtualnetwork": true,
       "gateway": "192.168.3.1",
       "id": "edc376e0-cf2d-4ab7-aaac-0b7b14e2a931",
       "netmask": "255.255.255.0",
       "networkid": "234ef426-bb2f-445e-83d9-5363fc6bfb38",
       "physicalnetworkid": "a44e9a10-6682-42e1-81b3-ffabfdfc30f9",
       "startip": "192.168.3.2",
       "vlan": "vlan://51",
       "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0"
     }
   }
   (local) 🦌 > update configuration name=system.vm.public.ip.reservation.mode.strictness value=true
   {
     "configuration": {
       "category": "Advanced",
       "description": "If enabled, the use of System VMs public IP reservation is strict, preferred if not.",
       "isdynamic": true,
       "name": "system.vm.public.ip.reservation.mode.strictness",
       "value": "true"
     }
   }
   (local) 🐃 > destroy systemvm id=52ff1944-20d5-4954-8cfd-dcd0ed96b46f 
   {
     "systemvm": {
       "created": "2022-09-05T12:36:52+0530",
       "dns1": "10.147.28.6",
       "hasannotations": false,
       "hostid": "fc35ad4a-bdc8-496a-94e9-46d9d228526a",
       "hostname": "SimulatedAgent.9d862bb4-6179-4a90-ab8a-f91b23fac374",
       "hypervisor": "Simulator",
       "id": "52ff1944-20d5-4954-8cfd-dcd0ed96b46f",
       "isdynamicallyscalable": false,
       "name": "v-9-VM",
       "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
       "podname": "POD0",
       "state": "Running",
       "systemvmtype": "consoleproxy",
       "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
       "templatename": "SystemVM Template (simulator)",
       "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
       "zonename": "Sandbox-simulator"
     }
   }
   (local) 🌵 > destroy systemvm id=eb726c05-b467-48b7-b42e-8a6c0a9bca42 
   {
     "systemvm": {
       "created": "2022-09-05T12:36:53+0530",
       "dns1": "10.147.28.6",
       "hasannotations": false,
       "hostid": "bdefc6c3-4a43-4d6a-9570-0fc9a6ac6d14",
       "hostname": "SimulatedAgent.d1b801a8-36b8-47e7-bfd7-710402b63a99",
       "hypervisor": "Simulator",
       "id": "eb726c05-b467-48b7-b42e-8a6c0a9bca42",
       "isdynamicallyscalable": false,
       "name": "s-10-VM",
       "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
       "podname": "POD0",
       "state": "Running",
       "systemvmtype": "secondarystoragevm",
       "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
       "templatename": "SystemVM Template (simulator)",
       "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
       "zonename": "Sandbox-simulator"
     }
   }
   (local) 🐂 > list systemvms zoneid=8395094c-305b-46cd-878a-b1dcc01c37d0 
   {
     "count": 2,
     "systemvm": [
       {
         "activeviewersessions": 0,
         "created": "2022-09-05T12:39:23+0530",
         "dns1": "10.147.28.6",
         "gateway": "192.168.3.1",
         "hasannotations": false,
         "hostid": "f0bcf07c-ab72-4137-a413-449684ae309c",
         "hostname": "SimulatedAgent.f83bd68a-5642-49bc-aac2-dd8a4785aedc",
         "hypervisor": "Simulator",
         "id": "01a9646f-17af-430d-aab4-a07b4a9eec35",
         "isdynamicallyscalable": false,
         "linklocalip": "169.254.170.181",
         "linklocalmacaddress": "0e:00:a9:fe:aa:b5",
         "linklocalnetmask": "255.255.0.0",
         "name": "v-11-VM",
         "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
         "podname": "POD0",
         "privateip": "172.16.15.145",
         "privatemacaddress": "1e:00:60:00:00:90",
         "privatenetmask": "255.255.255.0",
         "publicip": "192.168.3.200",
         "publicmacaddress": "1e:00:40:00:03:f7",
         "publicnetmask": "255.255.255.0",
         "state": "Running",
         "systemvmtype": "consoleproxy",
         "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
         "templatename": "SystemVM Template (simulator)",
         "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
         "zonename": "Sandbox-simulator"
       },
       {
         "agentstate": "Up",
         "created": "2022-09-05T12:39:53+0530",
         "dns1": "10.147.28.6",
         "gateway": "192.168.3.1",
         "hasannotations": false,
         "hostid": "bdefc6c3-4a43-4d6a-9570-0fc9a6ac6d14",
         "hostname": "SimulatedAgent.d1b801a8-36b8-47e7-bfd7-710402b63a99",
         "hypervisor": "Simulator",
         "id": "02c6d3dd-13ae-44d4-bf90-0d20e9647525",
         "isdynamicallyscalable": false,
         "linklocalip": "169.254.102.29",
         "linklocalmacaddress": "0e:00:a9:fe:66:1d",
         "linklocalnetmask": "255.255.0.0",
         "name": "s-12-VM",
         "podid": "ccdd5096-1dcc-40c5-9699-801e22f3f15f",
         "podname": "POD0",
         "privateip": "172.16.15.138",
         "privatemacaddress": "1e:00:1f:00:00:89",
         "privatenetmask": "255.255.255.0",
         "publicip": "192.168.3.199",
         "publicmacaddress": "1e:00:fd:00:03:f6",
         "publicnetmask": "255.255.255.0",
         "state": "Running",
         "systemvmtype": "secondarystoragevm",
         "templateid": "669011fa-2cdd-11ed-b1e6-645d8651f45a",
         "templatename": "SystemVM Template (simulator)",
         "version": "4.17.1.0-SNAPSHOT",
         "zoneid": "8395094c-305b-46cd-878a-b1dcc01c37d0",
         "zonename": "Sandbox-simulator"
       }
     ]
   }
   ```


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