Commit Graph
287 Commits
Author SHA1 Message Date
Ruben S. MonteroandPavel Czerny 500e45dbd6 F #1401: Configurable VM_*_OPERATIONS per group and user. Restructure of the API
authorization levels and initialization logic.

Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2019-09-09 13:13:52 +02:00
Ruben S. MonteroandPavel Czerny a742b95d83 F #3064: Unified secret handling
Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2019-09-03 16:46:36 +02:00
Ruben S. MonteroandChristian González cbd9aee912 F #3393: Reduce number of updates referencing FTS field. Changed REPLACE
operations to UPDATE to improve DB performance

co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-06-12 17:20:50 +02:00
Ruben S. Montero 079d5d7d21 b #3409: Update users & groups quotas only in the zone DB 2019-06-07 16:57:01 +02:00
Alejandro Huertas 90425c2559 F #2899: Replace SHA1 by SHA256
* Add new SHA256 hashing function
   * Change user password from SHA1 to SHA256 automatically
2019-03-04 15:14:55 +01:00
Ruben S. Montero a48d00d6eb B #2575: encode the EGID in the authentication token when a user (#2893)
* B #2575: encode the EGID in the authentication token when a user
authenticates with a scoped user token

* Update OpenNebulaCloudAuth.rb

* Update OpenNebulaCloudAuth.rb
2019-02-05 15:32:17 +01:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Ruben S. MonteroandAlejandro Huertas ab1a05b69b F #911: IP(v6) alias(es) support
* Modify VM context generation.
   * Modify attach/detach nic functionality.
   * Modify CLI nic-attach, so an alias can be attached.

Co-authored-by: Alejandro Huertas <ahuertas@opennebula.systems>
2018-12-04 14:41:55 +01:00
Ruben S. Montero 2123afc890 F #2427: Add support to NICs with NETWORK_MODE=auto. This commits includes
logic in oned to delay NIC/context resolution till deployment time. Also
scheduler has been extended to use the match-making algorithm to networks.
Sunstone interface changes to select auto networks.
2018-10-11 15:27:15 +02:00
Ruben S. Montero f54e066949 F #2489: Improve performance of oned:
* Reduce memory footprint
    * Improve connection handling in the RequestManager
    * Reduce the number of locking calls
    * Reduce the size of the VM pool
2018-10-09 11:15:59 +02:00
juanmont 09880ab5ce F #2228: Fixed problem with defualt quotas
(cherry picked from commit 56978c8433)
2018-09-06 11:33:29 +02:00
Ruben S. Montero 1235866e51 F #2228: Added new VM quota - RUNNING_MEMORY, RUNNING_CPU and RUNNING_VMS.
These running quotas are for all states included in ACTIVE and VMS being
scheduled (PENDING and HOLD) as those states consume the same resources (in
terms of allocation) as running VMs.

Author: juanmont <juanmont@ucm.es>
2018-09-05 15:14:39 +02:00
Ruben S. Montero 21fe311681 F #2183: Use pager for list commands (e.g. onevm list). Support for
custom ordering (by ID) in list API calls, this can be set per user,
group and default in oned.conf
2018-08-06 14:16:00 +02:00
juanmont 547ef24f59 B #2284: Added test to check quota assignment 2018-07-20 11:23:30 +02:00
juanmont 4f880598e9 B #1869: Checked if token has expired to not ask external drivers
(cherry picked from commit 92df02542e)
2018-03-23 11:08:58 +01:00
Ruben S. Montero 37222d65dc F #1792: Greatly improve concurrency by: Remove big lock on pool control class. Increase number of MySQL connections (new configuration variable). Make all parser reentrants. This commit also simplifies the pool references.
(cherry picked from commit a3d3ceb771034794c4fb453dcd9aaff64c53baed)
2018-03-17 23:35:21 +01:00
Vlastimil Holer a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero b12113e5aa B #5425: License and minor formatting 2017-10-20 14:17:55 +02:00
juanmont 3c46ff3366 B #5425: Changed UserPool and HostPool for to work with CachePool 2017-10-19 16:41:42 +02:00
juanmont 3cbda46ec1 B #5316: Given token password of the owner of creator user doesn't exist (#507) 2017-09-28 16:55:57 +02:00
Ruben S. Montero a2c5a4cbaa F #4809. Fix index in PoolSQL. Update interface in all classes 2017-06-21 03:22:56 +02:00
Javi Fontan 8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Ruben S. Montero a6d4ab3c9f F #4809: Update Sql database interface to include read/write/bootstrap
operations
2017-04-18 17:12:19 +02:00
Ruben S. Montero d1ad6a0cc6 B #5032: Further fixes for SELF DS (e.g. Ceph) for disks with resizes
and snapshots. Also updates delete-recreate quota computation
2017-03-31 20:09:27 +02:00
Ruben S. Montero 7a2face60c F #5005: New interface of ActionManager to accommodate additional arguments. Updates managers to the new interface 2017-02-03 20:39:34 +01:00
Ruben S. Montero 9297321d91 F #4393: New VirtualMachineDisk interface to abstract all disk
management logic. Adapted classes to new interface and re-allocated some
functions. Work on disk resize operations.
2016-12-12 02:28:00 +01:00
Ruben S. Montero 9d90f12602 B #4850: Invoke federation master when creating users from the driver callbacks 2016-10-06 17:09:51 +02:00
Ruben S. Montero 2dc9ddea40 F #4775: Consolidate authorization requests for User creates. User
groups are always managed as a set
2016-09-29 12:22:59 +02:00
Carlos Martín d17818a32b F #4775: Add Group membership to one.user.allocate API call 2016-09-23 13:28:44 +02:00
Ruben S. Montero e83994bb47 Feature #4714: Add expired token collector 2016-09-08 12:03:24 +02:00
Ruben S. Montero 9bbeb7f608 feature #4714: tabs... 2016-09-01 18:06:34 +02:00
Carlos Martín 83cea06e95 Feature #4714: Fix const iterator 2016-09-01 18:04:54 +02:00
Ruben S. Montero 94d9a0e35f feature #4714: Fix inicialization of auth driver variable 2016-09-01 14:58:37 +02:00
Ruben S. Montero 2e0cd9509f feature #4714: Check EGID as stored in the token is still a valid group for the user. 2016-08-31 18:24:15 +02:00
Ruben S. Montero 27c5a7ea48 feature #4714: Add multiple authentication tokens per user. Tokens are
extended to include an efective gid, used for object creation and
authorization (when using the token).
2016-08-31 14:52:33 +02:00
Carlos Martín a3e99f538f Feature #4715: Update group IDs when auth diver provides them 2016-08-23 14:48:45 +02:00
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Carlos Martín 82892ad70f Merge remote-tracking branch 'origin/master' into feature-4369 2016-03-17 18:22:51 +01:00
Carlos Martín eff51a0dea Feature #4369: Use ObjectCollection::from_xml instead of from_xml_node 2016-03-17 18:17:37 +01:00
Ruben S. Montero bdbca69a2d feature #4217:This commit includes the following changes to decouple the
DB access and marketplace control from master and slave zones:
  * Client class is singleton as required by xmlrpc-c
  * one_auth initialization moved to a comon location
  * MarketPlaceApp and MarketPlace actions are performed in the same zone as
