34697 Commits

Author SHA1 Message Date
Pearl Dsilva
6ba656b664
marvin: Fix intermittent failure observed in test_02_list_snapshots_with_removed_data_store (#5483)
* marvin: Fix intermittent failure observed in test_02_list_snapshots_with_removed_data_store

* refactor test
2021-09-23 00:37:25 +05:30
Wei Zhou
50a0e80de6
CPVM: use X509ExtendedTrustManager (#5419) 2021-09-22 15:46:57 -03:00
wx930910
7d5393d577
Refactor GroupByExtension to improve test logic (#5480) 2021-09-22 12:02:10 -03:00
Nicolas Vazquez
2601ee32d2
Fix VM state column (#5490) 2021-09-22 11:34:00 -03:00
Rakesh
56ef349b0e
Display capability info in listNetwork response (#3804)
* Display capability info in listNetwork response

Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com>
Co-authored-by: Rakesh Venkatesh <rakeshv@apache.org>
2021-09-22 14:54:34 +05:30
Rohit Yadav
910d02466e
ui: recommend adv zone to new users and show basic zone as bottom option (#5496)
* ui: recommend adv zone to new users and show basic zone as bottom option

This shows the adv zone option in the create zone wizard before the basic
zone option and recommends it for new users. This is because adv zone
can offer more flexible and network topology options including what
basic zone offers in form of shared network (with/without security
groups).

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

* let's see if this ticks advanced by default

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-09-22 14:52:20 +05:30
Rohit Yadav
9f7a350cbb Merge remote-tracking branch 'origin/4.15' into main
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-09-22 14:50:20 +05:30
dahn
3208929a97
move out broken tests (#5495)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
2021-09-22 14:47:18 +05:30
Rohit Yadav
847078b3c8 Merge remote-tracking branch 'origin/4.15' into main 2021-09-22 14:38:56 +05:30
daweilics
fb7086a335
Update README.md (#5492)
Correct minor grammatical issues.
2021-09-22 13:35:25 +05:30
Wei Zhou
7444bc6cd5
travis: fix test/integration/component/test_public_ip.py (#5486) 2021-09-22 09:55:13 +02:00
Pearl Dsilva
5d63379ea4
ui: Add support to filter Roles permissions (#5488) 2021-09-21 11:38:50 -03:00
Abhishek Kumar
67be3da36e
ui: fix create account/user with saml (#5481)
Fixes #5477
Fixes #5478

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2021-09-21 17:32:58 +05:30
davidjumani
d9154e8a69
ui: Fix editVM in projectview (#5485) 2021-09-21 17:04:57 +05:30
SadiJr
3eafbf7329
ui: edit tariff quota and allow user driven backups parameter in Import Backup Offering (#5454)
* [UI] Fixes: edit tariff quota and allow user driven backups parameter in Import Backup Offering

* Address reviews

Co-authored-by: SadiJr <sadi@scclouds.com.br>
2021-09-21 12:45:58 +05:30
aleskxyz
daa183d9fd
Universal sshkey and password manager script (#4890)
* Add sshkey and password manager script that works with userdata server and configdrive

* fix duplicated sshkey insertion

* Add Alpine support

* Force curl to fail on server errors

* Keep user defined ssh-keys only
2021-09-21 09:00:58 +02:00
sureshanaparti
34bd92259a
New API endpoint to update pod management network IP range (#5458)
* Add UpdatePodManagementNetwork api endpoint

* Checkstyle changes and added a few methods

* Minor Checkstyle change

* Refactor UpdatePodManagementNetworkIpRangeCmd.java

* Added missing parameters

* Cleanup

* Addressed the review comments

Co-authored-by: kioie <kioieddy@google.com>
Co-authored-by: kioie <kioi@outlook.com>
2021-09-20 18:19:05 -03:00
Hoang Nguyen
121a72c4fa
UI - Fixes search error in selectbox (#5472)
* fix search select options

* fix error when selected zone

* fix filterOptions of selecbox
2021-09-20 14:42:18 -03:00
Pearl Dsilva
93150f465b
api: Fix list templates when no secondary stores present (#5468) 2021-09-20 14:07:47 -03:00
dahn
22a0c0a46c
change logging during upgrade (#5474)
* reduce ERROR logging on ignored exception

* string concat formatting

Co-authored-by: sureshanaparti <12028987+sureshanaparti@users.noreply.github.com>

Co-authored-by: Daan Hoogland <dahn@onecht.net>
Co-authored-by: sureshanaparti <12028987+sureshanaparti@users.noreply.github.com>
2021-09-20 13:00:06 -03:00
Pearl Dsilva
20d5bf55b7
server: Add support to encrypt https.keystore.password in server.properties (#5459)
* Add support to encrypt https.keystore.password in server.properties

* address comments

* address comments
2021-09-20 12:58:27 -03:00
Pearl Dsilva
ca870dfc73
UI: Fixes issue during logout as user / domain admin (#5476) 2021-09-20 12:20:19 -03:00
Rohit Yadav
0facba9372 Merge remote-tracking branch 'origin/4.15' into main 2021-09-20 13:42:43 +05:30
Wei Zhou
747608f75f
Add New API endpoint: UpdateVlanIpRange (#5411)
* Added Logic to update the user_ip_address table

* Edited ConfigurationManagerImpl

* Refactor UpdateVlanIpRangeCmd location

* Checkstyle corrections

* Mock updateVlanAndPublicIpRange

* Changes:
- UpdateVlanIpRangeCmd - changed since to 4.15.0
- ConfigurationService - Updated Javadoc
- ConfigurationManager - Updated Javadoc
- Added Unit tests
- Added license
- Update server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
- fix some bugs in #5411 and add support for ipv6 and forsystemvms
- fix #5411: disallow forsystemvms if ip range is dedicated
- update #5411: ui changes
- update #5411: support gateway/netmask change
- update #5411: change to sync call and fix bugs

Co-authored-by: kioie <kioieddy@google.com>
Co-authored-by: kioie <kioi@outlook.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
2021-09-20 10:56:29 +05:30
Wei Zhou
f50cc27a5c
server: fix list public ip returns duplicated records (#5464)
* server: fix list public ip returns duplicated records

* update #5464: fix shared network
2021-09-20 10:49:53 +05:30
Rakesh
3b4523f22a
Display vlan ip range for specified domainid (#4634)
* Display vlan ip range for specified domainid

Currently if we try to list vlan ip range by passing
domainid then it lists for all domain. Make sure that
it lists only for that domain

* orgazine imports

Co-authored-by: Rakesh Venkatesh <rakeshv@apache.org>
2021-09-20 10:37:21 +05:30
Pearl Dsilva
40b4b2c894
ui: Move resource icon to first colume for VM list view (#5465) 2021-09-19 21:50:06 -03:00
Nicolas Vazquez
8228ecee43
[Vmware] Add missing condition to cleanup nics if there are commands to send (#5449)
* [Vmware] Add missing condition to cleanup nics if there are commands to send
2021-09-17 21:54:52 +05:30
Rohit Yadav
939ef4ec4b Merge remote-tracking branch 'origin/4.15' into main 2021-09-17 12:57:44 +05:30
Wei Zhou
f2315ec0e2
ui: list static routes with listall=true (#5463) 2021-09-17 12:56:55 +05:30
Rohit Yadav
696c716741 Merge remote-tracking branch 'origin/4.15' into main 2021-09-17 12:55:11 +05:30
Rakesh
854a0a1a73
Display ACL id for the private gateway (#5460)
* Display ACL id for the private gateway

Display link for acl id which is associated
with the private gateway

* Update ui/src/components/view/InfoCard.vue

Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>

* Update InfoCard.vue

* Update InfoCard.vue

Co-authored-by: Rakesh Venkatesh <rakeshv@apache.org>
Co-authored-by: Rohit Yadav <rohit@apache.org>
Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
2021-09-17 12:54:50 +05:30
Rohit Yadav
b28dd81e8e Updating pom.xml version numbers for release 4.15.3.0-SNAPSHOT
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2021-09-17 12:53:29 +05:30
sureshanaparti
191424431d
server: Updated the event message with proper json format for cmd info and job result. (#5453) 2021-09-17 10:31:48 +05:30
davidjumani
f0eac35e3d
kvm: Add check if host meets the minimum requirements (#5369)
* kvm: Add check if host meets min req

* Fix typo

* Update serviceConfig.py

* Remove obsessive checks

* Update error message
2021-09-17 10:21:05 +05:30
Abhishek Kumar
981dac7bca
server: allow listing custom offerings for a running VM (#5420)
* server: allow listing custom offerings for a running VM

listServiceOffering API when called for a running VM only fails to list all possible offerings especially the custom offerings and all offerings when VM is deployed using a custom offering.
This improves the list behviour by adding adding appropriate conditions for the custom offerings.

Fixes #5412

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

Co-authored-by: davidjumani <dj.davidjumani1994@gmail.com>
2021-09-17 01:48:24 +05:30
Nicolas Vazquez
3ca3843b02
[Vmware] Fix for ovf templates with prefix (#5448)
* [Vmware] Fix for ovf templates with prefix

* Support multiple hardware versions
2021-09-16 16:16:41 -03:00
dahn
35990d7ca3
tests: move misc tests to broken (#5456)
Co-authored-by: Daan Hoogland <dahn@onecht.net>
2021-09-16 11:10:59 +05:30
Peinthor Rene
66c39c1589
storage: Linstor volume plugin (#4994)
This adds a volume(primary) storage plugin for the Linstor SDS.
Currently it can create/delete/migrate volumes, snapshots should be possible,
but currently don't work for RAW volume types in cloudstack.

* plugin-storage-volume-linstor: notify libvirt guests about the resize
2021-09-16 10:50:58 +05:30
Rakesh
1bf686269f
Persist vpn connection state before restarting (#4635)
If the vpn connection is in pending state then we cant restart the
vpn connection. So manually set the state to disconnected and then
try to restart the vpn connection
2021-09-16 00:44:01 -03:00
Wei Zhou
95ef292860
kvm: honor migrate.wait and abort vm migration job (#5388)
* kvm: honor migrate.wait and abort vm migration job

* kvm: propogate migratewait to all cloudstack agents on kvm hosts

* update #5388

* update #5388: display error msg
2021-09-15 12:38:16 -03:00
Pearl Dsilva
e6058b09a7
ui: Fix Load Balancer Rules alignment issue (#5451) 2021-09-15 14:41:48 +02:00
sureshanaparti
1f3f02b469
api: Updated pod response, moved the parameters: startip, endip, vlanid, forsystemvms to ipranges (new parameter to hold the list of IP range details). (#5424)
This PR updates the pod response, grouped the parameters: startip, endip, vlanid, forsystemvms as ip range response and added to ipranges parameter (a new parameter to hold the list of IP range details).
2021-09-15 14:46:42 +05:30
Pearl Dsilva
4b1fc195cf
ui: Refresh Usage dashboard when swapping between Project and Default view (#5447) 2021-09-15 10:50:25 +05:30
Pearl Dsilva
3f827ef22b
UI: Support to upload resource icons (#5157)
* Resource Icon support - backend

* Add API support for resourceicon

* update reponse params + ui support

* Add exclusive list api for icons and UI changes

* refactor upload view

* UI changes to support resource icon wherever necessary

* convert api to POST + refactor icon view

* Add response name to list API + cosmetic changes in UI

* Added support for the following:
resource icon support for vpcs, networks, domains, and projects
add icons to list view if reosurces support icons to be added
support for showing project icons in the project switching drop-down menu

* List resourceicon cmds to be allowed for user role too
Users to inherit account icon if present (in listUsers response)
Move common code to plugin.js
Add icon to project list view - while switching between projects - Dashboard page
Show icons against zones - Capacity Dashboard view
Show user / account icon at the login button if present

* cosmetic changes

* optimize ui code

* fix reload issue for domain view

* add access check for delete operation

* ui-related changes to show iso icons

* iso image in uservm response

* add icons to custom form's list resources

* some more custom forms aligned to show icon for resources

* conmitic changes + add listing of icons to listdomainchildren cmd

* Add backend/server-side validation for base64 string passed for image

* change preview border

* preselect zone if there's only one

* add default icon

* show icon for network list in deploy vm view

* add custom icons if any to the import-export VM view

* preselect zone persistence on clearing cache

* prevent root vol from inheriting template/iso icon

* show tempalte icon in the info card details

* fix icon not being show on hard-refresh / initial traversal

* fx success message
2021-09-15 00:50:42 -03:00
Pearl Dsilva
f409e7a922
api: Update DNS on changing VM name (#5425)
* api: Update DNS on changing VM name

* refactor backend code + UI - add warning messaging to prompt users to restart VM in case particular fields are updated

* address comments
2021-09-15 00:26:12 -03:00
Rakesh
3c2360c9d2
VM has wrong network statistics with multiple nics in shared networks (#4741)
If vm has multiple nics belonging to different shared networks then
wrong statistics will be collected since network id is not considred
as primary key. Make the change so that primary key contains network
id so that traffic belonging to that corresponding network is shown

If network id is not added to primary key then all the traffic of all
shared networks will show up in one nic.

Co-authored-by: Rakesh Venkatesh <rakeshv@apache.org>
2021-09-14 23:54:34 -03:00
Hoang Nguyen
073a54bd6e
ui: removed whitespace after string (#5450) 2021-09-14 16:07:30 +05:30
Abhishek Kumar
fb8d40de54
server: skip max guest limit check for KVM host (#5417)
Addresses #3015

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2021-09-14 03:12:53 -03:00
Abhishek Kumar
c85eb107a6
server: fix addCluster for vmware, others (#5421)
With 87ddc76, value column in cloud.cluster_details has been made non-nullable.
While adding a cluster (especially VMware), addCluster API can be called without username password. Username and password are updated in cluster details entry later after successful discovery.
This PR stores an empty string instead of a null value when initial cluster entry is made in the DB.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2021-09-14 11:17:17 +05:30