From 154734ceae5834aae60bc10a52740ec8853ce284 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Mon, 5 Apr 2021 12:33:30 +0530 Subject: [PATCH 1/4] ui: Remove .env.local (#4893) --- ui/.env.local | 1 - 1 file changed, 1 deletion(-) delete mode 100644 ui/.env.local diff --git a/ui/.env.local b/ui/.env.local deleted file mode 100644 index 92ec87a7b0d..00000000000 --- a/ui/.env.local +++ /dev/null @@ -1 +0,0 @@ -CS_URL=http://10.0.35.240:8080 \ No newline at end of file From 47b72883e21b336dc0257694722e13b5e824d368 Mon Sep 17 00:00:00 2001 From: Rakesh Date: Mon, 5 Apr 2021 09:03:45 +0200 Subject: [PATCH 2/4] server: Disable VR health check for VPC without tiers (#4888) If the VPC has redundant VR's but doesnt have any tiers or there are no running VM's in a VPC then disable the gateway check for VR --- .../router/VirtualNetworkApplianceManagerImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java index 2b6032f42d3..28855db8340 100644 --- a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java +++ b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java @@ -1543,9 +1543,15 @@ Configurable, StateListener routerGuestNtwkIds = _routerDao.getRouterNetworks(router.getId()); + if (RedundantState.BACKUP.equals(router.getRedundantState()) || + routerGuestNtwkIds == null || routerGuestNtwkIds.isEmpty()) { + excludedTests = excludedTests.isEmpty() ? BACKUP_ROUTER_EXCLUDED_TESTS : excludedTests + "," + BACKUP_ROUTER_EXCLUDED_TESTS; + } } + command.setAccessDetail(SetMonitorServiceCommand.ROUTER_HEALTH_CHECKS_EXCLUDED, excludedTests); command.setHealthChecksConfig(getRouterHealthChecksConfig(router)); command.setReconfigureAfterUpdate(reconfigure); From ca4669c4d4ceace12965bb119483d5c26e1ae7ec Mon Sep 17 00:00:00 2001 From: aleskxyz <39186039+aleskxyz@users.noreply.github.com> Date: Mon, 5 Apr 2021 11:34:10 +0430 Subject: [PATCH 3/4] systemvm: Add localized "data-server" records in /etc/hosts for VPC routers (#4873) --- systemvm/debian/etc/vpcdnsmasq.conf | 1 + systemvm/debian/opt/cloud/bin/cs/CsDhcp.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/systemvm/debian/etc/vpcdnsmasq.conf b/systemvm/debian/etc/vpcdnsmasq.conf index 1a4b0c29552..4016374caa2 100644 --- a/systemvm/debian/etc/vpcdnsmasq.conf +++ b/systemvm/debian/etc/vpcdnsmasq.conf @@ -462,3 +462,4 @@ log-facility=/var/log/dnsmasq.log conf-dir=/etc/dnsmasq.d dhcp-optsfile=/etc/dhcpopts.txt +localise-queries diff --git a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py index 2c0deea4abe..91b95c6c676 100755 --- a/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py +++ b/systemvm/debian/opt/cloud/bin/cs/CsDhcp.py @@ -127,6 +127,9 @@ class CsDhcp(CsDataBag): listen_address.append(gateway) else: listen_address.append(ip) + # Add localized "data-server" records in /etc/hosts for VPC routers + if self.config.is_vpc(): + self.add_host(gateway, "%s data-server" % CsHelper.get_hostname()) idx += 1 # Listen Address From c75c6baa3f56f98e7a41ccad7d6280753f8eb5ab Mon Sep 17 00:00:00 2001 From: Rakesh Date: Mon, 5 Apr 2021 09:07:03 +0200 Subject: [PATCH 4/4] ui: Display public ip addresses for shared network (#4676) If a vm belongs to shared network then display the list of ip addresses available which can be used to assign for secondary IP addresses. Also display "Public IP addresses" tab for shared networks --- ui/src/config/section/network.js | 2 +- ui/src/views/compute/InstanceTab.vue | 36 +++++++++++++++++++++++-- ui/src/views/network/IpAddressesTab.vue | 14 +++++++--- 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index 3ea3fe07104..f274fd51d73 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -48,7 +48,7 @@ export default { }, { name: 'public.ip.addresses', component: () => import('@/views/network/IpAddressesTab.vue'), - show: (record) => { return record.type === 'Isolated' && !('vpcid' in record) && 'listPublicIpAddresses' in store.getters.apis } + show: (record) => { return (record.type === 'Isolated' || record.type === 'Shared') && !('vpcid' in record) && 'listPublicIpAddresses' in store.getters.apis } }, { name: 'virtual.routers', component: () => import('@/views/network/RoutersTab.vue'), diff --git a/ui/src/views/compute/InstanceTab.vue b/ui/src/views/compute/InstanceTab.vue index 29a5cdedebd..8ad259b290a 100644 --- a/ui/src/views/compute/InstanceTab.vue +++ b/ui/src/views/compute/InstanceTab.vue @@ -102,7 +102,7 @@ icon="environment" shape="circle" :disabled="(!('addIpToNic' in $store.getters.apis) && !('addIpToNic' in $store.getters.apis))" - @click="fetchSecondaryIPs(record.nic.id)" /> + @click="onAcquireSecondaryIPAddress(record)" />