Re: [one-users] Sharing VIP between VMs

2015-01-07 Thread Dmitri Chebotarov
OK, thank you. I'll wait for official feature... 
Until then I made small modification to Openvswitch.rb, which allows to add IP 
aliases to the VM's template by adding IPs to ALIAS_IP=IP1[,IP,IP..] under 
NIC section. 
This only needed if CONF[:arp_cache_poisoning] is set globally.

$ diff OpenvSwitch.rb OpenvSwitch-bkp.rb
38c38

---

53,56c53

 # Allow VIP (aliases), if ARP Cache is ON
 allow_vip if CONF[:arp_cache_poisoning]

---

68c65

---

110,116d106
 def allow_vip
   if @nic[:alias_ip] != nil
 ip_array = @nic[:alias_ip].split(,)
 ip_array.each { |ip2| 
add_flow(in_port=#{port},arp,dl_src=#{@nic[:mac]},nw_src=#{ip2},:normal,46000)
 }
   end
 end

121c111

---

$ diff OpenvSwitch.rb OpenvSwitch-bkp.rb
38c38

---

53,56c53

 # Allow VIP (aliases), if ARP Cache is ON
 allow_vip if CONF[:arp_cache_poisoning]

---

68c65

---

110,116d106
 def allow_vip
   if @nic[:alias_ip] != nil
 ip_array = @nic[:alias_ip].split(,)
 ip_array.each { |ip2| 
add_flow(in_port=#{port},arp,dl_src=#{@nic[:mac]},nw_src=#{ip2},:normal,46000)
 }
   end
 end

121c111

---

--
Thank you,

Dmitri Chebotarov
VCL Sys Eng, Engineering  Architectural Support, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404


 On Jan 7, 2015, at 12:52 , Daniel Dehennin daniel.dehen...@baby-gnu.org 
 wrote:
 
 Dmitri Chebotarov dcheb...@gmu.edu writes:
 
 Hi, 
 
 Hello,
 
 Does anyone run pacemaker/corosync cluster in VMs hosted on Opennebula?
 Is it possible to share VIP?
 
 With ARP cache poisoning feature enabled
 (http://dev.opennebula.org/issues/2318) it's not possible to add
 aliased VIPs to the cluster. Unless I manually run 'ovs-ofctl add-flow
 br0 in_port=305,arp,dl_src=MAC,nw_src=VIP...' on the host.
 
 The ARP poisoning block can be globally disabled in
 /var/lib/one/remotes/vnm/OpenNebulaNetwork.conf, but is it possible to
 selectively disable it for a specific VMs only.
 
 There is a feature request to add multiple MAC or IP addresses[1] and
 another one to override configuration per networks[2].
 
 Making it configurable per VM, so configurable by users, may be a little
 risky.
 
 I prefer the solution of sharing reserved addresses.
 
 Regards.
 
 Footnotes: 
 
 [1]  http://dev.opennebula.org/issues/2348
 
 [2]  http://dev.opennebula.org/issues/3387
 
 -- 
 Daniel Dehennin
 Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
 Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Sharing VIP between VMs

2015-01-07 Thread Daniel Dehennin
Dmitri Chebotarov dcheb...@gmu.edu writes:

 Hi, 

Hello,

 Does anyone run pacemaker/corosync cluster in VMs hosted on Opennebula?
 Is it possible to share VIP?

 With ARP cache poisoning feature enabled
 (http://dev.opennebula.org/issues/2318) it's not possible to add
 aliased VIPs to the cluster. Unless I manually run 'ovs-ofctl add-flow
 br0 in_port=305,arp,dl_src=MAC,nw_src=VIP...' on the host.

 The ARP poisoning block can be globally disabled in
 /var/lib/one/remotes/vnm/OpenNebulaNetwork.conf, but is it possible to
 selectively disable it for a specific VMs only.

There is a feature request to add multiple MAC or IP addresses[1] and
another one to override configuration per networks[2].

Making it configurable per VM, so configurable by users, may be a little
risky.

I prefer the solution of sharing reserved addresses.

Regards.

Footnotes: 

[1]  http://dev.opennebula.org/issues/2348

[2]  http://dev.opennebula.org/issues/3387

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF


signature.asc
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Sharing VIP between VMs

2015-01-07 Thread Dmitri Chebotarov
Hi, 

Does anyone run pacemaker/corosync cluster in VMs hosted on Opennebula?
Is it possible to share VIP?

With ARP cache poisoning feature enabled 
(http://dev.opennebula.org/issues/2318) it's not possible to add aliased VIPs 
to the cluster. Unless I manually run 'ovs-ofctl add-flow br0 
in_port=305,arp,dl_src=MAC,nw_src=VIP...' on the host.

The ARP poisoning block can be globally disabled in 
/var/lib/one/remotes/vnm/OpenNebulaNetwork.conf, but is it possible to 
selectively disable it for a specific VMs only.


--
Thank you,

Dmitri Chebotarov
VCL Sys Eng, Engineering  Architectural Support, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175 | Fax: (703) 993-3404


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org