1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00
Commit Graph

2016 Commits

Author SHA1 Message Date
Jan Orel
88e822c24e
B #-: Fix OpenNebula version in provision (#3164) 2024-07-24 12:08:39 +02:00
Jan Orel
2f47cbe43a
M #-: Bump Ubuntu to 22.04 in Equinix provision (#3166) 2024-07-24 12:08:06 +02:00
Jan Orel
d8de623004
M #-: Remove firecracker from provision (#3165) 2024-07-24 12:07:44 +02:00
Ruben S. Montero
f194c1241f
M #-: Remove tproxy logic 2024-07-23 13:29:48 +02:00
Michal Opala
360605628c
F #6641: Implement OneGateProxy in VN drivers (#3142)
This commit implements a transparent proxy for OneGate service (as well as any other  TCP service)
* #6281: Disable legacy OneGateProxy
* Implement OneGateProxy in VN drivers
2024-07-19 11:55:49 +02:00
Ruben S. Montero
09dc730329
M #-: Remove pg gem and update the locks
Author: Jan Orel <jorel@opennebula.io>
2024-07-17 16:20:22 +02:00
Ruben S. Montero
033ac01567
F #6653: Remove Postgresql dependencies 2024-07-17 12:58:37 +02:00
Pavel Czerný
a3c83b8112
B OpenNebula/one#6630: Fix host.xsd (#3143)
* xs:all element doesn't allow maxOccurs="unbounded" in child node

(cherry picked from commit 2d49e662e9efb210043ca57d004fa0befcaf0478)
2024-07-10 11:27:33 +02:00
Ruben S. Montero
888cc87c68
F #6397: Minor adjustments to LXC marketplace
- Fix LXC linuxcontainers monitor action (error setting header)
- Update context packages URL reference to point to the new location
- Add lxc marketplace utility to sudoers file (removed in a previous
  commit)
- Remove CentOS from supported OS list in LXC marketplace
  (CentOS9_Stream includes some failures that need further debugging)
2024-07-09 13:43:35 +02:00
Ruben S. Montero
41f25a2518
F OpenNebula/one#6397: Removes Marketplaces, Hypervisor drivers and others
- Remove Firecracker driver
- Remove LXD driver
- Remove dockerhub, docker registry marketplaces
- Remove turnkey linux marketplace
- Remove docker machine
- Remove references to above components in Sunstone
- Change suffix to LXC to avoid confussion, remove turnkeylinux driver
2024-07-08 09:49:11 +02:00
Guillemo Ramos
fe8c1ca14a
B OpenNebula/one#6630: Add DATASTORES/DS to host.xsd (#3129)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2024-06-27 13:05:44 +02:00
Jan Orel
10664952de
M #-: Use one-apps for context download (#3101)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2024-06-10 15:47:12 +02:00
Ruben S. Montero
286604a3b5
M #-: Add DNS attribute to the default inherit attribute set 2024-06-07 12:38:46 +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
Pavel Czerný
1a320ba8e0
F #6523: Store disk IDs in Backup Image (#3075) 2024-05-27 17:24:31 +02:00
Jan Orel
4da8c1cb52
B #6587: Switch to opennebula-augeas gem (#3079)
Switch to OpenNebula fork of the discontinued augeas gem.
2024-05-27 16:20:09 +02:00
Tino Vázquez
3fd8268ddc L #-: Lint for rubocop 1.64.0 2024-05-23 12:27:22 +02:00
Pavel Czerný
3fa5c0b041
M #-: Update VM states graph (#3068)
Add states:
* Backup (poweroff)
* Restore
* Hotplug_nic_poweroff
* Disk resize (poweroff, undeployed)
* Saveas (suspended, stopped)

Keep the states-simple simple, ignoring some transient transitions from poweroff, stopped, suspended and undeployed states
2024-05-22 09:34:03 +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
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
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
Pavel Czerny
6e4407f061
M #-: Update cppcheck to use c++17
(cherry picked from commit 3f0222cdafec85f329bbc8009633f4c9ad2cc26f)
2024-04-18 12:07:20 +02:00
Tino Vázquez
697061f687 L #-: Rubocop 1.63.0 2024-04-08 18:49:37 +02:00
Jan Orel
030b577033
B OpenNebula/one#6512: Lock nokogiri <1.16 (#2995)
for opennebula gems 1.16 requires ruby >=3.0, which breaks: Ubuntu 20.04, Debian 10-, AlmaLinux 9
2024-03-26 12:41:01 +01:00
Daniel Clavijo Coca
886a106fb7
M OpenNebula/one#6504: Update vm pool view schema (#2990) 2024-03-20 12:21:12 +01:00
Jan Orel
0abfaaa12d
M #-: Update oned version 6.99 -> 6.9 (#2978)
* Update oned version 6.99 -> 6.9

* Update DB version 7.0 -> 6.10
2024-03-11 12:05:39 +01:00
Pavel Czerný
185e9f1221
M #-: Bump DB version to 7.0 (#2974) 2024-03-10 02:00:48 +01:00
Jan Orel
a883ad452f
B #OpenNebula/one#6357: Update Gemfile.locks (#2958)
* keep sqlite3 1.6 for ruby 2.7
* keep keep sinatra 3.X
2024-02-26 18:01:23 +01:00
Jan Orel
d46345238d
B #-: Gem locks (#2943)
*  Update Gemfile
   - Add rackup requirement for new sinatra

      https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md
      Note: when using Sinatra to start the web server,
      you now need the rackup gem installed

  - newer sqlite3 is not compatible with ruby2.7

