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

20890 Commits

Author SHA1 Message Date
Ruben S. Montero
52420f3284
M #-: Fix typo in ImageManager logs 2024-05-14 11:18:57 +02:00
Pavel Czerný
e68305c772
F #6053: Rename all prolog_restore to restore (#3056) 2024-05-13 13:21:56 +02:00
Ruben S. Montero
cc77dda3f8
M #-: Update RESTORE state names in Sunstone 2024-05-10 12:09:06 +02:00
Ruben S. Montero
c509eaa815
F #6053: Renamed oned internal state name PROLOG_RESTORE to RESTORE
Now it is consistent with the API naming
2024-05-10 12:02:38 +02:00
Pavel Czerný
c985ad35f9
F OpenNebula/one#6053: GO and Java api (#3055)
* GO api, including backup struct and VM states
* Java api
* remove snapshots on restore_success callback
* fix xmlrpc response in case VM doesn't exists
2024-05-10 11:58:00 +02:00
Ruben S. Montero
0d1ac37583
B OpenNebula/terraform-provider-opennebula#527: Fix create/reserve vnets
The issue is caused by a wrong handling of hash keys in oneflow logic
that assumes vnet IDs are stored in the first position.

co-authored-by: Victor Palma <vpalma@opennebula.io>
co-authored-by: shurkys <shurkys@gmail.com>
2024-05-10 10:58:54 +02:00
Aletibazo
f4330598c6
B OpenNebula/one#6487: Fix error on ssh/clone script (#3054)
Signed-off-by: Alejandro Mosteiro <amosteiro@opennebula.io>
2024-05-09 17:53:34 +02:00
David
75031db4c5
F OpenNebula/one#6501: Alias in network section of VM templates (#3046)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-05-09 15:57:13 +02:00
vichansson
c350b7f467
F OpenNebula/one#6417: Add 'EFI' firmware option (#3048)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-05-09 15:41:52 +02:00
David
f33c102260
M #-: Issue when refreshing backups on vm details (#3050)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-05-09 15:40:34 +02:00
Aletibazo
1f9b15cd95
B OpenNebula/one#6487: Fix SPARSE parameter ignored (#3033)
in TM cloning script 

- Added function get_ds_attribute to tm_common.sh to get a given attribute from a Datastore
- Using falloc preallocation mode on the qemu-img commands since it is faster than using full preallocation
- Note the cloning script when using the TM_MAD = ssh does not use qemu-img command. Instead it uses the tar command, hence it ignores the QCOW2_OPTIONS parameter
- Deleted get_ds_attribute function since it is no longer needed
- SPARSE is inherited from Datastore on oned.conf
- Changed resize statement so it uses same syntax as the clone statement

Signed-off-by: Alejandro Mosteiro <amosteiro@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-05-08 10:47:11 +02:00
Daniel Clavijo Coca
e1b5bc6b44
M #-: Allow fireedge to bind to <1024 ports (#3045) 2024-05-06 16:34:24 +02:00
vichansson
373815a085
F OpenNebula/one#5522: Makes FireEdge logo configurable - jimp (#3044)
- login logo
    - sidebar logo
    - loading screen logo
    - favicon
* The custom logo can be set in the `sunstone-views.yaml` file under the `logo:` option.
* Accepted formats are (jpg|jpeg|png)
* Applies to all apps [Sunstone, OneProvision]

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-05-06 10:35:31 +02:00
Ruben S. Montero
6fc23001a2
Revert "F OpenNebula/one#5522: Makes FireEdge logo configurable (#3041)"
This reverts commit fd5281b76d.
2024-04-30 16:38:08 +02:00
Jan Orel
94fb638fb6
F Opennebula/one-infra#656 Add Ubuntu 24.04 support (#3043)
- use bundler 2 since ruby 3.2
- detect also rubygems_version
- add mini_portile2, Ubutnu 24.04 did not resolve
- update gems for all
2024-04-30 14:40:10 +02:00
Ruben S. Montero
884d9dc279
L #-: Remove unused variable 2024-04-30 13:13:56 +02:00
Guillemo Ramos
b72b507ce7
F OpenNebula/one#6564: Fix ceph monitor quotas (#3042)
There are two monitor scripts for Ceph datastores:

