Skip to content

Commit f1c3d2c

Browse files
committed
Merge release branch 4.19 to main
* 4.19: engine-schema: add removed columne for cloud.user_data, fix delete op (apache#9120) ui: fix create menu item access (apache#9104) server: honor listall param for listiso api (apache#9064) ui: add move to top/bottom for acl rules list (apache#9119) ui: fix columns for exportacls csv (apache#9118) ui: fix create network access in deploy vm wizard (apache#9117) UI: Add search filters (apache#9068)
2 parents 28e8e2d + c970141 commit f1c3d2c

File tree

25 files changed

+374
-15
lines changed

25 files changed

+374
-15
lines changed

engine/schema/src/main/java/com/cloud/user/UserDataVO.java

+15
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
import javax.persistence.GenerationType;
2525
import javax.persistence.Id;
2626
import javax.persistence.Table;
27+
28+
import java.util.Date;
2729
import java.util.UUID;
2830

31+
import com.cloud.utils.db.GenericDao;
32+
2933
@Entity
3034
@Table(name = "user_data")
3135
public class UserDataVO implements UserData {
@@ -58,6 +62,9 @@ public UserDataVO() {
5862
@Column(name = "params", length = 4096)
5963
private String params;
6064

65+
@Column(name = GenericDao.REMOVED_COLUMN)
66+
private Date removed;
67+
6168
@Override
6269
public long getDomainId() {
6370
return domainId;
@@ -117,4 +124,12 @@ public void setUserData(String userData) {
117124
public void setParams(String params) {
118125
this.params = params;
119126
}
127+
128+
public void setRemoved(Date removed) {
129+
this.removed = removed;
130+
}
131+
132+
public Date getRemoved() {
133+
return removed;
134+
}
120135
}

engine/schema/src/main/resources/META-INF/db/schema-41900to41910.sql

+2
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ CREATE TABLE IF NOT EXISTS `cloud_usage`.`usage_vpc` (
6363
) ENGINE=InnoDB CHARSET=utf8;
6464

6565
CALL `cloud_usage`.`IDEMPOTENT_ADD_COLUMN`('cloud_usage.cloud_usage', 'state', 'VARCHAR(100) DEFAULT NULL');
66+
67+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.user_data', 'removed', 'datetime COMMENT "date removed or null, if still present"');

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4799,7 +4799,7 @@ private Pair<List<TemplateJoinVO>, Integer> searchForIsosInternal(ListIsosCmd cm
47994799
boolean showRemovedISO = cmd.getShowRemoved();
48004800
Account caller = CallContext.current().getCallingAccount();
48014801

4802-
boolean listAll = false;
4802+
boolean listAll = cmd.listAll();
48034803
if (isoFilter != null && isoFilter == TemplateFilter.all) {
48044804
if (caller.getType() == Account.Type.NORMAL) {
48054805
throw new InvalidParameterValueException("Filter " + TemplateFilter.all + " can be specified by admin only");

ui/public/locales/en.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@
709709
"label.destnetworkuuid": "Network",
710710
"label.destport": "Destination Ports",
711711
"label.destroy": "Destroy",
712+
"label.destroying": "Destroying",
712713
"label.destroyed": "Destroyed",
713714
"label.destroy.router": "Destroy router",
714715
"label.deststartport": "Destination Start Port",
@@ -934,6 +935,7 @@
934935
"label.fwdeviceid": "ID",
935936
"label.fwdevicestate": "Status",
936937
"label.gateway": "Gateway",
938+
"label.global": "Global",
937939
"label.global.settings": "Global Settings",
938940
"label.globo.dns": "GloboDNS",
939941
"label.globo.dns.configuration": "GloboDNS configuration",
@@ -1347,6 +1349,7 @@
13471349
"label.min_balance": "Min balance",
13481350
"label.mincpunumber": "Min CPU cores",
13491351
"label.minimum": "Minimum",
1352+
"label.minimumsemanticversion": "Minimum semantic version",
13501353
"label.miniops": "Min IOPS",
13511354
"label.minmaxiops": "Min IOPS / Max IOPS",
13521355
"label.minmembers": "Min members",
@@ -1701,6 +1704,7 @@
17011704
"label.reboot": "Reboot",
17021705
"label.receivedbytes": "Bytes received",
17031706
"label.recover.vm": "Recover Instance",
1707+
"label.recovering": "Recovering",
17041708
"label.redirect": "Redirect to:",
17051709
"label.redirecturi": "Redirect URI",
17061710
"label.redundantrouter": "Redundant router",
@@ -1843,6 +1847,7 @@
18431847
"label.scaledown.policy": "ScaleDown policy",
18441848
"label.scaleup.policies": "ScaleUp policies",
18451849
"label.scaleup.policy": "ScaleUp policy",
1850+
"label.scaling": "Scaling",
18461851
"label.schedule": "Schedule",
18471852
"label.schedule.add": "Add schedule",
18481853
"label.scheduled.backups": "Scheduled backups",
@@ -2211,6 +2216,7 @@
22112216
"label.update.vmware.datacenter": "Update VMWare datacenter",
22122217
"label.updating": "Updating",
22132218
"label.upgrade.router.newer.template": "Upgrade router to use newer Template",
2219+
"label.upgrading": "Upgrading",
22142220
"label.upload": "Upload",
22152221
"label.upload.description": "Path to upload objects at",
22162222
"label.upload.path": "Upload path",
@@ -3058,7 +3064,8 @@
30583064
"message.network.offering.promiscuous.mode": "Applicable for guest Networks on VMware hypervisor only.\nReject - The switch drops any outbound frame from a virtual machine adapter with a source MAC address that is different from the one in the .vmx configuration file.\nAccept - The switch does not perform filtering, and permits all outbound frames.\nNone - Default to value from global setting.",
30593065
"message.network.removenic": "Please confirm that want to remove this NIC, which will also remove the associated Network from the Instance.",
30603066
"message.network.secondaryip": "Please confirm that you would like to acquire a new secondary IP for this NIC. \n NOTE: You need to manually configure the newly-acquired secondary IP inside the virtual machine.",
3061-
"message.network.selection": "Choose one or more Networks to attach the Instance to. A new Network can also be created here.",
3067+
"message.network.selection": "Choose one or more Networks to attach the Instance to.",
3068+
"message.network.selection.new.network": "A new Network can also be created here.",
30623069
"message.network.updateip": "Please confirm that you would like to change the IP address for this NIC on the Instance.",
30633070
"message.network.usage.info.data.points": "Each data point represents the difference in data traffic since the last data point.",
30643071
"message.network.usage.info.sum.of.vnics": "The Network usage shown is made up of the sum of data traffic from all the vNICs in the Instance.",

ui/src/components/header/CreateMenu.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a-dropdown>
2020
<template #overlay>
2121
<a-menu>
22-
<a-menu-item style="width: 100%; padding: 12px">
22+
<a-menu-item style="width: 100%; padding: 12px" v-if="'deployVirtualMachine' in $store.getters.apis">
2323
<router-link :to="{ path: '/action/deployVirtualMachine'}">
2424
<a-row>
2525
<a-col style="margin-right: 12px">
@@ -38,7 +38,7 @@
3838
</a-row>
3939
</router-link>
4040
</a-menu-item>
41-
<a-menu-item style="width: 100%; padding: 12px" v-if="'listKubernetesClusters' in $store.getters.apis">
41+
<a-menu-item style="width: 100%; padding: 12px" v-if="'createKubernetesCluster' in $store.getters.apis">
4242
<router-link :to="{ path: '/kubernetes', query: { action: 'createKubernetesCluster' } }">
4343
<a-row>
4444
<a-col style="margin-right: 12px">
@@ -57,7 +57,7 @@
5757
</a-row>
5858
</router-link>
5959
</a-menu-item>
60-
<a-menu-item style="width: 100%; padding: 12px">
60+
<a-menu-item style="width: 100%; padding: 12px" v-if="'createVolume' in $store.getters.apis">
6161
<router-link :to="{ path: '/volume', query: { action: 'createVolume' } }">
6262
<a-row>
6363
<a-col style="margin-right: 12px">
@@ -76,7 +76,7 @@
7676
</a-row>
7777
</router-link>
7878
</a-menu-item>
79-
<a-menu-item style="width: 100%; padding: 12px">
79+
<a-menu-item style="width: 100%; padding: 12px" v-if="'createNetwork' in $store.getters.apis">
8080
<router-link :to="{ path: '/guestnetwork', query: { action: 'createNetwork' } }">
8181
<a-row>
8282
<a-col style="margin-right: 12px">
@@ -95,7 +95,7 @@
9595
</a-row>
9696
</router-link>
9797
</a-menu-item>
98-
<a-menu-item style="width: 100%; padding: 12px">
98+
<a-menu-item style="width: 100%; padding: 12px" v-if="'createVPC' in $store.getters.apis">
9999
<router-link :to="{ path: '/vpc', query: { action: 'createVPC' } }">
100100
<a-row>
101101
<a-col style="margin-right: 12px">
@@ -114,7 +114,7 @@
114114
</a-row>
115115
</router-link>
116116
</a-menu-item>
117-
<a-menu-item style="width: 100%; padding: 12px">
117+
<a-menu-item style="width: 100%; padding: 12px" v-if="'registerTemplate' in $store.getters.apis">
118118
<router-link :to="{ path: '/template', query: { action: 'registerTemplate' } }">
119119
<a-row>
120120
<a-col style="margin-right: 12px">

0 commit comments

Comments
 (0)