Daan Hoogland
373f017002
Merge branch '4.19'
2024-06-18 19:58:43 +02:00
Abhisar Sinha
591cc4f002
Add action button to enable/disable Oauth provider ( #9242 )
2024-06-18 08:32:13 +02:00
Wei Zhou
f360f7048d
vmware: do not tear down vm disks if deploy-as-is vm has vm snapshots ( #9243 )
2024-06-18 08:28:20 +02:00
Wei Zhou
3a5c4a0cba
fix build error with LinstorVMSnapshotStrategy
2024-06-14 23:03:03 +02:00
Bryan Lima
00fe25ab01
Fix allocation of VMs with multiple clusters ( #8611 )
...
* Fix allocation of VMs with multiple clusters
* Readd debug guard
2024-06-14 13:54:01 +03:00
Daan Hoogland
cb9b3134f7
Merge branch '4.19'
2024-06-14 10:30:10 +02:00
Abhishek Kumar
ce9b2c52f3
cks: fix events ( #9070 )
...
Fixes #8043
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-06-14 12:22:39 +05:30
Bryan Lima
1cf1786ebb
[Quota] Add API to list preset variables ( #8372 )
...
* Add API for listing Quota preset variables
* Add new line at EOF
* Address review
* Remove usage types
* Remove usage types from quotatypes
* Remove unused imports
* Add space for preset variable definition description
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
---------
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
2024-06-13 16:49:14 -03:00
Vishesh
74f5e52e6e
Fix unit test failure ( #9238 )
2024-06-13 16:06:35 +05:30
Rene Peinthor
37f4398c80
linstor: Support VM-Instance Disk snapshots ( #8796 )
...
* linstor: update to java-linstor 0.5.1
* linstor: Support VM-Instance Disk snapshots
This adds VM-Instance disk snapshot support for
Linstor primary storage. Instance snapshots are stored on
the used Linstor storage pool backend and can be converted
into regular volume snapshots and also reverted.
Instance VM snapshots are not fully atomic but with the
create multi snapshot feature as good as it gets.
Snapshots are done over multiple volumes in the same devicemanager run.
2024-06-13 15:26:33 +05:30
Wei Zhou
cb48202b34
fix build error LibvirtGetVolumeStatCommandWrapper
2024-06-13 10:43:35 +02:00
Abhishek Kumar
2fef0a32bc
cks: fix list apis response count ( #8701 )
...
* cks: fix list apis count
Fixes count value in listKubernetesClusters and
listSupportedKubernetesVersions APIs response.
2024-06-13 13:08:19 +05:30
Vishesh
6fe835e118
Merge branch '4.19'
2024-06-13 11:57:55 +05:30
Rohit Yadav
78ace3a750
saml: introduce saml2.check.signature ( #9219 )
...
Adminstrators should ensure that IDP configuration has signing
certificate for the actual signature check to be performed. In addition
to this, this change introduces a new global setting
`saml2.check.signature` which can deliberately fail a SAML login attempt
when the SAML response has missing signature.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2024-06-13 11:30:33 +05:30
Wei Zhou
b2ef53b8a2
kvm: replace ISO path in vm XML configuration during vm migration ( #9212 )
...
* kvm: replace ISO path in vm XML configuration during vm migration
* Update 9212: address comments
* kvm: fix vm migration if there are multiple image stores
2024-06-12 16:01:23 +02:00
Charles Weng
c9a95bc22c
Add unit tests for null cpu for null parameters for set allocated cpu ( #9137 )
...
* Add unit tests for null cpu for null parameters for set allocated cpu
* break up tests for null cpu checks
2024-06-12 17:02:49 +05:30
Suresh Kumar Anaparti
4ec0f823cf
ScaleIO volume live migration - use usable bytes from source disk to format the destination disk ( #9174 )
2024-06-12 13:58:10 +05:30
Suresh Kumar Anaparti
2e3f76ec03
Improve error messaging / logs when listing VMs on the remote KVM host (for import) ( #9204 )
2024-06-11 14:48:21 +02:00
Harikrishna
acae5c5b9e
kvm: Update the java doc for the method disconnectPhysicalDiskByPath ( #9210 )
...
This PR addresses the issue #8789
The original issue is disconnectPhysicalDiskByPath() implementation in FibreChannelAdaptor always returns true irrespective of the success of the operation. This was already fixed in the PR #8889 .
Ideally this method has to be called after choosing the right adapter based on the storage pool type of the volume path, but currently it is just called in a loop.
05b9b6e2e7/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStoragePoolManager.java (L200-L212)
while trying to fix the case of running into the loop of all adapters by somehow passing the storage pool type to that caller cleanup() method but this is touching all over the code (which I fear it creates other regressions), instead I feel we can keep it the current way only since Fibrechannel adapter has already fixed.
In this PR I've added the java doc explaining the method and situation.
2024-06-11 14:44:46 +05:30
Abhishek Kumar
43ab8a9367
cks,ui: fix npe and check for disable zone ( #9105 )
...
Fixes #8962
2024-06-11 14:36:11 +05:30
Abhishek Kumar
7aacbcb559
api: listApis should return params based on caller ( #8973 )
2024-06-11 11:28:08 +05:30
Rohit Yadav
8d211e75c0
Merge remote-tracking branch 'origin/4.19'
2024-06-10 16:18:41 +05:30
Abhishek Kumar
10f4de0318
kvm: consider provisioning type for local data volumes ( #9141 )
...
Fixes #8644
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-06-10 11:38:31 +03:00
Abhishek Kumar
be552fdce9
feature: webhooks ( #8674 )
...
* api,server,ui: weebhoks feature
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* registry of message busses
* test bus
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* test
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix and refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes for webhook dispatch history
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes, initial ui
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* improvements
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes for account webhook cleanup
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix remaining event bus usage
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes for testing webhook dispatch
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* wip
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix test
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* make element
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* missing
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* buid fix
* fix lint
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* changes for project delete check
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add collapse in create
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui fix and refactor for eventditributor publish
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* update org.json and add json validation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* schema fixes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* wordings
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui: improve progress button
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui improvements
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* remove unrelated change
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* search and count
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add payloadurl in info
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* positive progress
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix hmac key
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* create webhook form fixes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* refactor, address feedback
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* indentation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix filters
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* remove test eventbus
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* default scope be Local
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add lifecycle smoke test
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add test for webhook deliveries
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix lint
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* refactor - losgs and others
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* unit tests
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix lint
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* build fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* smoke test fix, log refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* get bean from all components
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui: missing label
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* address review comments
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add some more tests
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* lint
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* rename setting
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* upgrade: move 4.19.0->4.20.0 to 4.19.1->4.20.0
* fix test delivery layout
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix webhook secret display
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add http to payloadurl when no scheme
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* allow removing secretkey for webhook
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix update sslverification
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* disallow same payload url for same account
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fix delivery with url w/o scheme
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* api: listApis should return params based on caller
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* wip changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* Update engine/schema/src/main/resources/META-INF/db/schema-41900to42000.sql
* remove unique constraint for now
Constraint is present in Java code validations
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* fixes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui: add option to delete multiple deliveries
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* add filter for deliveries, delete api start/endtime support
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* do not throw error when no deliveries removed
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* ui: fix deliveries table column sorting, time filter cancel
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
* remove isDebugEnabled wrapping
* merge fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
---------
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: Daan Hoogland <daan@onecht.net>
Co-authored-by: Wei Zhou <weizhou@apache.org>
2024-06-10 10:40:12 +05:30
Daan Hoogland
2542582c1e
logging migration in merge missing
2024-06-07 11:31:36 +02:00
Daan Hoogland
b29391c329
Merge LTS branch '4.19' into main
2024-06-07 09:53:57 +02:00
Daan Hoogland
c779b1c616
Merge branch '4.18' into 4.19
2024-06-06 11:24:09 +02:00
Abhishek Kumar
91c7bc722f
server,cks: check if vm is cks node during vm destroy ( #9057 )
...
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-06-06 10:54:02 +02:00
Rene Peinthor
2339412f73
linstor: make getDevicePath more robust ( #9143 )
2024-06-06 09:49:03 +02:00
dahn
0c615312f9
log messages ( #9093 )
...
* log messages
* Apply suggestions from code review
Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
* Update plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterResourceModifierActionWorker.java
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
---------
Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
2024-06-06 12:41:11 +05:30
João Jandre
631d6ad09b
Do not retrieve VM's stats on normal VM listing ( #8782 )
...
* Do not retrieve VM's stats on normal VM listing
* Add config to control the behavior
* address reviews
2024-06-05 17:45:28 +05:30
Wei Zhou
5433e775e5
New feature: Implicit host tags ( #8929 )
...
* Merge two HostTagVO and HostTagDaoImpl
* Implicit host tags
* PR8929: add since
* Update variable names
* Update 8929: add unit test in LibvirtComputingResourceTest
* Update 8929: add explicithosttags in response
* Update 8929 UI: Update explicit host tags
* Update 8929: remove host tags and change labels on UI
* Update 8929: update host_view to use explicit_host_tags.is_tag_a_rule
* Update: ui polish for host tags
* Update 8929: fix UI error if no host tags
2024-05-30 17:21:13 +05:30
Vishesh
87b55af197
Fixup response code on incorrect credentials ( #8671 )
2024-05-30 08:48:53 +02:00
John Bampton
28e8e2d009
pre-commit: add hook to trim trailing whitespace ( #8205 )
2024-05-28 09:01:30 +02:00
Fabricio Duarte
371ce12abe
Normalize dates in Usage and Quota APIs ( #8243 )
...
* Normalize dates in Usage and Quota APIs
* Apply Daan's sugestions
Co-authored-by: dahn <daan.hoogland@gmail.com>
* Restore removed sinces
* Add missing space
* Change param descriptions for quotaBalance and quotaStatement
* Apply Daniel's suggestions
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
---------
Co-authored-by: dahn <daan.hoogland@gmail.com>
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
2024-05-27 12:06:52 -03:00
Vishesh
21af134087
Fix exceeding of resource limits with powerflex ( #9008 )
...
* Fix exceeding of resource limits with powerflex
* Add e2e tests
* Update server/src/main/java/com/cloud/vm/UserVmManagerImpl.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
* fixup
---------
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2024-05-08 20:55:19 +05:30
Vishesh
e9ff2707bb
Merge branch '4.19'
2024-05-07 12:47:48 +05:30
Henrique Sato
0d1bc7dfd0
Limit listRoles API visibility ( #8639 )
...
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
2024-05-07 09:12:49 +02:00
Rene Peinthor
f80d205284
linstor: Fix volume format and make resource available on copy target ( #8811 )
...
Linstor primary storage forgot to make sure
the volume download/copy target has a Linstor resource available.
2024-05-06 11:00:22 +02:00
Daan Hoogland
0d8f7d4003
Merge release branch 4.19 to main
...
* 4.19:
linstor: disconnect-disk also search for resource name in Linstor (#9035 )
ui: add support to change Account role for admins (#9012 )
Use parameter dcId as wrapper to prevent NPE (#8986 )
2024-05-06 10:36:06 +02:00
Daan Hoogland
92ba476593
Merge release branch 4.18 to 4.19
...
* 4.18:
linstor: disconnect-disk also search for resource name in Linstor (#9035 )
2024-05-06 10:35:27 +02:00
Rene Peinthor
ea11128cb3
linstor: disconnect-disk also search for resource name in Linstor ( #9035 )
...
disconnectPhysicalDisk(String, KVMStoragePool) seems to calls the plugin
with the resource name instead of the device path, so we also have
to search for resource names, while cleaning up.
2024-05-06 09:05:31 +02:00
Wei Zhou
f41c934c94
Fix build error with MigrateKVMAsync
2024-04-29 12:33:23 +02:00
Daan Hoogland
e61f3bae4d
Merge branch '4.19'
2024-04-29 11:37:40 +02:00
Rohit Yadav
3de1f8b4ba
Merge remote-tracking branch 'origin/4.18' into 4.19
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2024-04-29 13:44:34 +05:30
Rene Peinthor
9d5d4e5564
linstor: cleanup diskless nodes on disconnect ( #8790 )
2024-04-26 14:25:07 +02:00
Rohit Yadav
380385d045
plugin: fix nsx build failure with mvn 3.9 ( #8974 )
...
This excludes indirect dependencies of vapi-authentication to allow
build to work.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2024-04-26 17:24:24 +05:30
João Jandre
cec6ade257
change live migration API used on kvm ( #8952 )
2024-04-25 09:35:25 +02:00
Marcus Sorensen
27124c1031
Add ability to set cpu.threadspercore similar to existing cpu.corespersocket ( #8850 )
...
* Add ability to set cpu.threadspercore similar to existing cpu.corespersocket
* add cpu.threadspercore to VM and template detail options
* Update plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
* add vm detail for KVM
---------
Co-authored-by: Marcus Sorensen <mls@apple.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2024-04-24 18:01:21 +05:30
Daan Hoogland
0af923e618
Merge branch '4.19'
2024-04-24 14:01:02 +02:00