On Thu, Sep 14, 2017 at 11:26 PM, Vikrant Aggarwal <ervikran...@gmail.com> wrote: > Thanks Russell. > > Command has given me the compute2 chassis UUID, while checking "ovn-sbctl > show" I found that lrp port is associated with compute2. May be we can > directly issue "ovn-sbctl show" to see with which chassis lrp port is > associated, would this be a right approach?
Yes, that should work too. :-) > > [root@controller ~(keystone_admin)]# ovn-nbctl list Logical_Router_Port > lrp-b95e9ae7-5c91-4037-8d2c-660d4af00974 > _uuid : 947dc0fb-cfe6-4737-aa27-9fb38b7c7ac9 > enabled : [] > external_ids : {} > mac : "fa:16:3e:52:20:7c" > name : "lrp-b95e9ae7-5c91-4037-8d2c-660d4af00974" > networks : ["192.168.122.50/24"] > options : > {redirect-chassis="4180095d-1528-4063-b135-5dc0abc4ecee"} > peer : [] > > [root@controller ~(keystone_admin)]# ovn-sbctl show > Chassis "07e20ac2-4f66-41d4-b8c6-a5b6ae80921b" > hostname: controller > Encap geneve > ip: "192.168.122.39" > options: {csum="true"} > Chassis "080677db-48d9-49ad-9ee4-e02eeb3da5c2" > hostname: "compute1" > Encap geneve > ip: "192.168.122.15" > options: {csum="true"} > Port_Binding "6fe3cab5-5f84-44c8-90f2-64c21b489c62" > Chassis "4180095d-1528-4063-b135-5dc0abc4ecee" > hostname: "compute2" > Encap geneve > ip: "192.168.122.207" > options: {csum="true"} > Port_Binding "4c72cee2-35b7-4bcd-8c77-135a22d16df1" > Port_Binding "cr-lrp-b95e9ae7-5c91-4037-8d2c-660d4af00974" > > > Thanks & Regards, > Vikrant Aggarwal > > > > On Fri, Sep 15, 2017 at 3:20 AM, Russell Bryant <russ...@ovn.org> wrote: >> >> On Fri, Sep 8, 2017 at 8:40 AM, Vikrant Aggarwal <ervikran...@gmail.com> >> wrote: >> > Hi Team, >> > >> > I have done the installation of packstack pike using ovn as mechanism >> > driver >> > on centos. I have one controller and two compute nodes. >> > >> > - Created one tenant geneve based network (added as port to router) and >> > a >> > flat external network (set as gateway for router). >> > >> > ~~~ >> > [root@controller ~(keystone_admin)]# rpm -qa | awk '/openvswitch-ovn/ >> > {print >> > $1}' >> > openvswitch-ovn-common-2.7.2-3.1fc27.el7.x86_64 >> > openvswitch-ovn-host-2.7.2-3.1fc27.el7.x86_64 >> > openvswitch-ovn-central-2.7.2-3.1fc27.el7.x86_64 >> > ~~~ >> > >> > I am trying to find a compute node on which my gateway router is hosted >> > and >> > also the command to check the health of distributed logical routers. >> > >> > It seems like that "lrp-get-gateway-chassis" command is not present in >> > the >> > version which I am using. >> > >> > ~~~ >> > [root@controller ~]# ovn-nbctl lrp-get-gateway-chassis >> > ovn-nbctl: unknown command 'lrp-get-gateway-chassis'; use --help for >> > help >> > >> > [root@controller ~]# ovn-nbctl --help | grep -i gateway >> > >> > ~~~ >> > >> > Output of ovn-nbctl show. >> > >> > ~~~ >> > >> > [root@controller ~(keystone_admin)]# ovn-nbctl show >> > switch 0d413d9c-7f23-4ace-9a8a-29817b3b33b5 >> > (neutron-89113f8b-bc01-46b1-84fb-edd5d606879c) >> > port 6fe3cab5-5f84-44c8-90f2-64c21b489c62 >> > addresses: ["fa:16:3e:fa:d6:d3 10.10.10.9"] >> > port 397c019e-9bc3-49d3-ac4c-4aeeb1b3ba3e >> > addresses: ["router"] >> > port 4c72cee2-35b7-4bcd-8c77-135a22d16df1 >> > addresses: ["fa:16:3e:55:3f:be 10.10.10.4"] >> > switch 1ec08997-0899-40d1-9b74-0a25ef476c00 >> > (neutron-e411bbe8-e169-4268-b2bf-d5959d9d7260) >> > port provnet-e411bbe8-e169-4268-b2bf-d5959d9d7260 >> > addresses: ["unknown"] >> > port b95e9ae7-5c91-4037-8d2c-660d4af00974 >> > addresses: ["router"] >> > router 7418a4e7-abff-4af7-85f5-6eea2ede9bea >> > (neutron-67dc2e78-e109-4dac-acce-b71b2c944dc1) >> > port lrp-b95e9ae7-5c91-4037-8d2c-660d4af00974 >> > mac: "fa:16:3e:52:20:7c" >> > networks: ["192.168.122.50/24"] >> > port lrp-397c019e-9bc3-49d3-ac4c-4aeeb1b3ba3e >> > mac: "fa:16:3e:87:28:40" >> > networks: ["10.10.10.1/24"] >> >> Try running: >> >> # ovn-nbctl list Logical_Router_Port >> lrp-397c019e-9bc3-49d3-ac4c-4aeeb1b3ba3e >> >> (or the other logical router port, I'm not sure which is the right one) >> >> You should see "redirect-chassis=<chassis>" in the options column. >> That identifies the chassis hosting the gateway router. >> >> > ~~~ >> > >> > >> > >> > Thanks & Regards, >> > Vikrant Aggarwal >> > >> > >> > _______________________________________________ >> > discuss mailing list >> > disc...@openvswitch.org >> > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss >> > >> >> >> >> -- >> Russell Bryant > > -- Russell Bryant _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss