1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00
Commit Graph

1365 Commits

Author SHA1 Message Date
Ruben S. Montero
eb2bc22ef4
B #3189: Add missing sudo for lxd_clean hook. Change install location of lxd clean hook 2019-10-02 16:49:32 +02:00
Vlastimil Holer
cf0d1465df B #3046: Review sudoers (#3786) 2019-09-30 15:15:42 +02:00
Vlastimil Holer
4171205b6e F #3380: Generate onehook manual page (#3783) 2019-09-30 11:32:00 +02:00
Jan Orel
b9a1239267 F #3147: Ceph - move to trash instead delete (#3341) 2019-09-26 15:57:12 +02:00
Christian González
bf43ae24de F #3380: Add XSD files for HM messages and (#3765) 2019-09-24 14:53:38 +02:00
Christian González
99985337e6 M #-: Minor changes (#3762) 2019-09-24 09:47:07 +02:00
Alejandro Huertas Herrero
308d203f48 F #3380: fix minor bugs (#3757)
* Fix bug in cli helper base64? funcion
* Change the way to read host idi in host_error script
* Change onehook log help message format
2019-09-24 09:44:06 +02:00
Angel Luis Moya Gonzalez
4f13059c21 F #3440: Added route /nsx/auth (#3761)
* F #3440: Get token NSX-V and NSX-T

* F #3440: Added route nsx/auth

Route to acquire a valid NSX token.
Changes on nsx_client constructor have been required
Changes on constructor calls
Returns 200 and token if success
Returns 400 and error message if not success

* F #3440: Change NSXClient constructor call
2019-09-23 17:58:08 +02:00
Jan Orel
f047926969 M #~: Include augeas lens oned.aug (#3741) 2019-09-23 15:20:46 +02:00
Christian González
9c3ec5dc42 F #3380: Add XSD files fo hook and hook pool (#3746) 2019-09-23 15:20:19 +02:00
Alejandro Huertas Herrero
dd7f564553 F #3380: add host error hook template example (#3749) 2019-09-23 15:16:05 +02:00
Tino Vazquez
7b8438dd4a
L #-: Linting vCenter create net hook 2019-09-20 15:05:45 +02:00
Angel Luis Moya Gonzalez
d0498534d8 F #3380: Change vnet locks (#3748) 2019-09-20 12:34:19 +02:00
Tino Vazquez
a4daa6cff4
L #-: Linting new hook log file 2019-09-19 16:28:59 +02:00
Angel Luis Moya Gonzalez
28f07966cf F #3380: Add auto-register vcenter hooks (#3735)
vCenter hooks located at:

 <ONE_LOCATION>/remotes/hooks/vcenter/templates

are registered automatically when import a vcenter cluster
with the command "onevcenter"
2019-09-19 15:36:19 +02:00
Alejandro Huertas Herrero
276476b71d M #-: change ds encrypted by datastore (#3726) 2019-09-19 11:30:03 +02:00
Alejandro Huertas Herrero
5f660a2c6b F #3380: adapt DDC to new hook system (#3727) 2019-09-19 11:28:36 +02:00
Vlastimil Holer
4b4edb6460 B #3183: Service restart window (#3723)
Lower restart window from 300 to 60 seconds for existing services
opennebula and openenbula-scheduler, set same restart mechanism
to the rest of services.
2019-09-18 10:05:16 +02:00
Angel Luis Moya Gonzalez
d45bd83b7c F #3380: Changes hook parameters (#3721)
Change the way of get parameters due to new hooks system
2019-09-17 17:22:00 +02:00
Alejandro Huertas Herrero
12928399d5 F #3064: add datasores clusters encrypted attrs (#3722) 2019-09-17 16:18:54 +02:00
Alejandro Huertas Herrero
c9b609cc40 F #3064: adapt DDC to new secrets handling (#3716) 2019-09-17 15:29:01 +02:00
Vlastimil Holer
29b98e235a F #779: Build Optimizations (#3707) 2019-09-16 23:13:25 +02:00
Alejandro Huertas Herrero
efb41f8552 F #3380: add zeromq devel package to install gems (#3712)
* Add zeromq devel package to install gems
* Error cond. checks in install_gems
2019-09-16 18:07:48 +02:00
Alejandro Huertas
e997d2b2b3
F #3064: encrypt address range template
The address range template in address range pool is encrypted
2019-09-13 11:35:53 +02:00
Alejandro Huertas
1061d4a02d L #3683: code linting 2019-09-13 09:34:00 +02:00
Tino Vazquez
9e67ae678d
L #-: Linting to make rubocop smile again 2019-09-12 16:56:54 +02:00
Ruben S. Montero
3c2df22ad7
F #3064: separate encrypted attrs by objects
* There are encrypted attributes for VMs, Hosts and VNets
    * For VMs the user template is also encrypted
    * For VNets its address ranges attributes are also encrypted

Co-authored-by: Alejandro Huertas <ahuertas@opennebula.systems>
2019-09-12 16:25:23 +02:00
Ruben S. Montero
acff31e240
M #-: Make one start/stop script more quiet 2019-09-10 18:18:02 +02:00
Ruben S. Montero
a0c9717a83
M #-: Update one start script help message 2019-09-10 10:55:11 +02:00
Ruben S. Montero
712230da5c
M #-: Add missing call to start hem in one script 2019-09-10 10:49:24 +02:00
Christian González
af1ec56a16
F #3380: Retry hem execution. Better hook management start process
(cherry picked from commit cb6ecaa8bebf4c8e2323ac35a5ff601f29b97c37)
(cherry picked from commit b8351898fc212065dc1abff14be531db5442cd82)
2019-09-09 16:59:51 +02:00
Ruben S. Montero
6143dd95ce
F #3380: New Hook system. Drivers, oned and command line tool
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-09-09 14:47:42 +02:00
Ruben S. Montero
500e45dbd6
F #1401: Configurable VM_*_OPERATIONS per group and user. Restructure of the API
authorization levels and initialization logic.

Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2019-09-09 13:13:52 +02:00
Alejandro Huertas Herrero
4ccf7f0c72 B #3572: Change in onegate client to ensure compatibility with old servers (#3643) 2019-09-06 13:32:00 +02:00
Jan Orel
819669442e B #3584: Make scons python3 compatible (#3649)
* B #3584: Make scons python3 compatible

