1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00
Commit Graph

718 Commits

Author SHA1 Message Date
Ruben S. Montero
6d15673184 feature #1070: Moved some logic to Template classes 2012-01-23 23:09:47 +01:00
Carlos Martín
deb244c1b6 Feature #1070: Make VM and IMG restricted attributes configurable in oned.conf 2012-01-23 08:18:12 -08:00
Carlos Martín
5bd2e8fa54 Feature #940: Add restricted attributes for Images 2012-01-20 17:45:14 +01:00
Carlos Martín
ef241ba919 Fix description in xml-rpc chmod methods 2012-01-18 18:13:19 +01:00
Jaime Melis
4869bc3634 Merge branch 'master' of git.opennebula.org:one 2012-01-12 12:29:37 +01:00
Jaime Melis
a2b7cb6bc9 Bump to version 3.2.0 2012-01-12 12:29:18 +01:00
Carlos Martín
f1478e680e Feature #862: Change RMDelete auth. request to ADMIN for Hosts, Groups and Users, and MANAGE for the rest 2012-01-12 12:07:03 +01:00
Tino Vazquez
e0ea726eeb feature #1020: Default value for VMware datacenter 2012-01-11 12:46:49 +01:00
Carlos Martín
d36e3f1cf9 Feature #862: Remove PUBLIC from the authorization driver protocol 2012-01-10 15:24:01 +01:00
Ruben S. Montero
5c033040aa feature-862: Check persistent state and permissions for Images 2012-01-06 01:36:57 +01:00
Ruben S. Montero
30acd6df4f feature #862: Modified behavior of MINE, MINE-GROUP ALL queries 2012-01-06 01:12:55 +01:00
Carlos Martín
230252f0b4 Feature #862: Restore the MINE_GROUP filter flag for poolinfo calls. Change the default flag to 'ALL' in CLI and Sunstone 2012-01-05 18:56:37 +01:00
Carlos Martín
2f080668d8 Feature #862: Merge RequestManagerPoolInfo into RequestManagerPoolInfoFilter 2012-01-05 18:31:19 +01:00
Ruben S. Montero
2af47bf630 feature #862: DELETE now requires MANAGE and CREATE permissions over the object 2012-01-05 02:39:00 +01:00
Ruben S. Montero
3088f5ca5c feature #862: Refactor Chown function 2012-01-05 01:45:53 +01:00
Carlos Martín
38f494855b Feature #862: Add one.*.chmod xml-rpc methods in the core 2012-01-04 20:14:09 +01:00
Carlos Martín
3f51dd48de Feature #862: Remove public attribute from core 2012-01-04 06:31:20 -08:00
Carlos Martín
f1978f620a Feature #862: Change chown auth requests, allowing users to change their group, and change the group of their resources if they have USE rights over the new Group 2012-01-03 22:59:40 +01:00
Carlos Martín
9601533b19 Feature #862: Add default permission to Group so users can USE their own group 2012-01-03 10:08:51 -08:00
Ruben S. Montero
a77b5d4acd Merge branch 'master' into feature-862 2012-01-03 03:01:43 +01:00
Ruben S. Montero
e6628a1f75 Feature #862: Re-factor PoolObjectAuth. Moved ObjectType to PoolObjectSQL. simplified interface for AuthManger::add_auth. 2012-01-03 02:58:23 +01:00
Carlos Martín
7b11944a5a Get host permission attributes from Host object in RequestManagerVirtualMachine 2012-01-02 22:34:08 +01:00
Carlos Martín
75d5e7a1fb Add the Object type to the PoolObjectAuth class 2012-01-02 22:14:43 +01:00
Carlos Martín
fef8cdbf08 Rename Permissions class to PoolObjectAuth and move it to its own .h file 2012-01-02 21:17:20 +01:00
Carlos Martín
eaa257103e Refactor PoolObjectSQL::Permissions to be a separate class. Use pointers for Permissions arguments 2012-01-02 19:21:54 +01:00
Ruben S. Montero
a7d5e49264 feature #862: ADMIN is required for changing an user auth driver 2012-01-02 04:53:22 +01:00
Ruben S. Montero
4df973b95c Merge branch 'feature-132' 2012-01-02 03:04:53 +01:00
Ruben S. Montero
8f160525cd Merge branch 'feature-360' 2012-01-02 03:02:53 +01:00
Carlos Martín
764970f5ff Change defaults for PoolObjectSQL::Permissions constructor 2011-12-30 19:54:57 +01:00
Carlos Martín
f602cf62c9 Merge remote branch 'origin/master' into feature-862
Conflicts:
	include/RequestManagerVirtualMachine.h
	src/vnm/VirtualNetwork.cc
