Commit Graph
147 Commits
Author SHA1 Message Date
8f57c337e1 F OpenNebula/one#6778: Introduces a gRPC API server for OpenNebula Demon
This commit introduces a new API server based on the gRPC/Protobuf. The
API follow the design of the existing xml-rpc to ease the transition to
the new server and support the current state management engine.

Both API servers can be run in parallel.

Main changes:

- Decouple Generic and XMLRPC specific logic and add gRPC classes.
- Source code re-structure to include logic for each server
- New compilation options to generate gRPC stubs
- Client code for C++, Ruby, Python and Go

co-authored-by: Jan Orel <jorel@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: MarioRobres <mrobres@opennebula.io>
2026-01-12 14:58:55 +01:00
MarioRobres 826f630f00 F OpenNebula/one#7299: Add new API calls to execute commands on a Virtual Machine (#3954)
This commit adds support for remote execution of commands in a VM through qemu Guest Agent (GA). The feature includes:

* New API calls so create, cancel and retry command execution
* Command results are included in VM information
* Command line tool exposing this functionality
* Monitor probe to reap execution of commands
2025-12-10 09:41:07 +01:00
Pavel Czerný cc62c31a89 B #7058: Solve IM vs VMM race conditions (#3759) 2025-09-03 10:08:16 +02:00
Ruben S. Montero f48c0df0d2 M #-: Only update deploy_id for RUNNING updates 2025-03-11 14:13:53 +01:00
Tino Vázquez a64f071808 M #-: Bump year 2025 2025-02-28 11:56:18 +01:00
Pavel Czerný fa73142e7d F #6723: Remove onehost importvm (#3231)
* Remove vm_import table from DB
* Remove imported vms actions
* Fix fsck for image and network
* onedb fsck fix running_vms only for non-backup images
2024-11-21 17:31:47 +01:00
Pavel Czerný 7b07def90e B #6687: Fix monitoring initialization and restart
* Cleanup oned in case of initialization error

* Fix monitoring after onemonitord restart. The code includes a "hook" point in case a driver is re-started so custom code can be executed. InformationManager sends the list of hosts and raft status in this case.

* B #5801: Update error msg, in case of duplicated drivers
2024-09-05 16:25:03 +02: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
Tino Vázquez 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Pavel Czerný 3beca2d9d3 B #5640: Fix NETRX and NETTX for accounting (#2417) 2022-12-12 09:28:46 +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
Daniel Clavijo Coca 89379d9ffb B #5245: Update host zombie template (#761)
(cherry picked from commit 9ed720d6cf)
2021-02-08 09:49:16 +01: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 Czerny 325db91bcb F #4936:Refactor ActionManager and Timers
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2020-07-24 16:00:59 +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
Ruben S. Montero 108cadcbb0 B #4954: Do not skip VM state updates 2020-06-25 17:36:58 +02:00
Tino Vazquez ace08b4d59 F #4302: vCenter monitoring service
co-authored by <rsmontero@opennebula.io> and <amoya@opennebula.io>
2020-05-25 18:49:51 +02:00
Pavel Czerny 7705d669a7 F #3859: Monitord HA 2020-05-25 10:49:50 +02:00
Pavel Czerny fb20d5b18b F #3859: Improve monitoring error msgs 2020-05-22 11:19:56 +02:00
Ruben S. Montero 33b22ad1ba F #3859: IMPORT_VM_ID = DEPLOY_ID = UUID 2020-05-14 20:03:35 +02:00
Ruben S. Montero 152d82647d Revert "F #3859: Use DEPLOY_ID for wilds (#4726)"
This reverts commit fb96648fec.
2020-05-14 14:57:21 +02:00
Pavel Czerný fb96648fec F #3859: Use DEPLOY_ID for wilds (#4726) 2020-05-14 11:34:16 +02:00
Pavel Czerný 54d60c4223 F #3859: Small fixes in monitoring (#4686) 2020-05-11 10:35:13 +02:00
Ruben S. Montero 392e28768e M #-: Update UNKNOWN VMs in sync state messages 2020-05-10 23:56:18 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Ruben S. Montero 52b65d6541 M #-: Ignore state msg from other hosts 2020-04-23 20:56:47 +02:00
Ruben S. Montero 59be923717 M #-: Better debug messages. Fix typo 2020-04-23 20:10:04 +02:00
Ruben S. MonteroandPavel Czerny 3ea1cd5c4d F #3859: On close kill driver after timeout
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2020-04-16 18:15:07 +02:00
Ruben S. Montero 9aa1041103 F #3600: Initial PostgreSQL Support
co-authored-by: Igor Sivy <igorsivy@gmail.com>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: Vlastimil Holer <vholer@opennebula.io>
(cherry picked from commit c52f62018c32281c6e418211f33f1bba46388e98)
2020-04-13 17:35:06 +02:00
Pavel Czerný eeb334b6f3 F #3859: Fix VM_STATE monitoring (#4360)
* F #3859: Fix VM_STATE monitoring

* F #3859: Remove obsolete settings from oned.conf

* F #3859: Monitor logging
2020-03-16 09:32:32 +01:00
Ruben S. Montero 320d333494 F #3859: VM state transition
* Do not fail KVM shutdown if domain already terminated
      * Do not trigger automatically host monitor on startup
      * Zombie support
      * Sync state of missing VMs
2020-03-13 15:04:31 +01:00
Pavel Czerný 0642f87198 F #3859: Update host reservations only if needed (#4358) 2020-03-13 10:32:53 +01:00
Ruben S. Montero 91a03558f9 Revert "WIP"
This reverts commit cb7a24396d.
2020-03-11 20:51:28 +01:00
Ruben S. Montero cb7a24396d WIP 2020-03-11 20:40:43 +01:00
Ruben S. Montero 44e44b47a8 F #3859: New monitoring architecture
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
  co-authored-by: Daniel Clavijo Coca <dclavijo@opennebula.systems>
2020-03-04 16:05:57 +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
Pavel Czerný 6c6a73092c B #3630: Fix CPU/MEM reservations (#3678) 2019-09-11 11:14:51 +02:00
Ruben S. MonteroandChristian González 8fbd126ca2 development: Fix race condition between the expiration of the replica timeout and the pending_requests state change. api server cache mode
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-02-19 12:40:07 +01:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Ruben S. Montero f54e066949 F #2489: Improve performance of oned:
* Reduce memory footprint
    * Improve connection handling in the RequestManager
    * Reduce the number of locking calls
    * Reduce the size of the VM pool
2018-10-09 11:15:59 +02:00
juanmont d0766591f0 F #2192: New MONITOR INTERVALS for fine grain tunning 2018-06-19 16:15:01 +02:00
Ruben S. Montero 0c2ca58795 Do not show success message when monitoring information cannot be
updated
2018-05-22 18:04:53 +02:00
Ruben S. Montero 37222d65dc F #1792: Greatly improve concurrency by: Remove big lock on pool control class. Increase number of MySQL connections (new configuration variable). Make all parser reentrants. This commit also simplifies the pool references.
(cherry picked from commit a3d3ceb771034794c4fb453dcd9aaff64c53baed)
2018-03-17 23:35:21 +01:00
Vlastimil Holer a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero 06e4e28bfb B: Do not try to pro-active monitor host if not leader 2017-09-08 11:30:42 +02:00
Ruben S. Montero 6faed83d43 B #5300 Write disk monitor information 2017-09-05 13:18:18 +02:00