diff --git a/test/integration/smoke/test_vpc_redundant.py b/test/integration/smoke/test_vpc_redundant.py index 37dd87a499c..722b7127244 100644 --- a/test/integration/smoke/test_vpc_redundant.py +++ b/test/integration/smoke/test_vpc_redundant.py @@ -612,10 +612,13 @@ class TestVPCRedundancy(cloudstackTestCase): time.sleep(total_sleep) - # Router will be in FAULT state, i.e. keepalived is stopped - self.check_routers_state(status_to_check="FAULT", expected_count=2) + # Router will be in UNKNOWN state, i.e. keepalived is stopped + self.check_routers_state(status_to_check="UNKNOWN", expected_count=2) + self.start_vm() + # Routers will be in PRIMARY/BACKUP state self.check_routers_state(status_to_check="PRIMARY") + self.check_routers_state(status_to_check="BACKUP") @attr(tags=["advanced", "intervlan"], required_hardware="true") def test_05_rvpc_multi_tiers(self): diff --git a/ui/src/config/section/offering.js b/ui/src/config/section/offering.js index e8016cae0df..53dd20b2d04 100644 --- a/ui/src/config/section/offering.js +++ b/ui/src/config/section/offering.js @@ -128,7 +128,7 @@ export default { show: (record) => { return record.state !== 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) } }, { - api: 'deleteServiceOffering', + api: 'updateServiceOffering', icon: 'pause-circle-outlined', label: 'label.action.disable.service.offering', message: 'message.action.disable.service.offering', @@ -136,6 +136,11 @@ export default { dataView: true, groupAction: true, popup: true, + mapping: { + state: { + value: (record) => { return 'Inactive' } + } + }, show: (record) => { return record.state === 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x } }) } }] @@ -204,7 +209,7 @@ export default { show: (record) => { return record.state !== 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) } }, { - api: 'deleteServiceOffering', + api: 'updateServiceOffering', icon: 'pause-circle-outlined', label: 'label.action.disable.system.service.offering', message: 'message.action.disable.system.service.offering', @@ -213,6 +218,11 @@ export default { params: { issystem: 'true' }, groupAction: true, popup: true, + mapping: { + state: { + value: (record) => { return 'Inactive' } + } + }, show: (record) => { return record.state === 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x } }) } }] @@ -307,7 +317,7 @@ export default { show: (record) => { return record.state !== 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x, state: 'Active' } }) } }, { - api: 'deleteDiskOffering', + api: 'updateDiskOffering', icon: 'pause-circle-outlined', label: 'label.action.disable.disk.offering', message: 'message.action.disable.disk.offering', @@ -315,6 +325,11 @@ export default { dataView: true, groupAction: true, popup: true, + mapping: { + state: { + value: (record) => { return 'Inactive' } + } + }, show: (record) => { return record.state === 'Active' }, groupMap: (selection) => { return selection.map(x => { return { id: x } }) } }]