2011-12-30 17:11:55 +01:00
Carlos Martín
8e6aba9ba5 Create 3 ACL rules from the object's permission attributes in AclManager::authorize 2011-12-30 16:27:42 +01:00
Carlos Martín
58b831c471 New class PoolObjectSQL::Permissions to move objects ownership and permission attributes to the Auth & ACL Managers 2011-12-29 22:05:11 +01:00
Carlos Martín
39ca07268a New owner/group/other USE, MODIFY, ADMIN permissions attributes for PoolObjectSQL 2011-12-29 09:14:20 -08:00
Carlos Martín
e2f51e7861 Change ACL operations to USE, MANAGE, ADMIN & CREATE 2011-12-29 08:09:53 -08:00
Ruben S. Montero
7301def913 feature #132: Support for reboot action in OpenNebula core 2011-12-25 23:46:19 +01:00
Ruben S. Montero
42cebe30c1 Bug #1036: Local hooks are now executed from $VAR_LOCATION/remotes/hooks. Remote hooks are still executed from the SCRIPTS_REMOTE_PATH. 2011-12-19 23:35:46 +01:00
Ruben S. Montero
f41a20d4dd Bug #963: Prevents seg fault if user is freed while executing RM action 2011-12-19 22:42:33 +01:00
Carlos Martín
f0d8ac78d6 Bug #759: Check if XML is valid before it is stored in the DB. 2011-12-19 17:09:31 +01:00
Ruben S. Montero
3f38152881 feature #360: Scheduler now uses configuration file parameters. Removed sched options from one start script and scheduler daemon 2011-12-15 01:19:23 +01:00
Ruben S. Montero
52819b7909 feature #360: Split NebulaTemplate class to support addtional configuration files for OpenNebula daemons 2011-12-13 23:57:56 +01:00
Carlos Martín
3bce21e03a Modify one.host.allocate signature, to match changes of commit:665036ef 2011-12-13 17:36:20 +01:00
Jaime Melis
db18cbe829 Bump to version 3.1.80 2011-12-05 17:56:34 +01:00
Ruben S. Montero
6c7bbe6d76 Merge branch 'feature-602'
Conflicts:
	src/vnm/test/VirtualNetworkPoolTest.cc
2011-12-04 19:58:51 +01:00
Ruben S. Montero
3874271a69 Merge branch 'master' into feature-863
Conflicts:
	install.sh
	src/cli/one_helper/onevnet_helper.rb
	src/mad/ruby/ActionManager.rb
2011-12-02 18:13:39 +01:00
Carlos Martín
5f7cea8083 Feature #602 #863: Add VLAN tag to vnets and VM NIC attribute
(cherry picked from commit cdf1231f81)

Conflicts:

	src/cli/one_helper/onevnet_helper.rb
	src/vnm/test/VirtualNetworkPoolTest.cc
