snf-network
11 years agoDistinguish between GRNET and generic setup
Dimitris Aragiorgis [Thu, 28 Jun 2012 18:16:43 +0000 (21:16 +0300)]
Distinguish between GRNET and generic setup

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix a bug in cluster init hook
Dimitris Aragiorgis [Thu, 28 Jun 2012 17:52:27 +0000 (20:52 +0300)]
Fix a bug in cluster init hook

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix number of arguments check
Dimitris Aragiorgis [Thu, 28 Jun 2012 10:25:27 +0000 (13:25 +0300)]
Fix number of arguments check

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoModify scripts to include network tags
Dimitris Aragiorgis [Wed, 20 Jun 2012 09:23:52 +0000 (12:23 +0300)]
Modify scripts to include network tags

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoModify kvm-vif-bridge to support network tags
Dimitris Aragiorgis [Tue, 19 Jun 2012 18:22:12 +0000 (21:22 +0300)]
Modify kvm-vif-bridge to support network tags

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoRefactor code
Dimitris Aragiorgis [Mon, 18 Jun 2012 18:03:40 +0000 (21:03 +0300)]
Refactor code

Add arguments to scripts.
Fix few bugs.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoclear-tap script
Dimitris Aragiorgis [Mon, 18 Jun 2012 17:03:51 +0000 (20:03 +0300)]
clear-tap script

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix clear-proxy ndp.
Dimitris Aragiorgis [Mon, 18 Jun 2012 17:03:05 +0000 (20:03 +0300)]
Fix clear-proxy ndp.

source conf files to retrieve public vlan

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoModify bridge naming
Dimitris Aragiorgis [Mon, 18 Jun 2012 15:47:37 +0000 (18:47 +0300)]
Modify bridge naming

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoChange network types
Dimitris Aragiorgis [Mon, 18 Jun 2012 13:08:34 +0000 (16:08 +0300)]
Change network types

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix a typo
Dimitris Aragiorgis [Wed, 13 Jun 2012 17:17:36 +0000 (20:17 +0300)]
Fix a typo

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoInitialize conf files for network transition
Dimitris Aragiorgis [Wed, 13 Jun 2012 17:07:14 +0000 (20:07 +0300)]
Initialize conf files for network transition

No mac filtering, no ebtables, no hooks
No private network (bridge with ebtables)  just private range
(one bridge per vlan)

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoenable/disable auto conf hooks
Dimitris Aragiorgis [Wed, 13 Jun 2012 12:41:23 +0000 (15:41 +0300)]
enable/disable auto conf hooks

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoRevise snf-network
Dimitris Aragiorgis [Tue, 12 Jun 2012 17:00:26 +0000 (20:00 +0300)]
Revise snf-network

No NFS storage needed. All info passed in hooks env is produced
by ganeti.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix log-env
Dimitris Aragiorgis [Fri, 8 Jun 2012 07:08:27 +0000 (10:08 +0300)]
Fix log-env

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoRemove netfile from kvm-vif-bridge
Dimitris Aragiorgis [Thu, 7 Jun 2012 17:23:22 +0000 (20:23 +0300)]
Remove netfile from kvm-vif-bridge

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoMake nfdhcpd functional
Dimitris Aragiorgis [Thu, 7 Jun 2012 16:54:06 +0000 (19:54 +0300)]
Make nfdhcpd functional

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agolog-env script
Dimitris Aragiorgis [Thu, 7 Jun 2012 16:52:53 +0000 (19:52 +0300)]
log-env script

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoclear-proxy-ndp hook script
Dimitris Aragiorgis [Thu, 7 Jun 2012 16:33:41 +0000 (19:33 +0300)]
clear-proxy-ndp hook script

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix broken ns_responce in nfdhcpd
Dimitris Aragiorgis [Tue, 29 May 2012 18:44:20 +0000 (21:44 +0300)]
Fix broken ns_responce in nfdhcpd

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix proxy ndp configuration
Dimitris Aragiorgis [Tue, 29 May 2012 16:47:35 +0000 (19:47 +0300)]
Fix proxy ndp configuration

uplink should be public vlan not gateway6

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoSupport routed ipv6 when connecting a network
Dimitris Aragiorgis [Tue, 29 May 2012 13:53:03 +0000 (16:53 +0300)]
Support routed ipv6 when connecting a network

Modify hook to support grnet specific ip-less routing and
proxy ndp for ipv6.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix proxy ndp issue
Dimitris Aragiorgis [Mon, 28 May 2012 17:55:26 +0000 (20:55 +0300)]
Fix proxy ndp issue