* L #~: PEP80 linting of  SConstruct
2019-09-06 13:30:23 +02:00
Alejandro Huertas Herrero
9e7c10278a F #3064: separate encrypted attrs in oned conf (#3656) 2019-09-05 21:49:59 +02:00
Carlos J. Herrera
1761db51bc B #3631: dev_prefix on create image (#3632)
* B #3631: put correct dev_prefix when create image

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>

* B #3631: revert: put correct dev_prefix when create image

This reverts commit c5e328beca.

* B #3631: change default device prefix

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
2019-09-05 11:55:29 +02:00
Jan Orel
2373c255b4 F #3613: Replace brctl by iproute2 (#3646) 2019-09-04 13:31:39 +02:00
Ruben S. Montero
a742b95d83
F #3064: Unified secret handling
Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2019-09-03 16:46:36 +02:00
Vlastimil Holer
d9ee08235b F #3042: Respect GEMS_LOCATION, use STDIN for data (#3639) 2019-09-03 14:09:24 +02:00
Alejandro Huertas
6796f5093d
F #3042: Packet public networking
* code linting
    * add new files into install.sh
    * decrypt secrets in ipam/hook
    * fix use of <<~EOF

(cherry picked from commit f9e469b10f)
2019-08-30 17:30:34 +02:00
Alejandro Huertas
1a56d89890
F #3042: Packet Public Networking
* Add alias ip hook
    * Add packet ipam scripts
    * Make some changes in packethost Ruby gem
    * Make some changes in Packet vmm driver

(cherry picked from commit c87025d314)
2019-08-30 17:29:24 +02:00
Ruben S. Montero
609ca70789
F #3380: Add missing 0mq gem file 2019-08-27 14:33:42 +02:00
Ruben S. Montero
8ffb9e1530
F #3380: Add 0mq gem files 2019-08-27 13:53:10 +02:00
Tino Vazquez
7a76cb85ab
L #-: Disable SpaceAroundOperators rubocop layout
Also fix line too long offense
2019-08-22 13:20:00 +02:00
Vlastimil Holer
787e957f85 F #2799: Respect GEMS_LOCATION (#3598) 2019-08-18 20:33:09 +02:00
Vlastimil Holer
39e4e819ec F #3576: Gemfile.lock for Debian 10 (#3577) 2019-08-08 12:59:26 +02:00
Angel Luis Moya Gonzalez
e5e169932f F #3440: Initial NSX driver commit (#3549)
* F #3440: Create and delete NSX networks

This allows to create and delete from command line both
NSX-V netwoks and NSX-T networks.

* F #1256: Allow attach created Opaque Networks

This allows to attach a new created Opaque Network
to a instance.

* F #3440: Allows attach/detach created NSX-V networks

Changes included:
Allow attach and detach nics to a VM from nsx-v networks
created from OpenNebula.
Improve function to retrieve nsx-t network identifier on vc

* M #-: Change Network types as constants

Created new constans into Network class to identify
the different types of networks
Also changed order to detect Network avoiding incorrect
detections due to its parent Classes

* F #3440 #1256: Added NSX info to monitor

Added the following NSX info to host monitor:
NSX_MANAGER: "NSX Manager | NSX-T Manager"
NSX_TYPE: "NSX-V | NSX-T"
NSX_VERSION: "NSX-V or NSX-T version"
NSX_URL: NSX Manager url

* F #3440: Add Transport Zones to monitor host info

If the folowing attributes are correct, the transport
zones are listed into the host monitor information:

NSX_MANAGER
NSX_TYPE
NSX_USER
NSX_PASSWORD

* F #3440: Change NSX parameters to Host object

Some parameters created in first instance in vnet object for
testing purposes, has been changed to its definitive placement,
the Host object.

* F #3440: Added NSX_STATUS

Added NSX_STATUS attribute, checking the following:

- NSX_USER 	(Check if attribute is setted)
- NSX_PASSWORD	(Check if attribute is setted)
- NSX_TYPE	(Check if attribute is setted)
- NSX_MANAGER	(Check if attribute is setted)
- Check a correct connection with NSX Manager

The result is shown in the attribute NSX_STATUS, that
should be NSX_STATUS = "OK" if all is correct.

* F #3440: Refactor and clean

Refactor code into classes and clean.

* F #3440: Clean and rubocop

Set url as base_url + section + parameter
Correction to avoid rubocop warnings

* F #3440: Rubocop fixes

Corrected rubocop warnings

* F #3440: Fix rubocop warnings on hooks

Fixed rubocop warnings on network hooks

* F #3440: Fix rubocop warning on nsx_driver.rb

* F #3440: Forgotten sleep to timeout

Added a forgotten sleep into a timeout secuence.
Added cosmetic changes to minimize code lines.
2019-07-31 18:25:22 +02:00
kvaps
a297619227 F #3384: Inherit FILTER from the virtual network (#3385)
Signed-off-by: kvaps <kvapss@gmail.com>
2019-07-31 11:03:24 +02:00
Ruben S. Montero
1988cb8369
M #-: Update zone.xsd to conform API one.zone.info call 2019-07-30 14:39:24 +02:00