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

951 Commits

Author SHA1 Message Date
Ruben S. Montero
6c50f2b147 feature #1685: Clean network in CLEANUP. Adds cleanup_action to VMM. Make use of new action in LCM 2013-01-21 00:15:46 +01:00
Ruben S. Montero
41789046a6 feature #1685: Epilog delete commands are generated in a separated function 2013-01-20 23:05:14 +01:00
Carlos Martín
d4245a6699 Feature #1681: Add new oned.conf att. for a default umask 2013-01-18 18:34:51 +01:00
Ruben S. Montero
d797d04a88 feature #1449: Adds the IMMUTABLE persistent_type. This means that a persistent image will not be cloned and will not be modified, thus READONLY = YES and SAVE = NO 2013-01-17 23:14:34 +01:00
Carlos Martín
c3bbc983ca Bug #1733: Change onehost update method rights to ADMIN 2013-01-17 15:52:02 +01:00
Carlos Martín
dafbc5d349 Feature #1565: Implement reverse search for ACLs that apply to objects in a cluster 2013-01-17 12:33:33 +01:00
Carlos Martín
1b6e38dac1 Feature #1565: Add new ACL resource ID bit, '%', for clusters. The reserve lookup is pending 2013-01-16 18:27:36 +01:00
Carlos Martín
9e0a06468e Merge remote-tracking branch 'origin/feature-1556' 2013-01-09 12:24:25 +01:00
Carlos Martín
97efc55004 Bug #1698: Automatically trim trailing spaces in NAME attributes 2013-01-08 18:34:08 +01:00
Ruben S. Montero
8a2597cd90 feature #1556: Add a new user template to the VM to store user defined variables. Add OCA Ruby & JAVA bindings for the new update method. Add command option for onevm tool. 2013-01-04 00:04:01 +01:00
Ruben S. Montero
c9dc8c47da Merge branch 'bug-1694' 2012-12-24 14:25:41 +01:00
Ruben S. Montero
c523b889f1 Revert "Bug #1694: If a DS updates its type to system_ds, update the cluster system_ds"
This reverts commit ca4504f984.
2012-12-24 12:27:53 +01:00
Ruben S. Montero
02208c5676 feature #1103: Always deal with boolean values from oned.conf in the same way 2012-12-24 02:41:17 +01:00
Ruben S. Montero
fdb5f09e89 Revert "Feature #1326: VMs instantiated from a template are named template_name-<vmid>"
This reverts commit 8e80bfcf66.
2012-12-23 23:31:00 +01:00
Carlos Martín
8e80bfcf66 Feature #1326: VMs instantiated from a template are named template_name-<vmid> 2012-12-21 13:50:10 +01:00
Carlos Martín
406877743e Feature #1103: Finish integrating the new oned.conf att. VM_SUBMIT_ON_HOLD 2012-12-20 18:57:20 +01:00
Carlos Martín
85678cbba8 Merge branch 'submit-on-hold'
Conflicts:
	src/rm/RequestManagerAllocate.cc
	src/rm/RequestManagerVMTemplate.cc
