Skip to content

Commit c36c877

Browse files
authored
Merge pull request #597 from jschoiRR/mold-main#2025
[Mold API] zone 추가 마법사 > 기본스토리지 > 제공자/프로토콜 변경 시 값 세팅되도록 수정(ablestack 선택시 => glueblock, glueblock, gluefilesystem 선택시 => ablestack)
2 parents 183c916 + ff7b17e commit c36c877

File tree

7 files changed

+34
-17
lines changed

7 files changed

+34
-17
lines changed

engine/schema/src/main/resources/META-INF/db/schema-2213to2214.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Storage', 'DEFAULT', 'UserVm
5050
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Storage', 'DEFAULT', 'StorageManager', 'create.volume.from.snapshot.wait', '10800', 'In second, timeout for create template from snapshot');
5151
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Storage', 'DEFAULT', 'TemplateManager', 'primary.storage.download.wait', '10800', 'In second, timeout for download template to primary storage');
5252

53-
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.execution.timezone', null, 'The timezone to use for usage job execution time');
53+
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.execution.timezone', 'Asia/Seoul', 'The timezone to use for usage job execution time');
5454
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.stats.job.aggregation.range', '1440', 'The range of time for aggregating the user statistics specified in minutes (e.g. 1440 for daily, 60 for hourly.');
5555
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.stats.job.exec.time', '00:15', 'The time at which the usage statistics aggregation job will run as an HH24:MM time, e.g. 00:30 to run at 12:30am.');
5656
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'enable.usage.server', 'true', 'Flag for enabling usage');
5757
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'direct.network.stats.interval', '86400', 'Interval (in seconds) to collect stats from Traffic Monitor');
58-
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.aggregation.timezone', 'GMT', 'The timezone to use for usage stats aggregation');
58+
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Premium', 'DEFAULT', 'management-server', 'usage.aggregation.timezone', 'Asia/Seoul', 'The timezone to use for usage stats aggregation');
5959

6060

6161
INSERT IGNORE INTO `cloud`.`guest_os` (category_id, name, display_name) VALUES (6, NULL, "Windows PV");