2011-12-02 12:43:29 +01:00
Carlos Martín
cdf1231f81 Feature #602 #863: Add VLAN tag to vnets and VM NIC attribute 2011-12-02 12:23:21 +01:00
Ruben S. Montero
8117ca4b77 Bug: Fixed wrong method name for VM migrate 2011-12-01 21:58:29 +01:00
Carlos Martín
d3081e4cb6 Feature #862: 'one* list a' commands return all the resources over which the user has INFO rights 2011-12-01 09:56:29 -08:00
Carlos Martín
05e40b5b6f Feature #602: Small bugfixes 2011-11-29 18:09:19 +01:00
Carlos Martín
4904cc964b Feature #965: New one.vn.hold and one.vn.release methods to mark IPs as used, without an associated VM. Includes Ruby OCA and CLI 2011-11-29 16:12:00 +01:00
Carlos Martín
effb4a5712 Feature #602: Refactorin of the Range creation code. New method RangedLeases::process_template 2011-11-28 17:24:46 +01:00
Carlos Martín
83e82830c8 Feature #602: Refactor Ranged VNets to store first and last IP of the range 2011-11-25 10:02:17 -08:00
Javi Fontan
85a676e959 now vmm deploy gets local and remote deployment paths 2011-11-16 18:11:53 +01:00
Ruben S. Montero
535d1c06c4 feature #966: Vnet can now be referred by name with NETWORK 2011-11-12 23:39:10 +01:00
Ruben S. Montero
34cb7a19be feature #966: Images can now be referred by name with IMAGE. Conflicts for images with the same name can be resolved with IMAGE_UID and IMAGE_UNAME 2011-11-12 03:20:59 +01:00
Carlos Martín
7efcb0e140 Feature #863: Small comment fix 2011-11-11 17:11:59 +01:00
Ruben S. Montero
744ab1faca feature #863: Fix XML for the driver message 2011-11-11 00:45:33 +01:00
Ruben S. Montero
fbcc340c8a feature #863: change prototype for vnm_mad functions 2011-11-10 22:53:39 +01:00
Carlos Martín
665036efcf Feature #863: Add Virtual Network MAD to hosts 2011-11-10 17:28:32 +01:00
Ruben S. Montero
5571bd81c0 feature #863: Fix comment on for the XML format of the driver message 2011-11-10 11:20:49 +01:00
Ruben S. Montero
f6ce18bfb4 feature #863: Change the OpenNebula Core to VMM Driver protocol now all messages have the same format:
ACTION ID XML_B64_DATA
The B64 data includes the parameters for each action plus a new field for the network driver used by the target host.

Also this commit changes the tree for the networking drivers.
2011-11-10 11:15:58 +01:00
Carlos Martín
45e4923dc0 Fixes outdated xml-rpc methods signatures 2011-11-02 17:36:53 +01:00
Ruben S. Montero
9abd1e91a4 Merge branch 'master' into bug-847 2011-10-27 01:46:30 +02:00
Ruben S. Montero
76243c5ea8 Merge branch 'bug-868' 2011-10-27 01:43:28 +02:00
Carlos Martín
c7584ad602 Bug #847: Automatically create at bootstrap new user serveradmin with server_cipher driver. 2011-10-25 18:49:09 +02:00
Carlos Martín
0bd23e33d9 Bug #847: Change the expected session token for server users to allow session caching 2011-10-24 18:04:00 +02:00
Ruben S. Montero
2650f81e50 Merge branch 'master' into bug-847
Conflicts:
	src/ozones/Server/lib/OZones/AggregatedPool.rb
	src/ozones/Server/lib/OZones/Zones.rb
2011-10-23 00:42:39 +02:00
Ruben S. Montero
03c9e6bc9a feature #940: Removed security check in tm_context drivers. Added check for restricted attributes to
VirtualMachineTemplate class. VM creation check templates for non-oneadmin users.
2011-10-22 22:38:00 +02:00
Carlos Martín
f0b1a28d89 Bug #868: Add new one.image.chtype method, in core, ruby & java oca, and CLI. Needs testing 2011-10-21 18:50:04 +02:00
Ruben S. Montero
7a44026d66 bug #847: Get rid of unneeded constructor in AuthRequest 2011-10-21 10:15:26 +02:00
Ruben S. Montero
3a2cbc229b bug #847: This commit includes several changes to the auth mechanism:
1.- Simplified auth methods for UserPool
2.- Added special SERVER_AUTH method for sudo'ing
3.- Added special PUBLIC_AUTH method for only-public interface users
4.- Added special driver name ("default") to authenticate unknown users
2011-10-21 01:17:46 +02:00
Carlos Martín
86c127320e Bug #847: Perform sha1 for new passwords if the core driver is used 2011-10-20 19:22:42 +02:00
Carlos Martín
303d17b260 Bug #847 - #918: Add password to one.user.chauth method, this way the driver and the auth driver are changed atomically 2011-10-20 18:58:40 +02:00
Carlos Martín
319e170ea5 Bug #847: Add new ACL operation to change the user auth driver. TODO: update Sunstone acl tab 2011-10-20 17:46:33 +02:00
Carlos Martín
30734a57f2 Bug #847 - #929: Add session expiration time in oned.conf 2011-10-20 12:53:36 +02:00
Carlos Martín
0ff522488f Bug #847 - #929: Include authentication session expiration time 2011-10-20 11:55:44 +02:00
Carlos Martín
b8ab225614 Bug #847 - #928: The character ':' is now allowed in passwords 2011-10-18 18:48:31 +02:00
Carlos Martín
d2e781cd27 Bug #847 - #918: Add method to change user auth driver in core, ruby oca and CLI 2011-10-17 15:08:00 +02:00
Ruben S. Montero
30a9162f5e Merge branch 'master' into bug-847
Conflicts:
	src/um/UserPool.cc
