Commit Graph

104 Commits

Author SHA1 Message Date
Rohit Yadav facc5945f0 CLOUDSTACK-10193: Fix smoke tests failures with new systemvmtemplate
- Several systemvmtemplate optimizations
- Uses new macchinina template for running smoke tests
- Switch to latest Debian 9.3.0 release for systemvmtemplate
- Introduce a new `get_test_template` that uses tiny test template
  such as macchinina as defined test_data.py
- rVR related fixes and improvements

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2017-12-23 09:22:44 +05:30
Sigert Goeminne 880e475f40 CLOUDSTACK-9806: Nuage domain template selection per VPC
Co-Authored-By: Prashanth Manthena <prashanth.manthena@nuagenetworks.net>
Co-Authored-By: Frank Maximus <frank.maximus@nuagenetworks.net>

Bug: https://issues.apache.org/jira/browse/CLOUDSTACK-9806

Design Document: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Nuage+domain+template+selection+per+VPC
2017-11-15 14:40:30 +01:00
rashmidixit 49a862b223 CLOUDSTACK-9700: Allow user to Register/Copy templates to multiple zones at the same time 2017-05-15 14:07:22 +05:30
Sanket Thite bd80c8e179 VM snapshot is disabled if the VM Instance is off 2017-02-28 13:58:55 +05:30
Abhinandan Prateek 987fcbd441 CLOUDSTACK-8592: Implement Quota service
Quota service while allowing for scalability will make sure that the cloud is
not exploited by attacks, careless use and program errors. To address this
problem, we propose to employ a quota-enforcement service that allows resource
usage within certain bounds as defined by policies and available quotas for
various entities.  Quota service extends the functionality of usage server to
provide a measurement for the resources used by the accounts and domains using a
common unit referred to as cloud currency in this document. It can be configured
to ensure that your usage won’t exceed the budget allocated to accounts/domain
in cloud currency.  It will let user know how much of the cloud resources he is
using. It will help the cloud admins, if they want, to ensure that a user does
not go beyond his allocated quota. Per usage cycle if a account is found to be
exceeding its quota then it is locked. Locking an account means that it will not
be able to initiat e a new resource allocation request, whether it is more
storage or an additional ip. Needless to say quota service as well as any action
on the account is configurable.

Changes from Github code review:

- Added marvin test for quota plugin API
- removed unused commented code
- debug messages in debug enabled check
- checks for nulls, fixed access to member variables and feature
- changes based on PR comments
- unit tests for UsageTypes
- unit tests for all Cmd classes
- unit tests for all service and manager impls
- try-catch-finally or try-with-resource in dao impls for failsafe db switching
- remove dead code
- add missing quota calculation case (regression fixed)
- replace tabs with spaces in pom.xmls
- quota: though default value for quota_calculated is 0, the usage server
  makes it null while entering usage entries. Flipping the condition so
  as to acocunt for that.
- quotatypes: fix NPE in quota type
- quota framework test fixes
- made statement period configurable
- changed default email templates to reflect the fact that exhausted quota may not result in a locked account
- added quotaUpdateCmd that refreshes quota balances and sends alerts and statements
- report quotaSummary command returns quota balance, quota usage and state for all account
- made UI framework changes to allow for text area input in edit views
- process usage entries that have greater than 0 usage
- orocess quota entries only if tariff is non zero
- if there are credit entries but no balance entry create a dummy balance entry
- remove any credit entries that are before the last balance entry
  when displaying balance statement
- on a rerun the last balance is now getting added

