Hi Numan Thank you for your response. I am still confused about the setup
I tried following the link - https://hustcat.github.io/ovn-lb-practice/ but did not help We have a logical switch in place which has 2 PORTS attached to it - port with ip 10.101.0.4 (nginx running on port 80) - port with ip 10.101.0.3 (nginx running on port 80) In terms ovn-nbctl what all steps I need to execute to get the LB running, I tried following but didn’t work ovn-nbctl lb-add lb0 192.168.1.10 10.101.0.4 ovn-nbctl lr-add router1 ovn-nbctl lrp-add router1 router1-ls2 02:ac:10:ff:01:01 10.101.0.1/16 ovn-nbctl lsp-add ls2 ls2-router1 ovn-nbctl lsp-set-type ls2-router1 router ovn-nbctl lsp-set-addresses ls2-router1 02:ac:10:ff:01:01 ovn-nbctl lsp-set-options ls2-router1 router-port=router1-ls2 ovn-nbctl ls-lb-add ls2 lb0 Moiz R -----Original Message----- From: Numan Siddique <[email protected]> Sent: Thursday, September 8, 2022 6:54 PM To: Moiz Ibrahim Randhikpurwala (IT) <[email protected]> Cc: [email protected] Subject: Re: [ovs-discuss] Guidance on how to use LoadBalancer in OVN CAUTION: This email originated from outside the Emirates NBD Group. Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Sep 8, 2022 at 3:59 AM Moiz Ibrahim Randhikpurwala (IT) via discuss <[email protected]> wrote: > > Hi > > > > We are trying to use the Load Balancer feature in OVN and unable to > succeed, need some guidance on how to go about it > > > > We have a switch which is connected to external network and has several ports > attached to it. > > > > The LB details are as follows > > UUID LB PROTO VIP > IPs > > 0f8ef238-2d7b-4108-a30f-255a380cad7f lb0 tcp > 10.119.34.112:80 10.119.34.100:80 > > > > We added the LB to the switch using the below command > > ovn-nbctl ls-lb-add de8915f3-ef82-4798-a6c0-5b01aadc22d3 lb0 > > > > Right after running the command all communication to the vms is affected and > the load balancer also doesn’t work on that VIP Ip. What am I doing wrong or > what all objects I need to create to create a load balancer on OVN. How are you reaching the VIP ? Is it from outside i.e from the external network or from the VMs attached to your logical switch ? Is your logical switch connected to a logical router ? If not, you need to create a logical router and connect it to your logical switch so that when your VM ARPs for the VIP, the router port mac is replied. Otherwise you can create a manual ARP entry in your VM or in the source which sends the traffic to the VIP. Thanks Numan > > > > Moiz R > > > > > > DISCLAIMER: This e-mail message including any of its attachments is intended > solely for the addressee(s) and may contain privileged information. If you > are not the addressee or you have received this email message in error, > please notify the sender who will remove your details from its database. You > are not authorized to read, copy, disseminate, distribute or use this e-mail > message or any attachment to it in any manner and must delete the email and > destroy any hard copies of it. This e-mail message does not contain financial > instructions or commitments of any kind. Any views expressed in this message > are those of the individual sender and do not necessarily reflect the views > of Emirates NBD PJSC, or any other related subsidiaries, entities or persons. > > Emirates NBD Bank (P.J.S.C.) is licensed by the Central Bank of the UAE. > .بنك الإمارات دبي الوطني ش.م.ع. هو بنك مرخّص من قبل مصرف الإمارات العربية > المتحدة المركزي DISCLAIMER: This e-mail message including any of its > attachments is intended solely for the addressee(s) and may contain > privileged information. If you are not the addressee or you have received > this email message in error, please notify the sender who will remove your > details from its database. You are not authorized to read, copy, disseminate, > distribute or use this e-mail message or any attachment to it in any manner > and must delete the email and destroy any hard copies of it. This e-mail > message does not contain financial instructions or commitments of any kind. > Any views expressed in this message are those of the individual sender and do > not necessarily reflect the views of Emirates NBD PJSC, or any other related > subsidiaries, entities or persons. > > Emirates NBD Bank (P.J.S.C.) is licensed by the Central Bank of the UAE. > .بنك الإمارات دبي الوطني ش.م.ع. هو بنك مرخّص من قبل مصرف الإمارات > العربية المتحدة المركزي > _______________________________________________ > discuss mailing list > [email protected] > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail > .openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discuss&data=05%7C01%7 > CMoizR%40emiratesnbd.com%7C342c247211c84def770c08da91aa019f%7Ccf29f564 > 23034bfba13c29ef0689ffb9%7C0%7C0%7C637982457210852413%7CUnknown%7CTWFp > bGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn > 0%3D%7C2000%7C%7C%7C&sdata=KY0Q56CXrjFR5KgSAL%2FvoUlSQ9wgHMt2yX9r5 > dtzr50%3D&reserved=0 DISCLAIMER: This e-mail message including any of its attachments is intended solely for the addressee(s) and may contain privileged information. If you are not the addressee or you have received this email message in error, please notify the sender who will remove your details from its database. You are not authorized to read, copy, disseminate, distribute or use this e-mail message or any attachment to it in any manner and must delete the email and destroy any hard copies of it. This e-mail message does not contain financial instructions or commitments of any kind. Any views expressed in this message are those of the individual sender and do not necessarily reflect the views of Emirates NBD PJSC, or any other related subsidiaries, entities or persons. Emirates NBD Bank (P.J.S.C.) is licensed by the Central Bank of the UAE. .بنك الإمارات دبي الوطني ش.م.ع. هو بنك مرخّص من قبل مصرف الإمارات العربية المتحدة المركزي DISCLAIMER: This e-mail message including any of its attachments is intended solely for the addressee(s) and may contain privileged information. If you are not the addressee or you have received this email message in error, please notify the sender who will remove your details from its database. You are not authorized to read, copy, disseminate, distribute or use this e-mail message or any attachment to it in any manner and must delete the email and destroy any hard copies of it. This e-mail message does not contain financial instructions or commitments of any kind. Any views expressed in this message are those of the individual sender and do not necessarily reflect the views of Emirates NBD PJSC, or any other related subsidiaries, entities or persons. Emirates NBD Bank (P.J.S.C.) is licensed by the Central Bank of the UAE. .بنك الإمارات دبي الوطني ش.م.ع. هو بنك مرخّص من قبل مصرف الإمارات العربية المتحدة المركزي _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