2011-10-15 00:22:52 +02:00
Ruben S. Montero
605d580c63 bug #847: The authentication driver is now not encoded as part of the secret. The base auth driver has been updated to deal with this new protocol 2011-10-12 01:00:50 +02:00
Ruben S. Montero
fcb352d09d bug #847: Tokens are never sha1_digested. Core authentication mechanism stores the passwords digested, client sends plain passwords. Includes OCA (Ruby), CloudAuth and CLI updates. Ozones needs redesign its password storafe strategy. 2011-10-12 00:27:03 +02:00
Ruben S. Montero
cbf64ecf1b bug #847: Auth drivers are set in OpenNebula core. Login tokens do not include the driver, so the hash logic needs update, see #911 2011-10-11 19:15:13 +02:00
Ruben S. Montero
7683ba8998 bug #847: Cleans image templates so only metadata is left. Adds path and fstype to image attributes for reference 2011-10-11 16:05:32 +02:00
Ruben S. Montero
1d9d1bd7bb bug #847: Fix constness for erase method in PoolObjectSQL. Better check in template erase 2011-10-11 15:46:58 +02:00
Ruben S. Montero
8356248782 bug #847: changes the prototype of mkfs function in Image Driver 2011-10-11 15:45:38 +02:00
Ruben S. Montero
6c55f347ec bug #847: Added method to get & erase an attribute. Cleaned up prototypes 2011-10-11 12:47:30 +02:00
Ruben S. Montero
b94dd94f3f bug #847: Adds template to Users to store metadata. Added OCA (ruby) methods and command option 2011-10-11 00:20:50 +02:00
Ruben S. Montero
fd5fc63dd0 bug #847: Implements update method for VirtualNetworks in OpenNebula core 2011-10-10 23:06:13 +02:00
Carlos Martín
21bca20780 Bug #848: Add error message and stop oned execution if bootstrap fails 2011-10-10 06:14:46 -07:00
Jaime Melis
b4368c961a Bump version to 3.1.0 2011-09-23 17:01:43 +02:00
Carlos Martín
77cf88ca5d Clean some TODOs in core 2011-09-21 16:13:04 +02:00
Ruben S. Montero
84a8d9e282 Bug #804:removed unneeded return
(cherry picked from commit 2fc3d7fbb4)
2011-09-15 23:17:51 +02:00
Carlos Martín
91d554b3aa Bug #804: Better image release rollback when a VM can't be created 2011-09-15 19:07:30 +02:00
Carlos Martín
f2a45ed139 Bugs #797, #485: Add invalid character checks to user names, add invalid char ':' 2011-09-13 17:54:51 +02:00
Ruben S. Montero
0faf6203fb bug #797: OpenNebula core prevents a password with spaces to be used
(cherry picked from commit f0410c9e75)
2011-09-09 18:33:37 +02:00
Jaime Melis
72b24945a6 Bump version to 2.9.85 2011-09-02 17:37:50 +02:00
Ruben S. Montero
c8f44ede9a feature #788: Compute image size when moving an image to the repository. Drivers now return <CP|MV|MKFS> SUCESS IMAGE_ID SOURCE SIZE. The fs based image repository drivers has been updates, oneimage utility has been also updated to show the size (list and show operations). 2011-08-31 16:21:18 +02:00
Ruben S. Montero
3501633b3d Merge branch 'master' into feature-754 2011-08-30 17:09:57 +02:00
Ruben S. Montero
a85b531035 feature #718: Change operation for deploy and migrate actions to DEPLOY 2011-08-30 16:34:05 +02:00
Ruben S. Montero
a724af2add Merge branch 'feature-718' 2011-08-30 15:51:50 +02:00
Ruben S. Montero
6b63fd4fe0 feature: New configuration attribute for the the number of HOSTs and VMs to be monitored per interval. 2011-08-16 18:12:45 +02:00
Carlos Martín
8706613748 Feature #718: Add new DEPLOY authorization operation in core 2011-08-05 16:35:24 +02:00
Ruben S. Montero
65606e7faf feture-754: OpenNebula core sends information about the ACL authZ result to the driver. Improved formating of auth strings. Check trivial authZ requests. 2011-07-27 11:27:16 +02:00
Ruben S. Montero
22574704e4 bug #742: Cosmetic change in error message for Image::persistent method 2011-07-27 10:17:17 +02:00
Carlos Martín
3cf9d5c68b Bug #742: Images can't be made (non)persistent when are in use. Add better error reporting. 2011-07-26 19:35:58 +02:00
Carlos Martín
3282fb80d5 Bug #719: Fixed taking back the RM UserDelete::drop method, see commit:66485c6e 2011-07-21 02:57:04 -07:00
Carlos Martín
32e10726d4 Bug: Image and VNet creation with an already used name reported a DB error, instead of a nice reason like Templates 2011-07-12 19:30:00 +02:00
Jaime Melis
9f3919b0ac Bump version to 2.9.80 2011-07-12 15:36:41 +02:00
Carlos Martín
55a8601b85 onedb: Change the db_versioning table.
Until now the version column was an integer, and the version was supposed to be
incremental starting from 0.

