mirror of https://github.com/apache/cloudstack.git
Merge branch '4.17'
This commit is contained in:
commit
eb92b50fea
|
|
@ -17,4 +17,7 @@
|
|||
|
||||
--;
|
||||
-- Schema upgrade from 4.17.0.0 to 4.17.1.0
|
||||
--;
|
||||
--;
|
||||
|
||||
UPDATE `cloud`.`configuration` SET `value` = 'false' WHERE `name` = 'network.disable.rpfilter' AND `value` != 'true';
|
||||
UPDATE `cloud`.`configuration` SET `value` = 'false' WHERE `name` = 'consoleproxy.disable.rpfilter' AND `value` != 'true';
|
||||
|
|
@ -341,7 +341,9 @@ export default {
|
|||
params.showicon = true
|
||||
api('listZones', params).then(json => {
|
||||
const listZones = json.listzonesresponse.zone
|
||||
this.zones = this.zones.concat(listZones)
|
||||
if (listZones) {
|
||||
this.zones = this.zones.concat(listZones)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.zoneLoading = false
|
||||
if (this.arrayHasItems(this.zones)) {
|
||||
|
|
|
|||
|
|
@ -194,7 +194,9 @@ export default {
|
|||
this.zoneLoading = true
|
||||
api('listZones', params).then(json => {
|
||||
const listZones = json.listzonesresponse.zone
|
||||
this.zones = this.zones.concat(listZones)
|
||||
if (listZones) {
|
||||
this.zones = this.zones.concat(listZones)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.zoneLoading = false
|
||||
if (this.arrayHasItems(this.zones)) {
|
||||
|
|
|
|||
|
|
@ -232,7 +232,9 @@ export default {
|
|||
}
|
||||
api('listZones', params).then(json => {
|
||||
const listZones = json.listzonesresponse.zone
|
||||
this.zones = this.zones.concat(listZones)
|
||||
if (listZones) {
|
||||
this.zones = this.zones.concat(listZones)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.zoneLoading = false
|
||||
this.form.zoneid = (this.zones[0].id ? this.zones[0].id : '')
|
||||
|
|
|
|||
|
|
@ -209,24 +209,26 @@
|
|||
<a-input v-model:value="form.vCenterDataStore" :placeholder="$t('message.datastore.description')"/>
|
||||
</a-form-item>
|
||||
</div>
|
||||
<a-form-item name="provider" ref="provider">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.providername')" :tooltip="apiParams.provider.description"/>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="form.provider"
|
||||
@change="updateProviderAndProtocol"
|
||||
showSearch
|
||||
optionFilterProp="label"
|
||||
:filterOption="(input, option) => {
|
||||
return option.children[0].children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
}"
|
||||
:placeholder="apiParams.provider.description">
|
||||
<a-select-option :value="provider" v-for="(provider,idx) in providers" :key="idx">
|
||||
{{ provider }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<div v-if="form.protocol !== 'Linstor'">
|
||||
<a-form-item name="provider" ref="provider">
|
||||
<template #label>
|
||||
<tooltip-label :title="$t('label.providername')" :tooltip="apiParams.provider.description"/>
|
||||
</template>
|
||||
<a-select
|
||||
v-model:value="form.provider"
|
||||
@change="updateProviderAndProtocol"
|
||||
showSearch
|
||||
optionFilterProp="label"
|
||||
:filterOption="(input, option) => {
|
||||
return option.children[0].children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
}"
|
||||
:placeholder="apiParams.provider.description">
|
||||
<a-select-option :value="provider" v-for="(provider,idx) in providers" :key="idx">
|
||||
{{ provider }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</div>
|
||||
<div v-if="form.provider !== 'DefaultPrimary' && form.provider !== 'PowerFlex' && form.provider !== 'Linstor'">
|
||||
<a-form-item name="managed" ref="managed">
|
||||
<template #label>
|
||||
|
|
|
|||
|
|
@ -1345,6 +1345,7 @@ export default {
|
|||
url = this.rbdURL(rbdmonitor, rbdpool, rbdid, rbdsecret)
|
||||
} else if (protocol === 'Linstor') {
|
||||
url = this.linstorURL(server)
|
||||
params.provider = 'Linstor'
|
||||
params['details[0].resourceGroup'] = this.prefillContent.primaryStorageLinstorResourceGroup
|
||||
} else if (protocol === 'vmfs' || protocol === 'datastorecluster') {
|
||||
let path = this.prefillContent.primaryStorageVmfsDatacenter
|
||||
|
|
|
|||
|
|
@ -807,7 +807,9 @@ export default {
|
|||
this.zoneLoading = true
|
||||
api('listZones', params).then(json => {
|
||||
const listZones = json.listzonesresponse.zone
|
||||
this.zones = this.zones.concat(listZones)
|
||||
if (listZones) {
|
||||
this.zones = this.zones.concat(listZones)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.zoneLoading = false
|
||||
})
|
||||
|
|
|
|||
|
|
@ -409,7 +409,9 @@ export default {
|
|||
this.zoneLoading = true
|
||||
api('listZones', params).then(json => {
|
||||
const listZones = json.listzonesresponse.zone
|
||||
this.zones = this.zones.concat(listZones)
|
||||
if (listZones) {
|
||||
this.zones = this.zones.concat(listZones)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.zoneLoading = false
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue