35310 Commits

Author SHA1 Message Date
Hoang Nguyen
600d81e345
UI: Fixes some issues from zone wizard with VMWare hypervisor (#6480)
* hide html warning in message

* hidden ip address step

* refill value of edit tariff

* close modal when icon-close clicked

* fixes modal not show when error

* check valid traffic label with VMWare

* remove automatic change clustername
2022-07-08 13:53:12 +05:30
Rohit Yadav
d8da5e650d
kvm: add support nicAdapter detail for vm and template settings for KVM (#6536)
Fixes #6533

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-07-07 14:36:36 +05:30
Rohit Yadav
3d316546bf
kvm: skip test that can't run and pass on M1 mac (#6537)
This fixes the build issue on M1 mac/osx.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-07-07 14:36:15 +05:30
Abhishek Kumar
67e941f690
cks: fix k8s version upgrade (#6513)
Fixes #6514

On latest systemvm template used for CKS /usr/sbin is not present in the $PATH for normal user used during upgrade. This leads to failure for blkid command. Due to this during k8s version upgrade ISO is not being able to mount on the k8s cluster VMs and upgrade process is not carried out.
This PR fixes mounting of k8s version ISO and also returns failure for script when ISO mounting is failed.
Same failure is not seen during deployment of the cluster because setup-kube-system workflow is executed as ROOT user and it has a different value for $PATH.
From /etc/login.defs:

ENV_SUPATH	PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH	PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-07-06 12:34:49 +05:30
Hoang Nguyen
9e5cda59ce
UI: Add authmethod field allowing to choose password or ssh key when adding host (#6525)
* add authmethod to addhost in zone wizard

* add a condition for hiding password field

* set default value when switch hypervisor

* add more value for authmethod
2022-07-06 12:16:09 +05:30
Luis Moreira
c6b611433b
saml: Fix SAML SSO plugin redirect URL (#6457)
This PR fixes the issue #6427 -> SAML request must be appended to an IdP URL as a query param with an ampersand, if the URL already contains a question mark, as opposed to always assume that IdP URLs don't have any query params.
Google's IdP URL for instance looks like this: https://accounts.google.com/o/saml2/idp?idpid=<ID>, therefore the expected redirect URL would be https://accounts.google.com/o/saml2/idp?idpid=<ID>&SAMLRequest=<SAMLRequest>

This code change is backwards compatible with the current behaviour.
2022-07-06 09:28:37 +05:30
Abhishek Kumar
f1bce69b5d
ui: allow instances to be filtered by group (#6495)
Fixes #6428

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-07-06 09:26:31 +05:30
Harikrishna
2c49d714b5
scripts: Excluded fe80 or link local address in keystore setup (#6530)
This PR fixes the issue #6471 where in keystore setup does not exclude link-local addresses.

We have fixed the keystore setup process to exclude the fe80 or link local addresses
2022-07-06 09:20:13 +05:30
Abhishek Kumar
6ec06aecd7
refactor: new line, lint error fix (#6529)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-07-05 20:27:40 +05:30
John Bampton
7d23a0a759
Fix spelling (#6272) 2022-07-05 09:08:53 +02:00
Hoang Nguyen
8a229baac5
clear all filter values after the reset button clicked (#6503) 2022-07-01 23:38:52 -03:00
João Jandre
e467ad02ce
Fix VMware memory retrieval (#6414)
* Fix VMware memory retrieval

* Address review

Co-authored-by: Joao <JoaoJandre@gitlab.com>
2022-07-01 23:36:40 -03:00
Rohit Yadav
85df82c2a9 Revert ".github: try using just sonarcloud job on pull_request target only"
This reverts commit aad73322aff1a5b1393c024949c6ba0b021a4c90.
2022-07-01 11:25:27 +05:30
Harikrishna
637a102922
Fix for VMware VM migration with volume in local storage (#6483)
* Fix VMware VM migration with volume in case of local storage

* Break the loop once target host is found

* Code optimisations in getting the target host guid for local storage

* Fixed code smells and added unit test
2022-07-01 10:39:02 +05:30
Harikrishna
2326164c17
api: Added information about deviceid 0 to attach root volume to VM (#6518)
This is in the workflow of attaching and detaching a root volume of a VM. We can detach the root volume from a VM and Cloudstack marks it as datadisk. We can reattach the volume to make it root volume again. During attach Device ID 0 has to be passed so that the volume will be converted back to ROOT again

Added a small information in the DeviceID section in Attach volume form.
2022-06-30 17:36:42 +05:30
Rohit Yadav
aad73322af .github: try using just sonarcloud job on pull_request target only
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-06-30 15:27:20 +05:30
Rohit Yadav
20420c4907 Merge remote-tracking branch 'origin/4.16' into 4.17 2022-06-30 12:16:05 +05:30
Hoang Nguyen
3753772ece
UI: Remove unused dependencies and fix travis build (#6142)
* remove unused dependencies and fix travis build

* fixes

* revert node-sass

* update package-lock.json
2022-06-30 12:12:26 +05:30
Wei Zhou
a9a2aa953c
CKS: add created to k8s cluster and k8s version (#6446)
This PR adds created info to the response of kubernetes clusters and kubernetes supported version.
2022-06-30 12:03:12 +05:30
Wei Zhou
ae46c33b65
server: update lb rule with new protocol (#6476)
* server: update lb rule with new protocol

* Update PR #4746: use StringUtils.isNotBlank() instead
2022-06-30 12:02:09 +05:30
Harikrishna
089e9647f1
Fix global setting reference for max secondary storage (#6496)
* Fix global setting reference for max secondary storage usage based on account or project

* Changed a variable naming

* Replaced config enum usage with configkey class for global settings

* Fixed grammar mistake

* Fixed code smells
2022-06-30 11:42:58 +05:30
hooklee2000
aee7bb9e34
UI fix message.add.vpn.customer.gateway.failed when catched error (#6493)
* UI fix message.add.vpn.customer.gateway.failed when catched error

* fix UI VPC add ACL  without required input  close ui 

Without any input, click ok button then close the ui . We need display ui to confirm all required input.

* remove commented line
2022-06-28 10:53:25 +05:30
Hoang Nguyen
739be5d002
UI: Change notification title when resizing volume (#6502)
* fixes resize volume message

* Update ui/public/locales/en.json

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

* Update ui/src/views/storage/ResizeVolume.vue

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2022-06-28 10:50:48 +05:30
Wei Zhou
dd3bd21fab
UI: fix create tags for LB rules (#6475) 2022-06-27 14:24:55 +02:00
Suresh Kumar Anaparti
c70bc9d69c
kvm: Updated PowerFlex/ScaleIO storage plugin to support separate (storage) network for Hosts(KVM)/Storage connection. (#6367)
This PR enhances the existing PowerFlex/ScaleIO storage plugin to support separate (storage) network for Hosts(KVM)/Storage connection, mainly the SDC (ScaleIo Data Client) connection.
2022-06-27 14:42:51 +05:30
Nicolas Vazquez
14c5250267
Fix rpfilter config values from integer to boolean on upgrade path (#6477)
* Fix rpfilter config values from integer to boolean on upgrade path

* Update engine/schema/src/main/resources/META-INF/db/schema-41700to41710.sql

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

* Update engine/schema/src/main/resources/META-INF/db/schema-41700to41710.sql

Co-authored-by: Rohit Yadav <rohityadav89@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
2022-06-23 09:18:24 -03:00
Abhishek Kumar
708382f965
ui: fix ui hang on offering creation with no zone (#6484)
Fixes UI hang issue when offering is created when there is no zone.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-06-23 13:44:12 +05:30
Peinthor Rene
355fdaa821
ui: primarystorage linstor fixes (#6481)
If Linstor protocol is selected it makes no sense to show other
providers as Linstor only works with the Linstor provider.
And also the install wizard doesn't use the correct provider for linstor.

This changes were already merged for 4.16.1.0 see: #5672
But I don't know why they weren't merged to main back than, maybe I don't know how cloudstack's
merge/PR's work.
But this should be definitely merged to 4.17.* and main
2022-06-22 18:54:02 +05:30
Rohit Yadav
f818ecc17d
kvm: upgrade libvirt-java to v0.5.3 (#6472)
* kvm: upgrade libvirt-java to v0.5.3
* add libvirt.org maven repo

Reference: https://gitlab.com/libvirt/libvirt-java/-/issues/6

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2022-06-22 18:43:28 +05:30
Hoang Nguyen
15c4dcfa44
ui: add groupAction for upgrade router to use newer template (#6468)
Fixes #6466
2022-06-20 12:56:52 +05:30
Hoang Nguyen
c6f12f37ee
ui: add a default value for customColumns (#6462)
Fixes #6459
2022-06-20 12:09:13 +05:30
Pearl Dsilva
1b716960fc
api: Add vpc name and uuid to VMs list response (nics) and nics response (#6461) 2022-06-16 13:34:13 +05:30
dahn
bfe1697721
some component tests fixes (#5442)
* allow 3 hosts or more

* make numbering consistent

* stray TODO removed

Co-authored-by: Daan Hoogland <dahn@onecht.net>
2022-06-10 08:26:30 -03:00
dahn
90a0ee0b6c
fix pseudo random behaviour in pool selection (#6307)
* refactor and log trace

* tracelogs

* shuffle pools with real randomiser

* sinlge retrieval of async job context

* some review comments addressed

* Apply suggestions from code review

Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>

* log formatting

* integration test for distribution of volumes over storages

* move test to smoke tests

* imports

* sonarcloud issue # AYCOmVntKzsfKlhz0HDh

* spellos

* review comments

* review comments

* sonarcloud issues

* unittest

* import

* Update AbstractStoragePoolAllocatorTest.java

Co-authored-by: Daan Hoogland <dahn@onecht.net>
Co-authored-by: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com>
2022-06-10 08:06:23 -03:00
Pearl Dsilva
a84664fc9d
Specify vm snapshot uuid in response over db id in the async job response (#6449) 2022-06-10 07:46:04 -03:00
Pearl Dsilva
15a2cc6c68
Specify vm snapshot uuid in response over db id in the async job response (#6449) 2022-06-10 07:45:11 -03:00
Nicolas Vazquez
aae0fae950
UI: Fix hypervisor not selected by default when deploying VM from ISO (#6436)
* UI: Fix hypervisor not selected by default when deploying VM from ISO

* Address comment
2022-06-09 07:30:20 -03:00
Wei Zhou
d45d257b9a
UI: fix create vpc private gw by regular users (#6445) 2022-06-09 07:25:03 -03:00
Hoang Nguyen
22c48363a1
hide project delete button while in this project view (#6439) 2022-06-08 13:18:59 -03:00
Hoang Nguyen
885e749333
fixes the added storage tags issues on adding primary storage (#6438) 2022-06-08 13:18:22 -03:00
Hoang Nguyen
78a1602eb9
fixes error when creating volume from the snapshot (#6443) 2022-06-08 08:50:08 -03:00
Nicolas Vazquez
cb7cbeca25
Fix deploy from ISO with custom disk offering (#6441) 2022-06-08 08:30:08 -03:00
nvazquez
559e275d76
Fix upgrade schema cleanup 2022-06-06 12:41:48 -03:00
nvazquez
9b50e417f7
Add upgrade path for 4.17.1 2022-06-06 12:33:19 -03:00
nvazquez
7ed8d54db2
Fix version numbers 2022-06-06 12:22:11 -03:00
nvazquez
038a669d6b
Updating pom.xml version numbers for release 4.17.1.0-SNAPSHOT
Signed-off-by: nvazquez <nicovazquez90@gmail.com>
2022-06-06 12:19:44 -03:00
nvazquez
c56220fcf2
Updating pom.xml version numbers for release 4.17.0.0
Signed-off-by: nvazquez <nicovazquez90@gmail.com>
4.17.0.0
2022-05-31 14:33:47 -03:00
David Jumani
0f4c3af935
cks: Fix when deployed on a nw without internet access (#6418)
* cks: Fix when deployed on a nw without internet access

* Revert "cks: Fix when deployed on a nw without internet access"

This reverts commit 40e3338001b2f1c239533bedac5b60d8b9d2f631.

* cks: Fix issue when creating cluster in nw without internet access
2022-05-31 14:32:27 -03:00
Nicolas Vazquez
82e0d5d679
Fix UEFI detection on KVM and prevent deployments on non UEFI enabled hosts (#6423)
* Do not allow UEFI deployments on non UEFI enabled hosts

* Fix UEFI detection on KVM

* Refactor

* Improvement
2022-05-31 14:31:42 -03:00
Daniel Augusto Veronezi Salvador
81b7e6e750
Fix extract snapshot from vm snapshot on kvm (#6422)
* Fix extract snapshot from VM snapshot on KVM

* Fix validation expression - does not need to escape the slash

Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
2022-05-31 14:30:36 -03:00