2012-12-20 18:35:59 +01:00
Carlos Martín
64b4f0d5d9 Feature #1103: Patch by Simon Boulet 2012-12-20 18:21:30 +01:00
Carlos Martín
7aff914bf9 Feature #1103: Add xmlrpc optional param to instantiate templates on hold 2012-12-20 17:45:27 +01:00
Carlos Martín
ca4504f984 Bug #1694: If a DS updates its type to system_ds, update the cluster system_ds 2012-12-17 18:15:02 +01:00
Carlos Martín
3c6871b2c0 Bug #1694: Remove potential deadlock 2012-12-17 16:54:17 +01:00
Carlos Martín
cdab2668d1 Bug #1694: Add new attribute system_ds to Cluster. Template attribute is now ignored 2012-12-17 16:23:16 +01:00
Ruben S. Montero
e04b24c066 Merge branch 'feature-1686' 2012-12-15 04:21:32 +01:00
Ruben S. Montero
889eb15028 feature #1686: Removed unused method definitions. Moved "same-name" check. Backup object pointer to use it after deleting iterator 2012-12-15 04:19:52 +01:00
Ruben S. Montero
d28b234c9c feature #1338: Make use of Host::test_capacity in core checks. 2012-12-15 03:11:30 +01:00
Carlos Martín
c60436e916 Feature #1691: Add the attribute NIC_ID to each NIC 2012-12-13 13:27:36 +01:00
Carlos Martín
b89e38833c Feature #1691: Add support in core for nic attach/detach. Thanks to Simon Boulet for his help.
Next step is to add NIC_ID attribute to each NIC, and process ATTACHNIC in driver manager
2012-12-12 18:35:40 +01:00
Carlos Martín
7d1df849be Feature #1338: Add new param to enforce host capacity in one.vm.deploy and one.vm.migrate 2012-12-11 15:41:59 +01:00
Carlos Martín
085fa15535 Bug #1659: Write quota numbers with the fixed format flag 2012-12-10 17:19:02 +01:00
Carlos Martín
c562e7206f Feature #1686: Implement one.*.rename methods in core 2012-12-07 18:32:38 +01:00
Carlos Martín
bf8c8c4d68 Feature #1617: Minor edits, typos 2012-12-05 16:48:56 +01:00
Ruben S. Montero
ff926f17d5 feature #1617: New image types: KERNEL, RAMDISK and CONTEXT to store plain files for different uses. 2012-12-04 23:19:08 +01:00
Ruben S. Montero
5d54095119 Bug #1673: Add support for 64-bit net_tx/net_rx counters. Contributed by Simon Boulet. 2012-12-04 13:35:45 +01:00
Ruben S. Montero
d6091c439e feature #1611: Abstracts system properties and system DB management 2012-11-30 02:59:26 +01:00
Ruben S. Montero
e4a601dde8 feature #1611: Default attribute for quotas can only be set at initialization 2012-11-30 00:16:52 +01:00
Ruben S. Montero
a7acfca25e feature #1611: Safer virtual destructor for Quotas 2012-11-29 23:53:34 +01:00
Carlos Martín
9d3fb42970 Feature #1611: Better handling of default vs non-default quotas 2012-11-29 17:26:21 +01:00
Carlos Martín
fba200499b Feature #1611: Instead of changing negative limits to 0, report the error 2012-11-29 12:49:29 +01:00
Carlos Martín
5a0fb545e1 Merge remote-tracking branch 'origin/master' into feature-1611 2012-11-28 16:30:14 +01:00
Carlos Martín
c35887f3c3 Feature #1611: Add persistence to default quotas, in a new DB table 2012-11-26 18:14:12 +01:00
Carlos Martín
08f8806de9 Feature #1611: DefaultQuotas methods to & from xml 2012-11-26 16:12:05 +01:00
Carlos Martín
edfed5e531 Feature #1611: Create new class DefaultQuotas, and disable the limit '-1' for def. quotas 2012-11-26 12:48:10 +01:00
Ruben S. Montero
d6538d5081 feature #1617: Remove leading blanks from file attributes 2012-11-23 19:51:45 +01:00
Carlos Martín
38f2a8dab4 Feature #1611: Add a top level xml element to the default quota info methods 2012-11-23 18:24:50 +01:00
Carlos Martín
1fde5eca2e Feature #1611: Add xml-rpc methods to retrieve and update the default user & group quotas 2012-11-23 16:03:10 +01:00
Ruben S. Montero
f51a3a45ce feature #1617: Parse CONTEXT files. New attribute FILE_DS added to use FILE_DS Datastore 2012-11-23 01:40:05 +01:00
Carlos Martín
8ed9fa884a Feagture #1611: Make the default quotas work for both user and group 2012-11-19 16:38:39 +01:00
Carlos Martín
c04f35d5ed Feature #1611: Start working in support for default User quotas 2012-11-19 15:20:36 +01:00
Ruben S. Montero
5364c22b4b feature #1617: Transfer Manager actions to clone kernels and initrds 2012-11-19 00:47:02 +01:00
Ruben S. Montero
dd914b687c feature #1617: Create a FILE datastore when bootstraping OpenNebula 2012-11-18 00:47:48 +01:00
Ruben S. Montero
3461fd45f6 feature #1617: Add all the needed parameters to transfer kernels and initrd files 2012-11-18 00:01:43 +01:00
Ruben S. Montero
46c3a8ec1c feature #1617: Implements a new $FILE parser for VM templates. Initial function to get kernels from FILE_DS datastores 2012-11-17 02:46:03 +01:00
Ruben S. Montero
0496414051 feature #1617: Checks: FILE Images can only be registered in FILE_DS. Cannot clone FILE images. 2012-11-16 13:57:17 +01:00
Ruben S. Montero
3c3830aeaf feature #1617: Fix compilation issue, renamed constant 2012-11-16 12:00:43 +01:00
Ruben S. Montero
f19debf505 feature #1617: Added a new image type: FILE 2012-11-16 11:29:52 +01:00
Ruben S. Montero
8a2822b33d feature #1617: Add Datastore TYPE. There are three types IMAGE (stores disk images), SYSTEM (stores disks of running VMs) and FILE (store context/kernel/initrd files) 2012-11-16 02:18:43 +01:00
Carlos Martín
f487277f03 Feature #1544: New xml-rpc method one.system.config 2012-11-14 12:54:31 +01:00
Carlos Martín
2d68cb5fdb Bug #1595: Store a collection of Image IDs that are currently cloning an Image 2012-10-31 17:52:23 +01:00
Carlos Martín
f76a4a98b0 Bug #1600: Do not allow to change Image persistence when the image is being cloned 2012-10-30 18:37:37 +01:00
Ruben S. Montero
b52381f8ba Merge branch 'feature-1551' 2012-10-30 16:19:14 +01:00
Jaime Melis
0f928cd7cb Bump version to 3.9.0 2012-10-29 19:21:15 +01:00
Ruben S. Montero
9884571fb0 feature #1551: Make VM directories in /var/lib/one/vms/<vm_id> instead of /var/lib/one/<vm_id> 2012-10-28 19:19:57 +01:00
Ruben S. Montero
fc3f24045d bug - : Solves wrong deployment file generation when using context. Adds collections to perform sanity
checks on host to vms and image to vms relationships
2012-10-25 01:32:35 +02:00
Carlos Martín
0b4cee1359 Bug #1562: Before an image clone operation, check the source Image's state 2012-10-19 12:54:13 +02:00
Ruben S. Montero
ea98ae0bc8 Merge branch 'bug-1210'
Conflicts:
	share/doc/states/states-complete.dot