This can be a problem in future scenarios where we may have two active branches.
The table has been modified to store a string with the OpenNebula version.
2011-07-12 13:54:53 +02:00
Ruben S. Montero
88317546b5 feature #653, #488: Networks can only be referenced by ID in NICs. Names can now be repeated, even for the same user 2011-07-08 20:00:27 +02:00
Ruben S. Montero
82982a7a31 feature #653, #488: Images can only be referenced by ID in DISKs. Names can now be repeated, even for the same user 2011-07-08 18:55:21 +02:00
Ruben S. Montero
66485c6ed7 MULTIPLE GROUPS: Removed initial effort to support multiple user groups for the users. This should be easily recovered to complete this feature in the future 2011-07-07 19:01:04 +02:00
Carlos Martín
03fac9096a Bug #702: xmlrpc-c does not create a new xmlrpc_c::method class for each request.
Instead, it creates a single instance and its execute method is called for each new request.
This caused some variables to be shared by several threads, which eventually ended in
segmentation fault.
2011-07-07 12:45:13 +02:00
Ruben S. Montero
db1a3ae691 Merge branch 'feature-687' of git.opennebula.org:one into feature-687 2011-07-05 16:32:58 +02:00
Ruben S. Montero
37f0700a96 feature #687: Added an ACL Manager to the Scheduler. The ACL is base class for the new one 2011-07-05 16:32:18 +02:00
Ruben S. Montero
d850f6924d feature #687: AclManager can now be rebuild from an xml string 2011-07-04 22:33:13 +02:00
Ruben S. Montero
2e9ed0cc9f feature #687: Removed unused ObjectXML method 2011-07-04 22:32:29 +02:00
Carlos Martín
27e04919b2 Feature #687: Add a default ACL rule at bootstrap 2011-07-04 19:14:43 +02:00
Carlos Martín
3db9d55684 Feature #687: Add the ACL Manager to the test Nebula class 2011-07-04 15:59:36 +02:00
Ruben S. Montero
d60c98345b feature #687: DeleteRule returns the oid of the rule. AclManager initialized in constructor 2011-07-03 22:52:21 +02:00
Ruben S. Montero
84a19e69ad feature #687: Minor changes in the ACL module 2011-07-03 14:13:43 +02:00
Ruben S. Montero
c844ccb2cd feature #687: Comments and formatting for AclRule. Removed uneeded includes 2011-07-03 13:12:00 +02:00
Ruben S. Montero
95cc8c31d5 feature #687: Potentiall access to freed memory in Object_XML::get_nodes. Nodes must be disposed when not needed by the calling function 2011-07-03 01:57:39 +02:00
Ruben S. Montero
ff7e79207f feature #687: Scheduler uses the new filter function 2011-07-02 19:11:22 +02:00
Ruben S. Montero
d74b69e4ce Merge branch 'feature-696' into feature-687 + Filter for all groups
Conflicts:
	include/RequestManagerPoolInfoFilter.h
	src/rm/RequestManagerPoolInfoFilter.cc