framework/quota/src/main/java/org/apache/cloudstack/quota/constant/QuotaConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface QuotaConfig {
2727
public static final ConfigKey<String> QuotaEnableEnforcement = new ConfigKey<String>("Advanced", String.class, "quota.enable.enforcement", "false",
2828
"Enable the usage quota enforcement, i.e. on true when exceeding quota the respective account will be locked.", true);
2929

30-
public static final ConfigKey<String> QuotaCurrencySymbol = new ConfigKey<String>("Advanced", String.class, "quota.currency.symbol", "$",
30+
public static final ConfigKey<String> QuotaCurrencySymbol = new ConfigKey<String>("Advanced", String.class, "quota.currency.symbol", "",
3131
"The symbol for the currency in use to measure usage.", true);
3232

3333
public static final ConfigKey<String> QuotaCurrencyLocale = new ConfigKey<String>("Advanced", String.class, "quota.currency.locale", null,

server/src/main/java/com/cloud/configuration/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ public enum Config {
12251225
null),
12261226

12271227
// Usage
1228-
UsageExecutionTimezone("Usage", ManagementServer.class, String.class, "usage.execution.timezone", null, "The timezone to use for usage job execution time", null),
1228+
UsageExecutionTimezone("Usage", ManagementServer.class, String.class, "usage.execution.timezone", "Asia/Seoul", "The timezone to use for usage job execution time", null),
12291229
UsageStatsJobAggregationRange(
12301230
"Usage",
12311231
ManagementServer.class,
@@ -1259,7 +1259,7 @@ public enum Config {
12591259
null,
12601260
"Interval (in days) to check sanity of usage data. To disable set it to 0 or negative.",
12611261
null),
1262-
UsageAggregationTimezone("Usage", ManagementServer.class, String.class, "usage.aggregation.timezone", "GMT", "The timezone to use for usage stats aggregation", null),
1262+
UsageAggregationTimezone("Usage", ManagementServer.class, String.class, "usage.aggregation.timezone", "Asia/Seoul", "The timezone to use for usage stats aggregation", null),
12631263
TrafficSentinelIncludeZones(
12641264
"Usage",
12651265
ManagementServer.class,

ui/public/locales/ko_KR.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4530,16 +4530,16 @@
45304530
"iso.direct.download.failure": "ISO.\uc9c1\uc811.\ub2e4\uc6b4\ub85c\ub4dc.\uc2e4\ud328",
45314531
"system.vm.diagnostics": "\uc2dc\uc2a4\ud15c.VM.\uc9c4\ub2e8",
45324532
"system.rolling.maintenance": "\uc2dc\uc2a4\ud15c.\ub864\ub9c1.\uc720\uc9c0\ubcf4\uc218",
4533-
"sharedfs.create": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc0dd\uc131",
4534-
"sharedfs.start": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc7ac\uc2dc\uc791",
4535-
"sharedfs.update": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc5c5\ub370\uc774\ud2b8",
4536-
"sharedfs.change.service.offering": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc11c\ube44\uc2a4.\uc624\ud37c\ub9c1.\ubcc0\uacbd",
4537-
"sharedfs.change.disk.offering": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\ub514\uc2a4\ud06c.\uc624\ud37c\ub9c1.\ubcc0\uacbd",
4538-
"sharedfs.stop": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc815\uc9c0",
4539-
"sharedfs.restart": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc2dc\uc791",
4540-
"sharedfs.destroy": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\ud30c\uae30",
4541-
"sharedfs.expunge": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\uc0ad\uc81c",
4542-
"sharedfs.recover": "\uacf5\uc720.\ud30c\uc77c.\uc2dc\uc2a4\ud15c.\ubcf5\uad6c",
4533+
"sharedfs.create": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc0dd\uc131",
4534+
"sharedfs.start": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc7ac\uc2dc\uc791",
4535+
"sharedfs.update": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc5c5\ub370\uc774\ud2b8",
4536+
"sharedfs.change.service.offering": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc11c\ube44\uc2a4\uc624\ud37c\ub9c1.\ubcc0\uacbd",
4537+
"sharedfs.change.disk.offering": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\ub514\uc2a4\ud06c\uc624\ud37c\ub9c1.\ubcc0\uacbd",
4538+
"sharedfs.stop": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc815\uc9c0",
4539+
"sharedfs.restart": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc2dc\uc791",
4540+
"sharedfs.destroy": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\ud30c\uae30",
4541+
"sharedfs.expunge": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\uc0ad\uc81c",
4542+
"sharedfs.recover": "\uacf5\uc720\ud30c\uc77c\uc2dc\uc2a4\ud15c.\ubcf5\uad6c",
45434543
"host.rolling.maintenance": "\ud638\uc2a4\ud2b8.\ub864\ub9c1.\uc720\uc9c0\ubcf4\uc218",
45444544
"cluster.rolling.maintenance": "\ud074\ub7ec\uc2a4\ud130.\ub864\ub9c1.\uc720\uc9c0\ubcf4\uc218",
45454545
"pod.rolling.maintenance": "POD.\ub864\ub9c1.\uc720\uc9c0\ubcf4\uc218",

ui/src/views/infra/AddPrimaryStorage.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,16 @@ export default {
544544
primeraPassword: [{ required: true, message: this.$t('label.password') }],
545545
flashArrayURL: [{ required: true, message: this.$t('label.url') }],
546546
flashArrayUsername: [{ required: true, message: this.$t('label.username') }],
547-
flashArrayPassword: [{ required: true, message: this.$t('label.password') }]
547+
kradosmonitor: [{ required: true, message: this.$t('label.required') }],
548+
kradospool: [{ required: true, message: this.$t('label.required') }],
549+
kradosuser: [{ required: true, message: this.$t('label.required') }],
550+
kradossecret: [{ required: true, message: this.$t('label.required') }],
551+
kradospath: [{ required: true, message: this.$t('label.required') }],
552+
gluefsserver: [{ required: true, message: this.$t('label.required') }],
553+
gluefsuser: [{ required: true, message: this.$t('label.required') }],
554+
gluefsname: [{ required: true, message: this.$t('label.required') }],
555+
gluefssecret: [{ required: true, message: this.$t('label.required') }],
556+
gluefstargetpath: [{ required: true, message: this.$t('label.required') }]
548557
})
549558
},
550559
fetchData () {

ui/src/views/infra/zone/StaticInputsForm.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ export default {
172172
'prefillContent.provider' (val) {
173173
if (['SolidFire', 'PowerFlex'].includes(val)) {
174174
this.form.primaryStorageProtocol = 'custom'
175+
} else if (['ABLESTACK'].includes(val)) {
176+
this.form.primaryStorageProtocol = 'Glue Block'
177+
}
178+
},
179+
'prefillContent.primaryStorageProtocol' (val) {
180+
console.log('protocol :>>>>> ', val)
181+
if (['Glue Block', 'Glue FileSystem'].includes(val)) {
182+
this.form.provider = 'ABLESTACK'
175183
}
176184
}
177185
},

ui/src/views/infra/zone/ZoneWizardAddResources.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ export default {
10691069
this.primaryStorageScopes = scope
10701070
},
10711071
fetchProtocol () {
1072-
const hypervisor = this.prefillContent?.hypervisor || null
1072+
const hypervisor = this.prefillContent?.hypervisor || 'KVM'
10731073
const protocols = []
10741074
if (hypervisor === 'KVM') {
10751075
protocols.push({

0 commit comments

Comments
 (0)