2012-10-18 23:40:01 +02:00
Jaime Melis
e5c0d20b96 Bump version 3.8.0 2012-10-18 13:02:43 +02:00
Carlos Martín
04a4fe9606 Bug #1210: Add new VM LCM state in core, BOOT_STOPPED. A failed boot returns the VM to EPILOG_STOP -> STOPPED 2012-10-17 15:40:02 +02:00
Carlos Martín
fda16abb57 Bug #1210: Add new VM LCM state in core, BOOT_SUSPENDED. A failed boot returns the VM to SUSPENDED 2012-10-17 12:34:32 +02:00
Ruben S. Montero
b3b5ea3ab4 Merge branch 'bug-1480' 2012-10-17 11:05:18 +02:00
Carlos Martín
31adafb2f9 Bug #1480: Add DISK_ID to context, and make sure new attached disks do not collide with existing DISK_IDs 2012-10-16 18:27:16 +02:00
Carlos Martín
376b8959b7 Bug #1557: Add new VM LCM state in core, BOOT_POWEROFF. A failed boot returns the VM to POWEROFF 2012-10-16 15:32:06 +02:00
Carlos Martín
ec4de2ed08 Bug #1557: Add BOOT_UNKNOWN state to CLI, and OCA (both Ruby & Java) 2012-10-16 14:59:16 +02:00
Carlos Martín
e8acbce433 Bug #1557: Add new VM LCM state in core, BOOT_UNKNOWN. A failed boot returns the VM to UNKNOWN 2012-10-16 13:08:55 +02:00
Ruben S. Montero
29ad5368d2 feature #1013: Abstract hook registration. Add hook support for images, users and groups. 2012-10-09 11:56:01 +02:00
Ruben S. Montero
621f615a0c feature #1013: Simplify "on create" Hooks (now $ID are the same instead of $VMID, $HID,...). Add support for create/remove Virtual Network Hooks 2012-10-08 12:33:32 +02:00
Ruben S. Montero
7e027ab089 feature #1013: Hook on drop method for PoolSQL 2012-10-07 23:33:19 +02:00
Ruben S. Montero
43d552aea2 feature #1013: Abstraction of current Allocate and Remove hooks 2012-10-07 23:20:28 +02:00
Ruben S. Montero
ee40a04c83 feature #1393: DATASTORE_LOCATION can be set in the cluster template 2012-10-05 13:23:44 +02:00
Jaime Melis
b27629f26e Bump vesion to 3.7.80 2012-10-04 11:58:17 +02:00
Carlos Martín
6ff8972279 Feature #1523: New xmlrpc method one.system.version added to RequestManager 2012-10-02 18:54:06 +02:00
Carlos Martín
cf45afe0a7 Feature #1108: Add more verbosity to Request Manager log messages:
* Each request message includes a unique (ish) ID, and user doing the request
 * Success results are also logged
 * All arguments are included in the request message (except session)
 * Password arguments are shown as ***