2011-07-01 18:39:36 +02:00
Carlos Martín
2b90f02377 Feature #687: Bug in RequestManagerPoolInfoFilter: each request has a different operation, they can't share the common auth_op attribute 2011-07-01 17:33:37 +02:00
Carlos Martín
1b656b3b29 Feature #687: Additional check for new ACL rules 2011-07-01 12:54:31 +02:00
Carlos Martín
dc0a1edff5 Feature #687: Better handling of requests that don't have oid or gid 2011-06-30 19:43:36 +02:00
Carlos Martín
d813946556 Feature #687: Add method AclRule::from_xml 2011-06-30 16:04:56 +02:00
Carlos Martín
f2f9c267cb Feature #687: Let users in the oneadmin group manage ACL rules 2011-06-30 15:17:58 +02:00
Ruben S. Montero
071763887c Merge branch 'feature-687' of git.opennebula.org:one into feature-687 2011-06-30 12:10:01 +02:00
Ruben S. Montero
255c8ff886 feature #687: user and group name are now stored in XML descriptions 2011-06-30 12:09:25 +02:00
Carlos Martín
348e0aaebc Feature #687: Add mutex to AclManager 2011-06-30 11:41:27 +02:00
Ruben S. Montero
8e33e4cded feature #687: Resources now stores the name of the owner and the group 2011-06-30 11:31:00 +02:00
Carlos Martín
165a8fb74b Feature #687: Add oid to ACL Rules, one.acl.delrule now expects that ID. Modify XML to look similar to a pool 2011-06-29 18:41:49 +02:00
Carlos Martín
84f874bfc2 Feature #687: Add correctness check for new rules 2011-06-29 16:22:54 +02:00
Carlos Martín
85fa48e604 Feature #687: Change the way the rule string representation is built 2011-06-29 13:09:29 +02:00
Carlos Martín
773f5f0881 Feature #687: Remove unneeded operators in AclRule 2011-06-29 12:56:12 +02:00
Carlos Martín
303db36d95 Feature #687: ACL Manager looks for rules that apply to any of the user's groups 2011-06-29 12:50:16 +02:00
Carlos Martín
a0a51efb55 Merge branch 'master' into feature-687 2011-06-28 13:10:17 +02:00
Carlos Martín
05ea353f24 Feature #687: ACL rules now check the object's group 2011-06-28 12:56:37 +02:00
Jaime Melis
72286ddfe3 feature #700: add support for VLAN_ID in Network templates in the core 2011-06-27 18:58:31 +02:00
Carlos Martín
c1a0fa6f7d Feature #687: Add DB persistence to ACL rules 2011-06-27 18:41:16 +02:00
Ruben S. Montero
1c1cb98400 feature #696: OCA now supports state filter for VMs 2011-06-27 16:20:31 +02:00
Ruben S. Montero
d5bd0e16bd feature #696: Added state flag for VM pool info. Removed uneeded dummps in VMPool 2011-06-27 13:19:03 +02:00
Ruben S. Montero
9cea16cd5e feature #696: Virtual Machine info method now returns the full history of the VM. 2011-06-25 01:29:44 +02:00
Ruben S. Montero
9e21a2adc6 feature #696: filter pool methods can specify start and end ids of resources 2011-06-24 17:50:50 +02:00
Carlos Martín
94d1615e58 Feature #687: Store acl rules in a multimap. Add error messages when adding/deleting a wrong rule 2011-06-24 13:22:17 +02:00
Ruben S. Montero
2249929171 Merge branch 'feature-476'
Conflicts:
	src/vnm/VirtualNetwork.cc
