diff --git a/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java b/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java index 42cdb88980d..da704084204 100755 --- a/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java @@ -1008,6 +1008,9 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac final String csr = caManager.generateKeyStoreAndCsr(vmHost, sshAccessDetails); if (!Strings.isNullOrEmpty(csr)) { final Map ipAddressDetails = new HashMap<>(sshAccessDetails); + for (Map.Entry e : ipAddressDetails.entrySet()) { + s_logger.info("PEARL - k = " + e.getKey() + " v: "+ e.getValue()); + } ipAddressDetails.remove(NetworkElementCommand.ROUTER_NAME); final Certificate certificate = caManager.issueCertificate(csr, Arrays.asList(vm.getHostName(), vm.getInstanceName()), new ArrayList<>(ipAddressDetails.values()), CAManager.CertValidityPeriod.value(), null); diff --git a/engine/schema/pom.xml b/engine/schema/pom.xml index 3b1bba2f09f..77dda5f406d 100644 --- a/engine/schema/pom.xml +++ b/engine/schema/pom.xml @@ -90,7 +90,9 @@ def csVersion = pom.properties['cs.version'] + println(csVersion) def patch = pom.properties['patch.version'] + println(patch) def templateList = [] templateList.add("systemvmtemplate-${csVersion}.${patch}-kvm") templateList.add("systemvmtemplate-${csVersion}.${patch}-vmware") @@ -123,7 +125,8 @@ wget - https://download.cloudstack.org/systemvm/${cs.version}/md5sum.txt + + http://10.0.3.122/systemvmtemplate/custom/cks-debian/${cs.version}/md5sum.txt ${basedir}/dist/systemvm-templates/ true true @@ -182,7 +185,8 @@ true - https://download.cloudstack.org/systemvm/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-kvm.qcow2.bz2 + + http://10.0.3.122/systemvmtemplate/custom/cks-debian/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-kvm.qcow2.bz2 ${basedir}/dist/systemvm-templates/ ${kvm.checksum} @@ -194,7 +198,8 @@ true - https://download.cloudstack.org/systemvm/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-vmware.ova + + http://10.0.3.122/systemvmtemplate/custom/cks-debian/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-vmware.ova ${basedir}/dist/systemvm-templates/ ${vmware.checksum} @@ -206,7 +211,8 @@ true - https://download.cloudstack.org/systemvm/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-xen.vhd.bz2 + + http://10.0.3.122/systemvmtemplate/custom/cks-debian/${cs.version}/systemvmtemplate-${cs.version}.${patch.version}-xen.vhd.bz2 ${basedir}/dist/systemvm-templates/ ${xen.checksum} diff --git a/pom.xml b/pom.xml index 69f520b46d5..6813bb867c3 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ UTF-8 UTF-8 - 4.16.0.0 + 4.16.1.0 11 diff --git a/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java b/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java index 7434ea89669..1dcaf7b0b33 100644 --- a/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java +++ b/server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java @@ -1210,7 +1210,8 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements ConsoleProxy @Override public boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, DeployDestination dest, ReservationContext context) { - +// final Certificate certificate = caManager.issueCertificate(null, Arrays.asList(profile.getHostName(), profile.getInstanceName()), +// new ArrayList<>(ipAddressDetails.values()), CAManager.CertValidityPeriod.value(), null); ConsoleProxyVO vm = consoleProxyDao.findById(profile.getId()); Map details = userVmDetailsDao.listDetailsKeyPairs(vm.getId()); vm.setDetails(details); @@ -1280,6 +1281,15 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements ConsoleProxy buf.append(" dns2=").append(dc.getDns2()); } +// try { +// buf.append(" certificate=").append(CertUtils.x509CertificateToPem(certificate.getClientCertificate())); +// buf.append(" cacertificate=").append(CertUtils.x509CertificatesToPem(certificate.getCaCertificates())); +// if (certificate.getPrivateKey() != null) { +// buf.append(" privatekey=").append(CertUtils.privateKeyToPem(certificate.getPrivateKey())); +// } +// } catch (IOException e) { +// throw new CloudRuntimeException("Failed to transform X509 cert to PEM format", e); +// } buf.append(" keystore_password=").append(PasswordGenerator.generateRandomPassword(16)); buf.append(" validity=").append(CAManager.CertValidityPeriod.value()); String bootArgs = buf.toString(); diff --git a/systemvm/debian/opt/cloud/bin/setup/cloud-early-config b/systemvm/debian/opt/cloud/bin/setup/cloud-early-config index 370dfc0c620..5a50fe85007 100755 --- a/systemvm/debian/opt/cloud/bin/setup/cloud-early-config +++ b/systemvm/debian/opt/cloud/bin/setup/cloud-early-config @@ -54,7 +54,7 @@ patch() { fi eval $(validate_checksums $md5file $oldpatchfile) - if [ "$oldmd5" == "$newmd5" ] && [ ! -f ${patchfile} ]; then + if [ "$oldmd5" == "$newmd5" ] && [ -d /usr/local/cloud/systemvm ] && [ "$(ls -A /usr/local/cloud/systemvm)" ]; then log_it "Checksum matches, do need to patch" return 0 fi diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index 7075c135d42..285d818c0c7 100755 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -348,9 +348,9 @@ function main() { packer_build # process the disk at dist - kvm_export - ovm_export - xen_server_export +# kvm_export +# ovm_export +# xen_server_export vmware_export # hyperv_export rm -f "dist/${appliance}"