2012-10-02 16:25:57 +02:00
Jaime Melis
5db7e6d04b Trim spaces and fix newline at the end of file 2012-09-10 18:08:00 +02:00
Ruben S. Montero
df2d09a550 feature #1419: Adds premigrate and postmigrate placeholders for custom scripts. OpenNebula core generates TM command for pre & post migrate actions. VM driver executes these TM operations 2012-09-07 23:58:45 +02:00
Carlos Martín
de5181403b Feature #1404: Add new onevm poweroff command. New VM states POWEROFF and SHUTDOWN_POWEROFF 2012-09-04 18:30:53 +02:00
Ruben S. Montero
03f15b6498 feature #1428: Add UNAME, GID, GNAME to the set of predefined variables to CONTEXT attribute 2012-08-28 16:52:03 +02:00
Ruben S. Montero
65ec7517cc feature #1337: Add CPU share for KVM VMs based on the CPU template attribute 2012-07-19 02:22:06 +02:00
Ruben S. Montero
057da9492b bug #1363: Better check for int and float values 2012-07-19 01:18:51 +02:00
Carlos Martín
c27c27ac4f Bug #1363: Check correct value types for VM CPU, VCPU, MEM, and Image SIZE 2012-07-17 15:51:50 +02:00
Carlos Martín
c94bfcab5e Bug #1347: quota update accepts float values 2012-07-16 18:28:58 +02:00
Carlos Martín
6cc05f5b81 Bug #1347: Add support for float quotas. The update quotas method needs to be changed too 2012-07-16 17:15:22 +02:00
Carlos Martín
e35567ee1d Start to clean and update core unit tests. 2012-07-13 16:40:56 +02:00
Carlos Martín
7f43ddb983 Feature #1285: Change Host memory units in code comments and XSD files 2012-07-12 12:52:13 +02:00
Carlos Martín
1da0343cf7 Fix bug: chown of a nonexisting object caused a seg. fault
(cherry picked from commit f174db10dd)
2012-07-05 18:56:41 +02:00
Jaime Melis
9dcba5ddf1 Bump version to 3.7.0 2012-07-05 11:51:05 +02:00
Ruben S. Montero
fcae47a843 Merge branch 'bug-1306'
Conflicts:
	src/sunstone/public/js/plugins/marketplace-tab.js
	src/sunstone/public/js/plugins/vms-tab.js
	src/tm/TransferManager.cc
