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

328 Commits

Author SHA1 Message Date
Carlos Martín
92ccbd83fb Feature #1483 #1556: Leave SCHED_REQUIREMENTS and SCHED_RANK in the USER_TEMPLATE, so they can be edited 2013-02-06 16:34:46 +01:00
Jaime Melis
2e487cdbbc Feature #1658: Enable syslog for oned.log
- LOG_SYSTEM in oned.conf
- SysLog class
2013-01-25 17:34:43 +01:00
Jaime Melis
7357bffe34 Update copyright notice 2013-01-24 16:18:30 +01:00
Jaime Melis
af61e33f8c Update year to 2013 2013-01-24 16:03:57 +01:00
Carlos Martín
eeac62263c Merge remote-tracking branch 'origin/feature-1685b' 2013-01-23 15:38:07 +01:00
Ruben S. Montero
e4544c42b8 feature #1685: CLEANUP_PREVIOUS action to cleanup previous hosts for migrate operations. Integrate CLEANUP actions with LCM. New state CLEANUP_DELETE. 2013-01-21 12:27:18 +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
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
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
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
d6538d5081 feature #1617: Remove leading blanks from file attributes 2012-11-23 19:51:45 +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
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
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
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
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
ee40a04c83 feature #1393: DATASTORE_LOCATION can be set in the cluster template 2012-10-05 13:23:44 +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
11f5c8c2da bug #1315: call MV/DELETE actions for volatile disks 2012-07-02 18:06:07 +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
d5b40785f5 Bug #1306: Add tm_mad to History elements 2012-06-28 15:32:52 +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
Carlos Martín
492ba46570 Feature #1223: Implement LCM::attach success/failure. 2012-06-13 19:15:33 +02:00
Carlos Martín
cc13c07317 Feature #1223: New VMM attach action 2012-06-13 18:42:42 +02:00
Ruben S. Montero
17d869e388 Merge branch 'feature-1288'
Conflicts:
	install.sh
