1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-06 13:17:42 +03:00
Commit Graph

1294 Commits

Author SHA1 Message Date
Carlos Martín
c12cb2d6ba Feature #2858: Free leases even if the VM/NIC does not have AR_ID
This way VMs created in ONE < 4.8 will correctly free the IPs
2014-07-09 10:38:51 +02:00
Carlos Martín
1ef911e77a Feature #2964: add onedb migrator 2014-07-04 12:04:29 +02:00
Carlos Martín
1b668757fe Feature #2964: unlimited quota is now -2, in core 2014-07-03 12:16:29 +02:00
Ruben S. Montero
3fb497730d feature #1696: Clone now supports a target datastore for images 2014-06-26 22:09:17 +02:00
Ruben S. Montero
ee3a9a8ed9 feature #2950: Add Zone ID to log messages in the form of [Z<ID>] 2014-06-26 16:31:34 +02:00
Javi Fontan
f0978952bb Merge remote-tracking branch 'origin/feature-2452' 2014-06-23 11:56:26 +02:00
Ruben S. Montero
a2a54a5f92 feature #2452: Move lost VMs in hypervisor to power off state 2014-06-22 07:58:22 +02:00
Carlos Martín
faa407e0ec Feature #2858: Return error for wrong AR update actions. Do not allow to update a reservation SIZE 2014-06-16 17:56:50 +02:00
Ruben S. Montero
f57e0b4c1c feature #2858: Adjust quotas on VNET chown 2014-06-03 16:09:26 +02:00
Ruben S. Montero
5599906f02 feature #2858: Fix permission check when adding a reservation to an existing reservation. Quotas always account for the reservation owner 2014-06-03 15:13:26 +02:00
Ruben S. Montero
e971911068 feature #2858: Free address ranges on VNET 2014-06-02 19:18:32 +02:00
Ruben S. Montero
6136edf87c feature #2858: Add free_ar to free a previously reserved address range. Operation needs MANAGE permission on the reservation VNET (rm_ar is ADMIN) 2014-06-02 01:39:22 +02:00
Ruben S. Montero
be238e98ee feature #2858: Add reservations to an exisiting network. VNETs are labeled with the PARENT_NETWORK_ID if any. Just one PARENT VNET is allowed 2014-05-30 19:00:59 +02:00
Ruben S. Montero
509529bac6 feature #2858: one.vn.[update, update_ar, add_ar, rm_ar] require ADMIN rights 2014-05-30 19:00:59 +02:00
Ruben S. Montero
41e0412bdc feature #2858: free by owner returns the number of addressses freed 2014-05-30 12:57:09 +02:00
Ruben S. Montero
0fbef4c68c feature #2858: Reserve by IP & MAC 2014-05-30 00:00:32 +02:00
Ruben S. Montero
ab6de3ae02 feature #2858: Fix minor memory leaks 2014-05-29 15:36:20 +02:00
Ruben S. Montero
977fc0d9e3 feature #2858: Reserve by AR_ID, fix DB storage of reservations 2014-05-29 12:44:41 +02:00
Ruben S. Montero
28e7faf54e feature #2858: Check quotas for reserve addresses. Update AR on reservation 2014-05-28 10:59:02 +02:00
Ruben S. Montero
d5deaaf9e4 feature #2858: First version of VNET reservation. VNET is created, addresses allocated. Needs to set free addr methods upon reservation removal. 2014-05-27 17:19:36 +02:00
Ruben S. Montero
88987631d9 feature #2858: Add umask to Request attributes 2014-05-27 12:58:46 +02:00
Ruben S. Montero
b907e03aa4 Merge branch 'master' into feature-2858 2014-05-23 15:07:23 +02:00
Ruben S. Montero
20a3c25843 feature #2858: Update ARs. Core, OCA and CLI. Needs to implement attribute removal 2014-05-23 00:24:14 +02:00
Ruben S. Montero
f440b6b1a5 feature #2858: Add and remove methods for Address Ranges. Core, OCA and CLI 2014-05-22 20:20:33 +02:00
Ruben S. Montero
8c92f9b1a7 feature #2858: Remove old code 2014-05-19 19:41:48 +02:00
Ruben S. Montero
e6301350d0 feature #2858: Hold and Release for IP/MAC addresses in all Address Ranges. Keep compatibility with 4.6 interface 2014-05-19 17:59:06 +02:00
Ruben S. Montero
14105efd0d feature #2858: Hold first matching lease if no address range is specified 2014-05-19 00:28:27 +02:00
Ruben S. Montero
1a4f9e09f0 feature #2858: Support for Address Range attributes in context 2014-05-17 01:17:58 +02:00
Ruben S. Montero
15f596b4aa bug #2923: Clean VM monitor when VM_INDIVIDUAL_MONITOR is set to "no" (default)
(cherry picked from commit fbedfdc2a6)
2014-05-16 12:27:09 +02:00
Ruben S. Montero
f0e64384cf feature #2858: Adds lease usage information to XML descriptions 2014-05-10 21:44:39 +02:00
Ruben S. Montero
72b61e9ec5 feature #2858: Integrate Address Ranges with VirtualNetwork and VirtualMachine 2014-05-10 21:06:59 +02:00
Ruben S. Montero
cab018fc98 feature #2858: Allocate & free functions for the address range pool 2014-05-10 19:46:27 +02:00
Ruben S. Montero
e4cee7c1ea feature #2858: Integrate AddressRangePool with VirtualNetwork: persistency & initialization 2014-05-10 01:22:02 +02:00
Ruben S. Montero
c24dfec31a feature #2858: First version of AddressRangePool 2014-05-09 21:20:09 +02:00
Ruben S. Montero
771b41f39f feature #2858. Clear and to_xml on streams for VectorAttributes 2014-05-08 15:48:16 +02:00
Ruben S. Montero
acce1cdaee feature #2858: Work on AddressRange class 2014-05-08 13:42:28 +02:00
Ruben S. Montero
e13cfcf726 feature #2858: Allocate addresses by MAC or IP 2014-05-05 17:49:57 +02:00
Ruben S. Montero
198ebfdefd feature #2858: Implementation of Address Range class 2014-05-02 17:04:48 +02:00
Ruben S. Montero
61c3fe95f8 feature #2858: Convert to unsigned int from vector attributes 2014-05-02 14:11:36 +02:00
Carlos Martín
cec4179036 Add migrator to 4.6.0. ACL rule was missing 2014-04-24 15:52:05 +02:00
Jaime Melis
c53006b579 Bump to version 4.6.0 2014-04-23 12:26:38 +02:00
Carlos Martín
0e5a252ffd Feature #2828: add new param to java oca 2014-04-08 12:17:37 +02:00
Carlos Martín
784105fb9e Feature #2806: hide password arguments in proxy calls 2014-04-07 19:04:18 +02:00
Ruben S. Montero
d44c95d3e2 Add clone template option when saving a disk image. The new template will point to the saved image 2014-04-06 23:34:07 +02:00
Jaime Melis
960d6b1f94 Bump to version 4.5.85 2014-04-03 11:21:05 +02:00
Ruben S. Montero
caf4484680 Feature #2270: VNets can be only deleted if there are not used leases 2014-03-19 17:09:52 +01:00
Jaime Melis
13af872dce Feature #2202: Adds support for cdroms a Gluster datastores 2014-03-11 14:54:18 +01: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
Ruben S. Montero
f949691cef bug #2565: Join get_info and get_info_without_error 2014-03-08 00:02:38 +01:00
Carlos Martín
aba30a59e4 Feature #2565: Fix bug in del_provider for deleted clusters 2014-03-07 19:03:43 +01:00
Carlos Martín
444b5bf8c0 Feature #1798: Add host reserved_cpu/mem attributes each monitoring step 2014-03-06 16:18:28 +01:00
Ruben S. Montero
73456ca7a7 Merge branch 'feature-2465' 2014-03-05 18:14:46 +01:00
Carlos Martín
0ebd23916a Bump version manually for shared/local tables 2014-03-05 16:33:05 +01:00
Ruben S. Montero
a759d95c59 feature #2465: virtualnetwork can update VLAN, VLAN_ID, BRIDGE and PHYDEV configuration attributes 2014-03-04 17:11:56 +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
Javi Fontan
03f577bbeb Bump version 2014-03-04 12:53:44 +01:00
Javi Fontan
68a7909348 Change Nebula.h version for bump version script 2014-03-04 12:49:42 +01:00
Ruben S. Montero
7577d6d6b9 feature #1798: Optionally reserve capacity from a host. Cluster defaults can be defined 2014-03-04 11:42:44 +01:00
Tino Vazquez
c58cc19d01 Feature #2696: Add generic Template for Groups 2014-02-26 12:59:29 +01:00
Ruben S. Montero
3ae612a3c6 feature #2743: Split logic to deal with local and shared table DB versions. 2014-02-23 19:31:08 +01:00
Carlos Martín
46e6688706 Feature #2743: onedb keeps 3 different versions
1 the code version
2 the replicated (master) DB tables version
3 the slave (local) DB tables version
2014-02-21 18:08:41 +01:00
Carlos Martín
7744150944 Feature #2727: Delete acl rules that apply to a zone when that zone is deleted 2014-02-21 15:23:24 +01:00
Ruben S. Montero
f01854f8d9 Merge branch 'master' of git.opennebula.org:one 2014-02-20 12:36:40 +01:00
Ruben S. Montero
d1a2b207f2 feature #2587: Added a DEFAULT_DEV_PREFIX for CD-ROM devices 2014-02-20 12:36:06 +01:00
Jaime Melis
2a8393b15d Merge branch 'bug-2645' 2014-02-19 22:58:18 +01:00
Carlos Martín
0a71139b34 Bug #2724: Add resource provider ALL to users group on bootstrap 2014-02-19 16:49:26 +01:00
Carlos Martín
22e621ea95 Bug #2734: ACL rules are not forced to be in the local zone
But the onedb import-slave command will simply ignore any
rule that applies to a zone other than #0 or *
2014-02-18 18:54:36 +01:00
Carlos Martín
d0eb7aead4 Bug #2734: Revert "Feature #2694: Force ACL rule zone to be the local zone when oned is standalone"
This reverts commit 41756a9de3.
2014-02-18 18:45:01 +01:00
Jaime Melis
3004e3c055 Bug #2645: A VM disk detach leaves Images to be saved-as in LOCKED state 2014-02-17 15:47:46 +01:00
Carlos Martín
41756a9de3 Feature #2694: Force ACL rule zone to be the local zone when oned is standalone
This way the import process to a federation is simplified
2014-02-13 17:23:42 +01:00
Carlos Martín
77b51290eb Feature #2694: New zones can only be created if oned is master 2014-02-12 19:27:38 +01:00
Carlos Martín
9b7a1120d5 Feature #2693: A federation slave can now bootstrap the remaining local tables 2014-02-05 19:30:35 +01:00
Ruben S. Montero
93377e0ba6 Feature #2672: Remove uneeded getter. add some comments 2014-01-30 11:41:56 +01:00
Carlos Martín
a6455c9d04 Bug #2676: Ensure Zone TEMPLATE/ENDPOINT always exists 2014-01-29 19:26:01 +01:00
Carlos Martín
51b7327d09 Bug #1804, #2618: Create auth request uses the new object's target group 2014-01-29 18:15:06 +01:00
Carlos Martín
c36bc33fd4 Feature #2665: More DB write checks for federation slaves 2014-01-29 13:04:07 +01:00
Carlos Martín
7254f1b81a Feature #2653: Add more checks to ACL creation 2014-01-28 18:21:49 +01:00
Carlos Martín
87df948ee3 Feature #2562: Create a local zone on bootstrap 2014-01-28 18:20:59 +01:00
Carlos Martín
83a5a413ab Feature #2613: Implement onezone rename 2014-01-28 14:47:57 +01:00
Carlos Martín
758d9fdb8a Merge remote-tracking branch 'origin/feature-2672' into vdc-federation
Conflicts:
	include/AclManager.h
	src/acl/AclManager.cc
	src/nebula/Nebula.cc