the associated marketplace.
  * Adds three new api calls updateDB, dropDB and allocateDB to perform
low level DB operations. These methods are exposed for Market y
MarketApps
  * Forward operations are abstarct by Pool classes
  * Apps and markets now includes a ZONE_ID
2016-03-10 17:24:28 +01:00
Ruben S. Montero 6004270685 feature #4162: Sanitize some user attributes in XML douments 2016-03-03 12:32:36 +01:00
Ruben S. Montero 9e4af1ebc6 feature #3204: Security Group dynamic update. Add support to update SG
rules of running VMs though a new one.secgroup.commit operation
2016-03-01 23:31:31 +01:00
Ruben S. Montero 6a0b71e9dd feature #4217: Adapt Marketplace classes to new Template interfaces 2016-02-05 00:55:24 +01:00
Ruben S. Montero 5761be4d10 feature #4217: Simplify Template, Attribute and PoolObjectSQL class interfaces 2016-02-05 00:33:37 +01:00
Ruben S. Montero c9dd78ce85 feature #4215: Add decorator interface for Quota class. Implement a
Virtual Router decorator for QuotaNetwork
2016-02-05 00:31:50 +01:00
Ruben S. Montero b01e2336c5 Merge branch 'feature-4215' into feature-4217 2016-02-02 14:17:20 +01:00
Carlos Martín 68a0184ed2 Feature #4215: Implement auth & quotas for all VR actions 2016-02-01 17:07:04 +01:00
Ruben S. Montero e958ed3c2d feature - : Remove unused update methods 2015-12-10 15:39:23 +01:00
Ruben S. Montero 6bcc97bd08 bug #4022: Do not set snapshots on persistent images if its TM ln mode
is SYSTEM. Update quota update and snapshot survival after delete
--recreate according to:

 +--------+-------------------------------------+
 |LN/CLONE|     PERSISTENT    |   NO PERSISTENT |
 |        |---------+---------+-----------------+
 | TARGET | created |  quota  | created | quota |
 +--------+---------+---------+-----------------+
 | SYSTEM | system  | VM + DS | system  | VM    |
 | SELF   | image   | DS      | image   | DS    |
 | NONE   | image   | DS      | image   | DS    |
 +----------------------------------------------+

Snapshots created at system ds (LN_TARGET/TM_TARGET) will be deleted
after a recreate.

(cherry picked from commit c5ad05fc60680cda2763973f5079598c2bf166e7)
2015-11-13 01:40:16 +01:00
Ruben S. Montero 1b9919435e bug #4022: Removes snapshots from non-shared persistent disks. Update
Datastore Quota management to deal with bulk updates. Hook on DM & LCM
resubmit and clean_up_vm to remove snapshots

(cherry picked from commit 6f02a240ec8f4be7ef232e8f8c584665e6747233)
2015-11-13 01:40:16 +01:00