35381 Commits

Author SHA1 Message Date
Wei Zhou
fe0e44abe9
UI: display cpu cores and speed instead of cputotal by default (#7106) 2023-01-18 13:55:10 +01:00
Wei Zhou
3dc0e499dc
storage: validate disk size range of custom disk offering when resize volume (#7073) 2023-01-18 09:40:43 +01:00
Wei Zhou
4bb43f7879
UI: do not show FW/LB/PF tabs for CKS cluster in advanced network with SG (#7076) 2023-01-12 17:40:26 +01:00
Abhishek Kumar
e5158b29ee
vmware: encode disk path for URL based access (#6989) 2023-01-12 15:20:48 +01:00
Wei Zhou
4d80ea6846
UI: fix diskofferingstrictness is not passed when create compute offering (#7072) 2023-01-12 14:04:09 +01:00
Wei Zhou
1dd064c8a9
server: fix cannot update vm if it uses unconstraint dynamic offering (#7077)
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2023-01-12 13:40:53 +01:00
Wei Zhou
d33d84fa0f
server/UI: fix some issues with network offering details (#7057) 2023-01-11 14:01:28 +01:00
Daan Hoogland
03674ce174 Merge release branch 4.16 to 4.17
* 4.16:
  escapes for injection prtection (#7069)
2023-01-10 11:55:58 +01:00
dahn
dffbc87278
escapes for injection prtection (#7069) 2023-01-10 11:54:51 +01:00
Wei Zhou
76ec980c76
ui: remove max value (8) of maxsnaps because it might be greater than 8 (#7066)
Fixes #7051

The value of "Keep" when create snapshot policy was automatically reset to 8 if the input is greater than 8.
However, the max value of recurring snapshots is determined by global settings snapshot.max.daily / snapshot.max.hourly / snapshot.max.monthly / snapshot.max.weekly, which is 8 by default, but users can input other values greater than 8.
This PR removes this restriction on UI and cloudsack management server will check if the value is valid.
2023-01-09 17:05:10 +05:30
Abhishek Kumar
eb5c8a5a8c
server: correctly list suitable hosts for migration with uefi capability (#7024)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2023-01-09 11:03:10 +01:00
Abhishek Kumar
89d4c7537f
utils: fix human-readable parsing failures (#7008)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2023-01-04 11:34:34 +01:00
Wei Zhou
e8aff6f445
UI: user must specify the start of guest vlan range for advanced zone (#7038) 2023-01-03 15:50:34 +01:00
Abhishek Kumar
d5f0100541
utils: fix NetUtils method to retrieve all IPs for a CIDR (#7026)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-30 07:27:36 +01:00
Rohit Yadav
63bc5a8cae
packaging: consolidate suse15 to el8 (#6995)
- suse15: remove and symlink to centos8
- Use Boolean dependencies to package for EL8 or SUSE15
https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-23 14:40:01 +05:30
Abhishek Kumar
2bb6439793
ui: fix suitable shared network not showing while import (#7016)
In import VM form, shared network is not showing when it is in Setup state which should not be the case.
This PR fixes that.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-23 14:17:54 +05:30
dahn
08881d69c7
checksums for new macchinina ova template (#7001) 2022-12-21 08:50:32 +01:00
Abhishek Kumar
fb22c5c3c9
kvm: correctly set vm cpu topology (#6870)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-19 11:01:10 +01:00
Rohit Yadav
458883575a Updating pom.xml version numbers for release 4.17.3.0-SNAPSHOT
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-16 15:25:16 +00:00
Rohit Yadav
5b9a989ab0 Updating pom.xml version numbers for release 4.17.2.0
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
4.17.2.0
2022-12-14 05:22:52 +00:00
Abhishek Kumar
0075717612
api: fix listVirtuaMachinesMetrics API for user (#6985)
Fixes #6983

In case of multiple classes for and API class, ApiServer returns an API command class for User role only when ResponseView is set to Restricted in annotation.
This PR set Restricted ResponseView for ListVMsMetrics class. It also adds a smoke test for User role account for the listVirtualMachinesMetrics API.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-14 10:48:40 +05:30
Rohit Yadav
d331b2f98f
schema: Add upgrade path from 4.17.1.0 to 4.17.2.0 (#6981)
This implements a blank/noop upgrade path from 4.17.1.0 to 4.17.2.0
which implements DbUpgradeSystemVmTemplate to kick the systemvm template
upgrade.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-13 12:42:20 +05:30
Abhishek Kumar
5516f74fce
systemvm: fix management route (#6921)
Fixes #6873
When the management server is in a different subnet than the pod in which a VPC VR is deployed, an ip route must be added just after creation of eth0 to allow the connectivity between the VR and the management server.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-12 17:41:54 +05:30
Abhishek Kumar
4de66f9855
server: fix listing vm metrics for infra resources (#6851)
Fixes #6786 

listVirtualMachinesMetrics does not support some of the params that are supported by admin API call for listVirtualMachines.
These parameters are used in UI.

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

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Rohit Yadav <rohityadav89@gmail.com>
Co-authored-by: Daan Hoogland <daan@onecht.net>
2022-12-12 11:22:07 +05:30
Abhishek Kumar
335e26bb1d
test: fix failure on non-VMware env (#6969)
PR #6964 added some changes for VM import test which are causing exceptions on non-VMware environments. This PR fixes those error and correctly skips unmanage and import tests for non-VMware env.

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

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-12 10:32:29 +05:30
Abhishek Kumar
7f760cc395
test: add nic validation in import vm test (#6964)
Add smoke test to prevent any regression such as #6951.

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

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-09 18:10:46 +05:30
Wei Zhou
11d27a5a3a
systemvm: vpc router fix /etc/network/interfaces is misconfigured (#6435)
This PR fixes that the /etc/network/interfaces is misconfigured in VPC VR startup, which causes VPC VR to be stuck for 1 minute and continue working.

The issue is because ifup eth0 and ifdown eth0 do not work when /etc/network/interfaces is not correct in VPC VR.
2022-12-09 18:10:20 +05:30
Abhishek Kumar
b7f845ab13
server: fix nic device id fro imported vm (#6953)
Fixes #6951

Adds deviceid for NICs of an imported VM. Device Id will be set 0..n in the order which they are returned by hypervisor.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-08 22:29:32 +05:30
Abhishek Kumar
a4d3780143
ui: fix incorrect hypervisor in deploy VM wizard (#6952)
Fixes #6756

Pass hypervisor parameter for deployVirtualMachine API only when ISO is selected and not for a template.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-07 17:40:50 +05:30
Abhishek Kumar
9fd2d82af9
vmware: fix vmware vm snapshot operations for datastorecluster (#6912)
Fixes #6894

Fixes NPE observed when VM volume is present on the same child datastore.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-12-07 14:43:44 +05:30
Wei Zhou
d182eacf86
host affinity: fix vm cannot be started if a vm is stopped in the affinity group (#6936) 2022-12-06 10:05:49 +01:00
Daniel Augusto Veronezi Salvador
cf32f77e3d
systemvm: Fix C2S VPN in parallel to S2S VPN (#6907)
PR #5375, introduced in version 4.15.2.0, removed parameter %any of VPNs client-to-site (C2S) IPSec secrets:

structure before PR vr: ipsec/l2tp vpn secret with no ID selectors #5375:
<IP> %any : PSK "<PSK>"
structure after PR vr: ipsec/l2tp vpn secret with no ID selectors #5375:
<IP> : PSK "<PSK>"
Because of that, when a VPN site-so-site (S2S) is created in parallel to a VPN C2S in the same network, the C2S will not handle any IP (%any) anymore and, as the network is being tunneled to the other VPN, the connection will be handled by the final peer. This way, when a VPN S2S is created in parallel to a VPN C2S in the same network, it is only possible to connect to the C2S with the S2S PSK.

As ACS is only able to implement a single C2S per network (ACS allows setting more than one IP of the network as VPN, however, only the first will be implemented) and every S2S has its own secret file, the secrets structure of C2S was changed to contain only the PSK:

: PSK "<PSK>"
By doing that, StrongSwan will handle correctly C2S connections from any IP and still will use the correct PSK for S2S.

Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
2022-11-30 18:29:05 +05:30
Abhishek Kumar
47946db888
server: fix volume migration on user vm scale (#6704)
Fixes #6701

When volume migration is initiated by system, account check is not needed.

Introduces a new global setting - allow.diskoffering.change.during.scale.vm. This determines whether to allow or disallow disk offering change for root volume during scaling of a stopped or running VM.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Harikrishna Patnala <harikrishna.patnala@gmail.com>
Co-authored-by: Rohit Yadav <rohityadav89@gmail.com>
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-11-30 12:58:48 +05:30
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