2011-06-23 17:00:56 +02:00
Carlos Martín
bfaabf357d Feature #687: Start work on ACL rules 2011-06-22 19:22:52 +02:00
Carlos Martín
75f590bf66 Feature #662: Delete operator<< from VirtualNetwork. I forgot to do it in e28ad2a69d 2011-06-10 19:43:30 +02:00
Carlos Martín
0ac7a78ced Feature #662: Bug in RM: one.image.delete was using the ImagePool instead of the ImageManager 2011-06-10 18:22:48 +02:00
Ruben S. Montero
d6017d4ba4 feature #662: Do not drop hosts with running vms 2011-06-10 16:58:28 +02:00
Carlos Martín
4bc55a701f Feature #407, #662: Hosts don't have group 2011-06-09 17:35:55 +02:00
Carlos Martín
099b748585 Feature #407, #662: Groups don't have owner 2011-06-09 17:08:02 +02:00
Ruben S. Montero
591bee2f54 feature #407: Recover checks when changing groups 2011-06-09 12:29:38 +02:00
Ruben S. Montero
60294c229b feature #407: Fixes tests for Users. Groups are added in allocate 2011-06-09 12:05:46 +02:00
Ruben S. Montero
589fa7a875 feature #407: Fixes Image tests. persistent method returns 0 (not true) for successful operations 2011-06-09 10:51:17 +02:00
Ruben S. Montero
d6206edfa8 feature #407: Changed implementation for user.chown. Removed host.chown. set_gid/uid in PoolObjectSQL does not check gid. Old groups updated when changing users primary groups 2011-06-09 00:58:57 +02:00
Ruben S. Montero
954038d426 feature #407: Users gets the gid of user performing the allocate if not oneadmin. Group are added to users groups in constructor. Groups are updated in user allocate 2011-06-09 00:12:39 +02:00
Carlos Martín
edf3df5671 Feature #662: Add error message to PoolSQL::drop 2011-06-08 19:18:12 +02:00
Carlos Martín
069cd6bfb1 Feature #662: User add/del group: fix a couple of bugs, and better error messages. 2011-06-07 16:58:40 +02:00
Carlos Martín
43a7c5c67b Feature #662: New user.chown method. Allow chown to change either owner or group alone. 2011-06-07 16:55:23 +02:00
Carlos Martín
1c1d981cfe Feature #662: Better one.*.delete method implementation. GroupPool::drop checks for errors, and returns error messages. 2011-06-07 16:32:18 +02:00
Ruben S. Montero
ca3d0154c8 feature #662, #407: Better error messages. Added some missing pool updates and mutex unlocks 2011-06-04 04:02:19 +02:00
Ruben S. Montero
e3a930dd10 feature #662: Better error messages for authZ operations 2011-06-04 02:51:50 +02:00
Carlos Martín
064ea08895 Merge branch 'feature-407rm' of git.opennebula.org:one into feature-407rm 2011-06-03 19:09:55 +02:00
Ruben S. Montero
d1cba31ce3 feature #662: Missing RM file 2011-06-03 19:10:56 +02:00
Carlos Martín
16aa776f7e Merge branch 'feature-407rm' of git.opennebula.org:one into feature-407rm
Conflicts:
	src/rm/RequestManager.cc
	src/rm/SConstruct
2011-06-03 19:09:44 +02:00
Carlos Martín
0fecbced92 Feature #662: Refactored RM methods for Hosts and Images 2011-06-03 19:01:52 +02:00
Ruben S. Montero
8c8ead4f74 feature #407: new CHOWN operation in AuthManager 2011-06-03 18:26:59 +02:00
Ruben S. Montero
881d6968d8 feature #662, #407: New chown methods 2011-06-03 18:08:20 +02:00
Ruben S. Montero
c004100564 Merge branch 'feature-407rm' of git.opennebula.org:one into feature-407rm
Conflicts:
	src/host/HostPool.cc
2011-06-03 17:01:52 +02:00
Ruben S. Montero
70435d9043 feature #407, #662: New User methods in RM and some changes in the add/del group interface 2011-06-03 16:58:42 +02:00
Jaime Melis
662d7f6256 feature #476: support phydev attribute in core 2011-06-03 16:52:47 +02:00
Carlos Martín
e28ad2a69d Feature #662, #407: Delete operator<< from PoolObjectSQL classes. Remove Cluster objects. 2011-06-03 15:33:48 +02:00
Ruben S. Montero
532982b6fb feature #407: Prevent some deadlocks when adding/removing users from groups 2011-06-03 13:31:11 +02:00
Ruben S. Montero
3cf5d5e7cd feature #407: Moved implementation of ObjectCollection to cc file 2011-06-03 12:11:33 +02:00
Ruben S. Montero
72435cd453 Merge branch 'feature-407' into feature-407rm
Conflicts:
	include/Host.h
	include/PoolObjectSQL.h
	include/RequestManager.h
	src/rm/RequestManager.cc
	src/rm/RequestManagerUserAllocate.cc
	src/rm/SConstruct
