mirror of https://github.com/apache/cloudstack.git
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
This commit is contained in:
commit
c2cffcc5a9
|
|
@ -384,6 +384,7 @@ public class ApiConstants {
|
|||
public static final String SENT = "sent";
|
||||
public static final String SENT_BYTES = "sentbytes";
|
||||
public static final String SERIAL = "serial";
|
||||
public static final String SERVICE_IP = "serviceip";
|
||||
public static final String SERVICE_OFFERING_ID = "serviceofferingid";
|
||||
public static final String SESSIONKEY = "sessionkey";
|
||||
public static final String SHOW_CAPACITIES = "showcapacities";
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
@Param(description = "the running OS kernel version for this Management Server")
|
||||
private String kernelVersion;
|
||||
|
||||
@SerializedName(ApiConstants.SERVICE_IP)
|
||||
@Param(description = "the IP Address for this Management Server")
|
||||
private String serviceIp;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
|
@ -112,6 +116,10 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
return lastBoot;
|
||||
}
|
||||
|
||||
public String getServiceIp() {
|
||||
return serviceIp;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
|
@ -155,4 +163,8 @@ public class ManagementServerResponse extends BaseResponse {
|
|||
public void setKernelVersion(String kernelVersion) {
|
||||
this.kernelVersion = kernelVersion;
|
||||
}
|
||||
|
||||
public void setServiceIp(String serviceIp) {
|
||||
this.serviceIp = serviceIp;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4444,6 +4444,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||
mgmtResponse.setLastServerStart(mgmt.getLastJvmStart());
|
||||
mgmtResponse.setLastServerStop(mgmt.getLastJvmStop());
|
||||
mgmtResponse.setLastBoot(mgmt.getLastSystemBoot());
|
||||
mgmtResponse.setServiceIp(mgmt.getServiceIP());
|
||||
mgmtResponse.setObjectName("managementserver");
|
||||
return mgmtResponse;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1642,11 +1642,11 @@ StateListener<State, VirtualMachine.Event, VirtualMachine>, Configurable {
|
|||
|
||||
// for each volume find list of suitable storage pools by calling the
|
||||
// allocators
|
||||
Set<Long> originalAvoidPoolSet = avoid.getPoolsToAvoid();
|
||||
if (originalAvoidPoolSet == null) {
|
||||
originalAvoidPoolSet = new HashSet<Long>();
|
||||
Set<Long> originalAvoidPoolSet = new HashSet<>();
|
||||
if (avoid.getPoolsToAvoid() != null) {
|
||||
originalAvoidPoolSet.addAll(avoid.getPoolsToAvoid());
|
||||
}
|
||||
Set<Long> poolsToAvoidOutput = new HashSet<Long>(originalAvoidPoolSet);
|
||||
Set<Long> poolsToAvoidOutput = new HashSet<>(originalAvoidPoolSet);
|
||||
|
||||
for (VolumeVO toBeCreated : volumesTobeCreated) {
|
||||
s_logger.debug("Checking suitable pools for volume (Id, Type): (" + toBeCreated.getId() + "," + toBeCreated.getVolumeType().name() + ")");
|
||||
|
|
@ -1723,12 +1723,6 @@ StateListener<State, VirtualMachine.Event, VirtualMachine>, Configurable {
|
|||
|
||||
DiskOfferingVO diskOffering = _diskOfferingDao.findById(toBeCreated.getDiskOfferingId());
|
||||
|
||||
//FR123 check how is it different for service offering getTagsArray and disk offering's
|
||||
//if ((vmProfile.getTemplate().getFormat() == Storage.ImageFormat.ISO || toBeCreated.getVolumeType() == Volume.Type.ROOT)
|
||||
// && vmProfile.getServiceOffering().getTagsArray().length != 0) {
|
||||
// diskOffering.setTagsArray(Arrays.asList(vmProfile.getServiceOffering().getTagsArray()));
|
||||
//}
|
||||
|
||||
DiskProfile diskProfile = new DiskProfile(toBeCreated, diskOffering, vmProfile.getHypervisorType());
|
||||
boolean useLocalStorage = false;
|
||||
if (vmProfile.getType() != VirtualMachine.Type.User) {
|
||||
|
|
|
|||
|
|
@ -1794,6 +1794,7 @@
|
|||
"label.srx": "SRX",
|
||||
"label.srx.firewall": "Juniper SRX firewall",
|
||||
"label.ssh.key.pairs": "SSH key pairs",
|
||||
"label.uefi.supported": "UEFI supported",
|
||||
"label.userdataid": "Userdata ID",
|
||||
"label.userdataname": "Userdata name",
|
||||
"label.userdatadetails": "Userdata details",
|
||||
|
|
|
|||
|
|
@ -1844,7 +1844,7 @@ export default {
|
|||
this.form.networkids = ids
|
||||
},
|
||||
updateDefaultNetworks (id) {
|
||||
this.defaultNetwork = id
|
||||
this.defaultnetworkid = id
|
||||
this.form.defaultnetworkid = id
|
||||
},
|
||||
updateNetworkConfig (networks) {
|
||||
|
|
|
|||
|
|
@ -104,7 +104,14 @@
|
|||
</div>
|
||||
</div>
|
||||
</a-list-item>
|
||||
|
||||
<a-list-item>
|
||||
<div>
|
||||
<strong>{{ $t('label.uefi.supported') }}</strong>
|
||||
<div>
|
||||
{{ host.ueficapability }}
|
||||
</div>
|
||||
</div>
|
||||
</a-list-item>
|
||||
</a-list>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue