mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
CLOUDSTACK-988: HV version must be updated in hypervisor_version column of host table HV version is stored in hypervisor_version column in host table wherever present Also correctly populating version column in host table with resource file version
Signed-off-by: Koushik Das <koushik.das@citrix.com> Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
51c1ca7cbe
commit
070856affd
@ -108,7 +108,7 @@ public class TrafficSentinelResource implements ServerResource {
|
||||
cmd.setPod("");
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(TrafficSentinelResource.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -3984,7 +3984,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
||||
cmd.setHypervisorType(HypervisorType.VMware);
|
||||
cmd.setStateChanges(changes);
|
||||
cmd.setCluster(_cluster);
|
||||
cmd.setVersion(hostApiVersion);
|
||||
cmd.setHypervisorVersion(hostApiVersion);
|
||||
|
||||
List<StartupStorageCommand> storageCmds = initializeLocalStorage();
|
||||
StartupCommand[] answerCmds = new StartupCommand[1 + storageCmds.size()];
|
||||
|
||||
@ -196,7 +196,7 @@ public class F5BigIpResource implements ServerResource {
|
||||
cmd.setPod("");
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(F5BigIpResource.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -447,7 +447,7 @@ public class JuniperSrxResource implements ServerResource {
|
||||
cmd.setPod("");
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(JuniperSrxResource.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -369,7 +369,7 @@ public class NetscalerResource implements ServerResource {
|
||||
cmd.setPod("");
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(NetscalerResource.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ public class NiciraNvpResource implements ServerResource {
|
||||
sc.setPod("");
|
||||
sc.setPrivateIpAddress("");
|
||||
sc.setStorageIpAddress("");
|
||||
sc.setVersion("");
|
||||
sc.setVersion(NiciraNvpResource.class.getPackage().getImplementationVersion());
|
||||
return new StartupCommand[] { sc };
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,7 @@ public class ExternalDhcpResourceBase implements ServerResource {
|
||||
cmd.setPod(_podId);
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(ExternalDhcpResourceBase.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ public class PxeServerResourceBase implements ServerResource {
|
||||
cmd.setPod(_podId);
|
||||
cmd.setPrivateIpAddress(_ip);
|
||||
cmd.setStorageIpAddress("");
|
||||
cmd.setVersion("");
|
||||
cmd.setVersion(PxeServerResourceBase.class.getPackage().getImplementationVersion());
|
||||
cmd.setGuid(_guid);
|
||||
return new StartupCommand[]{cmd};
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ public class DummyHostServerResource extends ServerResourceBase {
|
||||
cmd.setPublicIpAddress(getHostStoragePrivateIp());
|
||||
cmd.setPublicMacAddress(getHostStorageMacAddress().toString());
|
||||
cmd.setPublicNetmask("255.255.0.0");
|
||||
cmd.setVersion("1.0");
|
||||
cmd.setVersion(DummyHostServerResource.class.getPackage().getImplementationVersion());
|
||||
|
||||
return new StartupCommand[] {cmd};
|
||||
}
|
||||
|
||||
@ -1772,6 +1772,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
|
||||
host.setTotalMemory(ssCmd.getMemory());
|
||||
host.setSpeed(ssCmd.getSpeed());
|
||||
host.setHypervisorType(hyType);
|
||||
host.setHypervisorVersion(ssCmd.getHypervisorVersion());
|
||||
return host;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user