1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00
Commit Graph

141 Commits

Author SHA1 Message Date
Carlos J. Herrera
f9123adc9c
B #5545: vCenter VNETs with dpg does not set clusters correctly (#1680)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2022-01-11 14:48:48 +01:00
Carlos J. Herrera
847ea6d949
F #~: add execution permissions (#1505) 2021-10-04 10:40:37 +02:00
Carlos J. Herrera
437da65842
F #5461: Use bridge to identify vCenter network (#1476)
relevant when managing networks through OneFlow
2021-09-23 16:21:32 +02:00
Ricardo Diaz
d66f4aa523
M #-: Update Ruby gems setup in autostart scripts (#1370)
* Added donwcase when checking AUTOSTART attribute.
* Create autostart hook install links

Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
2021-07-22 16:29:26 +02:00
Ricardo Diaz
a17a2dba4a
L #-: Autostart hook linting (#1351) 2021-07-13 17:57:14 +02:00
Ricardo Diaz
72e3b47efd
M #~: VM autostart with hooks (#1131)
Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
2021-07-02 10:22:33 +02:00
Juan Antonio Escobar
d245875ca0
B #5312: fixed bug when importing a vCenter net (#1240) 2021-05-21 13:00:27 +02:00
Vlastimil Holer
c649213923
B #5379: Disable warnings on load of rubygems (#1199)
(cherry picked from commit 5fe824f1e7)
2021-05-11 09:24:32 +02:00
Vlastimil Holer
0457a46045
M #-: Avoid reloading of OpenNebula distributed Ruby gems (#829) 2021-02-17 19:52:38 +01:00
Vlastimil Holer
096754b63f
M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Carlos J. Herrera
2a91fe239f
L #~: linting vcenter driver (#667)
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
2021-01-18 23:28:42 +01:00
Carlos J. Herrera
0c01395b46
L #~: Linting vcenter driver (#600)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2021-01-14 12:42:48 +01:00
Jan Orel
c4c6cc9998
EC2 ipamm driver, update alias_sdnat (#408)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2020-11-17 09:40:24 +01:00
Ricardo Diaz
42edaeb838
B #5101: host_error hook take arguments from stdin (#235)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
2020-09-23 11:57:25 +02:00
Carlos J. Herrera
3f973e5a44
L #~: Refactor vcenter driver (#110)
Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
2020-07-30 19:27:23 +02:00
Vlastimil Holer
7872274c9b
B #4929: Preserve site_ruby in paths, use realpath (#33) 2020-06-22 15:18:57 +02:00
Pavel Czerny
7705d669a7
F #3859: Monitord HA 2020-05-25 10:49:50 +02:00
Petr Ospalý
365d1955ff
F #865: Add oneshowback compute timer
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
2020-05-22 03:00:32 +02:00
Angel Luis Moya Gonzalez
783ec5c1bd
F #4302: Fix bad type in unless check (#4788)
Co-authored-by: mouyaq <amoya@opennebula.io>
2020-05-21 17:28:44 +02:00
Vlastimil Holer
4c77119fce
M #-: Restrict sudo ip usage (#4689)
Co-authored-by: Jan Orel <jorel@opennebula.systems>
2020-05-11 19:03:23 +02:00
Vlastimil Holer
f3c50a5d89
M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Vlastimil Holer
d064ee6db3
B #4304: Distribution gems affects OpenNebula (#4578)
Remove vendor_ruby and site_ruby directories from $LOAD_PATH, so
that distribution gems installed directly into loadable path
without need to use rubygems are not loaded by require.
2020-04-22 10:21:08 +02:00
Vlastimil Holer
424ab046b7
M #-: Use non-interactive sudo, fix arping path on Debians (#4555)
* M #-: Force all sudo usage as non-interactive
* M #-: Fix sudoers arping path on Debian-like systems
2020-04-17 19:26:31 +02:00
Angel Luis Moya Gonzalez
f965b03163
F #4119: Fix vntemplate instantiate on vCenter (#4465) 2020-04-01 16:12:05 +02:00
Angel Luis Moya Gonzalez
0a7b1be152 M #-: Added exceptions and exit codes (#3891) 2019-10-31 11:33:36 +01:00
Angel Luis Moya Gonzalez
2bfda02621 F #3440: Added more input options and errors (#3887)
Added code to treat inputs in the creation network form
Puts errors on network creations in hook STDERR and in
VCENTER_NET_ERROR attribute.
2019-10-29 18:21:34 +01:00
Angel Luis Moya Gonzalez
2fade66f92 M #-: Modify hook exits (#3828)
- Remove rescue SystemExit
- Apply unlock before each exit
- Changes on some comments and debug lines
2019-10-10 16:15:19 +02:00
Angel Luis Moya Gonzalez
5a24b20544 M #-: Hooks unlocks (#3827)
* M #-: Fix error on variable rc creation

* M #-: Changes on creation network vcenter hook
2019-10-10 14:37:15 +02:00
Angel Luis Moya Gonzalez
0accfb2c6d F #3440: Fix bug creating NSX networks (#3821)
* F #3440: Fix bug creating NSX networks

Fix bug when creating NSX network without
transport zone. Added more checks and
exceptions to manage them.

* F #3440: Added backtrace to error message
2019-10-08 10:40:24 +02:00
Angel Luis Moya Gonzalez
19b255e0e3 F #3440: Improve NSX import process (#3796)
* M #-: Fix errors on commit 7b8438dd4

Change condition
Change definition function order

* F #3440: NSX parameters at import time

These attributes are added when importing a NSX network
NSX_ID
NSX_VNI
NSX_TZ_ID

Also now there is a different VCENTER_PORTGROUP_TYPE for
distributed port groups and NSX-V portgroups
2019-10-03 13:58:40 +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
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
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
5f660a2c6b F #3380: adapt DDC to new hook system (#3727) 2019-09-19 11:28:36 +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
c9b609cc40 F #3064: adapt DDC to new secrets handling (#3716) 2019-09-17 15:29:01 +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
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
Vlastimil Holer
787e957f85 F #2799: Respect GEMS_LOCATION (#3598) 2019-08-18 20:33:09 +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
Tino Vazquez
f5a39f6a15
B #2282: Add meaningful log info
When host fencing isn't configured yet

(cherry picked from commit 6aa5942721777be1dd242c34ae68d5a2bb51c607)
2019-07-18 12:12:29 +02:00
Vlastimil Holer
441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Sergio Semedi Barranco
536c22b12f B #2324: vcenter create_net hook checks IMPORTED (#2404) 2018-09-10 11:57:48 +02:00
Sergio Semedi Barranco
052a06d5f7 B #2324 vCenter networks are imported with VCENTER_IMPORTED att (#2381) 2018-09-05 16:49:47 +02:00
juanmont
d0766591f0 F #2192: New MONITOR INTERVALS for fine grain tunning 2018-06-19 16:15:01 +02:00
Sergio Semedi Barranco
8e7911c399 vCenter create net hook fixed (#2129) 2018-05-28 15:24:14 +02:00