Hi, opencontrail-vrouter-netns is not a deamon, just a script run by vrouter agents on compute node to setup a Linux namespace that will be in charge of the masquerading between private and public networks. As Jakub asked, you just need to have that binary available on the compute node and executable. The svc_monitor log 'SvcMonitorLog: No vrouter available for VM ' you mentioned means the svc_monitor service was not able to find any available vrouter agent to schedule Linux namespace. The svc_monitor lists vrouter from the Contrail VNC API so you have beforehand to provision vrouters (look to the script provision_vrouter.py for that). You can check which vrouters are provisioned by listing the resource collection 'virtual-routers' from the VNC API (http://<CONTRAIL API HOST IP/NAME>:8082/virtual-routers). Then the svc_monitor uses the analytics UVEs API (http://<CONTRAIL API HOST IP/NAME>:8081/analytics/uves/vrouter/<VROUTER NAME>*?cfilt=NodeStatus:process_status) to determine if vrouters are in correct state before selects them.
Regards, Édouard. On Mon, Jun 12, 2017 at 5:31 AM, Suresh Kumar S via Users <users@lists.opencontrail.org> wrote: > Hi Ravindra, > > Thanks. Even i am not running contrail-nodemgr. This is new info to me. > Let me try. > > Thanks > suresh. > > > ________________________________ > From: "Ravindra Rathi" <ravindra_ra...@yahoo.com> > To: "Jakub Pavlik" <jpav...@mirantis.com>, "Suresh Kumar S" > <sureshkuma...@altencalsoftlabs.com> > Cc: "Dev" <dev-boun...@lists.opencontrail.org>, "users" > <users@lists.opencontrail.org> > Sent: Monday, June 12, 2017 12:01:15 AM > Subject: Re: [Users] SNAT Service Instance Creation (Contrail 3.2) > > Hi Suresh/Jakub, > I am also facing same issue. > I wonder if this is related to "contrail-nodemgr" not running on compute > node ? > I mean, that is my read of the situation after going through archives of > mailing list. > In my case, "contrail-nodemgr" was not running on compute node and I am > still not able to make it run successfully. Log file has bunch of "import > module" errors. > > Thanks, > Ravindra > > > On Sunday, June 11, 2017 12:55 PM, Jakub Pavlik <jpav...@mirantis.com> > wrote: > > > Hi Suresh, > > 1) please check that all your virtual routers are registered in UI. > > 2) try on the compute call opencontrail-vrouter-netns if it is executable. I > saw similar issue in the past. > > Jakub > > On Sun, Jun 11, 2017 at 12:02 PM, Suresh Kumar S via Users > <users@lists.opencontrail.org> wrote: > > Hi, > > SNAT service instance is not working in my setup. . > > In my setup (Contrail 3.2, + openstack Mitaka), > - VM Creation,associating floating ip is working fine. Able to SSH to VM via > floating IP and reaching the INTERNET works fine. > > Next, i tried to set up the SNAT, Service Instance as mentioned in the link > (but used neutron APIs instead of contrail) > > https://www.juniper.net/ documentation/en_US/contrail3. > 2/topics/task/configuration/ snat-vnc.html > > In the svcmonitor log shows service instance is created. Also I could see > the service instance in the introspect of svc-monitor also . > SNAT Networks, ports are created. I could able to see in the neutron > port-list output. > But no network namespaces created in compute node. > > For further debugging, i see the following error in the svc monitor logs. > > Also, i see the below error in the svc monitor logs, > 06/10/2017 02:33:47 PM [contrail-svc-monitor]: __default__ [SYS_ERR]: > SvcMonitorLog: vrouter not found for vm e6d8e241-9e3c-4758-a5a2- > bb034fdb4380 > 06/10/2017 02:33:47 PM [contrail-svc-monitor]: __default__ [SYS_ERR]: > SvcMonitorLog: vrouter not found for vm 3668b94a-d19a-4dae-a810- > d4b4d45a7a43 > 06/10/2017 02:33:47 PM [contrail-svc-monitor]: __default__ [SYS_ERR]: > SvcMonitorLog: No vrouter available for VM default-domain__demo__snat_ > 3cade500-9942-4e54-89af- 5c5bd3089645_0fc5210f-bfe9- > 4b8f-9487-9567e25d15c6__1 > > Question1: > Any pointers from the above logs, for further debugging.? > > Question2: > Do i need to start the contrail-vrouter-netns daemon , as mentioned in the > below. > https://github.com/Juniper/ contrail-controller/tree/R3.2/ > src/vnsw/opencontrail-vrouter- netns > > I have installed vrouter-netns package, and didnt start the > "netns-daemon-start" daemon. Is it still applicable? > Please confirm. > > Thanks > suresh > > > > ______________________________ _________________ > Users mailing list > Users@lists.opencontrail.org > http://lists.opencontrail.org/ mailman/listinfo/users_lists. > opencontrail.org > > > > > -- > Jakub Pavlik > +420 602 177 027 > jpav...@mirantis.com > _______________________________________________ > Users mailing list > Users@lists.opencontrail.org > http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org > > > > > _______________________________________________ > Users mailing list > Users@lists.opencontrail.org > http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org > _______________________________________________ Users mailing list Users@lists.opencontrail.org http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org