2012-06-11 23:00:56 +02:00
Ruben S. Montero
cbcda494d7 feature #1288: Update usage counters on resource removal 2012-06-06 17:05:11 +02:00
Carlos Martín
2071d62b39 Feature #1279: Clean expired monitoring records in timer_action.
This saves a lot of calls to the DB, and also cleans old entries
for objects that are not monitored (VM in suspend/stop state,
or hosts in disabled state).
2012-05-18 12:05:18 +02:00
Carlos Martín
dfcb2eb166 Feature #1279: Clean old monitorization data if the expiration time is set to 0 2012-05-17 14:58:28 +02:00
Carlos Martín
bb4d39baf5 Feature #1279: Add one.vm.monitoring and one.vmpool.monitoring
methods, new  vm_monitoring table
2012-05-16 16:09:27 +02:00
Ruben S. Montero
f2c6e63e12 feature #1099: Inline hint for to_xml and to_xml_extended 2012-05-11 19:15:25 +02:00
Carlos Martín
31684f5798 Feature #1099: Update VM usage attributes comments to reflect correct measure units 2012-05-08 16:18:24 +02:00
Carlos Martín
2c88fe83c8 Feature #1099: Add complete VM info to all history records, even the active ones 2012-05-08 15:42:24 +02:00
Ruben S. Montero
de3cd97468 feature #1099: VM info is set in history records in a separate function 2012-05-05 20:57:17 +02:00
Ruben S. Montero
7ad3ce1965 feature #1099: Moved SQL filters to the corresponding pools 2012-05-05 03:18:25 +02:00
Carlos Martín
70d5c75d04 Feature #1099: Add VM template information to the History records once they are "closed" 2012-05-04 17:29:36 +02:00
Carlos Martín
c178601623 Feature #1099: Add new one.vmpool.accounting XMLRPC method 2012-05-04 17:27:57 +02:00
Ruben S. Montero
8ff221052d feature #1243: Add resched flag to VMs. Includes associated logic to make it work: RM methods, OCA bindings, CLI commands. LCM updated to clear the resched flag when leaving the running state Fixes VM tests 2012-04-26 19:06:49 +02:00
Carlos Martín
3c1cf1f1b3 Feature #1112: Fix oneimage update (broken in commit:92dd8d4c) 2012-03-14 15:48:06 +01:00
Ruben S. Montero
13bee9d9da Merge branch 'feature-1112' of git.opennebula.org:one into feature-1112 2012-03-05 23:49:42 +01:00
Ruben S. Montero
92dd8d4c5e feature #1112: Save_as functionality 2012-03-05 23:49:18 +01:00
Carlos Martín
20ff34756c Feature #1112: Add automatic cluster placement requirements to new VMs 2012-03-05 16:20:04 +01:00
Ruben S. Montero
c58dd74666 feature #1112: Adjust core modules to generate right paths for system datastore. Fix bugs in TM shared 2012-03-02 00:06:57 +01:00
Ruben S. Montero
5363c4ff05 feature #1112: Fix VM paths for the new system datastore 2012-02-25 23:31:44 +01:00
Ruben S. Montero
7279fc1b96 feature-#1112: Add remote_system_dir for Virtual Machines 2012-02-25 01:25:28 +01:00
Ruben S. Montero
80b49ff6b4 feature #1112: Add system_dir for VMs 2012-02-24 23:13:22 +01:00
Carlos Martín
98c5c246c2 Feature #1112: Do not use host's TM_MAD 2012-02-22 16:01:30 +01:00
Jaime Melis
a2b7cb6bc9 Bump to version 3.2.0 2012-01-12 12:29:18 +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
Carlos Martín
7efcb0e140 Feature #863: Small comment fix 2011-11-11 17:11:59 +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
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
21bca20780 Bug #848: Add error message and stop oned execution if bootstrap fails 2011-10-10 06:14:46 -07: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
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
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
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
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
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
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
Carlos Martín
3fa10a2ddf Feature #407: Add 'GID' attribute to some pool objects; change *pool.info XML-RPC flag meaning; update onedb migrator; fix tests.
* VM, VMTEMPLATE, VNET & IMAGE objects have a GID attribute, and a table column. The group id is inherited from the user creating the object, except for VMs created from Templates, that inherit the Template's group.
  * The new flag meaning has been modified in src/rm sources and CLI commands for one.(vm,template,vnet,image)pool.info . It changes from
      -2 all,  -1 mine & public,  >=0 UID
    to
      -3 mine,  -2 all,  -1 mine & group
  * USER has a group, but not secondary ones. The user_pool table doesn't have a GID column, we'll deal with it later when the group-users relations are implemented.
  * onedb migrator 1.rb: deleted USERNAME, and GID added.
2011-05-16 17:00:27 +02:00
Carlos Martín
09c93c7528 Feature #407: Remove usernames from owned resources, only user-id is stored now. 2011-05-12 17:10:35 +02:00
Ruben S. Montero
db8aa7f5bf feature #575: Improved log messages for drivers. Error string also propagated to images 2011-04-15 01:51:38 +02:00
Ruben S. Montero
cd163f2a54 feature #575: Add error messages to VM templates (VMM part) 2011-04-15 00:34:22 +02:00
Carlos Martín
2ce4009975 Feature #523: Extra error checks for one.vm.savedisk XML-RPC method 2011-04-11 18:05:43 +02:00
Ruben S. Montero
1e4e4f2c32 feature #523, #407, #488: Template is now part of base class PoolObjectSQL 2011-04-08 01:02:55 +02:00
Ruben S. Montero
7f67ceff0a Merge branch 'feature-407' into feature-523
Conflicts:
	src/image/ImagePool.cc
