You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2021/08/09 09:41:19 UTC

[cloudstack] branch main updated (3c8c704 -> cb1078a)

This is an automated email from the ASF dual-hosted git repository.

davidjumani pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git.


    from 3c8c704  kubernetes: Deploy kubernetes-provider when creating a cluster (#5254)
     add 766fc80  ui: fix capitalise filter (#5269)
     add ee5b01f  ui: Show host as unsecure in listview (#5292)
     add 05d1d56  vr: restart conntrackd instead of '/usr/sbin/conntrackd -d' (#5275)
     add d9503f4  UI - Zone Wizard - Fixes the IP range form fields are too narrow (#5287)
     add 1ccb420  server: skip zone check for PERHOST iso during attachIso (#5270)
     new cb1078a  Merge remote-tracking branch 'apache/4.15' into main

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/com/cloud/template/TemplateManager.java   |  9 ++--
 .../hypervisor/vmware/VmwareServerDiscoverer.java  |  9 ++--
 .../hypervisor/vmware/resource/VmwareResource.java |  3 +-
 .../storage/resource/VmwareStorageProcessor.java   |  3 +-
 .../xenserver/discoverer/XcpServerDiscoverer.java  |  3 +-
 .../xenserver/resource/CitrixResourceBase.java     | 17 ++++----
 .../discoverer/XcpServerDiscovererTest.java        |  9 ++--
 .../xenserver/resource/CitrixResourceBaseTest.java |  9 ++--
 .../java/com/cloud/api/query/QueryManagerImpl.java |  6 +--
 .../cloud/api/query/dao/TemplateJoinDaoImpl.java   | 17 ++++----
 .../com/cloud/template/TemplateManagerImpl.java    | 16 +++----
 .../api/query/dao/TemplateJoinDaoImplTest.java     | 17 ++++----
 systemvm/debian/opt/cloud/bin/cs/CsRedundant.py    |  3 +-
 ui/src/components/view/ListView.vue                | 11 ++++-
 ui/src/components/widgets/Status.vue               |  1 +
 ui/src/views/infra/zone/IpAddressRangeForm.vue     | 51 ++++++++++++++--------
 ui/src/views/network/AclListRulesTab.vue           |  1 -
 ui/src/views/network/EgressRulesTab.vue            |  7 ++-
 ui/src/views/network/FirewallRules.vue             | 12 +++--
 .../views/network/IngressEgressRuleConfigure.vue   |  7 ++-
 ui/src/views/network/LoadBalancing.vue             | 12 +++--
 ui/src/views/network/PortForwarding.vue            | 12 +++--
 22 files changed, 129 insertions(+), 106 deletions(-)

[cloudstack] 01/01: Merge remote-tracking branch 'apache/4.15' into main

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davidjumani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit cb1078aa202ef77cd699a7617daf006febb6fee6
Merge: 3c8c704 1ccb420
Author: davidjumani <dj...@gmail.com>
AuthorDate: Mon Aug 9 15:10:51 2021 +0530

    Merge remote-tracking branch 'apache/4.15' into main

 .../java/com/cloud/template/TemplateManager.java   |  9 ++--
 .../hypervisor/vmware/VmwareServerDiscoverer.java  |  9 ++--
 .../hypervisor/vmware/resource/VmwareResource.java |  3 +-
 .../storage/resource/VmwareStorageProcessor.java   |  3 +-
 .../xenserver/discoverer/XcpServerDiscoverer.java  |  3 +-
 .../xenserver/resource/CitrixResourceBase.java     | 17 ++++----
 .../discoverer/XcpServerDiscovererTest.java        |  9 ++--
 .../xenserver/resource/CitrixResourceBaseTest.java |  9 ++--
 .../java/com/cloud/api/query/QueryManagerImpl.java |  6 +--
 .../cloud/api/query/dao/TemplateJoinDaoImpl.java   | 17 ++++----
 .../com/cloud/template/TemplateManagerImpl.java    | 16 +++----
 .../api/query/dao/TemplateJoinDaoImplTest.java     | 17 ++++----
 systemvm/debian/opt/cloud/bin/cs/CsRedundant.py    |  3 +-
 ui/src/components/view/ListView.vue                | 11 ++++-
 ui/src/components/widgets/Status.vue               |  1 +
 ui/src/views/infra/zone/IpAddressRangeForm.vue     | 51 ++++++++++++++--------
 ui/src/views/network/AclListRulesTab.vue           |  1 -
 ui/src/views/network/EgressRulesTab.vue            |  7 ++-
 ui/src/views/network/FirewallRules.vue             | 12 +++--
 .../views/network/IngressEgressRuleConfigure.vue   |  7 ++-
 ui/src/views/network/LoadBalancing.vue             | 12 +++--
 ui/src/views/network/PortForwarding.vue            | 12 +++--
 22 files changed, 129 insertions(+), 106 deletions(-)

diff --cc engine/components-api/src/main/java/com/cloud/template/TemplateManager.java
index 7207a96,b05d99f..a3d9c1b
--- a/engine/components-api/src/main/java/com/cloud/template/TemplateManager.java
+++ b/engine/components-api/src/main/java/com/cloud/template/TemplateManager.java
@@@ -26,10 -23,14 +23,13 @@@ import org.apache.cloudstack.engine.sub
  import org.apache.cloudstack.framework.config.ConfigKey;
  import org.apache.cloudstack.storage.datastore.db.StoragePoolVO;
  
+ import com.cloud.agent.api.to.DatadiskTO;
  import com.cloud.dc.DataCenterVO;
+ import com.cloud.deploy.DeployDestination;
  import com.cloud.exception.ResourceAllocationException;
  import com.cloud.exception.StorageUnavailableException;
+ import com.cloud.storage.DataStoreRole;
  import com.cloud.storage.StoragePool;
 -import com.cloud.storage.VMTemplateHostVO;
  import com.cloud.storage.VMTemplateStoragePoolVO;
  import com.cloud.storage.VMTemplateVO;
  import com.cloud.utils.Pair;
diff --cc ui/src/views/network/EgressRulesTab.vue
index f6d86c7,a03ff84..c78f6cb
--- a/ui/src/views/network/EgressRulesTab.vue
+++ b/ui/src/views/network/EgressRulesTab.vue
@@@ -74,10 -67,9 +74,10 @@@
        :columns="columns"
        :dataSource="egressRules"
        :pagination="false"
 +      :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        :rowKey="record => record.id">
        <template slot="protocol" slot-scope="record">
-         {{ record.protocol | capitalise }}
+         {{ getCapitalise(record.protocol) }}
        </template>
        <template slot="startport" slot-scope="record">
          {{ record.icmptype || record.startport >= 0 ? record.icmptype || record.startport : 'All' }}
@@@ -237,53 -192,10 +236,57 @@@ export default 
          this.loading = false
        })
      },
 +    setSelection (selection) {
 +      this.selectedRowKeys = selection
 +      this.$emit('selection-change', this.selectedRowKeys)
 +      this.selectedItems = (this.egressRules.filter(function (item) {
 +        return selection.indexOf(item.id) !== -1
 +      }))
 +    },
 +    resetSelection () {
 +      this.setSelection([])
 +    },
 +    onSelectChange (selectedRowKeys, selectedRows) {
 +      this.setSelection(selectedRowKeys)
 +    },
 +    bulkActionConfirmation () {
 +      this.showConfirmationAction = true
 +      this.selectedColumns = this.columns.filter(column => {
 +        return !this.filterColumns.includes(column.title)
 +      })
 +      this.selectedItems = this.selectedItems.map(v => ({ ...v, status: 'InProgress' }))
 +    },
 +    handleCancel () {
 +      eventBus.$emit('update-bulk-job-status', this.selectedItems, false)
 +      this.showGroupActionModal = false
 +      this.selectedItems = []
 +      this.selectedColumns = []
 +      this.selectedRowKeys = []
 +      this.parentFetchData()
 +    },
 +    deleteRules (e) {
 +      this.showConfirmationAction = false
 +      this.selectedColumns.splice(0, 0, {
 +        dataIndex: 'status',
 +        title: this.$t('label.operation.status'),
 +        scopedSlots: { customRender: 'status' },
 +        filters: [
 +          { text: 'In Progress', value: 'InProgress' },
 +          { text: 'Success', value: 'success' },
 +          { text: 'Failed', value: 'failed' }
 +        ]
 +      })
 +      if (this.selectedRowKeys.length > 0) {
 +        this.showGroupActionModal = true
 +      }
 +      for (const rule of this.selectedItems) {
 +        this.deleteRule(rule)
 +      }
 +    },
+     getCapitalise (val) {
+       if (val === 'all') return this.$t('label.all')
+       return val.toUpperCase()
+     },
      deleteRule (rule) {
        this.loading = true
        api('deleteEgressFirewallRule', { id: rule.id }).then(response => {
diff --cc ui/src/views/network/FirewallRules.vue
index 1b47126,3122b0d..d826188
--- a/ui/src/views/network/FirewallRules.vue
+++ b/ui/src/views/network/FirewallRules.vue
@@@ -69,10 -62,9 +69,10 @@@
        :columns="columns"
        :dataSource="firewallRules"
        :pagination="false"
 +      :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        :rowKey="record => record.id">
        <template slot="protocol" slot-scope="record">
-         {{ record.protocol | capitalise }}
+         {{ getCapitalise(record.protocol) }}
        </template>
        <template slot="startport" slot-scope="record">
          {{ record.icmptype || record.startport >= 0 ? record.icmptype || record.startport : $t('label.all') }}
@@@ -293,53 -231,10 +287,57 @@@ export default 
          this.loading = false
        })
      },
 +    setSelection (selection) {
 +      this.selectedRowKeys = selection
 +      this.$emit('selection-change', this.selectedRowKeys)
 +      this.selectedItems = (this.firewallRules.filter(function (item) {
 +        return selection.indexOf(item.id) !== -1
 +      }))
 +    },
 +    resetSelection () {
 +      this.setSelection([])
 +    },
 +    onSelectChange (selectedRowKeys, selectedRows) {
 +      this.setSelection(selectedRowKeys)
 +    },
 +    bulkActionConfirmation () {
 +      this.showConfirmationAction = true
 +      this.selectedColumns = this.columns.filter(column => {
 +        return !this.filterColumns.includes(column.title)
 +      })
 +      this.selectedItems = this.selectedItems.map(v => ({ ...v, status: 'InProgress' }))
 +    },
 +    handleCancel () {
 +      eventBus.$emit('update-bulk-job-status', this.selectedItems, false)
 +      this.showGroupActionModal = false
 +      this.selectedItems = []
 +      this.selectedColumns = []
 +      this.selectedRowKeys = []
 +      this.parentFetchData()
 +    },
 +    deleteRules (e) {
 +      this.showConfirmationAction = false
 +      this.selectedColumns.splice(0, 0, {
 +        dataIndex: 'status',
 +        title: this.$t('label.operation.status'),
 +        scopedSlots: { customRender: 'status' },
 +        filters: [
 +          { text: 'In Progress', value: 'InProgress' },
 +          { text: 'Success', value: 'success' },
 +          { text: 'Failed', value: 'failed' }
 +        ]
 +      })
 +      if (this.selectedRowKeys.length > 0) {
 +        this.showGroupActionModal = true
 +      }
 +      for (const rule of this.selectedItems) {
 +        this.deleteRule(rule)
 +      }
 +    },
+     getCapitalise (val) {
+       if (val === 'all') return this.$t('label.all')
+       return val.toUpperCase()
+     },
      deleteRule (rule) {
        this.loading = true
        api('deleteFirewallRule', { id: rule.id }).then(response => {
diff --cc ui/src/views/network/IngressEgressRuleConfigure.vue
index d75fa91,9faa7b4..cac502d
--- a/ui/src/views/network/IngressEgressRuleConfigure.vue
+++ b/ui/src/views/network/IngressEgressRuleConfigure.vue
@@@ -277,9 -272,11 +276,13 @@@ export default 
        this.tabType = this.$parent.tab === this.$t('label.ingress.rule') ? 'ingress' : 'egress'
        this.rules = this.tabType === 'ingress' ? this.resource.ingressrule : this.resource.egressrule
      },
+     getCapitalise (val) {
+       if (val === 'all') return this.$t('label.all')
+       return val.toUpperCase()
+     },
      handleAddRule () {
 +      if (this.isSubmitted) return
 +      this.isSubmitted = true
        this.parentToggleLoading()
        api(this.tabType === 'ingress' ? 'authorizeSecurityGroupIngress' : 'authorizeSecurityGroupEgress', {
          securitygroupid: this.resource.id,
diff --cc ui/src/views/network/PortForwarding.vue
index 3d65ec5,14afb77..5746664
--- a/ui/src/views/network/PortForwarding.vue
+++ b/ui/src/views/network/PortForwarding.vue
@@@ -482,53 -423,10 +476,57 @@@ export default 
          this.loading = false
        })
      },
 +    setSelection (selection) {
 +      this.selectedRowKeys = selection
 +      this.$emit('selection-change', this.selectedRowKeys)
 +      this.selectedItems = (this.portForwardRules.filter(function (item) {
 +        return selection.indexOf(item.id) !== -1
 +      }))
 +    },
 +    resetSelection () {
 +      this.setSelection([])
 +    },
 +    onSelectChange (selectedRowKeys, selectedRows) {
 +      this.setSelection(selectedRowKeys)
 +    },
 +    bulkActionConfirmation () {
 +      this.showConfirmationAction = true
 +      this.selectedColumns = this.columns.filter(column => {
 +        return !this.filterColumns.includes(column.title)
 +      })
 +      this.selectedItems = this.selectedItems.map(v => ({ ...v, status: 'InProgress' }))
 +    },
 +    handleCancel () {
 +      eventBus.$emit('update-bulk-job-status', this.selectedItems, false)
 +      this.showGroupActionModal = false
 +      this.selectedItems = []
 +      this.selectedColumns = []
 +      this.selectedRowKeys = []
 +      this.parentFetchData()
 +    },
 +    deleteRules (e) {
 +      this.showConfirmationAction = false
 +      this.selectedColumns.splice(0, 0, {
 +        dataIndex: 'status',
 +        title: this.$t('label.operation.status'),
 +        scopedSlots: { customRender: 'status' },
 +        filters: [
 +          { text: 'In Progress', value: 'InProgress' },
 +          { text: 'Success', value: 'success' },
 +          { text: 'Failed', value: 'failed' }
 +        ]
 +      })
 +      if (this.selectedRowKeys.length > 0) {
 +        this.showGroupActionModal = true
 +      }
 +      for (const rule of this.selectedItems) {
 +        this.deleteRule(rule)
 +      }
 +    },
+     getCapitalise (val) {
+       if (val === 'all') return this.$t('label.all')
+       return val.toUpperCase()
+     },
      deleteRule (rule) {
        this.loading = true
        api('deletePortForwardingRule', { id: rule.id }).then(response => {