2014-01-27 17:51:54 +01:00
Carlos Martín
ab479bdc72 Feature #2672: Disable ACL cache for federation slave nodes 2014-01-27 17:44:27 +01:00
Ruben S. Montero
2c6049b754 Feature #2653: Store zone_id in AclManager and send it to PoolObjectAuth 2014-01-25 20:41:13 +01:00
Carlos Martín
63d0b8f5a3 Feature #2653: Temporary fix for stand-alone mode 2014-01-24 18:50:09 +01:00
Carlos Martín
025092f157 Feature #2672: Disable cache for federation slave nodes 2014-01-24 18:27:36 +01:00
Ruben S. Montero
3721b0ff68 Remove unused Zone attribute 2014-01-24 00:26:44 +01:00
Ruben S. Montero
e88ff5f0da New attribute MESSAGE_SIZE to configure xml-rpc Client for slave zones 2014-01-24 00:14:38 +01:00
Ruben S. Montero
03914330a4 Fix merge of master branch 2014-01-23 17:07:52 +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
Ruben S. Montero
90a565c264 Revert "Feature #2665: Move c++ xmlrpc client from sched to oned"
This reverts commit 11b255a0f7.
2014-01-23 16:11:09 +01:00
Carlos Martín
8403b17998 Feature #2565: Better management of zone & cluster id in ddd/del provider 2014-01-23 15:45:26 +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
Carlos Martín
09f204e242 Merge branch 'master' of git.opennebula.org:faf-71 2014-01-22 13:21:59 +01:00
Carlos Martín
625890f9fc Feature #2665: New RMProxy class, proxy user methods 2014-01-22 13:17:09 +01:00
Carlos Martín
554cd57c61 Feature #2665: Add federation config to oned.conf 2014-01-22 12:55:30 +01:00
Carlos Martín
11b255a0f7 Feature #2665: Move c++ xmlrpc client from sched to oned 2014-01-22 12:43:24 +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
cf31d91abd Feature #2653: Add zone id to each ACL rule 2014-01-21 12:52:25 +01:00
Carlos Martín
c2f1a6d1c4 Feature #2632: Extract group quotas to another table 2014-01-16 17:08:08 +01:00
Carlos Martín
d5d904b114 Feature #2632: Extract user quotas to another table 2014-01-15 16:27:50 +01:00
Tino Vazquez
461bda9f82 Feature #2613: Extend zonepool with endpoint + update
Done for CLI and Sunstone
2014-01-13 18:26:21 +01:00
Javi Fontan
193e7a9cf6 feature #2371: add pagination to pool info
When the end_id of pool.info xmlrpc call is lower than -1 the parameters
do not refer to object ids but offset and cuantity used for pool pagination.r
The SQL query will have "LIMIT start_id,-end_id".
2014-01-13 16:30:43 +01:00
Jaime Melis
11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Ruben S. Montero
99157ea06b Feature #2572: XML-RPC library element size can be defined in sched.conf 2013-12-21 01:35:51 +01:00
Carlos Martín
402eee32ef Feature #2565: New special cluster ID, 10, adds ACL rule *
This allows the admin to assign all resources from a zone
to a group
2013-12-20 17:21:47 +01:00
Carlos Martín
25fce2c847 Feature #2565: Manage resource providers in oned 2013-12-13 16:16:53 +01:00
Carlos Martín
599dabd702 Feature #2565: New method in acl manager to delete acl rules directly, instead of by id 2013-12-13 11:43:34 +01:00
Carlos Martín
f308bdeb06 Feature #2562: New Zone pool in core 2013-12-12 19:08:59 +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
JensHoffmann
74414c31b1 Use std::string for log file name in module Log 2013-12-09 17:55:10 +01:00
Jaime Melis
6b32d4c20f Bump to version 4.4.0
(cherry picked from commit d7c6a6a6d2)
2013-11-28 15:11:39 +01:00
Javi Fontan
b775ef1247 Bump version to 4.3.90
(cherry picked from commit f783d3082b)
2013-11-28 15:09:37 +01:00
Ruben S. Montero
9eba97912c bug #2492: Host rename requires ADMIN rights 2013-11-23 18:56:41 +01:00
Ruben S. Montero
7f2a68c5d5 Get rid of unneeded double string-int conversions 2013-11-22 10:15:57 +01:00
Ruben S. Montero
eb56f526a6 feature #2435: Remove unused function. Minor optimizations 2013-11-21 23:40:13 +01:00
Carlos Martín
b2cb9c10f6 Feature #2435 #2092: Rename HYBRID to PUBLIC_CLOUD 2013-11-21 18:46:31 +01:00
Carlos Martín
4a71896ec6 Feature #2435 #2092: Allow deployment to hybrid hosts using system DS -1 2013-11-21 18:46:31 +01:00
Carlos Martín
70444b21f7 Feature #2435 #2092: Code cleanup.
Hybrid hosts are not detected with the generic HYBRID=YES
2013-11-21 18:46:31 +01:00
Carlos Martín
637f1dbbd2 Feature #2435 #2092: New generic HYBRID section in VMs, better automatic_requirements 2013-11-21 18:46:30 +01:00
Carlos Martín
ab619a50f4 Bug #2487: RM forces the system DS for stopped/undeployed VMs 2013-11-21 18:28:49 +01:00
Carlos Martín
bc6ae465d9 Feature #2479: Allow CONTEXT/DEV_PREFIX, and make 'hd' the default prefix for cdrom type disks 2013-11-21 16:01:35 +01:00
Ruben S. Montero
d1b71d0df1 bug #1264: Do not allow wrong number in GRAPHICS/PORT; i.e. floats, <0, strings... 2013-11-21 12:07:06 +01:00
Ruben S. Montero
5fb9fc931e Fix bug that prevents a host from come out init state
(cherry picked from commit e4f46706bcd765e712506408fc8f6023d6f40efd)
2013-11-18 22:13:40 +01:00
Ruben S. Montero
78171a42a2 :im-threads: Add oned.conf configuration attribute. Moved thread pool to IM
(cherry picked from commit 3ab3b92de2c054f63e3c9b40246082d24b451e1e)
2013-11-18 22:13:40 +01:00
Ruben S. Montero
9f691779cd Add multithead Information Manager to process monitor messages
(cherry picked from commit 042ba56731720c4d7973015b5cc89945bebed8d3)
2013-11-18 22:13:40 +01:00
Jaime Melis
96b5cd4276 Bump to version 4.3.85 2013-11-15 14:32:03 +01:00
Carlos Martín
1a2b923825 Feature #1796: Add ceph host and secret to kvm deployment files 2013-11-15 12:58:53 +01:00
Carlos Martín
b559b3250a Feature #2459: Define image, ds and vnet attributes to be inherited to the VM disk or nic sections 2013-11-14 11:49:53 +01:00
Ruben S. Montero
f5876a248e bug #2144: Execute epilog commands if an attach operation fails 2013-11-10 20:40:04 +01:00
Carlos Martín
f00d57c013 Feature im-collectd: host poll info gives a grace period to lost and zombie VMs
Because the collectd will report always outdated info, even if it is
only by a few seconds, the core must take into account that recently
deployed VMs can be missing from the monitoring information.

