Skip to content

Commit c2cffcc

Browse files
committed
Merge release branch 4.18 to main
* 4.18: Fixed avoid set variables which is causing deployment failures (#7372) Add service ip to listManagementServers API response (#7374) UI: fix default network is not passed to deployvm API (#7367) ui: Added UEFI support flag in host details view (#7361) removed vulnerable workflow
2 parents c2e1731 + 16694d8 commit c2cffcc

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

api/src/main/java/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ public class ApiConstants {
384384
public static final String SENT = "sent";
385385
public static final String SENT_BYTES = "sentbytes";
386386
public static final String SERIAL = "serial";
387+
public static final String SERVICE_IP = "serviceip";
387388
public static final String SERVICE_OFFERING_ID = "serviceofferingid";
388389
public static final String SESSIONKEY = "sessionkey";
389390
public static final String SHOW_CAPACITIES = "showcapacities";

api/src/main/java/org/apache/cloudstack/api/response/ManagementServerResponse.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public class ManagementServerResponse extends BaseResponse {
7272
@Param(description = "the running OS kernel version for this Management Server")
7373
private String kernelVersion;
7474

75+
@SerializedName(ApiConstants.SERVICE_IP)
76+
@Param(description = "the IP Address for this Management Server")
77+
private String serviceIp;
78+
7579
public String getId() {
7680
return this.id;
7781
}
@@ -112,6 +116,10 @@ public Date getLastBoot() {
112116
return lastBoot;
113117
}
114118

119+
public String getServiceIp() {
120+
return serviceIp;
121+
}
122+
115123
public void setId(String id) {
116124
this.id = id;
117125
}
@@ -155,4 +163,8 @@ public void setLastBoot(Date lastBoot) {
155163
public void setKernelVersion(String kernelVersion) {
156164
this.kernelVersion = kernelVersion;
157165
}
166+
167+
public void setServiceIp(String serviceIp) {
168+
this.serviceIp = serviceIp;
169+
}
158170
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,6 +4444,7 @@ protected ManagementServerResponse createManagementServerResponse(ManagementServ
44444444
mgmtResponse.setLastServerStart(mgmt.getLastJvmStart());
44454445
mgmtResponse.setLastServerStop(mgmt.getLastJvmStop());
44464446
mgmtResponse.setLastBoot(mgmt.getLastSystemBoot());
4447+
mgmtResponse.setServiceIp(mgmt.getServiceIP());
44474448
mgmtResponse.setObjectName("managementserver");
44484449
return mgmtResponse;
44494450
}

server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,11 +1642,11 @@ protected Pair<Map<Volume, List<StoragePool>>, List<Volume>> findSuitablePoolsFo
16421642

16431643
// for each volume find list of suitable storage pools by calling the
16441644
// allocators
1645-
Set<Long> originalAvoidPoolSet = avoid.getPoolsToAvoid();
1646-
if (originalAvoidPoolSet == null) {
1647-
originalAvoidPoolSet = new HashSet<Long>();
1645+
Set<Long> originalAvoidPoolSet = new HashSet<>();
1646+
if (avoid.getPoolsToAvoid() != null) {
1647+
originalAvoidPoolSet.addAll(avoid.getPoolsToAvoid());
16481648
}
1649-
Set<Long> poolsToAvoidOutput = new HashSet<Long>(originalAvoidPoolSet);
1649+
Set<Long> poolsToAvoidOutput = new HashSet<>(originalAvoidPoolSet);
16501650

16511651
for (VolumeVO toBeCreated : volumesTobeCreated) {
16521652
s_logger.debug("Checking suitable pools for volume (Id, Type): (" + toBeCreated.getId() + "," + toBeCreated.getVolumeType().name() + ")");
@@ -1723,12 +1723,6 @@ protected Pair<Map<Volume, List<StoragePool>>, List<Volume>> findSuitablePoolsFo
17231723

17241724
DiskOfferingVO diskOffering = _diskOfferingDao.findById(toBeCreated.getDiskOfferingId());
17251725

1726-
//FR123 check how is it different for service offering getTagsArray and disk offering's
1727-
//if ((vmProfile.getTemplate().getFormat() == Storage.ImageFormat.ISO || toBeCreated.getVolumeType() == Volume.Type.ROOT)
1728-
// && vmProfile.getServiceOffering().getTagsArray().length != 0) {
1729-
// diskOffering.setTagsArray(Arrays.asList(vmProfile.getServiceOffering().getTagsArray()));
1730-
//}
1731-
17321726
DiskProfile diskProfile = new DiskProfile(toBeCreated, diskOffering, vmProfile.getHypervisorType());
17331727
boolean useLocalStorage = false;
17341728
if (vmProfile.getType() != VirtualMachine.Type.User) {

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@
17941794
"label.srx": "SRX",
17951795
"label.srx.firewall": "Juniper SRX firewall",
17961796
"label.ssh.key.pairs": "SSH key pairs",
1797+
"label.uefi.supported": "UEFI supported",
17971798
"label.userdataid": "Userdata ID",
17981799
"label.userdataname": "Userdata name",
17991800
"label.userdatadetails": "Userdata details",

ui/src/views/compute/DeployVM.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ export default {
18441844
this.form.networkids = ids
18451845
},
18461846
updateDefaultNetworks (id) {
1847-
this.defaultNetwork = id
1847+
this.defaultnetworkid = id
18481848
this.form.defaultnetworkid = id
18491849
},
18501850
updateNetworkConfig (networks) {

ui/src/views/infra/HostInfo.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@
104104
</div>
105105
</div>
106106
</a-list-item>
107-
107+
<a-list-item>
108+
<div>
109+
<strong>{{ $t('label.uefi.supported') }}</strong>
110+
<div>
111+
{{ host.ueficapability }}
112+
</div>
113+
</div>
114+
</a-list-item>
108115
</a-list>
109116
</a-spin>
110117
</template>

0 commit comments

Comments
 (0)