zioc/contrail-devstack-plugin

Opencontrail web ui did not start

RachedJouida opened this issue · 11 comments

Hello,
I ran the script which ended up well but when connecting to the user interface on https://myip:8143 or http://myip:8080, I just got "Cannot get /".
As there weren't any processes listning on those ports, I tried to run scripts located in /opt/stack/contrail/contrail-web-core which ran nodejs. But I still cannot get to the ui.

Could you help me with that?

thanks in advance,

I also observed this with latest master branch.
However few weeks back, it was working for me.
May be some recent merges are causing this.

And did you had config and control node up?
I also had access to the ui but didn't have the config and control nodes up: there were errors fetching data . I remerber it mentioned 'syscalls fails' !
Thank you for your reply Ravi

Hi JouidaR,

I meet the same issue as yours today. Have you fixed this issue? Thanks!

No actually I am facing another issue rerunning ./stack.sh !
image

Hi JouidaR,
From error message looks like vrouter.ko build is getting failed. Might be because of kernel header files.
Are u running 3.13.0-95-generic kernel ? If Yes, kernel header files are installed ?
You can try following commands :
sudo apt-get upgrade linux-image-3.13.0-45-generic linux-image-extra-3.13.0-45-generic linux-headers-3.13.0-45 linux-headers-3.13.0-45-generic

Note : You have to reboot and select 3.13.0 kernel while booting. Above command is for 3.13.0-45-generic . which worked for me.

I suspect this issue is caused by some bug in the routes of contrail-web-core. The static route is "/opt/stack/contrail/contrail-web-core/webroot". When we visit https://myip:8143 or http://myip:8080, it should redirect to /opt/stack/contrail/contrail-web-core/webroot/html/dashboard.html.

I tried to visit https://myip:8143/html/dashboard.html, it displays the blank page which actually ends up with 404 not found error when getting "isauthenticated". If I tried to visit https://myip:8143/html/login.html, the login page can be displayed. But after I fill in the account and password and click "Sign In" button, it just returns error "Cannot POST /html/authenticate".

zioc commented

Could you try to re-issue "make dev-env REPO=webController" command in /opt/stack/contrail/contrail-web-core ? And then restart webserver.

I tested it on master yesterdary, and it only seems to work on second run... I didn't manage to figure out why it doesn't work on first run for now...

Hi zioc, yes, it works!! From the screen log, I find the difference for second run is the static files are registered successfully, while it failed in the first run. Not sure the root cause. Anyway, Thank you so much!

Hi all,
I am trying to reinstall it and test the solution you gave.
derekhuang, I installed the 3.13.0 kernel version as you told me and when running ./stack.sh, I am having another error (which I saw even yesterday)
image

Any ideas?
Thank you so much for your reactivity !!

zioc commented

@jouidaR: Yes, contrail doen't officially supports mitaka for now, see #8 for, the fix.

I was actually about to update README and provide some samples to ease initial setup.

@jouidaR: This issue should be fixed by this commit, i'll close this issue.

Ok @zioc thank you very much for your availability !!