2012-07-02 18:19:20 +02:00
Ruben S. Montero
11f5c8c2da bug #1315: call MV/DELETE actions for volatile disks 2012-07-02 18:06:07 +02:00
Carlos Martín
4bad0444bf Bug #1202: Make cpu & mem threshold configurable in sched.conf 2012-07-02 16:47:27 +02:00
Carlos Martín
1327f28fab Bug #1306: Use the System DS id to generate the VM system dir 2012-06-29 16:48:43 +02:00
Carlos Martín
fd28ff9d9f Bug #1306: If the cluster has a SYSTEM_DS set, check that it is actually a system type ds. Do not allow image registration in any system type DS. 2012-06-29 15:09:25 +02:00
Carlos Martín
792dcf01b3 Bug #1306: Clusters can use the datastore set in SYSTEM_DS, Datastores can have SYSTEM = YES in the template 2012-06-29 12:44:04 +02:00
Carlos Martín
a6b2c86bfb Bug #1306: Add Template contents to Clusters 2012-06-28 17:51:21 +02:00
Carlos Martín
ffc99eea2f Bug #1306: Use the tm_mad stored in the history, instead of the system_ds tm_mad 2012-06-28 16:45:00 +02:00
Carlos Martín
d5b40785f5 Bug #1306: Add tm_mad to History elements 2012-06-28 15:32:52 +02:00
Carlos Martín
b44903882b Bug #1322: Check if user quota rollback is needed; polish quota error messages
(cherry picked from commit 1130e37a2e)
2012-06-28 13:22:32 +02:00
Carlos Martín
1130e37a2e Bug #1322: Check if user quota rollback is needed; polish quota error messages 2012-06-28 13:21:19 +02:00
Carlos Martín
4baaeb827d Bug #1316: Clean files when a stopped VM is deleted. Previous commit:dbefe6f only worked with shared DS
(cherry picked from commit 9d8ccd61c8)
2012-06-27 18:51:10 +02:00
Carlos Martín
9d8ccd61c8 Bug #1316: Clean files when a stopped VM is deleted. Previous commit:dbefe6f only worked with shared DS 2012-06-27 18:50:42 +02:00
Ruben S. Montero
65751db776 Merge branch 'feature-1312' 2012-06-22 17:01:35 +02:00
Jaime Melis
746d68db03 Bump version to 3.5.80 2012-06-22 16:05:02 +02:00
Carlos Martín
256a63f9e6 Feature #1312: Remove BUS attribute form core 2012-06-22 15:44:28 +02:00
Carlos Martín
4e3ab353ca Feature #1304: Remove extra type argument in document clone 2012-06-22 12:20:39 +02:00
Ruben S. Montero
98c8cc85f4 feature #1291: Update QuotaVirtualMAchine interface 2012-06-22 01:33:48 +02:00
Carlos Martín
73baa84fbd Feature #1288: Code cleanup 2012-06-21 18:30:13 +02:00
Carlos Martín
06581af467 Feature #1288: Re-do commit:e2f59f0c .
Previous code didn't check that all quota limits are 0, just the
ones requested. This version also cleans quotas that have 0 limit
and usage after a 'oneuser quota' operation
2012-06-21 18:12:50 +02:00
Carlos Martín
24db7e7527 Feature #1288: Clean VM quota when it reaches 0 usage and limi 2012-06-21 16:47:12 +02:00
Carlos Martín
4c6233bd09 Bug #1308: Before a chown operation, check if the new user already has an object with the same name 2012-06-20 17:33:00 +02:00
Carlos Martín
3c324b4ad3 Bug #1311: Include the restricted image attributes check in RMAllocate 2012-06-20 15:07:15 +02:00
Ruben S. Montero
727826b0a8 Merge branch 'feature-1223'
Conflicts:
	src/image/ImageManagerActions.cc
	src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java
2012-06-19 23:48:13 +02:00
Carlos Martín
e2f59f0cbb Feature #1288: Clean quotas that reach 0 usage and limit 2012-06-19 18:02:55 +02:00
Jaime Melis
8b0db92dd3 feature #1223: Remove DISK_ID from VMM_DRIVER_ACTION_DATA 2012-06-19 15:29:51 +02:00
Ruben S. Montero
8f809df025 Merge branch 'feature-1291' 2012-06-19 14:30:50 +02:00
Carlos Martín
f607d0ea74 Feature #1304: Remove extra Document type arguments from Java OCA 2012-06-19 12:01:57 +02:00
Ruben S. Montero
f8fa2e09d0 feature #1223: Modified Quota interface to accomodate Attach/Detach operations 2012-06-15 23:33:50 +02:00
Ruben S. Montero
e05dbdb5bd feature #1223: Attach operation name missmatch. attach operations for the dummy driver 2012-06-15 18:14:08 +02:00
Ruben S. Montero
2f0c1d0e7e feature #1223: Included quotas for detach. Refactor some detach methods 2012-06-15 16:28:30 +02:00
Ruben S. Montero
582b8736e9 feature #1223: Removed unneeded log functions 2012-06-15 13:14:49 +02:00
Ruben S. Montero
bdba7a3d3c Merge branch 'feature-1223' of git.opennebula.org:one into feature-1223
Conflicts:
	include/DispatchManager.h
	include/VirtualMachine.h
	src/rm/RequestManagerVirtualMachine.cc
