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

148 Commits

Author SHA1 Message Date
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
Vlastimil Holer
c0d0819172 F #1737: vip.sh always tries to stop the Gate/Flow services 2018-02-22 12:07:24 +01:00
Vlastimil Holer
9bd8acc524 F #1737: Improve systemd support (#1772) 2018-02-21 17:06:20 +01:00
Vlastimil Holer
8caef8d6c1 B #1733: Make vip.sh less error prone (#1734)
(cherry picked from commit dd0763209f)
2018-02-12 16:35:53 +01:00
Sergio Semedi Barranco
c06fd75e6c F #1538: locking net (vcenter_hooks, minor bug fix (#1724) 2018-02-09 11:51:02 +01:00
Vlastimil Holer
a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Sergio Semedi Barranco
4aea67a709 B #1463: VCENTER ONE_MANAGED && vnet hooks working as expected (#1508)
* B #1463: ONE_MANAGED attribute is required

* B #1463: vcenter_hooks activates properly

* B #1463: vn_mad changed to vcenter, error checking on hook
2017-11-22 17:05:11 +01:00
Sergio Semedi Barranco
139f448a76 B #5418: vcenter automatic vlan_id working! (#515)
* B #5419: generating vlan id 4 vcenter

* B #5419: vcenter_create_vnet hook waits VLAN_ID attribute
2017-10-06 18:22:51 +02:00
Javi Fontan
aa6c3a58a6 B #5358: stop an start oneflow on leader change
(cherry picked from commit 3421457604)
2017-09-08 17:44:38 +02:00
Vlastimil Holer
9be1a1a706 Send both gratuitous ARP request and reply on VIP change. (#426)
* Send both gratuitous ARP request and reply on VIP change.

* Enable arping in sudoers

* Run arping via sudo
2017-09-04 12:13:16 +02:00
Tino Vazquez
f13c6bbe1b Change location of vcenter hooks 2017-06-23 17:32:33 +02:00
Jaime Melis
509d98dff9 F #4809: Send gratuitous ARP to update VIP 2017-06-22 18:32:06 -04:00
Jaime Melis
8e19b5666d F #4809: Cleanup script 2017-06-22 17:53:53 -04:00
mcabrerizo
bb9f21f2fa F #4913: Remove enhanced vnet from default cluster on create 2017-06-12 17:59:37 +02:00
mcabrerizo
b112cad731 F #4913: New vCenter hooks for enhanced networks create/delete 2017-06-11 19:37:52 +02:00
mcabrerizo
9edce1d17d F #4913: vCenter delete poweroff vms hook is no longer used 2017-06-11 19:36:43 +02:00
Jaime Melis
9d763ef628 F #4809: Fully working vip hooks 2017-05-29 18:24:25 +02:00
Javi Fontan
8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Jaime Melis
680d49a23d F #4809: Add RAFT hooks 2017-05-18 16:41:18 +02:00
Jaime Melis
94052286ed F #4809: Move the FT hooks to its own folder 2017-05-18 16:40:52 +02:00
Tino Vazquez
5cb9494a05 Bug #4648: Fix history bug in delete hook 2016-11-24 17:20:50 +01:00
Tino Vazquez
6ac6daa171 Remove debug info 2016-11-24 15:56:45 +01:00
Tino Vazquez
18185a9212 Add delete_poweroff_vms to install.sh 2016-11-24 15:49:54 +01:00
Tino Vazquez
e2b04e886f Fix two minor typos 2016-09-29 11:06:28 +02:00
Jaime Melis
e1a0d34f67 Feature #4659: The host can be in MONITORING_ERROR 2016-09-07 12:18:31 +02:00
Jaime Melis
c2159551a4 Feature #4659: Improve fault-tolerance hook 2016-09-07 12:15:27 +02:00
Ruben S. Montero
dfd3cc8f67 bug #4236: Deal with poweroff vms 2016-06-03 20:04:28 +02:00
Javi Fontan
e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Jaime Melis
e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Jaime Melis
8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Javi Fontan
b8e8bbd086 bug #3153: bug in host_error hook reading config 2014-08-28 15:27:13 +02:00
Ruben S. Montero
82b4aaed55 feature #1639: Typo 2014-08-24 12:21:27 +02:00
Ruben S. Montero
17cf5167d4 feature #1639: UNKNOWN VMs migrate to BOOT state. Live migrations only for RUNNING VMs
(cherry picked from commit c794a0f62f47dcb1da4639e7a47757ffc426d5c4)
2014-08-24 12:07:55 +02:00
Carlos Martín
f0cff9d151 Feature #1639: fault tolerance hook rescheds VMs from unknown
(cherry picked from commit c5f0bc26366e93f528060b825ac4b8507cf6aef3)
(cherry picked from commit 674bacc122f61ea392e7420a83a0c2770630be16)
2014-08-24 12:07:40 +02:00
Tino Vazquez
ce9c8eacb5 Bug #2689: Adjust to correct MONITORING_INTERVAL variable 2014-01-29 19:16:03 +01:00
Jaime Melis
11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Ruben S. Montero
9c1631da26 Merge branch 'feature-1977' 2013-07-04 01:54:33 +02:00
Tino Vazquez
0db3192173 Proper case for the opennebula require 2013-05-29 10:42:15 +02:00
Tino Vazquez
22b1d65cb4 Fix typo 2013-05-28 17:05:38 +02:00
Carlos Martín
0725f3308e Rename onevm destroy to onevm delete 2013-04-11 16:39:55 +02:00
Carlos Martín
ddb8fc1933 Feature #1797: Update onevm commands in host hook 2013-03-20 14:46:07 +01:00
Jaime Melis
7357bffe34 Update copyright notice 2013-01-24 16:18:30 +01:00
Jaime Melis
af61e33f8c Update year to 2013 2013-01-24 16:03:57 +01:00
Tino Vazquez
6951a60c77 bug #1684: Require OpenNebula.rb in host_hook
(cherry picked from commit 1a8354e427)
2012-12-07 12:15:02 +01:00
Tino Vazquez
406d4e89f6 Fix bug in host_on_error hook 2012-11-20 15:27:45 +01:00
Tino Vazquez
dfbbcd7806 GetOptLong for host_error.rb hook 2012-10-19 13:17:58 +02:00
Tino Vazquez
f9d132b436 Add "-p <n>" option to host_error.rb, enables waiting for n monitoring intervals before activating the hook 2012-10-18 19:18:43 +02:00
Jaime Melis
a2b7cb6bc9 Bump to version 3.2.0 2012-01-12 12:29:18 +01:00
Ruben S. Montero
81978b4ca2 bug: Update hook information in oned.conf. Moved ft hooks to a dir. Removed unneeded hooks. 2011-09-01 16:57:02 +02:00
Jaime Melis
216b798a6c Fix host_error hook for the new OCA 2011-07-11 18:42:22 +02:00
Jaime Melis
d8a3628aef feature #476: remove old vlan hook 2011-06-21 17:46:51 +02:00
Jaime Melis
d068816d20 feature #476: move spec files to vnm_mad 2011-06-10 08:48:01 +02:00
Jaime Melis
224de5871d feature #476: install hooks under remotes and place the source the under vnm_mad 2011-06-07 19:03:32 +02:00
Jaime Melis
a63a911101 feature #476: fix typo in vlan tagging command 2011-06-01 12:31:04 +02:00
Jaime Melis
ced96c874b feature #476: iptables rules now filter physdev-out. Handle established connections. 2011-05-21 13:25:49 +02:00
Jaime Melis
bf961d4fa4 feature #476: firewall hook and class 2011-05-20 11:18:11 +02:00
Jaime Melis
df3aa7f438 feature #476: vm class to obtain vm attributes 2011-05-20 11:17:47 +02:00
Jaime Melis
0d7eb3c147 feature #476: possibility to specify filtered bridges in ebtables. 2011-05-18 17:46:16 +02:00
Jaime Melis
08f7c3091b feature #476: use modules to extend main class 2011-05-18 16:05:16 +02:00
Jaime Melis
3113f007e2 feature #476: refactor tester and implement openvswitch test in kvm 2011-05-17 22:13:10 +02:00
Jaime Melis
a9ce559c18 feature #476: Implement ebtables and openvswitch hook 2011-05-17 22:12:28 +02:00
Jaime Melis
9d38042dc7 feature #476: adapt rspec to refactorization 2011-05-17 12:46:52 +02:00
Jaime Melis
09a891bd2e feature #476: refactor NIC classes 2011-05-17 12:46:52 +02:00
Jaime Melis
8681584eb1 feature #476: new tester for the networking hooks 2011-05-17 12:46:52 +02:00
Jaime Melis
4f2839dda3 feature 476: ebtables rules. Collect network and domid information in xen 2011-05-17 12:46:52 +02:00
Jaime Melis
c6a0fbb8e8 feature #476: abstraction class for network management in hooks 2011-05-17 12:46:51 +02:00
Jaime Melis
df3829ffb9 feature #476: draft of vlan hook 2011-05-17 12:46:51 +02:00
Tino Vázquez
2fc0f5b5ca bug #585: Hook now works with users others than oneadmin 2011-05-09 17:38:43 +02:00
Jaime Melis
4980255942 Update copyright year to 2011 2011-02-25 14:34:44 +01:00
Ruben S. Montero
daa7fab3e1 bug: Added paths to network utils in ebtables hooks 2011-02-10 18:56:32 +01:00
Tino Vázquez
181115799e feature #457: fixes for host hook on error 2011-01-18 18:37:02 +01:00
Tino Vázquez
9d7c8f6471 feature #457: new force option for suspended VMs 2011-01-17 18:26:36 +01:00
Tino Vázquez
366b578a7f feature #457: added host error hook 2011-01-17 15:27:10 +01:00
Javi Fontan
311eefcb35 bug #341: catch exceptions creating OpenNebula::Client 2010-09-09 16:23:13 +02:00
Daniel Molina
42bf46e21a feature #297: ImageRepository for managing images 2010-07-31 18:51:44 +02:00
Jaime Melis
76d839e0f6 Changed the default trigger action for the image hook. Improved the image hook legibility 2010-07-26 17:54:06 +02:00
Jaime Melis
5ee7d871e8 Disable image enable and disable in hook while bug #295 is fixed 2010-07-26 14:49:12 +02:00
Jaime Melis
4823b0b5d1 more bugs in image handling 2010-07-23 18:12:26 +02:00
Jaime Melis
933f4a6114 fixed bugs in image handling 2010-07-23 16:20:39 +02:00
Daniel Molina
10bd3b4e39 Save_as Image Hook 2010-07-21 17:57:57 +02:00
Daniel Molina
c20cef8287 Bug #285 filetutils instead of ftools 2010-07-20 19:50:12 +02:00
Jaime Melis
cf28a511e4 feature #200: fixed bugs in image hook 2010-07-01 16:23:38 +02:00
Jaime Melis
4e70f46b58 Added image hook 2010-06-30 12:17:47 +02:00
Javier Fontán Muiños
fdfe10407e Changed copyright notice 2010-02-22 18:00:30 +01:00
Rubén S. Montero
92f3bdfc5b merge back missing changes from one-1.4
git-svn-id: http://svn.opennebula.org/one/trunk@953 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-12-16 15:27:20 +00:00
Jaime Melis
91ebf207b0 ebtables-xen accepts an array of bridges to act upon. Changed from array#count to array#length for backwards compatibility
git-svn-id: http://svn.opennebula.org/one/trunk@904 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-29 17:53:02 +00:00
Jaime Melis
bea2026a68 Added license banner. ebtables-flush now waits for a moment before running. ebtables-kvm accepts an array of bridges to act upon
git-svn-id: http://svn.opennebula.org/one/trunk@901 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-28 19:05:11 +00:00
Jaime Melis
033a20ebf4 Modified ebtables-xen script to use FORWARD rules (#160)
git-svn-id: http://svn.opennebula.org/one/trunk@898 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-27 17:03:02 +00:00
Jaime Melis
2aea6c3324 Modified ebtables scripts to use FORWARD rules (#160)
git-svn-id: http://svn.opennebula.org/one/trunk@895 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-27 11:46:47 +00:00
Javier Fontán Muiños
455e1ab338 Added ebtables-flush and also ebtables-kvm to install.sh
git-svn-id: http://svn.opennebula.org/one/trunk@889 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-10-23 14:52:03 +00:00
Javier Fontán Muiños
28f3546fcf ebtables script for kvm (#138)
git-svn-id: http://svn.opennebula.org/one/trunk@796 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-09-17 16:39:06 +00:00
Javier Fontán Muiños
7212278256 Added ebtables-xen hook
git-svn-id: http://svn.opennebula.org/one/trunk@708 3034c82b-c49b-4eb3-8279-a7acafdc01c0
2009-07-21 10:45:54 +00:00