Add a ganeti post hook when a tap gets removed
instance-{migrate, failover, remove, stop}-post.d

Check if the first NIC that usually is the public interface
that gets routed and does proxy ntp in ipv6 has any orphan
rule and remove it.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoCode refactoring in kvm-vif-bridge and nfdhcpd
Dimitris Aragiorgis [Mon, 28 May 2012 17:45:28 +0000 (20:45 +0300)]
Code refactoring in kvm-vif-bridge and nfdhcpd

Allow binding files in form of
GATEWAY6=
in case not defined.

Modify kvm-vif-bridge that clears the pending rules before
handling the tap.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix IPv6 support for nfdhcpd
Dimitris Aragiorgis [Thu, 24 May 2012 20:34:41 +0000 (23:34 +0300)]
Fix IPv6 support for nfdhcpd

Supply all the neccessary fields for dhcp in binding file (created
by kvm-vid-bridge). Reference every dhcp client via the mac or eui64
of the incomming packet on the nfqueue.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoModify nfdhcpd to distinguish tap form indev.
Dimitris Aragiorgis [Thu, 24 May 2012 04:59:26 +0000 (07:59 +0300)]
Modify nfdhcpd to distinguish tap form indev.

DHCPv6 should work fine.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoModify hooks to use node infra details.
Dimitris Aragiorgis [Thu, 24 May 2012 04:57:04 +0000 (07:57 +0300)]
Modify hooks to use node infra details.

When connecting a network in routed mode pass the routing table
and not the vlan as link. The link will be choosen depending the
network type and the cluster/node infrastructure.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoFix IPv6 responses in nfdhcpd
Dimitris Aragiorgis [Mon, 14 May 2012 18:26:51 +0000 (21:26 +0300)]
Fix IPv6 responses in nfdhcpd

Search the interface of incomming request and find binding info
(IPv6 subnet) via traversing all clients configuration and matching
cl.ifname (tap0) with the interface above.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

11 years agoAutomate config via hooks
Dimitris Aragiorgis [Thu, 10 May 2012 14:31:06 +0000 (17:31 +0300)]
Automate config via hooks

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoAdd snf-network-reconfige
Dimitris Aragiorgis [Thu, 26 Apr 2012 11:02:08 +0000 (14:02 +0300)]
Add snf-network-reconfige

Useful script after node reboot.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoAdd a script for managing mac prefixes
Dimitris Aragiorgis [Tue, 24 Apr 2012 19:35:39 +0000 (22:35 +0300)]
Add a script for managing mac prefixes

Mac prefixes are used for private networks.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoSupport automated infa configuration with hooks
Dimitris Aragiorgis [Tue, 24 Apr 2012 19:24:16 +0000 (22:24 +0300)]
Support automated infa configuration with hooks

New hook for node-add that configures the interfaces in the
new node depending on nodegroup configuration.

After adding a nodegroup snf-network-add-group should be
invoked.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoVarious changes
Dimitris Aragiorgis [Wed, 11 Apr 2012 18:18:57 +0000 (21:18 +0300)]
Various changes

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoRemove routing tables from nfdhcpd
Dimitris Aragiorgis [Wed, 11 Apr 2012 02:29:30 +0000 (05:29 +0300)]
Remove routing tables from nfdhcpd

Put all info inside binding files

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoStandardize interfaces
Dimitris Aragiorgis [Sun, 8 Apr 2012 23:55:06 +0000 (02:55 +0300)]
Standardize interfaces

Asume standard interfaces per nodegroup.

First define a network.

Then define a nodegroup.

Then define connection.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoAllow dhcp responce in ebtables
Dimitris Aragiorgis [Sun, 8 Apr 2012 16:46:25 +0000 (19:46 +0300)]
Allow dhcp responce in ebtables

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoSupport gateway-less networks in nfdhcpd
Dimitris Aragiorgis [Sun, 8 Apr 2012 15:05:35 +0000 (18:05 +0300)]
Support gateway-less networks in nfdhcpd

Networks without gateway are needed for private networks among VMs.

To this end routing table will only have one enrty for subnet.

Default via gateway is optional.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoAdd basic files
Dimitris Aragiorgis [Wed, 4 Apr 2012 15:13:28 +0000 (18:13 +0300)]
Add basic files

Include nfdhcpd and tools handling vlans

Include basic scripts for configuring networks in nodes

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>

12 years agoInitial commit for snf-network package
Dimitris Aragiorgis [Tue, 3 Apr 2012 15:42:03 +0000 (18:42 +0300)]
Initial commit for snf-network package

Provide all software components needed by synnefo and ganeti to
support networking inside the cluster.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>