2011-03-24 16:53:43 +01:00
Carlos Martín
27341b66cf Features #539, #407: Small consistency checks for VMs 2011-03-22 18:40:03 +01:00
Ruben S. Montero
08466818fd Merge branch 'feature-407' into feature-523 2011-03-10 12:34:46 +01:00
Ruben S. Montero
ac6c5644fd feature #407: Minor changes for the VirtualMachine Pool 2011-03-08 17:55:14 +01:00
Ruben S. Montero
ea84e9dae6 feature #407: Removed uid from VirtualMachine class 2011-03-08 10:04:57 +01:00
Ruben S. Montero
9288a79aa3 feature #407: Several bug fixes. Better index for names. 2011-03-05 03:24:11 +01:00
Ruben S. Montero
fadbe3a4d7 feature #407: All resources now uses the base classes and index 2011-03-04 23:26:55 +01:00
Carlos Martín
e22e1cc278 Feature #407: VM's last_seq deleted, it is not needed any more 2011-03-01 18:46:59 +01:00
Carlos Martín
493a9e9c8e Feature #407: Virtual Machine uses new xml blob DB schema 2011-03-01 17:47:20 +01:00
Jaime Melis
4980255942 Update copyright year to 2011 2011-02-25 14:34:44 +01:00
Ruben S. Montero
bcb7e774de Merge branch 'bug-419' 2011-02-01 16:46:39 +01:00
Carlos Martín
f9902c89ec Bug #419: "SELECT *" SQL statement modified to use the column names 2011-01-27 17:23:51 +00:00
Ruben S. Montero
098c1dc9f8 feature #457: Rename DELETE state to CLEANUP 2010-12-31 17:00:26 +01:00
Carlos Martín
90a58ce066 one.vmpool.info xml-rpc method now has 2 more parameters
The method keeps compatibility, and can be called with 2 or 4 parameters

It now returns the the extended info upon request, reading only the vm_pool
table in the DB if the Histoy and username are not needed

The last parameter allows filtering by VM status
2010-08-27 16:11:28 +02:00
Ruben S. Montero
7ac6121da9 bug #274: Error messages are now sent to the user when allocating objects 2010-08-05 19:28:28 +02:00
Carlos Martín
fa002ca701 feature #282: Template attributes are now managed by the PoolSQL objects, and then the object has to be updated to write changes to DB. 2010-08-04 16:55:00 +02:00
Carlos Martín
7221ae061c feature #282 & #192: VirtualMachineTemplate moved from its own table to a vm_pool column. 2010-08-04 10:30:31 +02:00
Carlos Martín
007f5f6b9c feature #200: XML-RPC method for saving images while a VM is executing. 2010-07-21 18:10:58 +02:00
Ruben S. Montero
34b2ed6c5c feature #203: Authorization method for VMs now in RM 2010-07-14 18:11:29 +02:00
Ruben S. Montero
1035fe7722 feature #203: Removed Auth from allocate (VM, IMAGE & NET). Added NETWORK and NETWORK_ID for NICs and IMAGE and IMAGE_ID for DISKS 2010-07-14 16:21:41 +02:00
Ruben S. Montero
edea2edf2b feature #203: Integrated VM allocation with AuthManager 2010-07-09 12:10:05 +02:00
Tino Vázquez
66697573f2 feature #200: Now VirtualMachine uses the same OID for VM and its templates 2010-07-01 13:30:42 +02:00
Ruben S. Montero
2d9d78a03a Merge branch 'master' into feature-200
Conflicts:
	include/VirtualNetwork.h
	src/vm/VirtualMachine.cc
2010-06-25 19:16:14 +02:00
Ruben S. Montero
2e06f4f26d Merge branch 'feature-189'
Conflicts:
	include/VirtualMachine.h
	include/VirtualMachinePool.h
	include/VirtualNetwork.h
	share/etc/oned.conf
	src/scheduler/src/xml/expr_arith.cc
	src/scheduler/src/xml/expr_arith.h
	src/scheduler/src/xml/expr_bool.cc
	src/scheduler/src/xml/expr_bool.h
	src/scheduler/src/xml/expr_parser.c
	src/template/template_parser.c
	src/template/template_syntax.cc
	src/template/template_syntax.h
	src/vm/VirtualMachine.cc
	src/vm/VirtualMachinePool.cc
	src/vm/vm_var_parser.c
	src/vm/vm_var_syntax.cc
	src/vm/vm_var_syntax.h