2011-06-02 23:21:14 +02:00
Carlos Martín
fa46633339 Feature #662: New update method for Images and Templates added to OCA and CLI (work in progress).
New template instantiate method in OCA and CLI.
Fix small bugs in RM.
2011-06-02 19:17:22 +02:00
Jaime Melis
2af638e0a1 feature #476: get hook_location from scripts_remote_dir 2011-06-02 15:51:49 +02:00
Ruben S. Montero
9af500b4cd feature #662: Adding/removing files 2011-06-02 00:55:43 +02:00
Ruben S. Montero
d42f3d33f1 feature #662, #607: New update methods updates object templates (hosts, images and vm templates) 2011-06-02 00:51:42 +02:00
Ruben S. Montero
c7625b4836 feature #662, #607: Replace function for templates, Added VMTemplate functions 2011-06-02 00:20:42 +02:00
Ruben S. Montero
686b8d5b40 feature #662: Removed uneeded files. New factory method to get templates from a PoolObjectSQL 2011-06-01 23:53:09 +02:00
Ruben S. Montero
af3eed6063 feature #622: VirtualMachine Methods 2011-06-01 18:18:36 +02:00
Ruben S. Montero
437a01a2c6 feature #622: Added PERSISTENT tag to DISKs based in persistent IMAGES. New method to setup auth requests for virtual machine templates. 2011-06-01 12:41:46 +02:00
Ruben S. Montero
0a13288330 feature #622: VirtualMachineAllocate method in Request Manager 2011-06-01 12:37:39 +02:00
Ruben S. Montero
e61cd923c5 feature #662: Deleted unneeded file and moved object to string method 2011-05-31 00:16:57 +02:00
Ruben S. Montero
700d92738e feature #622: VirtualNetwork methods uses a common base class 2011-05-29 00:37:59 +02:00
Ruben S. Montero
5bde303fc8 feature #662: Moved string representation of Auth objects for error printing 2011-05-28 11:36:24 +02:00
Ruben S. Montero
25068e4d59 feature #662: Allocate methods 2011-05-28 04:03:09 +02:00
Ruben S. Montero
fb3d3a88bb feature #662: Common method for publish requests 2011-05-27 00:21:14 +02:00
Ruben S. Montero
b050a5da9f feature #622: Public is now an attribute of PoolObjectSQL. Redesign of authorization function 2011-05-26 12:20:56 +02:00
Ruben S. Montero
fc15b443b6 feature #662: Delete uses a common Request. Moved more functionality to base classes 2011-05-26 00:59:50 +02:00
Ruben S. Montero
c15a9e9a12 feature #622: Info methods use a comon execute function 2011-05-25 19:26:52 +02:00
Carlos Martín
7285fbd5c0 Merge branch 'feature-407' of git.opennebula.org:one into feature-407
Conflicts:
	include/Group.h
	include/User.h
	src/cluster/Cluster.cc
	src/cluster/ClusterPool.cc
	src/group/Group.cc
	src/rm/RequestManagerUserAllocate.cc
	src/um/User.cc
2011-05-25 14:56:35 +02:00
Ruben S. Montero
d16ee7254c feature #662: Info methods for objects. Now the info requests are authorized 2011-05-25 13:57:00 +02:00
Carlos Martín
6230001c56 Feature #407:
* Chown method: destination user and group are checked, auth. manager request used.
  * New one.group.chown method.
  * New ObjectCollection class to store sets of IDs.
  * New RM user.addgroup user.delgroup methods, users and groups store a cross-reference ID set.
  * Clusters store a set of Host IDs. The RM part of the add/remove host functionality works, but should be re-done to avoid deadlocks.
  * Fix onedb schmea for template_pool table bug.
2011-05-25 12:13:17 +02:00
Ruben S. Montero
01d932adea feature #622: Added auth for the pool infos. New Auth action is INFO_POOL 2011-05-24 17:52:17 +02:00