Commit Graph

4829 Commits

Author SHA1 Message Date
Manoj Kumar f524bbe0e2
resolve conflict with main 2026-04-01 09:59:16 +05:30
julien-vaz 4f93ba888c
Refactor Quota Summary API (#10505)
* Refactor Quota Summary API

* Fixes imports

* Fix QuotaServiceImplTest

* Update plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaSummaryCmd.java

Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>

* Fix QuotaSummaryCmd

* Remove unnecessary imports

* Remove unused createQuotaSummaryResponse declarations

* Remove unnecessary imports

* Update plugins/database/quota/src/main/java/org/apache/cloudstack/api/command/QuotaSummaryCmd.java

Co-authored-by: dahn <daan.hoogland@gmail.com>

* Fix QuotaSummaryCmd

* Fix QuotaResponseBuilderImplTest

* Refactor test

* Fix QuotaSummaryCmd

* Fix projectid behavior

* Simplify QuotaSummary and deprecate listall

* Fix createQuotaSummaryResponse

* Remove unused import

* Apply suggestions + some adjustments

* Remove duplicated check

* Fix checkstyle

* Adjust entity owner

* Remove unused method + fix tests

* Add missing @ACL to some parameters

* Adjust how the parameters behave

* Allow domain admins and users to use keyword

* Address reviews

---------

Co-authored-by: Julien Hervot de Mattos Vaz <julien.vaz@scclouds.com.br>
Co-authored-by: Fabricio Duarte <fabricio.duarte.jr@gmail.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
2026-03-31 20:29:30 -03:00
Henrique Sato 7eea9ed448
Add API to enable/disable NICs for KVM (#12819) 2026-03-31 10:14:20 +02:00
Suresh Kumar Anaparti 1bff543e58
Merge branch '4.22' 2026-03-27 01:25:42 +05:30
Manoj Kumar c6abed1702
Following changes are part of this commit:
1. Remove usage of in-memory eventBus for VM lifecycle events
2. Publish event for VM, NIC and DNS record delete events into  messageBus
3. Introducer subscribers for above topics
2026-03-25 17:38:13 +05:30
Suresh Kumar Anaparti 7c3637a2f5
Fix duplicate dummy templates, and update guest os for dummy template (#12780)
* Fix duplicate dummy template 'kvm-default-vm-import-dummy-template' entries

* Update guest os id of dummy template to 99 (Other Linux (64-bit)) from existing id: 1 (CentOS 4.5 (32-bit))

* update migration path to remove duplicate dummy templates
2026-03-24 18:01:26 +05:30
Nicolas Vazquez 7107d28db8
[VMware to KVM] Add guest OS for importing VM based on the source VM OS (#12802) 2026-03-24 15:06:38 +05:30
Suresh Kumar Anaparti bce55945ec
Mark VMs in error state when expunge fails during destroy operation (#12749)
* Mark VMs in error state when expunge fails during destroy operation

* fetch volume by external id (used by external plugins)

* review comments

* Update reorder hosts log to DEBUG, log line is too verbose to have on as INFO
2026-03-24 00:29:14 -03:00
Manoj Kumar bde9fd9062
improve cleanup logic for DNS zone and server 2026-03-23 15:00:52 +05:30
Manoj Kumar af7ce8ebdd
fix addDnsRecord and deleteDnsRecord flow for automatic registration and ownership issue for associate/disassociate dnsZoneToNetwork 2026-03-20 13:10:59 +05:30
Manoj Kumar 981bb64b86
add associate and disassociate dns zone to network ui screens, network response changes 2026-03-19 16:42:17 +05:30
Manoj Kumar a1eca74de1
work on updateDnsServer ui screen, fixed acl issue for dns server and zone and cleanup methods for dns server and zone 2026-03-18 18:45:03 +05:30
Manoj Kumar e93ae1a4f4
New config key "allow.import.volume.with.backing.file" to skip volume backing (#12809)
* Added support for skipping volume backing when importing unmanaged volumes and VMs. This allows users to import volumes and VMs without creating a backing volume, which can be useful in certain scenarios where the backing volume is not needed or desired.

* cleanup conflicting key

* move configkey into VolumeImportUnmanageService

---------

Co-authored-by: rajujith <rajujith@gmail.com>
2026-03-17 11:34:34 -03:00
Manoj Kumar d8cca73780
resolve conflict with main 2026-03-17 19:35:19 +05:30
Manoj Kumar 7f5e2a7d30
continue UI component work, fix minor issue with apis 2026-03-17 19:33:30 +05:30
Pearl Dsilva 3bd5410f9a
Add support to clone existing offerings and update them (#12357)
* Add support to clone existing offerings and update them

* add support for vpc & backup offerings to be cloned

* fix capability list and mapping of params

* Add support to clone network and vpc offering with the right parameters

* make fields non mandatory for clone offerings APIs

* Add UI support for cloning Compute and System Service offerings

* remove unnecessary changes

* fix license and pre-ccommit issues

* Add UI support to clone disk and network offering

* vpc & backup offering clone api

* add unit tests

* fix pre-commit checks

* increase test coverage

* combine add/clone disk/compute offering forms

* update license

* fix unit tests

* fix test failures

* fix test failure - unnecessary stubbings

* pre-commit check failure

* add recently added domain id for bkp offering to be inherited in clone operation

* extract common code wrt service capability in network & vpc offering in add/clone operations

* add some checks to prevent networkmode change when provider is nsx/netris from the source networkmode

* address copilot comments

* address comments

* combine check

* use appropriate zoneId during clone bkp offering

* add check

* fix issue with test

* remove unused imports

* prevent creating a bkp offering of a bkp repo that already exists

* extend clone disk and service offerings to domain admins
2026-03-17 12:01:43 +05:30
Nicolas Vazquez 93239e09f1
Add conserve mode for VPC offerings (#12487) 2026-03-16 09:39:42 +01:00
Manoj Kumar 6bcfbc6dfc
resolve conflict with main 2026-03-13 22:34:46 +05:30
Daman Arora 8c579538f9
CKS: Allow affinity group selection during cluster creation (#12386)
Co-authored-by: Daman Arora <daman.arora@shapeblue.com>
2026-03-13 10:58:55 +01:00
Wei Zhou 2359061f66
api: remove required flag of gatewayid in CreateStaticRouteCmd (#12786) 2026-03-12 13:42:09 +05:30
Davi Torres faaf7669c5
Update isolation methods description for physical network (#12759) 2026-03-10 14:45:42 +01:00
Manoj Kumar a9afbce186
UI related work and fixes in updateDnsServer cmd 2026-03-10 13:10:24 +05:30
Klaus de Freitas Dornsbach 74af9b9875
API key pair restructure (#9504)
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
2026-03-09 14:20:17 +01:00
Suresh Kumar Anaparti 75620309c2
Merge branch '4.22' 2026-03-04 21:13:01 +05:30
Suresh Kumar Anaparti 65e54091ff
Merge branch '4.20' into 4.22 2026-03-04 21:12:15 +05:30
Manoj Kumar 0df50cedf8
fix list dnsservers api, ui screens for dns servers, generate events 2026-03-04 19:40:37 +05:30
Manoj Kumar 369bb16d0d
fix lint issue 2026-03-03 17:44:24 +05:30
Manoj Kumar 928db650e3
resolve merge conflict with main 2026-03-03 17:11:54 +05:30
Manoj Kumar caf85330bb
1. implement event processing for vm start/stop/destroy, nic create/delete events
2. add dnsrecordurl in nic_details table
3. add dnsrecordurl in vm response
2026-03-03 14:08:50 +05:30
Manoj Kumar 1c1eef3cc7
Add Listener for VM lifecycle to add dnsrecords for associated dns zone 2026-03-02 17:17:13 +05:30
Suresh Kumar Anaparti 56dc11980f
test_accounts.py failure fix - keep the camelCase parameter "domainId" (#12689) 2026-02-27 11:36:18 +01:00
Manoj Kumar 6ca9d5ace8
add views for dns_server and dns_zone 2026-02-26 13:05:08 +05:30
Manoj Kumar 1fe79bdfb6
fixes related to acl, dao 2026-02-25 19:52:50 +05:30
Manoj Kumar add77636d9
acl related changes, fixes, mistakes 2026-02-25 11:38:38 +05:30
Manoj Kumar 582b6876d4
add ACL annotation, entitytype, minor cleanup 2026-02-21 22:15:08 +05:30
Manoj Kumar 857436e7f9
enable apis for all roles 2026-02-21 14:36:25 +05:30
Manoj Kumar 4df11a4198
normalize dns zone and record in svc layer, always use dotless data in svc and handle dot version in client 2026-02-21 09:25:28 +05:30
Manoj Kumar c64cf81db3
include:
1. port for dns_server
2. remove hard coded localhost for server_id
3. resolve and store server id if not passed in the api request
4. restrict public dns_server for domain admins and admins
2026-02-20 12:45:21 +05:30
Manoj Kumar 4a9f66d532
following changes are done:
1. refactored client
2. added exceptions
3. enhanced updateZone
4. ownership check for deleteDnsServer
2026-02-19 23:48:57 +05:30
Suresh Kumar Anaparti 30e6c224bd
Merge branch '4.22' 2026-02-19 13:20:04 +05:30
Suresh Kumar Anaparti 5caf6cd043
Merge branch '4.20' into 4.22 2026-02-19 13:19:14 +05:30
Suresh Kumar Anaparti 9dd93cef76
Support for custom SSH port for KVM hosts from the host url on add host and the configuration (#12571) 2026-02-18 20:05:51 +01:00
Manoj Kumar e011ce1186
add missing license, cleanup, log std 2026-02-18 11:20:22 +05:30
Manoj Kumar 99f8c7dad8
following things are done:
1. Registerdnsrecordforvm api
2. removednsrecordforvm api
3. cleanup; fixed license, dao logic
2026-02-17 17:21:26 +05:30
Manoj Kumar c5972aea4e
Add associate and disassociate zone to network APIs 2026-02-16 18:38:48 +05:30
Manoj Kumar 9b77c3708e
Tested following flow:
1. Add dns server
2. create zone
3. add records
4. verify in powerdns
5. verify using dig
2026-02-16 16:40:19 +05:30
Manoj Kumar c79b33c1fb
Allow enforcing password change for a user after reset by admin (root/domain) (#12294)
* API modifications for passwordchangerequired

* ui login flow for passwordchangerequired

* add passwordchangerequired in listUsers API response, it will be used in UI to render reset password form

* cleanup redundant LOGIN_SOURCE and limiting apis for first time login

* address copilot comments

* allow enforcing password change for all role types and update reset pwd flow for passwordchangerequired

* address review comments

* add unit tests

* cleanup ispasswordchangerequired from user_view

* address review comments

* 1. Allow enforcing password change while creating user
2. Admin can enforce password change on next login with out resetting password

* address review comment, add unit test

* improve code coverage

* fix pre-commit license issue

* 1. allow enter key to submit change password form
2. hide force password reset for disabled/locked user in ui

* 1. throw exception when force reset password is done for locked/disabled user/account
2. ui validation on current and new password being same
3. allow enforce change password for add user until saml is not enabled

* allow oauth login to skip force password change
2026-02-16 16:01:42 +05:30
Manoj Kumar f29b8be24d
following dns zone apis are integrated:
1. creatednszone
2. listdnszone
3. updatednszone
4. deletednszone
2026-02-15 15:17:54 +05:30
Manoj Kumar df2131810f
1. Setup Dns zone schema
2. added relevant changes in dao and vo
3. worked on creatednszone, integration with mgr
4. powerdns create zone api call
2026-02-13 13:52:08 +05:30
Manoj Kumar 9911c280e1
Changes done to AddDnsServer, ListDnsServer, DeleteDnsServer and UpdateDnsServer 2026-02-12 19:27:32 +05:30