2012-06-15 12:34:43 +02:00
Ruben S. Montero
1dbeaa1719 feature #1233: Added quotas.Refactor Attach methods 2012-06-15 12:28:20 +02:00
Carlos Martín
1eebdbc07a Feature #1223: Detach operation 2012-06-14 17:45:41 +02:00
Carlos Martín
554321c73b Feature #1223: New VM state HOTPLUG, continue work on the attach operation 2012-06-14 13:02:18 +02:00
Ruben S. Montero
17b9a0699e feature #1304: Added missing commit from feature-1304 merge. It fixes compilation. 2012-06-13 23:49:08 +02:00
Carlos Martín
492ba46570 Feature #1223: Implement LCM::attach success/failure. 2012-06-13 19:15:33 +02:00
Carlos Martín
e5b2f84f4c Feature #1223: Basic xmlrpc method one.vm.attach, needs to be finished 2012-06-13 18:57:12 +02:00
Carlos Martín
8071e5ca0d Feature #1223: implement DispatchManager::attach 2012-06-13 18:47:04 +02:00
Carlos Martín
cc13c07317 Feature #1223: New VMM attach action 2012-06-13 18:42:42 +02:00
Ruben S. Montero
c178d79e23 Merge branch 'feature-1304' 2012-06-13 18:20:53 +02:00
Carlos Martín
73b6457d0e Feature #1223: Refactor TransferManager::prolog_action to create the prolog commands in a separate method 2012-06-13 18:19:22 +02:00
Ruben S. Montero
9da2602949 feature #1304: Fix signature for XML-RPC methods. Remove publish methods for OCA 2012-06-13 17:41:54 +02:00
Ruben S. Montero
cb9e8bdb82 feature #1304: Removed name uniqueness for document pool. Simplify related functions because of this 2012-06-13 12:44:04 +02:00
Ruben S. Montero
29366ca7f2 feature #1291: Clone operation in ImageDriver. Clone logic moved to ImageManager. Added missing add_image for saveas and clone operations 2012-06-13 00:32:01 +02:00
Ruben S. Montero
c503cea9a6 Merge branch 'master' into feature-1291. It also implements a new state machine for images to fix #1297
Conflicts:
	include/Template.h
	src/image/Image.cc
	src/image/ImageManagerActions.cc
	src/image/ImageManagerDriver.cc
	src/rm/RequestManagerAllocate.cc
2012-06-12 18:59:23 +02:00
Ruben S. Montero
17d869e388 Merge branch 'feature-1288'
Conflicts:
	install.sh
2012-06-11 23:00:56 +02:00
Ruben S. Montero
981db30338 feature #1288: Support for Group quotas 2012-06-08 22:14:40 +02:00
Carlos Martín
5d110819d9 Feature #1304: Add new xml-rpc methods one.document.* 2012-06-08 16:00:16 +02:00
Carlos Martín
cc132e239a Feature #1304: Create new DocumentPool, add ACL Object to Core, Ruby and Java OCA 2012-06-08 15:41:59 +02:00
Ruben S. Montero
819f1b6a41 feature #1288: Abstract quota functionality to be reused by Groups 2012-06-08 13:45:15 +02:00
Carlos Martín
0f38c555a1 Revert "Feature #1304: Add new methods one.generic.*. VMTemplates have a new 'type' attribute."
This reverts commit 04940ff188.
2012-06-08 11:43:55 +02:00
Ruben S. Montero
654e840871 feature #1288: Update quotas for chown operations 2012-06-08 01:50:15 +02:00
Ruben S. Montero
79a040ce17 feature #1288: Change metric for IMAGE quota. Show/List methods for user 2012-06-07 19:31:16 +02:00
Ruben S. Montero
82e3f2e052 feature 1288: Add missing updates after modifying user quotas. XML-RPC method to set user quotas 2012-06-07 00:04:08 +02:00