35348 Commits

Author SHA1 Message Date
Craig Squire
dbc2032077
server: Check for null poolid (#6879)
Extract retrieveDatastore method

Add unit test for null poolId

Fixes #6878

Co-authored-by: Craig Squire <craig.squire@ticketmaster.com>
Co-authored-by: Stephan Krug <stekrug@icloud.com>
2022-11-30 12:45:35 +05:30
Abhishek Kumar
6c436ec90e
server: fix domain shared public template check (#6916)
Fixes #6885

Fixes the incorrect inverted check.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-11-25 14:19:16 +05:30
Abhishek Kumar
c8d27765d8
orchestration: fix diskoffering for vr rootdisk (#6853)
Fixes incorrect call of using service offering's ID while trying to retrieve linked disk offering.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-11-24 15:08:20 +05:30
Abhishek Kumar
fca5715db1
ui: fix guest traffic vlan input (#6895)
Fixes VLAN input while adding guest traffic type for the physical network in the zone wizard.
When adding a zone physical network is not updated with the guest traffic vlan, resulting in network, vm deployments failures.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-11-23 19:03:52 +05:30
Wei Zhou
296035d9a5
XenServer/XCP-ng: fix vm memory usage is always 99.9x% (#6852)
According to https://docs.citrix.com/en-us/citrix-hypervisor/monitor-performance.html
The metrics "memory_internal_free" is already in KiB, no need to convert.

"Memory used as reported by the guest agent (KiB). Enabled by default"
2022-11-02 09:36:16 +01:00
Nicolas Vazquez
79e5e7fe36
UI: Fix Volume Snapshot from user VM as admin (#6824) 2022-10-13 08:56:35 +02:00
Hoang Nguyen
6a0c9079ed
ui: fixes ui style on Edge (#6791)
Fixes #6787
2022-10-04 10:55:03 +05:30
Hoang Nguyen
b69292c376
ui: disable getResource in login page (#6788)
Fixes #6731
2022-10-04 10:53:39 +05:30
dahn
89d9a70dce
server: Allow template names upto 255 chars (#6768)
* Allow template names upto 255 chars

* Update error message

* externalise name length in constant

Fixes: #6766
2022-09-30 10:46:50 +05:30
Abhishek Kumar
432a03fb02
api: fix event type and description for createTag (#6779)
Fixes #6777

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-09-29 11:10:30 +05:30
Abhishek Kumar
64316d513c debian: fix change log
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-09-26 13:56:37 +05:30
Abhishek Kumar
0e6ced3052 Tagging release 4.17.1.0 on branch 875ea5bf15.
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEZVGBBkc6CdevJrOEpwvS6qdOKGYFAmMtoGwACgkQpwvS6qdO
 KGYfYhAAp4THyLrFTSsqpPTInNDNoF0jgiF2zFxT1P4GvW5BfmrQIof5BxV9JcVf
 sgafjrKj9innP4I9RvI9ttDeFFNGHqcEOelDuj9oLZXaPjffVaBHDkIM2yvjFT8n
 zo9DFRHGRo1enfC59yD/dYX0kjDEzjScXPofxRYjDp6HiVj3LVv2xz9eAruSK0t7
 UTQcI8NZgE0jiT9kRr+Eu7a74AuJsCVe+Id8E7Dnr4plROtPxM5ArkBzkFFTfwO9
 +T/aR+zmxlqVaq6QliDXQTRrwgwlZjlfnM3SgVJ3N35s2hplxtIzz+n9/M6yRyBX
 hMjiz1wvdu5ZYPfzCfKkcwT8WZPHSl01q3aT2AVMgg0UBLDfyzHgQ0Am3GelQedc
 urX5T6pcCI+/Lcbgl+EIxL3v62xl+Ec0+YyYkMLwA4Wo/l/B0+u7Hy582riSWX9g
 C5V44wzhuTm9/WNqTTlzjMPNsnFtb0l8gIyNJ5HsfeCWPC0fYGtKiTktH7SIuXp0
 /9JnVGVnwcxeI4RMFB+aaYY7ZElDActcBVDerTSYTvnOu+bcWbtygvpo1b8eyvL+
 /+EcfpXatSOI2I/GCmqEmviBciJkNVbssm4BbZWM384g0vS7zUUkrz2ip896J6pK
 eZd86ncVEZ0ZMP5vYICgMKEl3njV1b3eygGkA1yj/H30iifPi8I=
 =OlxM
 -----END PGP SIGNATURE-----

Merge tag '4.17.1.0' into 4.17

Tagging release 4.17.1.0 on branch 875ea5bf15.
2022-09-26 13:14:22 +05:30
Abhishek Kumar
974369e3d4 Updating pom.xml version numbers for release 4.17.1.0
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
4.17.1.0
2022-09-23 17:32:43 +05:30
Rohit Yadav
875ea5bf15 DatabaseUpgradeChecker: add upgrade path from 4.17.0.1 to 4.17.1.0 (#6759)
Fixes DB upgrade for 4.17.0.1 to 4.17.1.0
2022-09-23 17:19:52 +05:30
Rohit Yadav
dcffdc1c0b
DatabaseUpgradeChecker: add upgrade path from 4.17.0.1 to 4.17.1.0 (#6759)
Fixes DB upgrade for 4.17.0.1 to 4.17.1.0
2022-09-23 17:12:18 +05:30
Rohit Yadav
5669888c16 mvn: fix build and use the 4.17.2.0-SNAPSHOT in version
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-09-21 13:41:21 +05:30
Abhishek Kumar
d724a9d15c Updating pom.xml version numbers for release 4.17.2.0-SNAPSHOT
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-09-19 16:21:35 +05:30
Abhishek Kumar
350ef38e1c Updating pom.xml version numbers for release 4.17.1.0
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-09-14 12:58:03 +05:30
hooklee2000
c3d6f42dd9
UI fix Theme text color not bind navTextColorPick and reset button (#6721)
UI fix Theme text color not bind navTextColorPick fix #6720
2022-09-14 12:56:58 +05:30
Abhishek Kumar
fa34d68766 Merge remote-tracking branch 'apache/4.16' into 4.17 2022-09-13 14:15:38 +05:30
mrog
77df050160
Reset unusable db connections (#6725)
When the management service detects a broken database connection, it didn't do anything about it. It already has code to reset the connection, but that doesn't get used. This change causes the connection to be reset after it's found to be unusable.

Fixes #6724 (see issue for repro steps)
2022-09-13 14:12:53 +05:30
Abhishek Kumar
e8b249f11d
server: fix netowork upgrade for IPv6 (#6729)
Fixes network update for IPv6 offering upgrade
2022-09-13 14:11:15 +05:30
dahn
a45a4a5218
upgrade a backported patch (#6728)
This PR tries to fix a problem with a privately backported feature. The columns added for the feature are not added idem potent so people can not backport them. I propose that all DB alteration from here on in will be done with the IDEM_POTENT_...() set of stored procedures that we have to prevent these kind of issues for users.
2022-09-13 10:33:36 +05:30
Wei Zhou
20950e0e1d
jacoco: fix no coverage result in server and some other modules (#6730)
According to https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html
we need to add "@{argLine}" to argLine if it exists in pom.xml
2022-09-12 21:27:55 +05:30
Abhishek Kumar
d3bfdacffd
systemvm,vr: disable radvd for non-applicable VRs (#6706)
Fixes #6700

When VR is a DHCP server system VM type then stop radvd.
2022-09-07 13:42:57 +05:30
David Jumani
f342cf300e
ui: Fix netowrkid not passed in deployvm (#6711)
Fixes the issue of the networkid not being passed when deploying a VM
This is caused when the first template selected is a deploy-as-is one and the nicToNetworkSelection not being reset when selecting a new template
2022-09-07 12:25:23 +05:30
Wei Zhou
fe16be0408
UI: fix bulk delete project with cleanup (#6708) 2022-09-07 11:13:45 +05:30
Abhishek Kumar
b831f23f5f
kvm: add libvirt host capabilities method for cpu speed retrieval (#6696)
Fixes #6680

While finding CPU speed for KVM host following methods will be used in the same order:
1. lscpu
2. value in /sys/devices/system/cpu/cpu0/cpufreq/base_frequency
3. virsh capabilities
4. libvirt nodeinfo

This will allow correct value for AMD based hosts when first two methods doesn't give a value
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-09-06 16:45:05 +05:30
Abhishek Kumar
f18eebf2e9
server: fix check for ipv6 range overlap (#6705)
Fixes incorrect check for verifying IPv6 ranges overlap. This causes the inability to add multiple IPv6 ranges.
2022-09-06 16:43:20 +05:30
Abhishek Kumar
1d20fcfc6e
ui: fix set reservation toggle in add public ip range (#6707)
Fixes 'Set reservation' toggle not getting updated on value change.
2022-09-06 14:05:01 +05:30
Daniel Augusto Veronezi Salvador
e76df16d9f
Ignore opensaml dependencies (#6693)
Commit f27de63 introduced a new version of opensaml. That version brought jcl-over-slf4j-1.7.5.jar, jul-to-slf4j-1.7.5.jar, and log4j-over-slf4j-1.7.5.jar as dependencies, which causes Agents and Usages to not generate logs.
In order to make the logs to work again, this PR intends to exclude these dependencies while building the packages.
2022-09-05 17:38:45 +05:30
Abhishek Kumar
c290cbcb71
server: fix scale vm with compute offering having same disk offering (#6688)
Fixes #6679

Fixes behaviour when the VM is scaled to a new compute offering which has the same disk offering associated as the earlier compute offering.
2022-09-01 12:28:39 +05:30
Abhishek Kumar
a21efe75df
vmware: fix vm snapshot with datastore cluster, drs (#6643)
Fixes #6595
Sync volume datastore, path and chaininfo info while calculating snapshot chain size after snapshot operation is complete from vCenter.
2022-08-31 16:00:14 +05:30
Hoang Nguyen
3170338d14
ui: remove incorrect API calls when initializing the deploy VM page (#6687) 2022-08-30 16:06:34 +05:30
Abhishek Kumar
7115e35965
ui: fix update network update in sequence param (#6675)
Fixes wrong param used in the update network form
2022-08-26 14:21:13 +05:30
Abhishek Kumar
7ddebd3b2c
server: fix error when dedicating guest vlan range for physical nw without vlan range (#6655)
Fixes #6648
If any of the VLAN from the given range is not found in the database (cloud.op_dc_vnet_alloc) then an InvalidParameterValueException will be thrown.
Also, refactors and fixes account check.
2022-08-25 22:27:44 +05:30
Hoang Nguyen
c8494354ca
UI: Fixes suffix icon on project selector not work (#6671)
* fix the animation suffix icon of select

* move style code
2022-08-25 22:14:31 +05:30
Abhishek Kumar
cd37b135a0
vpc: prevent sourcenat ip disassociation for an active vpc (#6664)
Fixes #6663

Source NAT IP should not be disassociated from an active vpc
2022-08-24 13:23:01 +05:30
Abhishek Kumar
814dbbaf86
cks: fix k8s cluster deployment with host tagged offering (#6658)
Fixes #6657

Fixes k8s cluster node VM deployment when the underlying hypervisor host has multiple host tags and the service offering used for the cluster deployment does not contain all of those host tags.
2022-08-22 14:39:36 +05:30
Pearl Dsilva
9847918360
api, vmware: allow VM setting/detail for disk controller (root/data) to override template details (#6276)
This PR allows VM details wrt root & data disk controller passed via details parameter of deployVMCmd to take precedence over template settings, i.e., the order of precedence for determining VM disk controller is : VM details passed during deployment > template settings > global setting vmware.root.disk.controller.
2022-08-22 13:27:07 +05:30
Abhishek Kumar
44e600e2fc
server: remove resource tags for disassociated public ip (#6642)
Fixes #6620
Remove resource tags when public IP is disassociated
2022-08-19 18:28:51 +05:30
Nicolas Vazquez
1fd1f0626a
Fix SQL query for uuid wrong format (#6654)
Fixes: #6652
2022-08-19 18:27:11 +05:30
Abhishek Kumar
010b47f82e
server: fix ipv6 network deployment with separate guest nw (#6588)
Fixes #6584

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-08-17 15:49:01 +05:30
Abhishek Kumar
052a34c1fb
ui: fix resource tags visibility in infocard (#6650)
Fixes #6649

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-08-17 15:47:31 +05:30
Abhishek Kumar
547041646a
server: fix delete resource tag permission (#6634)
Fixes #6623
This PR fixes resource tag deletion behaviour. The permission check should be done only for the tags that are passed in the API call instead of checking for all the tags for the resource.
2022-08-17 11:57:44 +05:30
Abhishek Kumar
780bb2474c
ui: fix gputype in add compute offering (#6646)
Fixes gpuType value in the add compute offering form during submit
2022-08-17 11:53:22 +05:30
Hoang Nguyen
ef2997c4a8
ui: fix the warning in detail tab (#6645)
This PR for fixes the warning in detail tab
2022-08-16 16:41:19 +05:30
Abhishek Kumar
770df60bbe
vmware,cks: fix attachiso failure with vmware drs (#6625)
Fixes #4314

Failure in attaching k8s ISO is seen when VMware DRS is enabled. Log reported VM is not found. This fix tries to find VM on peer hosts when the VM is not found on the given host.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-08-16 16:17:13 +05:30
Abhishek Kumar
a5716d964a
ui: reset disksize param on offering change in scale vm (#6636)
Fixes #6627

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-08-16 11:44:32 +05:30
Gabriel Beims Bräscher
9410a70454
schema: increase size of column 'value' at table 'account_details' (#6080)
This PR increases the column value at table account_details from 255 chars to 4096, matching with the value allowed in the API command for updating the configuration of accounts.

When the value length is bigger than 255, the following log is presented right after the updateConfiguration API call:

2022-03-09 17:50:24,627 ERROR [c.c.a.ApiServer] (qtp30578394-234766:ctx-cad18b45 ctx-32e954dd) (logid:0948e203) unhandled exception executing api command: [Ljava.lang.String;@117c6ba7
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.cj.jdbc.ClientPreparedStatement: INSERT INTO account_details (account_details.account_id, account_details.name, account_details.value) VALUES (123, _binary'api.allowed.source.cidr.list', _binary'<huge binary>')
	at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1450)
	at jdk.internal.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	....
	....
	....
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'value' at row 1
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:104)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1092)
	... 83 more


Co-authored-by: Bart Meyers <bart.meyers@cldin.eu>
2022-08-12 23:42:50 +05:30