2010-06-25 14:34:44 +02:00
Ruben S. Montero
cacbe7bf5e feature #200: Integrates ImagePool and VirtualMachinePool. Now you can requests Images from VM templates! 2010-06-25 13:24:54 +02:00
Tino Vázquez
ac2ed32178 Merge branch 'master' into feature-200 2010-06-14 13:04:08 +02:00
Carlos Martín
0280c88bb6 Performance improvements for VMs SQL queries. 2010-06-11 20:25:49 +02:00
Constantino Vázquez Blanco and Carlos Martín
6b320815b4 feature-#200: Finishing image pool 2010-05-25 18:20:40 +02:00
Tino Vázquez
28c7f107db feature-#206: History is updated now, not inserted. 2010-05-03 19:29:08 +02:00
Constantino Vázquez Blanco
eb07cd9425 feature #206: Isolation of INSERT and REPLACE SQL queries for VirtualMachine objects. 2010-04-29 18:11:04 +02:00
Ruben S. Montero
21b729dbdd feature #192: Decouple Logger from Nebula class 2010-04-21 00:40:16 +02:00
Ruben S. Montero
ce7d0681e3 feature #206: VirtualMachine uses SqlDB 2010-04-10 22:16:47 +02:00
Ruben S. Montero
28e9d41ab1 feature #189: Moved attribute parsing to VirtualMachine class (get rid of cross references). Added Requirements parsing and initial vnc_port generation 2010-03-05 19:17:52 +01:00
Javier Fontán Muiños
fdfe10407e Changed copyright notice 2010-02-22 18:00:30 +01:00
Rubén S. Montero
d965eb44aa Merge of the OpenNebulaXML branch (-r535:HEAD)
git-svn-id: http://svn.opennebula.org/one/trunk@667 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-07-09 14:34:34 +00:00
Rubén S. Montero
a3d6025224 New method to get the pool through the xml-rpc interface. Some work to have XML format and plain text for the objects.
git-svn-id: http://svn.opennebula.org/one/trunk@521 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-05-22 00:46:52 +00:00
Rubén S. Montero
4c2d9df0a9 Simplified parsers (Flex include files).
Moved the VM attribute parser to VirtualMachine
Made some optimizations on the parsing


git-svn-id: http://svn.opennebula.org/one/trunk@446 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-04-02 10:14:54 +00:00
Rubén S. Montero
ee35b3db66 Now prolog generates the context file and includes a new CONTEXT action
in the transfer script


git-svn-id: http://svn.opennebula.org/one/trunk@393 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-03-07 00:56:26 +00:00
Rubén S. Montero
1d94e0ba52 Cosmetic changes...
git-svn-id: http://svn.opennebula.org/one/trunk@389 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-03-06 15:54:57 +00:00
Rubén S. Montero
e799c8b3ad Functions to generate the context file for a VM, and some minor
modifications and new functionality to deal with the Teamplates


git-svn-id: http://svn.opennebula.org/one/trunk@386 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-03-06 12:10:15 +00:00
Rubén S. Montero
60aff2d402 Trunk now is OpenNebula 1.3. New raw XML vmm drvier type. updated date in license
git-svn-id: http://svn.opennebula.org/one/trunk@330 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-01-26 18:25:15 +00:00
Rubén S. Montero
77681ccfc8 Address ticket #59
git-svn-id: http://svn.opennebula.org/one/trunk@294 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-01-02 14:58:51 +00:00
Rubén S. Montero
6c722bc64d Added method get_leases to make VirtualMachine::insert cleaner
git-svn-id: http://svn.opennebula.org/one/trunk@237 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-11-14 19:51:33 +00:00
Constantino Vázquez Blanco
ee411e7963 Merged TransferManager and VirtualNetworkManager branches.
git-svn-id: http://svn.opennebula.org/one/trunk@230 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-11-13 16:21:17 +00:00
Rubén S. Montero
a08d1c2d06 Adds a new attribute (from the POLL string) to the VM template. It replaces the
attribute if it already exists. 


git-svn-id: http://svn.opennebula.org/trunk@65 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-07-20 22:41:20 +00:00
Rubén S. Montero
06fd90a2c0 Improved life-cycle (address ticket #4), new action when monitor returns paused or error states. Reason attribute for history records is now updated
git-svn-id: http://svn.opennebula.org/trunk@10 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-06-22 22:38:55 +00:00
Rubén S. Montero
92b17d4eef Simplified history handling in VM
Solved some history timer issues
Improved life-cycle (address ticket #4)
Solved a couple of deadlocks in some RequestManager methods

git-svn-id: http://svn.opennebula.org/trunk@9 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-06-22 01:51:49 +00:00
Javier Fontán Muiños
6eb9fed97d Initial commit of ONE code
git-svn-id: http://svn.opennebula.org/trunk@2 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2008-06-17 16:27:32 +00:00