mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge branch '4.11'
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
commit
ffe86e1c17
2
debian/control
vendored
2
debian/control
vendored
@ -22,7 +22,7 @@ Description: CloudStack server library
|
|||||||
|
|
||||||
Package: cloudstack-agent
|
Package: cloudstack-agent
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${python:Depends}, openjdk-8-jre-headless | java8-runtime-headless | java8-runtime, cloudstack-common (= ${source:Version}), lsb-base (>= 4.0), libcommons-daemon-java, openssh-client, qemu-kvm (>= 1.0), libvirt-bin (>= 1.2.2), uuid-runtime, iproute, ebtables, vlan, jsvc, ipset, python-libvirt, ethtool, iptables, lsb-release, init-system-helpers (>= 1.14~), aria2
|
Depends: ${python:Depends}, openjdk-8-jre-headless | java8-runtime-headless | java8-runtime, cloudstack-common (= ${source:Version}), lsb-base (>= 4.0), libcommons-daemon-java, openssh-client, qemu-kvm (>= 1.0), libvirt-bin (>= 1.2.2), uuid-runtime, iproute2, ebtables, vlan, jsvc, ipset, python-libvirt, ethtool, iptables, lsb-release, init-system-helpers (>= 1.14~), aria2
|
||||||
Recommends: init-system-helpers
|
Recommends: init-system-helpers
|
||||||
Conflicts: cloud-agent, cloud-agent-libs, cloud-agent-deps, cloud-agent-scripts
|
Conflicts: cloud-agent, cloud-agent-libs, cloud-agent-deps, cloud-agent-scripts
|
||||||
Description: CloudStack agent
|
Description: CloudStack agent
|
||||||
|
|||||||
@ -121,7 +121,7 @@ public class LibvirtDomainXMLParser {
|
|||||||
def.defBlockBasedDisk(diskDev, diskLabel,
|
def.defBlockBasedDisk(diskDev, diskLabel,
|
||||||
DiskDef.DiskBus.valueOf(bus.toUpperCase()));
|
DiskDef.DiskBus.valueOf(bus.toUpperCase()));
|
||||||
}
|
}
|
||||||
if (diskCacheMode != null) {
|
if (StringUtils.isNotBlank(diskCacheMode)) {
|
||||||
def.setCacheMode(DiskDef.DiskCacheMode.valueOf(diskCacheMode.toUpperCase()));
|
def.setCacheMode(DiskDef.DiskCacheMode.valueOf(diskCacheMode.toUpperCase()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -819,8 +819,12 @@ public class LibvirtVMDef {
|
|||||||
diskBuilder.append(" type='" + _diskType + "'");
|
diskBuilder.append(" type='" + _diskType + "'");
|
||||||
diskBuilder.append(">\n");
|
diskBuilder.append(">\n");
|
||||||
if(qemuDriver) {
|
if(qemuDriver) {
|
||||||
diskBuilder.append("<driver name='qemu'" + " type='" + _diskFmtType
|
diskBuilder.append("<driver name='qemu'" + " type='" + _diskFmtType + "' ");
|
||||||
+ "' cache='" + _diskCacheMode + "' ");
|
|
||||||
|
if (_deviceType != DeviceType.CDROM) {
|
||||||
|
diskBuilder.append("cache='" + _diskCacheMode + "' ");
|
||||||
|
}
|
||||||
|
|
||||||
if(_discard != null && _discard != DiscardType.IGNORE) {
|
if(_discard != null && _discard != DiscardType.IGNORE) {
|
||||||
diskBuilder.append("discard='" + _discard.toString() + "' ");
|
diskBuilder.append("discard='" + _discard.toString() + "' ");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,7 +71,7 @@ public final class LibvirtStopCommandWrapper extends CommandWrapper<StopCommand,
|
|||||||
//move the command line file to backup.
|
//move the command line file to backup.
|
||||||
s_logger.debug("backing up the cmdline");
|
s_logger.debug("backing up the cmdline");
|
||||||
try{
|
try{
|
||||||
Pair<Boolean, String> ret = SshHelper.sshExecute(command.getControlIp(), 3922, "root", pemFile, null,"mv -f "+CMDLINE_PATH+" "+CMDLINE_BACKUP_PATH);
|
Pair<Boolean, String> ret = SshHelper.sshExecute(command.getControlIp(), 3922, "root", pemFile, null,"cp -f "+CMDLINE_PATH+" "+CMDLINE_BACKUP_PATH);
|
||||||
if(!ret.first()){
|
if(!ret.first()){
|
||||||
s_logger.debug("Failed to backup cmdline file due to "+ret.second());
|
s_logger.debug("Failed to backup cmdline file due to "+ret.second());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -525,6 +525,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
|||||||
if (pdef == null) {
|
if (pdef == null) {
|
||||||
throw new CloudRuntimeException("Unable to parse the storage pool definition for storage pool " + poolname);
|
throw new CloudRuntimeException("Unable to parse the storage pool definition for storage pool " + poolname);
|
||||||
}
|
}
|
||||||
|
|
||||||
String targetPath = pdef.getTargetPath();
|
String targetPath = pdef.getTargetPath();
|
||||||
if (targetPath != null && targetPath.equals(path)) {
|
if (targetPath != null && targetPath.equals(path)) {
|
||||||
s_logger.debug("Storage pool utilizing path '" + path + "' already exists as pool " + poolname +
|
s_logger.debug("Storage pool utilizing path '" + path + "' already exists as pool " + poolname +
|
||||||
@ -663,7 +664,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
|||||||
|
|
||||||
switch (pool.getType()) {
|
switch (pool.getType()) {
|
||||||
case RBD:
|
case RBD:
|
||||||
return createPhysicalDiskByLibVirt(name, pool, format, provisioningType, size);
|
return createPhysicalDiskByLibVirt(name, pool, PhysicalDiskFormat.RAW, provisioningType, size);
|
||||||
case NetworkFilesystem:
|
case NetworkFilesystem:
|
||||||
case Filesystem:
|
case Filesystem:
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
|||||||
@ -17481,6 +17481,10 @@
|
|||||||
item.powerstate = item.outofbandmanagement.powerstate;
|
item.powerstate = item.outofbandmanagement.powerstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!item.hypervisorversion && item.details && item.details["Host.OS"]) {
|
||||||
|
item.hypervisorversion = item.details["Host.OS"] + " " + item.details["Host.OS.Version"];
|
||||||
|
}
|
||||||
|
|
||||||
if (item && item.hostha) {
|
if (item && item.hostha) {
|
||||||
item.hastate = item.hostha.hastate;
|
item.hastate = item.hostha.hastate;
|
||||||
item.haprovider = item.hostha.haprovider;
|
item.haprovider = item.hostha.haprovider;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user