Oscar Sandoval
b6443a2b1f
increase log detail for limit checking, fix getDomainReservation() ( #7506 )
...
In troubleshooting ops issues we see logs like:
Maximum domain resource limits of Type 'user_vm' for Domain Id = 763 is exceeded: Domain Resource Limit = (1 bytes) 1, Current Domain Resource Amount = (0 bytes) 0, Requested Resource Amount = (1 bytes) 1."
However there is one missing value (currentResourceReservation) that is used in the calculation of limit check but it is not logged, which leads to confusion. Above we see we are using “0” and requested 1, with our limit being 1, but was rejected. Without logging all the values used in the calculation we don’t understand why it failed.
Additionally, if we had this log above it would be clearer that a second bug is occurring. When we query for domain level resource reservations in “getDomainReservation” the actual SearchBuilder is the listAccountAndTypeSearch, not the listDomainAndTypeSearch. As a result, when we call getDomainReservation the query returns any outstanding domain reservation for any account, as domain ID is not a valid filter for the account search.
This PR:
Increases detailed information in log for checking resource limit to include reservations information for functions: checkDomainResourceLimit() and checkAccountResourceLimit
Fixes getDomainReservation() to use listDomainAndTypeSearch instead of listAccountAndTypeSearch
Co-authored-by: Oscar Sandoval <osandovalocana@apple.com>
2023-05-12 12:53:18 +05:30
dahn
8bbe2f7cb2
engine/schema: use junit 4 (same as the rest of the project tests)
2023-04-27 11:36:27 +02:00
Abhishek Kumar
afccde5cfc
server,engine-schema: fix listing service offering for vm scale ( #7398 )
...
Fixes #7389
Fixes listing of service offerings for VM scale when the current offering has `disk_offering_strictness=true`
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2023-04-17 14:19:20 +05:30
Harikrishna
65512af779
server: Roles search by keyword ( #7384 )
...
This PR fixes #7362 and also other search criteria to use the name as an exact search where keyword is also there.
Made UI changes for roles search to make use of keyword instead of name.
2023-04-11 22:24:29 +05:30
Rohit Yadav
74a414e76f
Fix build failure and 4.18.0.0->4.18.1.0 upgrade path
...
Unblocks smoketests/health check runs on 4.18 branch.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2023-03-16 13:18:26 +05:30
Daan Hoogland
05cda2729f
Updating pom.xml version numbers for release 4.18.1.0-SNAPSHOT
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
2023-03-15 19:38:14 +01:00
Daan Hoogland
0574087284
Updating pom.xml version numbers for release 4.18.0.0
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
2023-03-11 09:35:41 +01:00
SadiJr
ad64ee3090
[Usage] Fix wrong usage_type ( #7229 )
2023-03-03 13:10:38 +01:00
Wei Zhou
8592de95fa
Move PassphraseVO to use String instead of byte[] to support Encrypt annotation ( #7302 )
...
Co-authored-by: Marcus Sorensen <mls@apple.com>
2023-03-03 13:08:17 +01:00
dahn
aa881f6bf3
avoid hard coded guest OS IDs ( #7279 )
2023-02-23 15:19:45 +01:00
Wei Zhou
e61051e4fc
SQL: Remove snapshot references if primary storage pool has been removed ( #7205 )
2023-02-21 14:48:36 +01:00
Harikrishna
7484636997
Userdata sql changes using procedures ( #7255 )
2023-02-20 12:07:52 +01:00
Wei Zhou
80c1b6b2a2
engine/schema: fix IDEMPOTENT_ADD_FOREIGN_KEY procedure does not work on mysql8 ( #7252 )
2023-02-17 11:46:09 +01:00
Harikrishna
a3feccf70c
User two factor authentication ( #6924 )
...
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2023-02-13 09:14:17 +01:00
Abhishek Kumar
6d287793a5
guestos: add el9 distros ( #7059 )
...
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: dahn <daan@onecht.net>
2023-02-03 12:46:53 +01:00
Bryan Lima
5c20e7844c
Quota VM_DISK tariff calculation ( #7152 )
...
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
2023-02-03 08:43:05 +01:00
Wei Zhou
62e342c1bc
utils,framework/db: Introduce new database encryption cipher based on AesGcmJce ( #7003 )
2023-02-02 16:25:49 +01:00
Nicolas Vazquez
89bf4750ab
Add console session cleanup task ( #7132 )
2023-02-01 16:53:54 +01:00
David Jumani
c774b865c9
Tungsten integration ( #7065 )
...
Co-authored-by: rtodirica <rtodirica@ena.com>
Co-authored-by: Huy Le <huylm@unitech.vn>
Co-authored-by: radu-todirica <Radu.Todirica@ness.com>
Co-authored-by: Huy Le <minh.le@ext.ewerk.com>
Co-authored-by: Simon Weller <siweller77@gmail.com>
Co-authored-by: dahn <daan@onecht.net>
2023-02-01 09:19:53 +01:00
Suresh Kumar Anaparti
d8c7e34b38
Improve global settings UI to be more intuitive/logical ( #5797 )
...
Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
Co-authored-by: nvazquez <nicovazquez90@gmail.com>
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: dahn <daan@onecht.net>
2023-01-31 11:23:43 +01:00
Abhishek Kumar
3b6ce97097
infra: edge zones ( #6840 )
...
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: dahn <daan@onecht.net>
2023-01-31 09:36:45 +01:00
nvazquez
83c2bfacd8
Merge branch '4.17'
2023-01-30 07:53:58 -03:00
Abhishek Kumar
028ca74fb6
ui,server,api: resource metrics improvements ( #6803 )
...
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2023-01-30 09:48:03 +01:00
Nicolas Vazquez
c78a777d3a
Fix: memory leak on volume allocation ( #7136 )
2023-01-30 09:44:50 +01:00
João Jandre
61a722548f
Create API to reassign volume ( #6938 )
2023-01-27 11:10:56 +01:00
Rohit Yadav
ea14c59210
vmware: support vsphere 8.0 and 8.0.0.1 versions ( #7119 )
2023-01-25 09:20:21 +01:00
Wei Zhou
42f0d758c1
vpc/network: set mtu of networks/vpcs/nics during 4.18 upgrade ( #7124 )
2023-01-24 09:51:08 +01:00
Abhishek Kumar
2dd29558fe
server: fix listnetworkofferings with domain, refactor listvpofferings ( #6748 )
2023-01-24 09:30:12 +01:00
dahn
221118289b
fix guestOsMapper and move mapping code to latest upgrade ( #7095 )
2023-01-23 09:03:55 +01:00
Daniel Augusto Veronezi Salvador
911f951e2a
Handle console session in multiple management servers ( #7094 )
2023-01-20 09:25:07 +01:00
Rohit Yadav
e8c32d68fc
Add support for vSphere 8.0 ( #7046 )
2023-01-18 17:49:42 +01:00
Rodrigo D. Lopez
3ea2f1dc9f
updates roles read-only ( #7080 )
2023-01-13 06:16:48 +01:00
Daan Hoogland
0c925be44d
merge LTS 4.17 in main
2023-01-12 15:39:04 +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
John Bampton
00426ede46
Add pre-commit workflow with 3 Git hooks ( #6273 )
...
Co-authored-by: dahn <daan@onecht.net>
2023-01-11 12:25:31 +01:00
João Jandre
9cfebdf6e5
Allow domain admins to inform tags when creating offerings ( #7052 )
2023-01-10 14:16:22 +01:00
Daan Hoogland
2d1d2944e5
merge release branch 4.17 into main
2023-01-09 12:57:40 +01:00
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
Sina Kashipazha
20306d6129
Allow creating atmost 1 physical network with null tag ( #6781 )
2023-01-05 21:36:31 +01:00
Wei Zhou
1380c604b1
server: add Host Control Plane State to uservm and systemvm response ( #6946 )
...
Co-authored-by: dahn <daan.hoogland@gmail.com>
2023-01-05 09:59:28 +01:00
Pearl Dsilva
3044d63a8b
Configurable MTU for VR ( #6426 )
...
Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2023-01-04 09:42:24 +01:00
dahn
af59e76df6
add index to speed up querying IPs in the network-tab ( #7028 )
...
* procedure to add index and add index
* sloppy mistakes, thanks Wei
Co-authored-by: Wei Zhou <weizhou@apache.org>
Co-authored-by: Wei Zhou <weizhou@apache.org>
2023-01-03 20:57:05 +01:00
Wei Zhou
512aa9cbc5
AutoScaling: update smoke test and consider db upgrade from a fork ( #6977 )
2022-12-21 09:31:55 +01:00
dahn
41717b0977
allow a new upgrade version without DB changes to be inserted ( #6858 )
2022-12-19 11:03:07 +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
GaOrtiga
8fd4ed88c2
delete configuration task.cleanup.retry.interval ( #6910 )
...
* fix range of configuration `task.cleanup.retry.interval`
* delete unused configuration
* fix on sql
* add name of the PR to the sql
Co-authored-by: Gabriel Ortiga Fernandes <gabriel.fernandes@scclouds.com.br>
2022-12-14 18:09:02 -03:00
Rohit Yadav
5b9a989ab0
Updating pom.xml version numbers for release 4.17.2.0
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-14 05:22:52 +00:00
John Bampton
def7ce655d
Fix spelling ( #6898 )
...
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
2022-12-13 14:58:14 +01:00
Rohit Yadav
72b6ab9c51
Merge remote-tracking branch 'origin/4.17' into main
...
Due to merge conflict, and schema changes in 4.17 branch the previous
4.17.1->4.18.0 DB upgrade path class was renamed to 4.17.2->4.18.0
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-12-13 07:50:36 +00:00
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