for review of vsphere advanced capabilities#56
for review of vsphere advanced capabilities#56DaanHoogland wants to merge 149 commits intomastershapeblue/cloudstack:masterfrom vsphereAdvancedCapabilitiesshapeblue/cloudstack:vsphereAdvancedCapabilitiesCopy head branch name to clipboard
Conversation
50e8709 to
de099c0
Compare
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/guru/VMwareGuru.java
Outdated
Show resolved
Hide resolved
| return true; | ||
| } | ||
|
|
||
| //TODO: Remove this method after deploying VM from OVF directly using content library |
There was a problem hiding this comment.
on second thought, we need to be backwards compatible. I don't think we can do this with a single transition script.
14b90b0 to
15cdd27
Compare
DaanHoogland
left a comment
There was a problem hiding this comment.
thanks Suresh, i'll start a build to deploy and test tomorrow
| createSpec.setDescription("Local content library for datastore " + datastoreName); | ||
| createSpec.setType(LibraryModel.LibraryType.LOCAL); | ||
| createSpec.setStorageBackings(Collections.singletonList(storageBacking)); | ||
|
|
There was a problem hiding this comment.
sounds like a method should be create called buildTheSpecificationForTheLibraryToBeCreated(...)
| //Get the storage backing on the datastore | ||
| StorageBacking dsStorageBacking = createStorageBacking(context, datastoreName); | ||
| boolean canDelete = false; | ||
| for (Iterator<StorageBacking> iterator = localLibrary.getStorageBackings().iterator(); iterator.hasNext();) { | ||
| StorageBacking storageBacking = (StorageBacking) iterator.next(); | ||
| if(dsStorageBacking.equals(storageBacking)) { | ||
| canDelete = true; | ||
| break; | ||
| } | ||
| } |
There was a problem hiding this comment.
getTheStorageBackingOnTheDatastore(...)
|
@sureshanaparti please don't force push on a shared branch. We can clean up before a public PR. |
eef8701 to
a268d94
Compare
| authorized = {RoleType.Admin}) | ||
| public class ImportVsphereStoragePoliciesCmd extends BaseCmd { | ||
|
|
||
| public static final Logger s_logger = Logger.getLogger(ImportVsphereStoragePoliciesCmd.class.getName()); |
There was a problem hiding this comment.
@harikrishna-patnala , can you make this static final Logger LOGGER?
|
|
||
| /** | ||
| * deploys a new VM from a ovf spec. It ignores network, defaults locale to 'US' | ||
| * @param host |
There was a problem hiding this comment.
@DaanHoogland (note to self) remove un-annotated annotation tags
|
|
||
| public class PbmPlacementSolverMO extends BaseMO { | ||
|
|
||
| private static final Logger s_logger = Logger.getLogger(PbmPlacementSolverMO.class); |
|
|
||
| public class PbmProfileManagerMO extends BaseMO { | ||
|
|
||
| private static final Logger s_logger = Logger.getLogger(PbmProfileManagerMO.class); |
|
|
||
| public class VirtualStorageObjectManagerMO extends BaseMO { | ||
| @SuppressWarnings("unused") | ||
| private static final Logger s_logger = Logger.getLogger(VirtualStorageObjectManagerMO.class); |
| import com.vmware.vcenter.ovf.LibraryItem; | ||
|
|
||
| public class ContentLibraryClient implements VmwareClientService { | ||
| private static final Logger s_logger = Logger.getLogger(ContentLibraryClient.class); |
|
@harikrishna-patnala @DaanHoogland can you merge latest master and address the conflicts. I'll start some test/review work in 2 hrs. Thnx. |
…ragePolicies API is called multiple times
…he disk offering. Added corresponding manager objects from PBM sdk to do the job. Made dao layer changes to read the storage policy in diskoffering
…the cluster into CloudStack Setting scope is still pending.
…ools inside the datastore cluster
…ot the children in the Datastore cluster
…e storage pool with tags, cancelling mantenance mode and deleting storage pool
62c82d8 to
d5453ba
Compare
| INSERT IGNORE INTO `cloud`.`disk_offering` (name, uuid, display_text, customized, unique_name, disk_size, system_use, type, display_offering) | ||
| VALUES ('Custom Deploy-as-is Instance', UUID(), 'Custom Deploy-as-is Instance', 1, 'ApacheCloudStack.org-Custom Deploy-as-is Instance', 0, 0, 'Service', 0); | ||
| INSERT IGNORE INTO `cloud`.`service_offering` (`id`, `nw_rate`, `mc_rate`) VALUES | ||
| ((SELECT `id` FROM `cloud`.`disk_offering` WHERE `unique_name` = 'Cloud.com-Custom Deploy-as-is Instance'), null, null); | ||
| ((SELECT `id` FROM `cloud`.`disk_offering` WHERE `unique_name` = 'ApacheCloudStack.org-Custom Deploy-as-is Instance'), null, null); |
There was a problem hiding this comment.
@shwstppr this change will let you select the custom offering to use as a quick fix.
- UUID as generated in the diskoffering
- uniquename =
ApacheCloudStack.org-Custom Deploy-as-is Instance
| Answer answer = new Answer(null); | ||
| CopyCommandResult result = new CopyCommandResult(null, null); | ||
| result.setSuccess(true); | ||
| caller.complete(result); |
There was a problem hiding this comment.
I must say this is a terrible hack, maybe we should rename the method to reflect that the copy may not even be attempted?
[VMWare] error when detaching volume (apache#6283)
Description
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?