109 Commits
Author SHA1 Message Date
Ruben S. Montero ebbb7be5d4 M #-: Bump version 7.3.80 2026-03-30 09:58:53 +02:00
Valentyn Bohdan bfbc4c16c6 B OpenNebula/one#6892: Add check for password upper limit (#3460)
Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-03-18 17:28:02 +01:00
Tino Vázquez a64f071808 M #-: Bump year 2025 2025-02-28 11:56:18 +01:00
Guillemo RamosandRuben S. Montero 696e69a957 F #6752: AutoNFS (#3331)
This feature auto mounts NFS volumes for datastores. The behavior can be controlled with the following template attributes:

- ANFS_ENABLE: YES/NO to enable the automatic NFS management
- ANFS_HOST: hostname/IP of the NFS server
- ANFS_PATH: of the NFS share for this datastore
- ANFS_OPTS: Comma separated options (fstab-like) used for mounting the NFS shares

The shared drivers also performs a "garbage-collector" like to unmount NFS volumes on the hypervisors when the datastores are deleted. This operation is performed in a "lazy" way, when VMs are deployed on the hypervisor.

* oneimage create: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Move sh mount/umount logic to libfs.sh

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage delete: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Limit NFS mount/umount from SH code to 30s

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage clone: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount only when needed

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand (persisten)

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Linter

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: umount unneeded DS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Allow mount/umount/sed from sudoers

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount: use NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Do AutoNFS cleanup even during non-related ops

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Final refactor and improvements

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* ro values for Datastore object

* Wording for AutoNFS RO attributes

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* NFS_AUTO_ENABLE: change 'true' to 'yes'

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* sudoers: merge everythng into ONE_NFS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Quote NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Fix difference between sudoers specs

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Touch .automounted in AutoNFS mounts

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Update sudoers.rb

* Update rm

* Quote bash variable expansion

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

---------

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-01-20 16:55:22 +01:00
Tino Vázquez 05d147c524 M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Pavel Czerný 2fe396ae15 L #-: Add Astyle linting
* Add AStyle to smoke tests
* Format C++ files using AStyle
2024-06-03 11:40:24 +02:00
Pavel Czerný a5c57b69b3 M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
Tino Vázquez 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Vlastimil Holer 096754b63f M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Pavel Czerný 3ea67d3645 F #4936: Reduce number of new/delete, use unique_ptr (#212)
* On exit stop RequestManager first

* Use unique_ptr for pointers to Template

* Reduce number of new/delete
2020-09-15 11:16:00 +02:00
Ruben S. MonteroandPavel Czerný 5ce49ed404 F #4936: Refactor pools to use unique_ptr
co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2020-09-10 09:08:29 +02:00
Ruben S. MonteroandPavel Czerný 565094961a F #4936: oned refactor
* Remove duplicit methods from NebulaUtil

    * Const correctness

    * Fix minor code quality issues

    * Remove ObjectCollection::clone()

    * Minor SSLUtil interface change

co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2020-07-05 22:01:32 +02:00
Pavel Czerný daaf132a43 F #4936: Remove 'using namespace std' from headers (#60) 2020-07-02 22:42:10 +02:00
Ruben S. MonteroandPavel Czerny a3d8d4a65e F #4936: Refactor Driver and Message classes in OpenNebula daemon
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2020-06-29 12:14:00 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný 295f1d7f77 B #4417: Check VM_*_OPERATIONS attribute is correct (#4438)
(cherry picked from commit d6ac6508ef)
2020-03-26 19:23:01 +01:00
Pavel Czerný 8d12e78fbe F #4032: Speed up C++ build (#4035)
In Nebula.h use forward declarations instead of #include
2019-12-10 11:45:14 +01:00
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. Montero 079d5d7d21 b #3409: Update users & groups quotas only in the zone DB 2019-06-07 16:57:01 +02:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +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
Ruben S. Montero 721efccf13 B: Force free memory of object templates
(cherry picked from commit fa79b91974)
2017-10-06 23:27:21 +02:00
Javi Fontan 8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Ruben S. Montero bca17f4ee6 F #4809: Update SqlDB method name. DO NOT replicate monitoring data 2017-04-21 19:16:45 +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 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
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02: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
Jaime Melis e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Jaime Melis 8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Ruben S. Montero 0f44677325 feature #2796: Client side utilities to manage tokens: Ruby OCA, oneuser CLI. Also the token management across drivers (SSH & X509 included) is now homogenous 2014-09-06 22:22:40 +02:00
Ruben S. Montero 91e15fb377 feature #2796: Add login token to User object, the LoginToken is persistent 2014-09-03 17:15:13 +02:00
Ruben S. Montero 75889814f1 feature #2796: Add LoginToken class to abstract token management both for sessions and tokens 2014-09-03 14:10:45 +02:00
Ruben S. Montero 88987631d9 feature #2858: Add umask to Request attributes 2014-05-27 12:58:46 +02:00
Ruben S. Montero dbe21675fa System attributes, Group and User quotas are local tables needs to be bootstraped locally 2014-03-08 02:44:53 +01:00
Carlos Martín 2e8dc65fd6 Bug #2503: Add rollback in case of error 2014-03-04 17:09:04 +01:00
JensHoffmann 0a3ba8aca9 Bug #2503: Improve setting of password/auth_driver
UserChangePassword followed this strategy:
  a1. Eventually encrypt user password if the users
      auth_driver is CORE_AUTH
  a2. Set (probably encrypted) password with
      User::set_password
  a3. User::set_password tries to validate (probably
      encrypted) password instead of the raw password

UserChangeAuth did something similar:
  b1. If password is given (not empty) do a1 through a3
  b2. Set auth_driver

The change proposes the following:
 * In set_password:
    1. Validate the raw password
    2. Do encryption if needed
 * In UserChangePassword: simply call set_password
 * In UserChangeAuth: set auth_driver *before* calling
   set_password, such that set_password does the right thing
   if the auth_driver changes

Note: I needed to move the implementation of set_password
from User.h to User.cc since it seems impossible to access
UserPool::CORE_AUTH from within User.h.
2014-03-04 17:00:11 +01:00
Ruben S. Montero 7686ca93e0 Merge branch 'master' into vdc-federation
Conflicts:
	include/GroupPool.h
	include/UserPool.h
2014-01-23 16:36:22 +01:00
Carlos Martín 0a33f08de1 Feature #2632: Make two separate methods to update user/group, or its quotas 2014-01-22 18:54:48 +01:00
Ruben S. Montero cda9fa28e7 feature #2632: Moved DB implementation to its own class 2014-01-21 23:21:18 +01:00
Carlos Martín d5d904b114 Feature #2632: Extract user quotas to another table 2014-01-15 16:27:50 +01:00
Jaime Melis 11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Javi Fontan 1abee8aafc Take advantage of delete not acting on null values
Nebula.h and User.h
2013-12-10 18:03:03 +01:00
Carlos Martín 7bfb930292 Feature #1742: Add a set of group IDs to Users 2013-08-23 12:39:14 +02:00
Ruben S. Montero 5dc50875d4 feature #1879: New function to check object names. 2013-04-10 12:56:06 +02:00