Closed ldurandadomia closed 6 years ago
There seems to be missing nodejs dependencies (async-foreach & gaze) in https://github.com/Juniper/contrail-webui-third-party.
In the meantime, you can try to add the following line to your local.conf: CONTRAIL_PATCHES="sed -i '/mkdir -p node_modules/a \tnpm install async-foreach gaze sass-graph meow' /opt/stack/contrail/contrail-web-core/Makefile"
I'm trying to re-enable webui support on ubuntu 16.04, this is done in "dev" branch of this repo, in order to try it, append the branch name to the plugin definition:
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git dev
(For this change to take effect, you'll also have to add "RECLONE=True")
Hello,
I've tried both methods without success.
First method: CONTRAIL_PATCHES="sed -i '/mkdir -p node_modules/a \tnpm install async-foreach gaze sass-graph meow' /opt/stack/contrail/contrail-web-core/Makefile"
I'm using Ubuntu 16.0.4-2. with following git clone: $ git clone https://github.com/openstack-dev/devstack.git -b stable/ocata
With, this method, build is successful :
This is your host IP address: 192.168.37.100 This is your host IPv6 address: ::1 Horizon is now available at http://192.168.37.100/dashboard Keystone is serving at http://192.168.37.100/identity/ The default users are: admin and demo The password: contrail123
But unfortunately no proccess is listening on port 8080:
$ netstat -antp | grep 808 | grep LISTEN
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:8084 0.0.0.0: LISTEN 102414/python
tcp 0 0 0.0.0.0:8085 0.0.0.0: LISTEN -
tcp 0 0 0.0.0.0:8081 0.0.0.0: LISTEN 105194/python
tcp 0 0 0.0.0.0:8082 0.0.0.0: LISTEN 102414/python
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN -
When I'm tring to start the WebServer I get this error message :
$ cd /opt/stack/contrail/contrail-web-core
$ node webServerStart.js
module.js:328
throw err;
^
Error: Cannot find module 'redis'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
I'm using following local.conf file : [[local|localrc]] HOST_IP=192.168.37.100 SERVICE_HOST=$HOST_IP MYSQL_HOST=$HOST_IP RABBIT_HOST=$HOST_IP GLANCE_HOSTPORT=$HOST_IP:9292
ADMIN_PASSWORD=contrail123 MYSQL_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=$ADMIN_PASSWORD DATABASE_PASSWORD=$ADMIN_PASSWORD
GIT_BASE=${GIT_BASE:-https://git.openstack.org}
DEST=/opt/stack/openstack CONTRAIL_DEST=/opt/stack/contrail
CONTRAIL_PATCHES="sed -i '/container/d' /opt/stack/contrail/controller/src/SConscript; " CONTRAIL_PATCHES+="sed -i '/mkdir -p node_modules/a \tnpm install async-foreach gaze sass-graph meow' /opt/stack/contrail/contrail-web-core/Makefile; "
FORCE=yes RECLONE=False VERBOSE=True LOGFILE=/opt/stack/openstack/logs/stack.sh.log USE_SYSTEMD=False USE_SCREEN=True
IP_VERSION=4 Q_USE_PROVIDERNET_FOR_PUBLIC=False Q_ROUTER_NAME="inetrouter"
PUBLIC_NETWORK_NAME="RESEAUPUB" PUBLIC_SUBNET_NAME="SRESPUB" FLOATING_RANGE=10.128.0.128/25 PUBLIC_NETWORK_GATEWAY=10.128.0.254
PRIVATE_NETWORK_NAME="RESEAUPRIV" PRIVATE_SUBNET_NAME="SRESPRIV" FIXED_RANGE="10.24.0.0/24" NETWORK_GATEWAY="10.24.0.1"
disable_service dstat disable_service tempest enable_service placement_api
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git enable_service api-srv disco svc-mon schema control collector analytic-api query-engine dns named vrouter enable_service ui-webs ui-jobs SCONS_JOBS=1
Regards, Laurent DURAND
Hello,
With the second proposed method : enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git dev
I'm using a totally new Ubuntu 16.0.4-2 Linux machine with following git clone: $ git clone https://github.com/openstack-dev/devstack.git -b stable/ocata
I'm using following local.conf file :
[[local|localrc]] HOST_IP=192.168.37.120 SERVICE_HOST=$HOST_IP MYSQL_HOST=$HOST_IP RABBIT_HOST=$HOST_IP GLANCE_HOSTPORT=$HOST_IP:9292
ADMIN_PASSWORD=contrail123 MYSQL_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=$ADMIN_PASSWORD DATABASE_PASSWORD=$ADMIN_PASSWORD
GIT_BASE=${GIT_BASE:-https://git.openstack.org}
DEST=/opt/stack/openstack CONTRAIL_DEST=/opt/stack/contrail CONTRAIL_PATCHES="sed -i '/container/d' /opt/stack/contrail/controller/src/SConscript"
FORCE=yes RECLONE=False VERBOSE=True LOGFILE=/opt/stack/openstack/logs/stack.sh.log USE_SYSTEMD=False USE_SCREEN=True
IP_VERSION=4 Q_USE_PROVIDERNET_FOR_PUBLIC=False Q_ROUTER_NAME="inetrouter"
PUBLIC_NETWORK_NAME="RESEAUPUB" PUBLIC_SUBNET_NAME="SRESPUB" FLOATING_RANGE=10.128.0.128/25 PUBLIC_NETWORK_GATEWAY=10.128.0.254
PRIVATE_NETWORK_NAME="RESEAUPRIV" PRIVATE_SUBNET_NAME="SRESPRIV" FIXED_RANGE="10.24.0.0/24" NETWORK_GATEWAY="10.24.0.1"
disable_service dstat disable_service tempest enable_service placement_api
enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git dev enable_service ui-webs ui-jobs api-srv disco svc-mon schema control collector analytic-api query-engine dns named vrouter SCONS_JOBS=1
The build is failing with following error:
2017-06-21 11:01:47.636 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/networking/jobs/jobsCb.api.js
2017-06-21 11:01:47.639 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/controlnode/api/url.routes.js
2017-06-21 11:01:47.644 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/databasenode/api/url.routes.js
2017-06-21 11:01:47.647 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/globalcontroller/api/url.routes.js
2017-06-21 11:01:47.650 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/underlay/api/url.routes.js
2017-06-21 11:01:47.655 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/vrouter/api/url.routes.js
2017-06-21 11:01:47.665 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/monitor/networking/api/url.routes.js
2017-06-21 11:01:47.675 | Done, creating file: /opt/stack/contrail/contrail-web-controller/webroot/setting/configdb/ui/api/url.routes.js
2017-06-21 11:01:48.065 | Done!
2017-06-21 11:01:48.066 | Schemas generated under directory: configJsonSchemas
2017-06-21 11:01:48.071 | Copied json schema files to src/serverroot/configJsonSchemas
2017-06-21 11:01:48.072 | ./dev-install.sh
2017-06-21 11:01:48.316 | module.js:328
2017-06-21 11:01:48.316 | throw err;
2017-06-21 11:01:48.316 | ^
2017-06-21 11:01:48.316 |
2017-06-21 11:01:48.316 | Error: Cannot find module 'async-foreach'
2017-06-21 11:01:48.316 | at Function.Module._resolveFilename (module.js:326:15)
2017-06-21 11:01:48.316 | at Function.Module._load (module.js:277:25)
2017-06-21 11:01:48.316 | at Module.require (module.js:354:17)
2017-06-21 11:01:48.316 | at require (internal/module.js:12:17)
2017-06-21 11:01:48.316 | at Object.
Hello,
I've noticed that PATCHES instruction is not well implemented into /opt/stack/contrail/contrail-web-core/Makefile.
After patch enforcement I'm getting following file:
fetch-pkgs-prod: python ../contrail-webui-third-party/fetch_packages.py -f ../contrail-webui-third-party/packages.xml make clean rm -rf node_modules mkdir -p node_modules tnpm install async-foreach gaze sass-graph meow cp -rf $(THIRD_PARTY)/node_modules/* node_modules/.
with tnpm instead of [TAB] npm.
So, PATCHES instruction has to be written like bellow: CONTRAIL_PATCHES="sed -i '/mkdir -p node_modules/a\\\tnpm install async-foreach gaze sass-graph meow' /opt/stack/contrail/contrail-web-core/Makefile; "
I'm retrying :-)
Despite several build trials it's not working. I've tried both methods. In contrail-web-core Makefile I have : mkdir -p node_modules npm install async-foreach gaze sass-graph meow redis winston lodash.clonedeep chalk bindings
Which is compliant with the CONTRAIL_PATCHES instruction I have in local.conf file : CONTRAIL_PATCHES+="sed -i '/mkdir -p node_modules/a\\tnpm install async-foreach gaze sass-graph meow redis winston lodash.clonedeep chalk bindings' /opt/stack/contrail/contrail-web-core/Makefile; "
I added more modules because I've also try manual method once ./stack.sh building process is over : $ cd contrail-web-core $ make repos $ make fetch-pkgs-dev $ make dev-env REPO=webController
With manual mode WebServer is failing to start due to issue with redis process:
/controlnode/jobs/jobsCb.api.js","/webroot/monitor/infrastructure/vrouter/jobs/jobsCb.api.js","/webroot/monitor/networking/jobs/jobsCb.api.js"],"featureList.xml":["/webroot/common/api/feature.list.js"]}] 06/22/2017 03:23:59 PM - debug: Redis: connect 06/22/2017 03:23:59 PM - debug: Redis: connect 06/22/2017 03:23:59 PM - debug: Redis: connect 06/22/2017 03:23:59 PM - debug: Redis: connect 06/22/2017 03:23:59 PM - debug: Redis: connect 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis: ready 06/22/2017 03:23:59 PM - debug: Redis DB 3 SELECT suuccess: 06/22/2017 03:23:59 PM - debug: Registering Static Directory: /opt/stack/contrail/contrail-web-core/webroot 06/22/2017 03:23:59 PM - debug: Registering Static Directory: /opt/stack/contrail/contrail-web-controller/webroot 06/22/2017 03:23:59 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/common/url.routes.js 06/22/2017 03:23:59 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/utils/url.routes.js 06/22/2017 03:23:59 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/web/routes/url.routes.js 06/22/2017 03:23:59 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/webroot/reports/qe/api/url.routes.js 06/22/2017 03:23:59 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/webroot/reports/udd/api/url.routes.js /opt/stack/contrail/contrail-web-core/node_modules/redis/index.js:541 throw err; ^
Error: Cannot find module 'long'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
Error: Cannot find module 'long'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
In previous logs, I've detected that one module is still missing 'long".
I've made an additional buid with following local.conf configuration file : [[local|localrc]] HOST_IP=192.168.37.100 SERVICE_HOST=$HOST_IP MYSQL_HOST=$HOST_IP RABBIT_HOST=$HOST_IP GLANCE_HOSTPORT=$HOST_IP:9292 ADMIN_PASSWORD=contrail123 MYSQL_PASSWORD=$ADMIN_PASSWORD RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD SERVICE_TOKEN=$ADMIN_PASSWORD DATABASE_PASSWORD=$ADMIN_PASSWORD GIT_BASE=${GIT_BASE:-https://git.openstack.org} DEST=/opt/stack/openstack CONTRAIL_DEST=/opt/stack/contrail CONTRAIL_PATCHES="sed -i '/container/d' /opt/stack/contrail/controller/src/SConscript; " CONTRAIL_PATCHES+="sed -i '/mkdir -p node_modules/a\\tnpm install async-foreach gaze sass-graph meow redis winston lodash.clonedeep chalk bindings long' /opt/stack/contrail/contrail-web-core/Makefile; " FORCE=yes RECLONE=False VERBOSE=True LOGFILE=/opt/stack/openstack/logs/stack.sh.log USE_SYSTEMD=False USE_SCREEN=True IP_VERSION=4 Q_USE_PROVIDERNET_FOR_PUBLIC=False Q_ROUTER_NAME="inetrouter" PUBLIC_NETWORK_NAME="RESEAUPUB" PUBLIC_SUBNET_NAME="SRESPUB" FLOATING_RANGE=10.128.0.128/25 PUBLIC_NETWORK_GATEWAY=10.128.0.254 PRIVATE_NETWORK_NAME="RESEAUPRIV" PRIVATE_SUBNET_NAME="SRESPRIV" FIXED_RANGE="10.24.0.0/24" NETWORK_GATEWAY="10.24.0.1" disable_service dstat disable_service tempest enable_service placement_api enable_plugin contrail https://github.com/zioc/contrail-devstack-plugin.git dev enable_service ui-webs ui-jobs api-srv disco svc-mon schema control collector analytic-api query-engine dns named vrouter SCONS_JOBS=1
I've checked with screen -ls contrail the status of OpenContrail processes. I've got 12 screens: 0 shell 1 root 2 api-srv 3 svc-mon 4 schema 5 root 6 collector 7 analytic-api 8 query-engine 9 dns 10 root 11 ui-jobs 12 ui-webs
Two last ones are ui-jobs and ui-webs. ui-jobs is fine but ui-webs is faulty and is looping on following message:
$ cd /opt/stack/contrail/contrail-web-core; sudo nodejs webServerStart.js 06/25/2017 01:54:52 PM - debug: Built Package List as:[{"parseURL.xml":["/src/serverroot/common/url.routes.js","/src/serverroot/utils/url.routes.js","/src/serverroot/web/routes/url.routes.js","/webroot/reports/qe/api/url.routes.js","/webroot/reports/udd/api/url.routes.js"],"jobProcess.xml":["/src/serverroot/jobs/core/jobsCb.api.js"],"featureList.xml":["/src/serverroot/web/core/feature.list.js"]},{"pkgName":"webController","parseURL.xml":["/webroot/common/api/url.routes.js","/webroot/config/common/api/url.routes.js","/webroot/config/dns/records/api/url.routes.js","/webroot/config/dns/servers/api/url.routes.js","/webroot/config/firewall/common/fwpolicy/api/url.routes.js","/webroot/config/infra/bgp/api/url.routes.js","/webroot/config/infra/linklocalservices/api/url.routes.js","/webroot/config/infra/quotas/api/url.routes.js","/webroot/config/infra/serviceappliance/api/url.routes.js","/webroot/config/infra/serviceapplianceset/api/url.routes.js","/webroot/config/infra/vrouters/api/url.routes.js","/webroot/config/networking/fip/api/url.routes.js","/webroot/config/networking/ipam/api/url.routes.js","/webroot/config/networking/logicalrouter/api/url.routes.js","/webroot/config/networking/networks/api/url.routes.js","/webroot/config/networking/policy/api/url.routes.js","/webroot/config/networking/port/api/url.routes.js","/webroot/config/networking/routetable/api/url.routes.js","/webroot/config/networking/routingpolicy/api/url.routes.js","/webroot/config/networking/securitygroup/api/url.routes.js","/webroot/config/physicaldevices/interfaces/api/url.routes.js","/webroot/config/physicaldevices/physicalrouters/api/url.routes.js","/webroot/config/port/api/url.routes.js","/webroot/config/services/bgpasaservice/api/url.routes.js","/webroot/config/services/instances/api/url.routes.js","/webroot/config/services/templates/api/url.routes.js","/webroot/monitor/infrastructure/analyticsnode/api/url.routes.js","/webroot/monitor/infrastructure/confignode/api/url.routes.js","/webroot/monitor/infrastructure/controlnode/api/url.routes.js","/webroot/monitor/infrastructure/databasenode/api/url.routes.js","/webroot/monitor/infrastructure/globalcontroller/api/url.routes.js","/webroot/monitor/infrastructure/underlay/api/url.routes.js","/webroot/monitor/infrastructure/vrouter/api/url.routes.js","/webroot/monitor/networking/api/url.routes.js","/webroot/setting/configdb/ui/api/url.routes.js"],"jobProcess.xml":["/webroot/monitor/infrastructure/controlnode/jobs/jobsCb.api.js","/webroot/monitor/infrastructure/vrouter/jobs/jobsCb.api.js","/webroot/monitor/networking/jobs/jobsCb.api.js"],"featureList.xml":["/webroot/common/api/feature.list.js"]}] 06/25/2017 01:54:52 PM - debug: Redis: connect 06/25/2017 01:54:52 PM - debug: Redis: connect 06/25/2017 01:54:52 PM - debug: Redis: connect 06/25/2017 01:54:52 PM - debug: Redis: connect 06/25/2017 01:54:52 PM - debug: Redis: connect 06/25/2017 01:54:52 PM - error: Error occurred while copying favicon file:/usr/src/contrail/contrail-web-core/webroot/img/opencontrail-favicon.ico to /opt/stack/contrail/contrail-web-core/webroot/img/sdn-favicon.ico [Error: Command failed: /bin/sh -c cp -f /usr/src/contrail/contrail-web-core/webroot/img/opencontrail-favicon.ico /opt/stack/contrail/contrail-web-core/webroot/img/sdn-favicon.ico cp: cannot stat '/usr/src/contrail/contrail-web-core/webroot/img/opencontrail-favicon.ico': No such file or directory ] 06/25/2017 01:54:52 PM - error: Retrying Copying default favicon 06/25/2017 01:54:52 PM - error: Error occurred while copying logo file:/usr/src/contrail/contrail-web-core/webroot/img/opencontrail-logo.png to /opt/stack/contrail/contrail-web-core/webroot/img/sdn-logo.png [Error: Command failed: /bin/sh -c cp -f /usr/src/contrail/contrail-web-core/webroot/img/opencontrail-logo.png /opt/stack/contrail/contrail-web-core/webroot/img/sdn-logo.png cp: cannot stat '/usr/src/contrail/contrail-web-core/webroot/img/opencontrail-logo.png': No such file or directory ] 06/25/2017 01:54:52 PM - error: Retrying Copying default logo 06/25/2017 01:54:52 PM - debug: Redis: ready 06/25/2017 01:54:52 PM - debug: Redis: ready 06/25/2017 01:54:52 PM - debug: Redis: ready 06/25/2017 01:54:52 PM - debug: Redis: ready 06/25/2017 01:54:52 PM - debug: Redis: ready Done, creating file: /opt/stack/contrail/contrail-web-core/webroot/common/api/regions.js 06/25/2017 01:54:52 PM - debug: Web Server bound to port 3000 to Job Server 06/25/2017 01:54:53 PM - debug: Built Package List as:[{"parseURL.xml":["/src/serverroot/common/url.routes.js","/src/serverroot/utils/url.routes.js","/src/serverroot/web/routes/url.routes.js","/webroot/reports/qe/api/url.routes.js","/webroot/reports/udd/api/url.routes.js"],"jobProcess.xml":["/src/serverroot/jobs/core/jobsCb.api.js"],"featureList.xml":["/src/serverroot/web/core/feature.list.js"]},{"pkgName":"webController","parseURL.xml":["/webroot/common/api/url.routes.js","/webroot/config/common/api/url.routes.js","/webroot/config/dns/records/api/url.routes.js","/webroot/config/dns/servers/api/url.routes.js","/webroot/config/firewall/common/fwpolicy/api/url.routes.js","/webroot/config/infra/bgp/api/url.routes.js","/webroot/config/infra/linklocalservices/api/url.routes.js","/webroot/config/infra/quotas/api/url.routes.js","/webroot/config/infra/serviceappliance/api/url.routes.js","/webroot/config/infra/serviceapplianceset/api/url.routes.js","/webroot/config/infra/vrouters/api/url.routes.js","/webroot/config/networking/fip/api/url.routes.js","/webroot/config/networking/ipam/api/url.routes.js","/webroot/config/networking/logicalrouter/api/url.routes.js","/webroot/config/networking/networks/api/url.routes.js","/webroot/config/networking/policy/api/url.routes.js","/webroot/config/networking/port/api/url.routes.js","/webroot/config/networking/routetable/api/url.routes.js","/webroot/config/networking/routingpolicy/api/url.routes.js","/webroot/config/networking/securitygroup/api/url.routes.js","/webroot/config/physicaldevices/interfaces/api/url.routes.js","/webroot/config/physicaldevices/physicalrouters/api/url.routes.js","/webroot/config/port/api/url.routes.js","/webroot/config/services/bgpasaservice/api/url.routes.js","/webroot/config/services/instances/api/url.routes.js","/webroot/config/services/templates/api/url.routes.js","/webroot/monitor/infrastructure/analyticsnode/api/url.routes.js","/webroot/monitor/infrastructure/confignode/api/url.routes.js","/webroot/monitor/infrastructure/controlnode/api/url.routes.js","/webroot/monitor/infrastructure/databasenode/api/url.routes.js","/webroot/monitor/infrastructure/globalcontroller/api/url.routes.js","/webroot/monitor/infrastructure/underlay/api/url.routes.js","/webroot/monitor/infrastructure/vrouter/api/url.routes.js","/webroot/monitor/networking/api/url.routes.js","/webroot/setting/configdb/ui/api/url.routes.js"],"jobProcess.xml":["/webroot/monitor/infrastructure/controlnode/jobs/jobsCb.api.js","/webroot/monitor/infrastructure/vrouter/jobs/jobsCb.api.js","/webroot/monitor/networking/jobs/jobsCb.api.js"],"featureList.xml":["/webroot/common/api/feature.list.js"]}] 06/25/2017 01:54:53 PM - debug: Redis: connect 06/25/2017 01:54:53 PM - debug: Redis: connect 06/25/2017 01:54:53 PM - debug: Redis: connect 06/25/2017 01:54:53 PM - debug: Redis: connect 06/25/2017 01:54:53 PM - debug: Redis: connect 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis: ready 06/25/2017 01:54:53 PM - debug: Redis DB 3 SELECT suuccess: 06/25/2017 01:54:53 PM - debug: Registering Static Directory: /opt/stack/contrail/contrail-web-core/webroot 06/25/2017 01:54:53 PM - debug: Registering Static Directory: /opt/stack/contrail/contrail-web-controller/webroot 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/common/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/utils/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/src/serverroot/web/routes/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/webroot/reports/qe/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-core/webroot/reports/udd/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/common/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/common/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/dns/records/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/dns/servers/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/firewall/common/fwpolicy/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/bgp/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/linklocalservices/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/quotas/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/serviceappliance/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/serviceapplianceset/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/infra/vrouters/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/fip/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/ipam/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/logicalrouter/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/networks/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/policy/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/port/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/routetable/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/routingpolicy/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/networking/securitygroup/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/physicaldevices/interfaces/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/physicaldevices/physicalrouters/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/port/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/services/bgpasaservice/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/services/instances/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/config/services/templates/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/analyticsnode/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/confignode/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/controlnode/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/databasenode/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/globalcontroller/api/url.routes.js 06/25/2017 01:54:53 PM - debug: Registered URLs to APP :/opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/underlay/api/url.routes.js /opt/stack/contrail/contrail-web-controller/webroot/monitor/infrastructure/underlay/api/underlay_overlay.api.js:585 (null = tempNodeObjs[pRouterLinkTable[j]['remote_system_name']])) { ^^^^
ReferenceError: Invalid left-hand side in assignment
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
Regards, Laurent DURAND
Yes I got this one too, code is currently bugged... s/null = tempNodeObjs/null == tempNodeObjs/ fixes this issue.
I'm trying to figure out why we are facing all these issues: are we doing something wrong on our side, or is it webui (and its deployment scripts) that are broken...
Thank you for your feedback. I stay tuned. Regards.
Fixed in #47
Hello,
I'm trying to get Contrail Web-GUI configured onto the Controller Node. In order get WebGUI installed, I'm using following configuration elements into local.conf file: enable_service ui-webs ui-jobs
But after a successful build, WebUI is not started. So I've tried to setup manually WebGUI interface as described onto https://github.com/Juniper/contrail-web-core/
NodeJS Installation $ sudo apt-get install nodejs npm
Redis server installation $ wget http://download.redis.io/releases/redis-3.2.9.tar.gz $ tar xzf redis-3.2.9.tar.gz $ cd redis-3.2.9 $ make
Run redis server : $ redis-server --port 6379
Source download : $ rm -rf /opt/stack/contrail/contrail-web-core $ cd /opt/stack/contrail $ git clone git@github.com:Juniper/contrail-web-core.git
Then I'm starting to build the "web-core" : $ cd contrail-web-core $ make repos $ make fetch-pkgs-dev $ make dev-env REPO=webController
But the last make command is termintating with following message : Error: Cannot find module 'async-foreach' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/opt/stack/contrail/contrail-web-core/node_modules/node-sass/bin/node-sass:4:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
Makefile:97: recipe for target 'dev-env' failed
make: *** [dev-env] Error 1
I didn't succeed to find a solution until now.