FS: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Quota+Service+-+FS
PR: https://github.com/apache/cloudstack/pull/768

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-12-07 23:02:48 +05:30
Kevin Dierkx 471a02d6a4 Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
Kevin Dierkx 2bdbaf453e Removed trailing whitespace from ui/scripts/*.js 2015-08-07 11:25:15 +02:00
Rajani Karuturi 0b8355920e Merge branch 'volume-upload' into master
This closes #206
2015-04-29 11:12:53 +05:30
ramamurtis da1d8f9dce volume upload: fixed the UI after the change to move params to header.
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-02-27 17:40:06 +05:30
Jessica Wang 31dea7de2e volume-upload: UI > dialog widget - args.form.fileUpload.postUpload - fix a bug that loading image (spinning wheel, freezing screen) does not disappear after action succeeds/fails. 2015-01-30 17:08:21 -08:00
Jessica Wang c16d5a8221 volume-upload: UI > dialog widget > display $frameForm(the hidden form to submit file with signature/expires/metadata) in console log. 2015-01-22 15:45:08 -08:00
Jessica Wang 818f9cfcc7 volume-upload: UI > dialog widget > write log in console indicating callback() is triggered. 2015-01-21 15:11:44 -08:00
Jessica Wang eb180b131d UI > dialog widget > Allow passing custom data in POST request. 2015-01-21 12:33:16 -08:00
Brian Federle e92e46aba5 Dialog uploader -> getURL(): Pass $form 2015-01-20 10:53:24 -08:00
Jessica Wang f10709c756 Revert "Allow passing custom data in POST request"
This reverts commit e4d1049096.
2015-01-19 15:56:13 -08:00
Brian Federle e4d1049096 Allow passing custom data in POST request 2015-01-19 11:35:42 -08:00
Brian Federle d9a3268db6 Close dialog after upload 2015-01-16 09:24:29 -08:00
Brian Federle f243ae135b Add front-end file uploader 2015-01-14 11:26:38 -08:00
Brian Federle 82fa9184bf UI validation: Fix asterisk showing up on non-required fields 2015-01-07 08:49:27 -08:00
Wei Zhou 54db0d2a70 show Warning instead of Confirmation in confirm dialog if isWarning is set to true 2014-12-19 10:06:31 +01:00
Jessica Wang b11380eebe CLOUDSTACK-7943: UI > dialog widget > checkbox field > isChecked property > if isChecked property is a funciton, pass "args" along when calling isChecked() function. 2014-11-19 12:04:16 -08:00
Jessica Wang 21f39577e4 CLOUDSTACK-7826: UI - dialog widget - dependent dropdown field (dependsOn property specified) - fix a bug that default opton in dependent dropdown field didn't trigger change event handler until another option in dependent dropdown field was selected. 2014-10-31 15:33:07 -07:00
Brian Federle 9c56b3d4db Undo "Revert "CLOUDSTACK-7647"
This reverts commit 38bd1b934e.
2014-09-30 15:05:49 -07:00
Jessica Wang 38bd1b934e Revert "CLOUDSTACK-7647: Fix 'isReverse' checkboxes which are checked by default"
This reverts commit ef4b5d41b7.
2014-09-30 12:54:16 -07:00
Brian Federle ef4b5d41b7 CLOUDSTACK-7647: Fix 'isReverse' checkboxes which are checked by default 2014-09-29 12:58:40 -07:00
vetrivelc 6a11d099cf Fix Externalization of hard-coded label strings
-Split 'dictionary.jsp' into two files -> 'dictionary.jsp' and
'dictionary2.jsp' -- this is due to JSP file constraints as the
localization object is getting quite long

-Per change above, 'dictionary' object is now split into an additonal
'dictionary2' object, which is merged with the main dict object on page
load

-All new dictionary mappings should be added to 'dictionary2' now.

Signed-off-by: Brian Federle <brian.federle@citrix.com>
2014-09-17 13:59:13 -07:00
seif c319c0b3e0 Make using a hint (or no results) text more flexible 2014-08-18 15:07:03 -06:00
seif f2781a5ce3 Update the hint appropriately 2014-08-18 12:48:14 -06:00
seif fd6d083ad6 GUI changes to leverage a new control for storage tags 2014-08-17 17:18:51 -06:00
Mihaela Stoica 3bcd22bdaf Added the ability to show warning (exclamation mark) icon on confirmation dialogs.
Signed-off-by: Brian Federle <brian.federle@citrix.com>
2014-08-14 14:04:22 -07:00
seif 9d776f4f2c GUI changes to leverage a new control for storage tags 2014-08-12 14:41:22 -06:00
Jessica Wang 74847dce47 UI > dialog widget > text field > set default value > pass context to function(){}. 2014-08-07 18:55:52 -07:00
Brian Federle 4d952d0a09 createForm, dyanmic input type: Pass in context 2014-07-31 15:32:18 -07:00
Jessica Wang dbbc6d42fd CLOUDSTACK-6936: UI - (1)dialog widget > dropdown field > provide a blank option if there is no data for option(s) in a dropdown field. (2) Add Primary Storage dialog - cluster dropdown field - still calls args.response.success() when there is no data for option(s). 2014-06-18 12:23:10 -07:00
Gabor Apati-Nagy 156b08af5f CLOUDSTACK-6255
UI for supporting region level VPC, distributed routing enabled VPC and
stretched L2 neworks
2014-04-24 15:05:59 -07:00
Brian Federle 4c4cfe5e13 Create form: Store passed JSON object in select options, for plugin use 2014-04-17 15:52:56 -07:00
Chris Suich a3bfda1350 Fixed issue with labels being displayed in dialog
CLOUDSTACK-6368
2014-04-12 11:17:30 -04:00
Brian Federle e1e554277a UI Dialog: Was passing wrong field data for makeFields event 2014-03-05 13:34:48 -08:00
Brian Federle 8b0e04be61 Dialog: Trigger event when createform fields are being drawn
Trigger new event 'cloudStack.createForm.makeFields'
before field params are being passed to createForm for rendering.

This allows plugins to change and intepret fields before they are drawn.
2014-03-04 16:11:26 -08:00
Brian Federle c93b2fa605 UI dialog: Add event trigger on form creation, to aid in plugin development 2014-02-28 14:21:59 -08:00
Brian Federle 0ea93d6904 Form dialog UI: Support on cancel action
If args.cancel is passed to createForm widget, call it when cancel button is
clicked.

Example:

createForm: {
    cancel: function() { ... },
    ...
}
2014-02-13 14:33:53 -08:00
Chris Suich 06344db330 Added quiescevm option to volume snapshot dialog when storage supports it
CLOUDSTACK-5388
2013-12-06 13:09:55 -08:00
Jessica Wang 5795664bd2 CLOUDSTACK-4925: UI > dialog widget > extend isChecked property to take function type (it takes only boolean type before this check-in). 2013-10-22 11:31:28 -07:00
Jessica Wang 3f4ef406cf CLOUDSTACK-4102: UI > widget > extend dialog widget to have dynamic description. 2013-08-22 15:04:18 -07:00
Brian Federle da83e12d6b Revert "Create compute offering UI: Use big size for form"
Due to some usability issues with the form layout, reverting the
'bigSize' functionality from the createForm.
2013-08-14 10:53:26 -07:00
Chris Suich f03001d271 Extended UI fields to allow for specifying the identifying json field. 2013-08-14 10:29:23 -07:00
Chris Suich 9c9724d470 Extended UI field defaultValue (and isChecked) to allow for functions not just literals. 2013-08-14 10:27:04 -07:00
Brian Federle 8f34dc192f UI form dialog: Support dynamic unit conversion for fields
Adds a new dialog field type called 'has_units'. This field has an
input box side by side with a select box. The select box is populated
with predefined units (MB, GB, TB, for example) and uses (also
predefined) conversion functions to allow automatic updating of the
input box value when the units select box is changed.

Original author: Chris Suich <chris.suich@netapp.com>
Reviewed by: Brian Federle <brian.federle@citrix.com>

Example:

fields: {
    ...
    size: {
        ...
        has_units: true,
        units: [
            {
                id: 'gb',
                text: 'GB',
                fromBase: function(val) { ... return val; },
                toBase: function(val) { ... return val; }
            },
            ...
        ]
    }
}
2013-08-13 15:33:31 -07:00
Brian Federle 7c5b48425f CLOUDSTACK-3560: UI createForm: Support multiple dependsOn targets
Support passing list of dependsOn targets for form fields. This will
trigger a change if any items specified in list are changed.

Example:

fieldA: {...},
fieldB: {...},
fieldC: { dependsOn: ['fieldA', 'fieldB'] }
2013-07-24 14:25:31 -07:00
Ian Duffy ad69bc8da3 Format JS 2013-07-18 12:34:20 -04:00