- src/tm_mad/ceph/monitor (ds SYSTEM)
- src/datastore_mad/remotes/ceph/monitor (ds IMAGE)

The two have the same logic but the first one had diverted from the
second one slightly, making it unable to handle quotas.  This commit
symlinks them to avoid this happening again in the future, and fixes the
relative paths to ensure they work both from the DS and TM drivers
paths.

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2024-04-30 13:03:58 +02:00
Ruben S. Montero
3dfd53df1c
F #6053: In-place restore of VM backups (shared and ssh drivers)
This commit implements the in-place restore of VM backups. Selected VM disks will
be replaced with the specified backup:

* A new API call has been added to the XML-RPC API (`one.vm.restore`) with
  the following arguments:
    - VM ID to be restored, needs to be in **poweroff** state
    - IMAGE ID of the backup to restore
    - INCREMENT ID, only for incremental backups, the increment to use
      (defults to -1 to use the last increment available)
    - DISK ID of the disk to restore (defaults to -1 to restore all VM
      disks)

* Datastore drivers needs to implemente a new operation `ls`. This new
  operation takes the VM, image information of the backup and datastore
  information and returns the restore URL for the disks in the backup.

* This commit includes the implementation for qcow2 and ssh drivers,
  ceph will be implemented in a separated PR. The new driver action is
  `restore host:vm_dir vm_id img_id inc_id disk_id`

* The restore operation is performed in a new state `PROLOG_RESTORE`
  rendered as `RESTORE` and `rest` in short form. State in in RSuntone.

TODO:
  - Remove any existing VM snapshot (system/disk) in the VM. Note that
    snapshots are not included in a backup.

  - Ceph drivers

  - JAVA, GO Lang API bindings

  - Sunstone interface, new state and new operation. Review new state in
    RSuntone.

co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2024-04-26 12:45:04 +02:00
1gramos
669cc6db5a
M #-: tm_action.ssh always returns rc (#3040)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2024-04-26 10:50:15 +02:00
vichansson
fd5281b76d
F OpenNebula/one#5522: Makes FireEdge logo configurable (#3041)
* This includes
    - login logo
    - sidebar logo
    - loading screen logo
    - favicon
* The custom logo can be set in the `sunstone-views.yaml` file under the `logo:` option.
* Accepted formats are (jpg|jpeg|png|svg)
* Applies to all apps [Sunstone, OneProvision]
* Adds the sharp image processing package

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-25 17:47:19 +02:00
Pablo Hinojosa
1e23efbd62
M #-: Fix markdown format typo (#6572)
Signed-off-by: Pablo Hinojosa Nava <pablohn6@gmail.com>
(cherry picked from commit c065ee423c56fc9f49e4e419840eb3e588c3c612)
2024-04-24 13:06:25 +02:00
vichansson
b9d08e6c6c
F OpenNebula/one#5422: Add option to truncate logs (#3039)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-04-23 18:32:25 +02:00
vichansson
bdaf6442f7
M OpenNebula/one#5833: Make custom_attrs schema stricter (#3038)
* Makes the NAME field a mandatory attribute + only allows alphanumeric
  chars and no spaces

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-23 18:22:51 +02:00
Jorge Miguel Lobo Escalona
34dc9f1aa7
F OpenNebula/One#6451: refresh host table when create a new host (#3037) 2024-04-23 12:58:48 +02:00
vichansson
a58d4c6154
M #-: Remove ALIAS selection (#3036)
* Remove alias selection when instantiating VR template as this is not
  supported by the core.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-23 10:37:16 +02:00
Pavel Czerny
6e4407f061
M #-: Update cppcheck to use c++17
(cherry picked from commit 3f0222cdafec85f329bbc8009633f4c9ad2cc26f)
2024-04-18 12:07:20 +02:00
Pavel Czerny
91fe6acc82
M #-: Sync onevm updateconf description with code 2024-04-18 12:06:51 +02:00
Pavel Czerny
e4a8e37d3d
B #6552: Disable update of VM->CONTEXT->ETH* values
Disable update of CONTEXT->ETH* values, which leads to an inconsistent
context.sh file inside VM.