The same happens for deleted VMs, they may appear as running in the
next host monitoring information.
2013-11-06 13:06:56 +01:00
Jaime Melis
b76b22dc6e Feature #1678: Don't process MONITOR_PUSH_INTERVAL in the core. 2013-11-05 19:24:38 +01:00
Ruben S. Montero
9837e7c93a feature #1678: Remove host right before sending the STOPMONITOR action to driver 2013-11-05 19:20:28 +01:00
Jaime Melis
3a6cd82ae4 Feature #1678: Add a new MONITORING_PUSH_INTERVAL
configuration option that handles the  time between push
monitoring intervals. This new parameter is passed on to the
collectd-client.rb
2013-11-05 12:55:52 +01:00
Ruben S. Montero
a2dd9e9780 feature #2357: When creating a Datastore, if a wrong DISK_TYPE is specified an error is reported 2013-11-03 18:03:39 +01:00
Ruben S. Montero
9f9057dd79 Wait poll_period since the VM started to run to proactively monitor a VM 2013-11-02 18:25:10 +01:00
Ruben S. Montero
b99d0c294a Merge branch 'feature-1678'
Conflicts:
	src/im_mad/remotes/common.d/collectd-client_control.sh
	src/onedb/4.2.0_to_4.3.80.rb
2013-10-25 21:23:27 +02:00
Ruben S. Montero
beb266a3bb feature #1678: Test functions for VM capacity uses Pool. Conditional print VM requirements for DEBUG log level 2013-10-25 20:52:10 +02:00
Jaime Melis
55c1399fd2 feature #1678: Send STOPMONITOR action when host is deleted. 2013-10-25 17:53:12 +02:00
Tino Vazquez
5413d42eb6 feature #2392: Add CID to VM history
Modify CLI accordingly
2013-10-25 17:09:00 +02:00
Carlos Martín
84ecfbeb7e Remove outdated core tests 2013-10-25 16:05:53 +02:00
Ruben S. Montero
f98a2daee9 feature #1678: Exit oned if a driver cannot be loaded 2013-10-25 15:16:44 +02:00
Ruben S. Montero
67732e18f9 feature #1678: Remnoved unneeded forward declaration 2013-10-24 15:42:07 +02:00
Ruben S. Montero
2660b2ff5b feature #1678: Moved update info of datastore, and minor work on monitor callback function 2013-10-24 15:30:21 +02:00
Carlos Martín
232482a97b Feature #1678: Move TM_MAD ln and clone target definitions to oned.conf 2013-10-23 16:15:18 +02:00
Carlos Martín
ed8aa715bd Feature #1678: Remove the with_ds_info param in host poll 2013-10-22 17:46:34 +02:00
Carlos Martín
bf8c8f1646 Feature #1678: small refactor 2013-10-22 17:20:23 +02:00
Carlos Martín
51124a9d12 Feature #1678: Move DS location monitorization att to Host Share 2013-10-22 17:12:06 +02:00
Carlos Martín
79472b23e1 Feature #1678: Make the DS monitorization more generic
System DS do not have ln and clone targets, and this
change allows monitorization to return any arbitrary
values to be used in SCHED_REQ and SCHED_RANK, like
FS speed
2013-10-22 16:49:30 +02:00
Carlos Martín
149dab3525 Feature #1678: Add a template to HostShare, store local system DS monitorization there 2013-10-22 15:42:51 +02:00
Carlos Martín
da7aa6117b Merge branch 'feature-1678' of git.opennebula.org:one into feature-1678 2013-10-21 15:40:56 +02:00