Thanks Biswajit for your help so far. I was able to get a contrail setup running by using https://github.com/pupapaik/contrail-docker-deploy . I did have to make small changes but I can see the UI up with no errors. I've added one compute node vRouter and I can see that. However it still shows 0 control nodes and 0 config node even after the fact that they are running in the same container. I can access the :8082 and :8083 ports. I'm not sure what I am missing here.
On Tue, Mar 7, 2017 at 12:34 PM, Biswajit Mandal <[email protected]> wrote: > Hi Syed, > Basically the request which you mentioned /api/tenant/get-data is for > web-server, internally web-server contacts either Api > Server/OpServer/Introspect etc to get the required infor to be displayed in > UI through differnet REST Api calls. > Api Server/Op Server provides lots of REST APIs, from web-server we call > these rest apis to get the data like vrouter details, control node details > etc, > For API Server REST API details, you can check “http://<APi Server > IP>:8082/documentation/tutorial_with_rest.html and for opserver you can check > “http://<op Server IP>:8081/analytics/uves > > Pages in UI needs to talk to introspect also: ex: for vrouter Agent, > http://<agent_ip>:8085, for control node http://<control_node_ip>:8083 > > For Ex: For all vRouter details, we call http://<op Server > IP>:8081/analytics/uves/vrouter/* > > Now if you want to simulate the UI calls using curl then follow below: > 1. If using chrome browser, open Developer Tools, View -> > Developer->Developer Tools, or Right click on browser page, and click on > “Inspect” and then go to Network tab below. > 2. Now open Contrail UI login page, and specify the user-name and password, > You will find /authenticate call, right click on it and do as attached. > 3. Now copy that in the shell but add “-i” (include headers) along with Curl, > which will give you the response header as well. There you find one Cookie as > below: > Set-Cookie: _csrf=Di0+ru17/i6QJXeUytqaPegD; expires=Tue, 07 Mar 2017 18:20:37 > GMT; secure > 4. So this is CSRF token you need to use always. > > Hope this helps. > > With regards, > Biswajit > > > On 3/7/17, 6:56 AM, "Syed Mushtaq" <[email protected]> wrote: > > Adding devlist to CC > > This is what I get when I start the UI. I am trying to figure out how > the UI learns of the other contrail components. Is it via some API > call it makes? Does it just look at the IP/port in the config and call > it good? Does it look at the Cassandra DB? Redis DB? I'm totally > confused here. And the documentation doesn't help either. I cannot > isolate the specific API call because I believe the API Call > http://172.31.0.103:8080/api/tenant/get-data is responsible for > getting the control node information with the post-data > > > {"data":[{"type":"generator","cfilt":"ModuleClientState:client_info,ModuleServerState:generator_info","kfilt":"*:contrail-control*"}]} > > but I cannot just "curl" this request to debug because it needs > cookies to be set and is CSRF protected. Sorry for my rant but I've > been trying this for 3 days now with no luck and there is so much > going on that it is kind of intimidating for someone who is just > starting. > > > > On Mon, Mar 6, 2017 at 7:57 PM, Biswajit Mandal <[email protected]> > wrote: > > Which request you are talking about? You can check introspect for > specific: > > http://<control_node_ip>:8083 > > > > > > > > With regards, > > > > Biswajit > > > > > > > > From: Syed Mushtaq <[email protected]> > > Date: Monday, March 6, 2017 at 4:55 PM > > > > > > To: Biswajit Mandal <[email protected]> > > Subject: Re: [opencontrail-dev] Need help setting up OpenContrail > > > > > > > > Yes I did provision the control node. I can see the requests reach the > > control node but I can't track it from there onwards. Anything I can > check > > here? > > > > > > > > > > > > On Mon, Mar 6, 2017 at 19:43 Biswajit Mandal <[email protected]> > wrote: > > > > Did you provision control node? > > > > > > > > If not then also, it will show as 0. > > > > > > > > With regards, > > > > Biswajit > > > > > > > > From: Syed Mushtaq <[email protected]> > > Date: Monday, March 6, 2017 at 4:33 PM > > > > > > To: Biswajit Mandal <[email protected]> > > Subject: Re: [opencontrail-dev] Need help setting up OpenContrail > > > > > > > > I see. However, in my case it also shows 0 control nodes. Is it the case > > that the control nodes will be shown only if there are vrouters present? > > > > On Mon, Mar 6, 2017 at 19:31 Biswajit Mandal <[email protected]> > wrote: > > > > Hi Syed, > > > > Web-UI fetches the information from Api Server and Op Server, if > vrouters > > are not provisioned, then we will not be able to get data, so UI shows > no of > > vrouters as 0. > > > > > > > > With regards, > > > > Biswajit > > > > > > > > From: Syed Mushtaq <[email protected]> > > Date: Monday, March 6, 2017 at 4:22 PM > > To: Biswajit Mandal <[email protected]> > > Subject: Re: [opencontrail-dev] Need help setting up OpenContrail > > > > > > > > Hi Biswajit, > > > > I haven't configured any vRouters yet. Is it not possible to start > contrail > > without having any vRouters? > > > > > > > > On Mon, Mar 6, 2017 at 7:07 PM, Biswajit Mandal <[email protected]> > wrote: > > > > Hi Syed, > > > > Which image/release you are using? > > > > > > > > I hope you have followed the below: > > > > Provisioned compute nodes, > > > > Login API Server node and please check with “curl –u > > <admin_user:admin_password> http://localhost:8095/virtual-routers” > > > > Login to OpServer node and please check with “curl > > http://localhost:8081/analytics/uves/vrouters | python -m json.tool” > > > > > > > > Please check if you have got any data, if yes and still see the issue as > > mentioned below: then send me the snapshop of the UI logs with debugging > > console enable and you point to Network Tab. > > > > If you see empty data there, then in Contrail UI, go to > > “Configure->Infrastructre->Virtual Routers” and add all the vrouters > there > > or use vrouter_provision.py to provision vrouter node as in > > /opt/contrail/utils. > > > > > > > > With regards, > > > > Biswajit > > > > > > > > From: Dev <[email protected]> on behalf of Syed Mushtaq > > <[email protected]> > > Date: Monday, March 6, 2017 at 3:53 PM > > To: "[email protected]" <[email protected]> > > Subject: [opencontrail-dev] Need help setting up OpenContrail > > > > > > > > Hi Guys, > > > > I've been struggling to install OpenContrail standalone on my dev > machine > > for 2 days now. I've managed to install all the components on a single > > machine and am able to get the UI up. I've also installed keystone to > deal > > with authentication and such. I've not installed nova yet. > > > > I don't see any errors in the logs, however, when I try to list the > compute > > nodes in the UI, it says "No Data Found". Could someone please guide me > how > > to debug this? I've spent way too much time without any significant > results. > > > > Thanks, > > > > -Syed > > > > > >
_______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
