Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
b464fe4
server: Secondary Storage Usage Improvements (#4053)
Pearl1594 Sep 17, 2020
44bc134
Adding acl name to several responses (#4315)
davidjumani Sep 17, 2020
6ee6633
ui: call logout before login to clear old sessionkey cookies (#4326)
yadvr Sep 17, 2020
87e08f8
cks: fix logging exception (#4309)
shwstppr Sep 17, 2020
82b6971
server: Handle listProjects API to list projects with user as members…
Pearl1594 Sep 17, 2020
db3a9e8
Initial commit adding few required managed object classes and added p…
harikrishna-patnala May 22, 2020
e24d79c
Added PBM service connect
harikrishna-patnala May 26, 2020
b78e800
Fix root folder issue on datastore
harikrishna-patnala May 28, 2020
7bd8dd1
Added importVsphereStoragePolicies API and scheme changes
harikrishna-patnala Jun 1, 2020
007a83b
Fixed bean creation errors on VsphereStoragePolicyDaoImpl
harikrishna-patnala Jun 2, 2020
9d9ae7d
Added Storage policy id to VO
harikrishna-patnala Jun 3, 2020
a583274
Moved Dao and VO files to different packages
harikrishna-patnala Jun 4, 2020
0389a12
Added gen_toc.py changes for API importvpsherestoragepolicies
harikrishna-patnala Jun 4, 2020
4defe85
Fixed unit test failure
harikrishna-patnala Jun 4, 2020
b5997df
Updated code to handle sync of storage policies when importVsphereSto…
harikrishna-patnala Jun 5, 2020
cf424e8
Check if datastore is complaince with the storagepolicy provided in t…
harikrishna-patnala Jun 9, 2020
73deec3
Added Storagepolicy while creating diskoffering. CreateDiskOffering A…
harikrishna-patnala Jun 5, 2020
e966a5d
Unit test fix
harikrishna-patnala Jun 15, 2020
9756dc6
Fix NPE in case of preparing secondarystorage on Host
harikrishna-patnala Jun 16, 2020
e09a65e
Use VStorageObjectManager for disk operations.
harikrishna-patnala Jun 26, 2020
e1d330e
Added PBM jar dependency for vsphere 6.7 version
harikrishna-patnala Jun 26, 2020
e6340be
Bug fixing on default base folder
harikrishna-patnala Jul 3, 2020
25eb567
VMFS to presetup change
harikrishna-patnala Jul 1, 2020
1835abc
UI changes and accept any type of datastore as presetup in vmware
harikrishna-patnala Jul 6, 2020
b4b249f
importVsphereStoragePolices improvements
harikrishna-patnala Jul 6, 2020
5204649
Fix importstorage policies to update deleted policies on vcenter
harikrishna-patnala Jul 6, 2020
cc75caf
Fix response list on importVsphereStoragePoliciescmd
harikrishna-patnala Jul 6, 2020
1036451
Added listVsphereStoragePoliciesCmd
harikrishna-patnala Jul 6, 2020
ce3c9b0
Logging variable name change
harikrishna-patnala Jul 7, 2020
05b073c
DataStore Clusters addition as a storage pool
harikrishna-patnala Jul 13, 2020
490c3f7
Assetion fix in StorageTest.java
harikrishna-patnala Jul 14, 2020
a379fb2
Import storagepolicies when vmware datacenter is added or updated
harikrishna-patnala Jul 15, 2020
15a658a
Add Datastore cluster and the child entities which are datastores in …
harikrishna-patnala Jul 19, 2020
a6769b5
Register Disk to first class disk whereever possible
harikrishna-patnala Jul 21, 2020
fe26d2b
Allocation logic to skip datastore cluster and consider only storagep…
harikrishna-patnala Jul 21, 2020
164837b
Handle datastore clusters in list storage pools to list only parent n…
harikrishna-patnala Jul 21, 2020
1f85b28
Fix adding Datastore clusters and listing
harikrishna-patnala Jul 22, 2020
7bccc22
Datastore Clusters operations on putting into maintenance mode, updat…
harikrishna-patnala Jul 22, 2020
cf65a7a
Fix NPE on one of the register disk usecases
harikrishna-patnala Jul 22, 2020
4ada74d
Datastore cluster: update tag to the child storagepools also
harikrishna-patnala Jul 22, 2020
6d6be71
Generalise linked clone formats which are different for each datastor…
harikrishna-patnala Jul 22, 2020
7693a1e
Fix immutable list to add another entry to list
harikrishna-patnala Jul 24, 2020
c0c9e29
inter-cluster migration support
Jul 28, 2020
be0ab77
Use clonevm task while creating template from volume
harikrishna-patnala Jul 27, 2020
d232d68
Datastore cluster maintenance failure case handling.
harikrishna-patnala Jul 28, 2020
ca67cef
Add checks before actual deletion of datastore cluster
harikrishna-patnala Jul 28, 2020
aef7cf5
Fix updateconfiguration API to add settings to child datastores in ca…
harikrishna-patnala Jul 28, 2020
0d02cc1
Fix prepare template API incase of Datastore cluster
harikrishna-patnala Jul 28, 2020
ccb0d36
Fix ListVMsCmd with storageid as datastore cluster
harikrishna-patnala Jul 28, 2020
4974756
Fix migrate vm and volume APIs in case if datastore cluster
harikrishna-patnala Jul 30, 2020
5a529ed
Handle listsystemvms cmd in case of datastore clusters
harikrishna-patnala Aug 1, 2020
6413f77
Adding Storagepolicies to the service offering for root disks
harikrishna-patnala Aug 1, 2020
b984eaa
Base folder creation on datstores restrict only to primary storages, …
harikrishna-patnala Aug 4, 2020
5c97afb
Fix test cases
harikrishna-patnala Aug 4, 2020
7a41879
Changed workflow for storing volumes in sec storage
Aug 4, 2020
8ee7689
fix some more test cases
harikrishna-patnala Aug 5, 2020
101fd24
Changed artifact id from pbm for vmware-pbm for policy based management
harikrishna-patnala Aug 6, 2020
c815db8
Deleted temporary files
harikrishna-patnala Aug 6, 2020
667f621
Fixed unexpected token Exception
harikrishna-patnala Aug 6, 2020
4d0b2a6
Fix simulator code for SimulatorStorageProcessor.java
harikrishna-patnala Aug 6, 2020
5cc9b58
Handle failure case of putting datastore cluster on maintenance mode
harikrishna-patnala Aug 6, 2020
6dafde7
Simulator failures fixing
harikrishna-patnala Aug 9, 2020
3c61578
Fixed a smoke test while taking snapshot
harikrishna-patnala Aug 11, 2020
504bd7a
Remove registering virtual disk code
harikrishna-patnala Aug 11, 2020
f57fdce
Fix addition of datastore clusters not to configure it as non NFS sto…
harikrishna-patnala Aug 13, 2020
9bb662a
Fix addition of datastores with invalid vCenter server details
harikrishna-patnala Aug 15, 2020
f5dbf1c
Fix findstoragepoolsformigration cmd not to list the parent datastore…
harikrishna-patnala Aug 16, 2020
1db7459
Handle volume copy from secondary to primary in case of vSAN
harikrishna-patnala Aug 16, 2020
bef2299
Fix list volume response to list datastore cluster name and id instea…
harikrishna-patnala Aug 17, 2020
36abc6a
Removed unused imports caused due to some merge conflicts
harikrishna-patnala Aug 18, 2020
9b364b1
Handle VMFS6 sesparse format disk files
harikrishna-patnala Aug 18, 2020
389ea7d
Keep retry logic for make directory method which is returning false p…
harikrishna-patnala Aug 19, 2020
18fbea2
Fix proper error message on revert volume snapshot operation in case …
harikrishna-patnala Aug 19, 2020
aabc87b
Fix list volumes cmd and update volume cmd to accept datastore cluste…
harikrishna-patnala Aug 19, 2020
3850de1
Fix destination hostname for stopped VMs in case of reset ssh keys
harikrishna-patnala Aug 20, 2020
2164ec1
Fix enable primary datastore maintenance command seriliaztion on it
harikrishna-patnala Aug 24, 2020
be1ccd2
Fix travis failures by removing dependency of vmware from storage.
harikrishna-patnala Aug 27, 2020
f5453e4
Set back the datastore cluster state to UP upon on failure in prepare…
harikrishna-patnala Aug 27, 2020
42714ed
Handle import unmanaged VM into CloudStack to support any type of dat…
harikrishna-patnala Aug 28, 2020
fe26990
Fix fcd from being deleted when empty
davidjumani Sep 1, 2020
1db79c9
[VMware] Full OVF properties support
nvazquez Aug 6, 2020
5facfe2
Remove extra line after merging
nvazquez Sep 7, 2020
a4eb732
Added backup on fail over scenrio in case of new create disk method
harikrishna-patnala Aug 31, 2020
7ec634c
vVols datastore support added
harikrishna-patnala Sep 9, 2020
dc9b329
Fixed volume migrations to and fro vVols datastorewq
harikrishna-patnala Sep 10, 2020
b40426e
Fix seeding template issue after PR merging
harikrishna-patnala Sep 10, 2020
0393f3c
prepare for maintenance of storage pool of type datastore cluster sho…
harikrishna-patnala Sep 11, 2020
a9dd63f
Snapshot on dettached volume considering wrong path, corrected it
harikrishna-patnala Sep 11, 2020
7a76cd6
Delete VM fix which does not move detached disks to fcd folder
harikrishna-patnala Sep 14, 2020
3372fc1
Add new template and vm deploy as is details table and refactor
nvazquez Sep 14, 2020
d92b8a5
Refactor deploy as is constants
nvazquez Sep 14, 2020
d251ef4
Fix daos issue
nvazquez Sep 14, 2020
2c908fa
Fix typo
nvazquez Sep 14, 2020
663250f
Dettached datadisk migration failed between NFS storages.
harikrishna-patnala Sep 16, 2020
1ffc033
Fix zone to zone scope volume migrations NPE
nvazquez Sep 16, 2020
f908203
Fixed rat failure on new class DeployAsIsHelper.java
harikrishna-patnala Sep 17, 2020
2cebfb7
Removed few duplicate imports during rebase with master
harikrishna-patnala Sep 17, 2020
5852c35
Remove duplicate schema changes
harikrishna-patnala Sep 17, 2020
d874104
Fix ISO upload on Deploy OVF task
nvazquez Sep 17, 2020
98cf049
Do not set user-configurable details for deploy-as-is VMs
nvazquez Sep 20, 2020
f34105f
Fix VM power sync NPE on system VMs
nvazquez Sep 20, 2020
aea8723
Remove deploy as-is details when removing templates or vms
nvazquez Sep 20, 2020
e1ee3c2
Use network adapter from OVF on deploy-as-is
nvazquez Sep 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions api/src/main/java/com/cloud/agent/api/StoragePoolInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class StoragePoolInfo {
StoragePoolType poolType;
long capacityBytes;
long availableBytes;
String name;
Map<String, String> details;

protected StoragePoolInfo() {
Expand Down Expand Up @@ -67,14 +68,34 @@ public String getHost() {
return host;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public void setLocalPath(String localPath) {
this.localPath = localPath;
}

public String getLocalPath() {
return localPath;
}

public void setHostPath(String hostPath) {
this.hostPath = hostPath;
}

public String getHostPath() {
return hostPath;
}

public void setPoolType(StoragePoolType poolType) {
this.poolType = poolType;
}

public StoragePoolType getPoolType() {
return poolType;
}
Expand Down
800 changes: 632 additions & 168 deletions api/src/main/java/com/cloud/agent/api/storage/OVFHelper.java

Large diffs are not rendered by default.

21 changes: 13 additions & 8 deletions api/src/main/java/com/cloud/agent/api/to/DatadiskTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ public class DatadiskTO {
private boolean isIso;
private String diskController;
private String diskControllerSubType;
private int diskNumber;
private String configuration;

public DatadiskTO() {
}

public DatadiskTO(String path, long virtualSize, long fileSize, boolean bootable) {
this.path = path;
this.virtualSize = virtualSize;
this.fileSize = fileSize;
this.bootable = bootable;
}

public DatadiskTO(String path, long virtualSize, long fileSize, String diskId, boolean isIso, boolean bootable, String controller, String controllerSubType) {
public DatadiskTO(String path, long virtualSize, long fileSize, String diskId, boolean isIso, boolean bootable,
String controller, String controllerSubType, int diskNumber, String configuration) {
this.path = path;
this.virtualSize = virtualSize;
this.fileSize = fileSize;
Expand All @@ -47,6 +43,8 @@ public DatadiskTO(String path, long virtualSize, long fileSize, String diskId, b
this.isIso = isIso;
this.diskController = controller;
this.diskControllerSubType = controllerSubType;
this.diskNumber = diskNumber;
this.configuration = configuration;
}

public String getPath() {
Expand Down Expand Up @@ -105,4 +103,11 @@ public void setDiskControllerSubType(String diskControllerSubType) {
this.diskControllerSubType = diskControllerSubType;
}

public int getDiskNumber() {
return this.diskNumber;
}

public String getConfiguration() {
return configuration;
}
}
58 changes: 58 additions & 0 deletions api/src/main/java/com/cloud/agent/api/to/DeployAsIsInfoTO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.agent.api.to;

import com.cloud.agent.api.LogLevel;

import java.util.HashMap;
import java.util.Map;

public class DeployAsIsInfoTO {

private String templatePath;
private String destStoragePool;
@LogLevel(LogLevel.Log4jLevel.Off)
private Map<String, String> properties = new HashMap<>();
private Map<Integer, String> nicAdapterMap = new HashMap();

public DeployAsIsInfoTO() {
}

public DeployAsIsInfoTO(String templatePath, String destStoragePool, Map<String, String> properties,
Map<Integer, String> nicAdapterMap) {
this.templatePath = templatePath;
this.destStoragePool = destStoragePool;
this.properties = properties;
this.nicAdapterMap = nicAdapterMap;
}

public String getTemplatePath() {
return templatePath;
}

public Map<String, String> getProperties() {
return properties;
}

public String getDestStoragePool() {
return destStoragePool;
}

public Map<Integer, String> getNicAdapterMap() {
return nicAdapterMap;
}
}
21 changes: 9 additions & 12 deletions api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
import java.util.Map;
import java.util.HashMap;

import com.cloud.agent.api.LogLevel;
import com.cloud.agent.api.storage.OVFPropertyTO;
import com.cloud.template.VirtualMachineTemplate.BootloaderType;
import com.cloud.utils.Pair;
import com.cloud.vm.VirtualMachine;
import com.cloud.vm.VirtualMachine.Type;

Expand Down Expand Up @@ -81,8 +78,7 @@ public class VirtualMachineTO {

Map<String, String> guestOsDetails = new HashMap<String, String>();
Map<String, String> extraConfig = new HashMap<>();
@LogLevel(LogLevel.Log4jLevel.Off)
Pair<String, List<OVFPropertyTO>> ovfProperties;
DeployAsIsInfoTO deployAsIsInfo;

public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer speed, long minRam, long maxRam, BootloaderType bootloader,
String os, boolean enableHA, boolean limitCpuUse, String vncPassword) {
Expand Down Expand Up @@ -376,13 +372,6 @@ public Map<String, String> getExtraConfig() {
return extraConfig;
}

public Pair<String, List<OVFPropertyTO>> getOvfProperties() {
return ovfProperties;
}

public void setOvfProperties(Pair<String, List<OVFPropertyTO>> ovfProperties) {
this.ovfProperties = ovfProperties;
}
public String getBootType() {
return bootType;
}
Expand All @@ -402,4 +391,12 @@ public boolean isEnterHardwareSetup() {
public void setEnterHardwareSetup(boolean enterHardwareSetup) {
this.enterHardwareSetup = enterHardwareSetup;
}

public DeployAsIsInfoTO getDeployAsIsInfo() {
return deployAsIsInfo;
}

public void setDeployAsIsInfo(DeployAsIsInfoTO deployAsIsInfo) {
this.deployAsIsInfo = deployAsIsInfo;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
package com.cloud.agent.api.to.deployasis;

import java.util.List;

public class OVFConfigurationTO implements TemplateDeployAsIsInformationTO {

private final String id;
private final String label;
private final String description;
private List<OVFVirtualHardwareItemTO> hardwareItems;
private int index;

public OVFConfigurationTO(String id, String label, String description, int index) {
this.id = id;
this.label = label;
this.description = description;
this.index = index;
}

public String getId() {
return id;
}

public String getLabel() {
return label;
}

public String getDescription() {
return description;
}

public void setHardwareItems(List<OVFVirtualHardwareItemTO> items) {
this.hardwareItems = items;
}

public List<OVFVirtualHardwareItemTO> getHardwareItems() {
return hardwareItems;
}

public int getIndex() {
return index;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
package com.cloud.agent.api.to.deployasis;

import com.cloud.agent.api.LogLevel;

/**
* End-user licence agreement
*/
public class OVFEulaSectionTO implements TemplateDeployAsIsInformationTO {
private String info;
@LogLevel(LogLevel.Log4jLevel.Off)
private byte[] compressedLicense;
private int index;

public OVFEulaSectionTO(String info, byte[] license, int eulaIndex) {
this.info = info;
this.compressedLicense = license;
this.index = eulaIndex;
}

public String getInfo() {
return this.info;
}

public byte[] getCompressedLicense() {
return this.compressedLicense;
}

public int getIndex() {
return index;
}
}
Loading