Sina Kashipazha
543f9827ff
add creation date as a value for domains and accounts. ( #4649 )
2021-02-13 10:07:53 +00:00
Rohit Yadav
40c14b4552
Merge remote-tracking branch 'origin/4.15'
2021-02-12 13:06:33 +05:30
Gabriel Beims Bräscher
35055896a0
server: FIx typo on FirstFitAllocator ( #4648 )
...
From "Cusotm[UEFI]" to "Custom[UEFI]"
2021-02-12 12:53:40 +05:30
Rakesh
de7b131724
server: Cleanup domain details when domain is deleted ( #4445 )
...
When domain is deleted, all the settings configured under
the domain scope still exists in domain_details table.
All the entries for the domain should be deleted as well
2021-02-12 12:52:22 +05:30
Rakesh
b8ec2b22d3
server: Display lb rule name instead of uuid ( #4524 )
...
Display proper error message while deleting ssl cert which is
associated with a load balancer rule
2021-02-12 12:47:01 +05:30
Abhishek Kumar
d6e8b53736
vmware: vm migration improvements ( #4385 )
...
- Fixes inter-cluster migration of VMs
- Allows migration of stopped VM with disks attached to different and suitable pools
- Improves inter-cluster detached volume migration
- Allows inter-cluster migration (clusters of same Pod) for system VMs, VRs on VMware
- Allows storage migration for stopped system VMs, VRs on VMware within same Pod if StoragePool cluster scopetype
Linked Primate PR: https://github.com/apache/cloudstack-primate/pull/789 [Changes merged in this PR after new UI merge]
Documentation PR: https://github.com/apache/cloudstack-documentation/pull/170
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2021-02-12 12:41:41 +05:30
Rohit Yadav
66f0beda5f
Updating pom.xml version numbers for release 4.14.1.0
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-02-08 16:24:09 +05:30
Rohit Yadav
ba127dab3e
Merge remote-tracking branch 'origin/4.15'
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-02-05 16:02:26 +05:30
Rohit Yadav
6bde1384ff
Merge remote-tracking branch 'origin/4.14' into 4.15
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-02-05 16:01:01 +05:30
Wei Zhou
4de6ac3c05
server: Get vm network/disk statistics and update database per host ( #4601 )
...
* server: Get vm network/disk statistics and update database per host
* #4601 : modify debug message
2021-02-04 14:44:47 +05:30
Wei Zhou
78f73c1bc6
server: Fix update capacity for hosts take long time if there are many service offerings ( #4623 )
...
Steps to reproduce the issue:
(1)Create 10000 service offerings (by db changes below or cloudmonkey).
```
DROP PROCEDURE IF EXISTS cloud.insert_service_offering;
DELIMITER $$
CREATE PROCEDURE cloud.insert_service_offering()
BEGIN
DECLARE count INT DEFAULT 10000;
SET @offeringid = (select max(id)+1 from disk_offering);
WHILE count > 0 DO
INSERT INTO disk_offering (id,name,uuid,display_text,disk_size,type,created) values (@offeringid,'test-offering-wei',uuid(), 'test-offering-wei',0,'Service',now());
INSERT INTO service_offering (id,cpu,speed,ram_size) values (@offeringid, 1, 500,256);
SET @offeringid = @offeringid + 1;
SET count = count - 1;
END WHILE;
END $$
DELIMITER ;
CALL cloud.insert_service_offering();
mysql> CALL cloud.insert_service_offering();
Query OK, 0 rows affected (2 min 30.85 sec)
```
(2) Check the total time of periodical capacity check in cloudstack.
Without this patch, it spend 2.5 seconds (2 hosts)
```
2021-01-15 16:10:12,793 DEBUG [c.c.a.AlertManagerImpl] (CapacityChecker:ctx-5d5f3b3b) (logid:f5eb68ba) Running Capacity Checker ...
2021-01-15 16:10:15,287 DEBUG [c.c.a.AlertManagerImpl] (CapacityChecker:ctx-5d5f3b3b) (logid:f5eb68ba) Done running Capacity Checker ...
```
With this patch ,it spend 1.3 seconds (2 hosts)
```
2021-01-15 16:12:43,604 DEBUG [c.c.a.AlertManagerImpl] (CapacityChecker:ctx-a2a7f3f1) (logid:f7e0a4c5) Running Capacity Checker ...
2021-01-15 16:12:44,927 DEBUG [c.c.a.AlertManagerImpl] (CapacityChecker:ctx-a2a7f3f1) (logid:f7e0a4c5) Done running Capacity Checker ...
```
If there are 100 hosts, the total time will be reduced from 100+ seconds to around 10 seconds.
2021-02-04 14:43:57 +05:30
Daan Hoogland
66d49c5c0d
Merge release branch 4.14 to 4.15
...
* 4.14:
server: prevent update vm read-only details (#4629 )
2021-02-02 09:16:34 +00:00
Abhishek Kumar
05301b1e6a
server: prevent update vm read-only details ( #4629 )
2021-02-02 08:49:25 +00:00
Daan Hoogland
ff376d8187
Merge release branch 4.15 to master
...
* 4.15:
server: select root disk based on user input during vm import (#4591 )
kvm: Use Q35 chipset for UEFI x86_64 (#4576 )
server: fix wrong error message when create isolated network without SourceNat (#4624 )
server: add possibility to scale vm to current customer offerings (#4622 )
server: keep networks order and ips while move a vm with multiple networks (#4602 )
server: throw exception when update vm nic on L2 network (#4625 )
doc: fix typo in install notes (#4633 )
2021-02-01 09:58:52 +00:00
Daan Hoogland
b6b778f003
Merge release branch 4.14 to 4.15
...
* 4.14:
server: select root disk based on user input during vm import (#4591 )
kvm: Use Q35 chipset for UEFI x86_64 (#4576 )
server: fix wrong error message when create isolated network without SourceNat (#4624 )
server: add possibility to scale vm to current customer offerings (#4622 )
server: keep networks order and ips while move a vm with multiple networks (#4602 )
server: throw exception when update vm nic on L2 network (#4625 )
doc: fix typo in install notes (#4633 )
2021-02-01 09:57:35 +00:00
Abhishek Kumar
9b45ec275a
server: select root disk based on user input during vm import ( #4591 )
...
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2021-02-01 09:55:09 +00:00
Wei Zhou
a44fb11a02
server: add possibility to scale vm to current customer offerings ( #4622 )
...
We can use cloudmonkey to scale a vm with dynamic offering, to same offering but with different cpunumber or memory.
Enable it on UI to improve user experience.
2021-02-01 14:14:48 +05:30
Wei Zhou
1913c6854e
server: keep networks order and ips while move a vm with multiple networks ( #4602 )
...
This PR fixes an issue when move a vm from an account to another account.
Steps to reproduce the issue
(1) create a vm with multiple shared networks (in advanced zone, or advanced zone with security groups)
(2) create another account (in same domain who can also access the shared networks)
(3) move vm to new account, with a list of networkid
expected result: the vm has nics on the networks in same order as specified in API request, and nics have the same ips as before actual result: network order is not same as specified, ips are changed.
2021-02-01 14:14:20 +05:30
Wei Zhou
890e84777c
server: throw exception when update vm nic on L2 network ( #4625 )
...
without this change
```
root@mgt01:~# cmk update vmnicip nicid=afab73cb-f4f4-490f-a524-365edef432b7
{
"accountid": "a27bffc1-48ee-11eb-8680-069fc4003392",
"cmd": "org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd",
"completed": "2020-12-28T12:55:27+0000",
"created": "2020-12-28T12:55:27+0000",
"jobid": "88af30e0-214b-4379-9c39-49648f998ff6",
"jobprocstatus": 0,
"jobresult": {
"errorcode": 530,
"errortext": "Failed to update ip address on vm NIC. Refer to server logs for details."
},
"jobresultcode": 530,
"jobresulttype": "object",
"jobstatus": 2,
"userid": "a27f45f5-48ee-11eb-8680-069fc4003392"
}
🙈 Error: async API failed for job 88af30e0-214b-4379-9c39-49648f998ff6
```
with this change
```
root@mgt01:~# cmk update vmnicip nicid=22d79189-6754-4dfe-a8c4-0ba21be2ada5
{
"accountid": "044bb5a9-32fd-11eb-b251-06b6e80033a6",
"cmd": "org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd",
"completed": "2020-12-28T12:55:15+0000",
"created": "2020-12-28T12:55:15+0000",
"jobid": "f4ccb545-0e47-4e9c-b562-b0e6cf52ddd7",
"jobprocstatus": 0,
"jobresult": {
"errorcode": 431,
"errortext": "UpdateVmNicIpCmd is not supported in L2 network"
},
"jobresultcode": 530,
"jobresulttype": "object",
"jobstatus": 2,
"userid": "044cc6e3-32fd-11eb-b251-06b6e80033a6"
}
🙈 Error: async API failed for job f4ccb545-0e47-4e9c-b562-b0e6cf52ddd7
```
2021-02-01 14:13:50 +05:30
Rohit Yadav
be5e61a2f3
Merge remote-tracking branch 'origin/4.15'
2021-01-28 16:45:49 +05:30
Rohit Yadav
1bccb954c4
Fix merge issue from 74bae56642
...
Fixes fwd merge issue from origin/4.14
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-28 16:43:59 +05:30
Rohit Yadav
e6fef05f30
Merge remote-tracking branch 'origin/4.15'
2021-01-28 14:25:40 +05:30
Rohit Yadav
74bae56642
Merge remote-tracking branch 'origin/4.14' into 4.15
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-28 14:24:25 +05:30
Wei Zhou
182cea79b5
server: fix cannot create vm if another vm with same name has been added and removed on the network ( #4600 )
...
* server: fix cannot create vm if another vm with same name has been added and removed on the network
steps to reproduce the issue
(1) create vm-1 on network-1
(2) add vm-1 to network-2
(3) remove vm-1 from network-2
(4) create another vm with same name vm-1 on network-2
expected result: operation succeed
actual result: operation failed.
* #4600 : add back a removed line
2021-01-27 19:28:52 +05:30
slavkap
4a779deab2
server: fix on changeServiceForVirtualMachine when updating read/write rate ( #4491 )
...
When changing the service offering of a VM the disk_offering_id is not
updated in volumes DB table and VM could not start
Fixes #4125
2021-01-27 19:27:34 +05:30
Rohit Yadav
b482da8c91
Updating pom.xml version numbers for release 4.15.1.0-SNAPSHOT
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-01-11 13:58:30 +05:30
Daan Hoogland
280c13a4bb
Updating pom.xml version numbers for release 4.15.0.0
...
Signed-off-by: Daan Hoogland <dahn@onecht.net>
2021-01-05 15:51:02 +00:00
Daan Hoogland
81e9e6809b
Updating pom.xml version numbers for release 4.15.1.0-SNAPSHOT
...
Signed-off-by: Daan Hoogland <dahn@onecht.net>
2021-01-04 11:34:46 +00:00
Daan Hoogland
e26202f23e
Updating pom.xml version numbers for release 4.16.0.0-SNAPSHOT
...
Signed-off-by: Daan Hoogland <dahn@onecht.net>
2021-01-04 11:32:10 +00:00
Daan Hoogland
01b3e361c7
Updating pom.xml version numbers for release 4.15.0.0
...
Signed-off-by: Daan Hoogland <dahn@onecht.net>
2020-12-23 16:32:25 +00:00
Nicolas Vazquez
4617be4583
vmware: Fix template upload from local ( #4555 )
...
Update the guest OS from the OVF file after upload is completed
This PR fixes the template upload from local on VMware
Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
2020-12-23 15:13:39 +05:30
DK101010
874c7be67b
server: add conditions for custom offerings ( #4540 )
...
Bug/unmanaged ingest exception.
Co-authored-by: Dirk Klahre <Dirk.Klahre@Itelligence.de>
2020-12-21 12:38:38 +05:30
davidjumani
2f78b8867f
template: Ensuring template is cross zone if type changed to system ( #4522 )
2020-12-14 08:59:40 +00:00
Alexandru Bagu
fdb2ee3165
storage: Fix hypervisor type cast to string ( #4516 )
...
This PR addresses an error that appears when you try to add a new host. I don't even understand why there was a cast to String in the first place. I will assume some classes send HypervisorType and some send a string (empty or otherwise). Shouldn't this be addressed to use the same type everywhere? With this fix adding a new xenserver host works fine.
Co-authored-by: dahn <daan.hoogland@gmail.com>
2020-12-14 11:56:44 +05:30
davidjumani
28c67d267b
listphysicalnetworks: Honouring keyword parameter ( #4511 )
2020-12-11 13:14:41 +05:30
Pearl Dsilva
edd5f23e8b
Fix NPE when Volume exists on secondary store but doesn't have a download URL ( #4530 )
...
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
2020-12-11 13:12:39 +05:30
Wei Zhou
93f3d35207
kvm: FIX cpucorespersocket is not working on KVM ( #4497 )
2020-12-09 15:07:51 +01:00
Andrija Panic
e5c29c392e
Update log output for FirstFitPlanner ( #4515 )
2020-12-07 11:50:20 +01:00
Daan Hoogland
fb1e903532
Merge branch '4.14'
2020-12-03 15:11:59 +01:00
Wei Zhou
03e65a1266
vpc vr: plugin nics by this order: public/private/guest
2020-12-03 15:10:43 +01:00
Wei Zhou
627070c5f8
vpc vr: fix Conflicting device id on private gw nic
2020-12-03 15:10:43 +01:00
Rohit Yadav
5bea0a1ea4
Merge remote-tracking branch 'origin/4.14'
2020-12-02 14:29:34 +05:30
davidjumani
93ff156222
Adding zone name to physicalnetworkresponse ( #4510 )
2020-12-02 14:01:22 +05:30
davidjumani
7f5eb6463e
Disallowing udp for lb rules for haproxy ( #4501 )
...
* Disallowing udp for lb rules
* Revert "Disallowing udp for lb rules"
This reverts commit a5f43014c9 .
* Adding check for udp rules for haproxy
* Adding defensive check
2020-12-02 13:59:03 +05:30
Rohit Yadav
df07e27921
Merge remote-tracking branch 'origin/4.14'
2020-12-01 14:04:53 +05:30
davidjumani
afebfd5bbf
Adding cpuallocated percentage and value to host and hostsformigrationresponse ( #4499 )
...
* Adding cpuallocatedwithoverprovisoning to hostresponse and hostsformigrationresponse
* Adding cpuallocatedpercentage and cpuallocatedvalue
2020-12-01 13:56:19 +05:30
davidjumani
2eef0e5af3
Fix hosts for migration count ( #4500 )
...
* Fixing count for findHostsForMigration
* Changing list name
2020-11-25 15:34:23 +05:30
Daan Hoogland
e9ce381c56
Merge branch '4.14'
2020-11-25 09:04:53 +01:00
Wei Zhou
8fb2efee1c
bugfix #6 vpc vr: Add iptables rules for ACL of private gateway
2020-11-25 08:40:16 +01:00
Wei Zhou
66d3e1f6d4
Revert "Add private gateway IP to router initialization config"
...
This reverts commit 65cb22216a .
2020-11-25 08:40:16 +01:00
Wei Zhou
51f3756030
bugfix #4 vpc vr: Do NOT send Nic plug in/out command to Stopped/Stopping VR
2020-11-25 08:40:16 +01:00
Wei Zhou
655ed10655
bugfix #2 vpc vr: fix issue if static nat is disabled but still other IP used by lb/pf
2020-11-25 08:40:16 +01:00
Wei Zhou
f5ab87c153
bugfix #3 apply ip dessociation before unplugging a nic so ip is marked as add:false in ips.json
2020-11-25 08:40:16 +01:00
Wei Zhou
6491a69d63
bugfix #2 vpc: Fix remove first public ip will remove all ips on the nic
2020-11-25 08:40:16 +01:00
Rakesh
beb1edcdbc
api: Add vpcid in usage network response ( #4361 )
...
* Add vpcid in usage network response
Currently vpcid is displayed in listUsageNetworks response.
Add the vpcid so that we can see to which vpc, the network belongs
* use new function to get removed
2020-11-23 14:02:25 +05:30
Pearl Dsilva
aa67f9c6e2
api: Add event for VM recovery operation ( #4486 )
...
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
2020-11-21 02:21:02 +05:30
Rakesh
0a2a54aeba
api: Display VPC name to which the network belongs to ( #4483 )
...
* Display VPC name to which the network belongs to
If an isolated network is created in VPC then display
its name along with vpc id which is used for UI
* Change description
2020-11-21 02:20:40 +05:30
Rohit Yadav
d3f18ef71c
Merge remote-tracking branch 'origin/4.14'
2020-11-20 21:12:20 +05:30
Wei Zhou
75fdb07387
vpc: fix ips on wrong interfaces after rebooting vpc vrs ( #4467 )
...
* vpc: fix ips on wrong interfaces after rebooting vpc vrs
* #4467 : Rename to updateNicWithDeviceId
* CLSTACK-8923 vr: Force a restart of keepalived if conntrackd is not running or configuration has changed
2020-11-20 21:02:53 +05:30
Daan Hoogland
492962238e
Merge branch '4.14'
2020-11-20 11:43:20 +00:00
davidjumani
d79d24261a
Adding memoryallocatedpercentage & memoryallocatedbytes to HostsResponse & HostsForMigrationResponse ( #4478 )
2020-11-20 11:27:47 +00:00
Rakesh
735b6de296
Cleanup download urls when SSVM destroyed ( #4078 )
...
Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
2020-11-18 14:01:31 +01:00
Spaceman1984
acee15a530
Moved dedicated hosts to the end of the resultset when selecting an e… ( #4428 )
2020-11-18 12:07:14 +00:00
Rakesh
2f5ed9eee4
Consider other conditions while listing templates with id ( #4452 )
2020-11-17 20:03:49 +01:00
Pearl Dsilva
7f408ec967
Fix: Listing projects comprising of only the user's on listAll=true ( #4469 )
...
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
2020-11-16 13:37:11 +01:00
Pearl Dsilva
fb78fb24c7
fix login issue post upgrade ( #4465 )
...
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
2020-11-12 13:09:25 +00:00
Gabriel Beims Bräscher
823111ddb7
Create Event in case of OOBM failure ( #4418 )
2020-11-10 21:48:37 +01:00
Olivier Lemasle
5f8289ffe9
Re-enable IP address usage hiding ( #4327 )
2020-11-07 10:42:44 +01:00
Daan Hoogland
a8b4d9d0e1
Merge branch '4.14'
2020-11-06 17:25:13 +01:00
Spaceman1984
9a253c473b
Preventing port 53 being added as lb rule when dns service is availab… ( #4442 )
2020-11-06 16:27:27 +01:00
Spaceman1984
18e837516a
Hiding system reserved IP addresses ( #4408 )
...
This PR removes system reserved IP addresses from the options of acquiring IP addresses. Choosing any reserved IP address results in an error. The IP addresses should not have been displayed in the first place.
Fixes : #4310
2020-11-02 14:10:16 +05:30
Daan Hoogland
3ab43e2edb
Merge branch '4.14'
2020-10-30 15:58:12 +00:00
Gabriel Beims Bräscher
b3a1cb41c8
Allow to configure root disk size via Service Offering (diskoffering of type Service). ( #4341 )
2020-10-30 15:56:11 +00:00
Daan Hoogland
46ead2df71
Merge branch '4.13' into 4.14
2020-10-30 15:54:26 +00:00
slavkap
8afb451c1c
fix NPE in volumes statistics ( #4388 )
2020-10-30 15:53:05 +00:00
Daan Hoogland
2b220b5624
Merge branch '4.14'
2020-10-30 10:05:24 +01:00
Daan Hoogland
b0d300c681
Merge branch '4.13' into 4.14
2020-10-30 10:03:56 +01:00
Wei Zhou
dfd59321b1
server: fix format error with memorywithoverprovisioning in list hosts response ( #4435 )
2020-10-30 09:38:59 +01:00
Gabriel Beims Bräscher
6f559d285a
Prevent deploying IPv6 network if Zone has no IPv6 DNS configured ( #4177 )
2020-10-30 09:07:20 +01:00
Rakesh
4cd9886a89
FIX s2svpn connection stuck on Pending state ( #4429 )
...
When we try to reset the site 2 site vpn connection while
the VR's are being restarted, the connection enters the
PENDING state and we cant reset the connection.
So change the state from PENDING to disconnected.
Steps to reproduce the issue
1.create a VPC with a tier (vpc-001-001 in vpc-001), create a vm
2.create a VPC with a tier (vpc-002-001 in vpc-002) with different cidr, create a vm
3.create custom gateway for both vpn
4.enable site-to-site vpn on both vpn, and add vpn connection to each other. both should be "Connected"
5.restart vpc-001 with cleanup and monitor it
6.when the first router is destroyed, go to site-to-site vpn page and reset vpn connection.
7.we will get an error "Resource [DataCenter:1] is unreachable: Unable to apply site 2 site VPN configuration, virtual router is not in the right state"
and vpn connection is stuck at Pending
8.When vpc is restarted, go to site-to-site vpn page and reset vpn connection.
Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
2020-10-29 16:20:28 +05:30
Daan Hoogland
2d1989fd76
Merge branch '4.14'
2020-10-29 09:56:32 +01:00
Rakesh
8b994113ff
Failed to update host password if username/password is not saved in db ( #4359 )
2020-10-29 09:43:05 +01:00
Rakesh
b266c757d2
Unable to create snapshot from vm snapshot ( #4432 )
...
Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
2020-10-29 08:53:33 +01:00
Rohit Yadav
6de8e012e8
Merge remote-tracking branch 'origin/4.14'
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2020-10-28 15:56:14 +05:30
Wei Zhou
dbb66850b2
server: update template to another template type ( #3945 )
...
this contains other changes
(1) add isrouting field for vm templates on UI
(2) show register URL of template/iso on UI
(3) set 'Bootable' field to changable for existing ISO
2020-10-28 15:41:36 +05:30
Daan Hoogland
c1fb6b4cb9
Merge branch '4.14'
2020-10-28 10:28:10 +01:00
Rakesh
e1dd07a30c
Ability to put a server in Down state to maintenance ( #4363 )
2020-10-28 09:59:43 +01:00
Rakesh
b9f15fd159
Remove cpu core from op_host_capacity when host is deleted ( #4367 )
...
When a host is put into maintenance mode or its deleted from
cloudstack then delete its entries from op_host_capacity table
2020-10-28 09:41:14 +01:00
nvazquez
a831ad1252
Fix detach volume on stopped Vms
2020-10-25 00:33:46 -03:00
nvazquez
d119a5d19f
Merge branch 'master' into ovfprops-and-vsphere-adv-together
2020-10-24 13:02:31 -03:00
davidjumani
81c524e9f3
Fixing count for findHostsForMigration ( #4375 )
2020-10-24 13:08:45 +02:00
Gabriel Beims Bräscher
f4f35a8995
Enhance UpdateDiskOfferingCmd ( #4409 )
2020-10-24 13:00:11 +02:00
nvazquez
0c6900e3bd
Do not fail if osTypeId parameter or rootdiskcontroller/nicadapter details are set on template registration
2020-10-23 10:39:21 -03:00
Rakesh
71c5dbcf49
server: Update use_bytes of storage pools ( #4360 )
...
Update the used_bytes for all default primary storage pools
Also get used_bytes of storage pool from database instead of
memory
2020-10-21 19:18:03 +02:00
Pearl Dsilva
963d603ede
Fix usage record count ( #4193 )
...
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
2020-10-21 19:15:34 +02:00
nvazquez
68d51cb333
Remove unused code
2020-10-20 19:57:42 -03:00
nvazquez
f1f490b151
Fix restore VM workflow - clone and replace existing VM instead of cloning and moving disks
2020-10-20 19:47:27 -03:00
Wei Zhou
2661ce81d4
server: add global configuration for default router service offering ( #3946 )
2020-10-20 15:17:00 +02:00
nvazquez
6e6d6d60b7
Fix template registration
2020-10-19 15:05:58 +05:30
davidjumani
6b715ecb53
Throwing error if boot type or boot mode specified while deploying VMs on VMware
2020-10-19 15:05:58 +05:30
nvazquez
950292dcb0
Ensure deploy as is disks get allocated to the same storage pool
2020-10-19 15:05:58 +05:30
Harikrishna Patnala
d81f050918
Check storage policy of disk offering if it suitable for storage pool while using migratevirtualmachinewithvolume API
2020-10-19 15:05:58 +05:30
Harikrishna Patnala
5fdabc1cb0
Added storage policy details to disk while creating disk and restricted migration of volumes to storage pools which are not storage policy compliance
2020-10-19 15:05:58 +05:30
Harikrishna Patnala
1e4e5cf4c0
Disk offering response: added vsphere storage policy to response if exists
2020-10-19 15:05:58 +05:30
Harikrishna Patnala
a54436b790
service offering response: added vsphere storage policy to response if exists
2020-10-19 15:05:58 +05:30
nvazquez
dc4f913afa
Fix restrictions on attach and restore VMs
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
3063b6cae5
Fixed import VM for NFS storage which added as presetup.
...
Previous code assumes the NFS storage is always added by CloudStack, but NFS can also be added as presetup storagepool.
2020-10-19 15:05:57 +05:30
nvazquez
d69283a013
Fix reset/restore VM
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
388a9c2c6d
Reconcile chaininfo after attaching volume
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
9b923ba9dc
Handle detach volume of datastore cluster if the volume name has changed at vCenter level and reconsile the chaininfo
2020-10-19 15:05:57 +05:30
nvazquez
94bebe8792
Revert back deploy as is column on templates but keep it as default for new templates
2020-10-19 15:05:57 +05:30
nvazquez
08c0b07b59
Remove deployasis parameter from register template API
2020-10-19 15:05:57 +05:30
nvazquez
9b51a706db
Set deploy-as-is to default on VMware
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
9543fd6e6a
Fix startcommand on Datastore cluster when the volume datastore in CloudStack mismatches with vCenter datastore. Volume could have migrated with in datastore cluster which caused the mismatch
...
Fix dettach volume when volume is not on CloudStack intended datastore
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
1638d7243c
Get allocated size for datastoreCluster from its child datastores to show the accumalated value for Datastore cluster
2020-10-19 15:05:57 +05:30
nvazquez
32d85b0fa2
Display storage on logging when not deploy-as-is and guest OS small refactor
2020-10-19 15:05:57 +05:30
nvazquez
41354227e2
Handle guest OS read from deploy-as-is OVF descriptor
2020-10-19 15:05:57 +05:30
nvazquez
0f5a6ee589
Remove deploy as-is details when removing templates or vms
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
33ae2afc89
Removed few duplicate imports during rebase with master
2020-10-19 15:05:57 +05:30
nvazquez
f73830acbb
Refactor deploy as is constants
2020-10-19 15:05:57 +05:30
nvazquez
bb4ce2118d
Add new template and vm deploy as is details table and refactor
2020-10-19 15:05:57 +05:30
Harikrishna Patnala
bc8ad68434
prepare for maintenance of storage pool of type datastore cluster should not try to cancel the maintenance upon failure, rather keep it in error in maintenance state
2020-10-19 15:05:56 +05:30
nvazquez
d864e9dc39
[VMware] Full OVF properties support
2020-10-19 15:05:56 +05:30
Harikrishna Patnala
04d400f055
Handle import unmanaged VM into CloudStack to support any type of datastore
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
c11dc337be
Set back the datastore cluster state to UP upon on failure in prepare maintenance
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
19745ea049
Fix enable primary datastore maintenance command seriliaztion on it
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
38b9618e4b
Fix destination hostname for stopped VMs in case of reset ssh keys
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
c16b40e337
Fix list volumes cmd and update volume cmd to accept datastore cluster as storgeid
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
d2d9b3c72f
Fix proper error message on revert volume snapshot operation in case of any hypervisor other than KVM
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
97ae846c1e
Removed unused imports caused due to some merge conflicts
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
85d440d973
Fix list volume response to list datastore cluster name and id instead of child datastore
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
d48cab75ab
Fix findstoragepoolsformigration cmd not to list the parent datastore cluster as suitable storagepool
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
ab171adfdd
Handle failure case of putting datastore cluster on maintenance mode
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
70e19b28e6
fix some more test cases
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
48dd0dae07
Adding Storagepolicies to the service offering for root disks
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
1244fca367
Handle listsystemvms cmd in case of datastore clusters
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
61dd85876b
Fix migrate vm and volume APIs in case if datastore cluster
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
fc05d3168f
Fix ListVMsCmd with storageid as datastore cluster
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
e700ad72e7
Fix prepare template API incase of Datastore cluster
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
812d42ebaa
Fix updateconfiguration API to add settings to child datastores in case of datastore clusters
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
7932f63390
Add checks before actual deletion of datastore cluster
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
4b10c61167
Datastore cluster maintenance failure case handling.
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
873f9dd9ac
Datastore Clusters operations on putting into maintenance mode, update storage pool with tags, cancelling mantenance mode and deleting storage pool
2020-10-19 14:57:16 +05:30
Harikrishna Patnala
c9c38c0f37
Handle datastore clusters in list storage pools to list only parent not the children in the Datastore cluster
2020-10-19 14:57:15 +05:30
Harikrishna Patnala
b4a23ea5f6
Allocation logic to skip datastore cluster and consider only storagepools inside the datastore cluster
2020-10-19 14:57:15 +05:30
Harikrishna Patnala
6df819028e
UI changes and accept any type of datastore as presetup in vmware
2020-10-19 14:57:15 +05:30
Harikrishna Patnala
851b562e04
Unit test fix
2020-10-19 14:57:15 +05:30
Harikrishna Patnala
487bb03c4d
Added Storagepolicy while creating diskoffering. CreateDiskOffering API now takes storagepolicy as a parameter with UUID value
2020-10-19 14:57:15 +05:30
Harikrishna Patnala
fb0a96e7fb
Check if datastore is complaince with the storagepolicy provided in the disk offering.
...
Added corresponding manager objects from PBM sdk to do the job.
Made dao layer changes to read the storage policy in diskoffering
2020-10-19 14:57:15 +05:30
Rodrigo D. Lopez
c222d0bf60
enable update tags on disk offerings ( #4194 )
2020-10-16 09:22:42 +02:00