Fix re-generating of ETH values for updateconf in replace mode, when the
value NETWORK=YES wasn't change.
2024-04-18 12:05:02 +02:00
Jan Orel
735a8d227a
M OpenNebula/one#6561: Allow LIMIT_MB > TOTAL_MB (#3011)
This effectivelly allows using LIMIT_MB for datastore over-commitment.
2024-04-17 11:51:42 +02:00
Victor Palma
15a013ed4d
B OpenNebula/one#6545: Add return code to deploy func (#3023) 2024-04-16 10:53:13 +02:00
Pavel Czerný
ddc926518c
B OpenNebula/one#6541: onedb fsck fix Scheduled Actions (#3020)
(cherry picked from commit a89ae0069a)
2024-04-15 12:01:53 +02:00
Pavel Czerný
a16dfd5f8f
B OpenNebula/one#6543: Remove MYSQL_OPT_RECONNECT (#3032)
* Improve OpenNebula reconnect procedure

(cherry picked from commit 63ce359f94)
2024-04-15 11:59:42 +02:00
vichansson
f75ab3784e
M #-: Add size to image card (#3031)
* Image cards in FireEdge now display the size attribute

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-11 18:13:47 +02:00
vichansson
4eb464cfdd
F OpenNebula/one#5899: Add VR tabs (#3030)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-11 11:25:26 +02:00
Anton Todorov
7831e0e08e
B #6464: backup execution PARALLEL mode
There is a typo causing the PARALLEL execution mode to be not recognized

(cherry picked from commit 8e08b3bd10)
2024-04-09 18:05:39 +02:00
Philip Freude
2f8165f575
B #6158: Fix filtering on host id when monitoring vcenter vms
The patch correctly determines the corresponding OpenNebula vm id

(cherry picked from commit b2d32378a606435486348e364d14eaa665130631)
2024-04-09 17:50:30 +02:00
Ruben S. Montero
f92e40bad5
M #-: Fix typo in remove address
This may affect some restore operations of VMs with more than 1 NIC
2024-04-09 16:34:59 +02:00
vichansson
b89adf215b
B OpenNebula/one#6554: Change VNet cluster API call (#3027)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-04-09 12:03:43 +02:00
Tino Vázquez
697061f687 L #-: Rubocop 1.63.0 2024-04-08 18:49:37 +02:00
Jorge Miguel Lobo Escalona
b9bfbaa094
B OpenNebula/one#6120: Fix datatable zones (#3026)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-04-05 12:03:12 +02:00
David
cfe1be8641
B OpenNebula/one#6485: Behavior of non required text (#3025)
fields when update

Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-04-05 11:48:17 +02:00
Jan Orel
87862523e2
B #-: Fix live migrate symlink restore (#3024)
otherwise disk.0 symlink looks like
  `disk.0 -> disk.0.snap`

instead e.g.
  `disk.0 -> disk.0.snap/2`
2024-04-04 19:47:50 +02:00
David
a9cb27d9f9
B OpenNebula/one#6516: Schedule actions section (#3022)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-04-04 16:28:04 +02:00
David
af02b52f07
M #-: Ensured hugepage attribute as array (#3021)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-04-04 16:19:32 +02:00
Tino Vázquez
03705f28bd L #-: Linting for rubocop 1.62.1 2024-04-04 14:43:03 +02:00
Pavel Czerný
b888a3fdaf
M #-: Improve logging for parsing VM xml (#3015)
(cherry picked from commit 4f585b8373)
2024-04-02 12:30:55 +02:00
Pavel Czerný
7a2e1bfd4f
B OpenNebula/one#6550: Fix backup blocking Scheduled Actions (#3019)
+ warn about corrupted Scheduled Actions

(cherry picked from commit 5861064ea1)
2024-04-02 12:27:51 +02:00
Jan Orel
fa56dccbb8
B #-: Avoid using arr[2..] in ruby 2.5, fixup! (#3017) 2024-04-02 09:30:48 +02:00
Ruben S. Montero
7ed5991c87
L #-: Linting for opennebula_vm.rb
(cherry picked from commit 520278d3c4)
2024-04-01 10:19:17 +02:00
Jan Orel
6549b1626c
B #-: Avoid using arr[2..] in ruby 2.5 (#3016) 2024-04-01 09:56:21 +02:00