* Update almalinux8 to avoid old key

* Refresh Gemfile.locks
2024-02-16 12:11:48 +01:00
Jan Orel
5a45ce0c9c
F OpenNebula/one#6357: Debian 12: gem locks, openssl legacy (#2940)
* Gemfile.lock for Debian 12
* Add NODE_OPTIONS=--openssl-legacy-provider
2024-02-14 09:59:55 +01:00
Jan Orel
a32719139d
M #-: Use /usr/bin/arping from iputils-arping (#2938)
There is also arping, providing /usr/sbin/arping but we don't use that one.
2024-02-12 12:16:33 +01:00
Daniel Clavijo Coca
df0b41dec1
M #-: Update vm state reference (#2929) 2024-02-09 11:05:41 +01:00
Jan Orel
ca1ac6f8f0
B OpenNebula/one##5909: Switch to /usr/(s)bin deb (#2907) 2024-02-06 11:38:47 +01:00
Pavel Czerný
5788a2528e
B #6372: Add lock to raft hook script (#2899)
* This should fix issues in HA environment, where we sometimes get duplicit virtual IPs
2024-02-06 11:18:35 +01:00
Ruben S. Montero
1ee6498b3c
F #6439: Add deafult auth operation 2024-01-31 18:10:44 +01:00
mkutouski
5d21f33a7b
B OpenNebula/one#6467: LUKS_PASSWORD was removed (#2903)
Removed LUKS_PASSWORD from the oned.conf because it's not used in the code.
2024-01-22 15:55:56 +01:00
Jan Orel
75ecbae407
Old ruby (#2902)
* Revert "L #-: Use newer argument forwarding syntax"

This reverts commit ca4645f300.

* L #-: Disable Style/ArgumentsForw. due older ruby
2024-01-19 13:03:26 +01:00
Pavel Czerný
442041fd07
F #6341: Generic Quotas
- Generic quotas are defined and read from oned.conf (QUOTA_VM_ATTRIBUTE)
- Generic quotas react to the running mode (i.e. account only when the VM is
  running). For each quota oned also adds a RUNNIN_* metric
- one.system.config API call has been updated so every user can read
  quota configuration:
    . Sensitive information is hidden (***)
    . Oneadmin group has no longer access to sensitive information
      through the API
- CLI has been updated to render generic quotas
- onedb fsck fixes generic quotas reading the configuration from
  oned.conf

Other changes in this PR:
- Refactor Quota metrics to use std::vector instead of C array
Squashed commit of the following:
- New methods to Template and Attribute classes to render hidden
  attributes as "***"
- Update Quota calls to not include unneeded quotas

co-authored-by:Ruben S. Montero <rsmontero@opennebula.org>
2024-01-08 14:07:03 +01:00
Pavel Czerný
0712e08a70
M #-: Fix VM restricted attribute from RAW to RAW/DATA (#2874) 2023-12-18 16:23:25 +01:00
Neal
5aeac3cddb
F #6427: Remove rbvmomi and update gemlock files (#2871) 2023-12-13 11:46:33 +01:00
Pavel Czerný
8d564f5d46
M #-: Add ERROR attribute to backupjob xml schema (#2869)
(cherry picked from commit 6e2c4c623f)
2023-12-12 16:28:32 +01:00
Daniel Clavijo Coca
9d5322fe1d
F OpenNebula/one#6365: Improve oneflow listing commands CLI (#2870) 2023-12-12 16:07:19 +01:00
Tino Vázquez
7516ed7f0a L #-: Lint for rubocop 1.58.0 2023-12-04 10:40:53 +01:00
Daniel Clavijo Coca
ac11277d93
F OpenNebula/one#6059: Added QoL features for backup management (#2837)
using the CLI

(cherry picked from commit 611fe5f363)
2023-11-28 16:20:23 +01:00
Neal
e7502c8d39
M #-: Update gemfiles and change rbvmomi to rbvmomi2 (#2840) 2023-11-27 18:09:53 +01:00
mkutouski
af6591e814
B #6282: Fix Incorrect configuration of systemd services (#2831) 2023-11-22 12:45:36 +01:00
Pavel Czerný
1b3f3d1462
F #6333: Fix xml schema (#2811) 2023-11-14 12:08:43 +01:00
Ruben S. Montero
ea1d5183ea
F #6333: Snapshots for incremental backup mode
- Defines a new a attribute "INCREMENT_MODE" that can be "SNAPSHOT" or
     "CBT"

- SNAPSHOT mode: takes a disk snapshot (virsh snapshot-create-as or
  qemu-img). The current snapshot is saved in the backup store, and
  committed to the base disk image.

  The backup_qcow2.rb util adapt to different VM folder layout for SSH,
  shared, persistent, non persistent disks.

- Lint vxlan.rb

- Update onevm and XSD schema to reflect the new backup attribute
2023-11-10 19:40:26 +01:00
Pavel Czerný
2ada2ec687
M #-: Remove obsolete attribute from oned.conf (#2808) 2023-11-10 11:52:15 +01:00