-
Type: Bug
-
Status: To Do (View Workflow)
-
Priority: High
-
Resolution: Unresolved
-
Affects Version/s: 6.0
-
Fix Version/s: None
-
Labels:None
-
Story Points:3
-
Epic Link:
The M-CORD GUI sometimes fails to load with the message:
"Cannot load models definition. Please check that the Chameleon container is running"
The underlying issue is that the modeldefs API is taking up to 15-20 seconds to respond.
A workaround is to rebuild the XOS-GUI container with an increased timeout (say 30 seconds) by changing this line:
https://github.com/opencord/xos-gui/blob/master/src/app/datasources/rest/modeldefs.rest.ts#L55
Here's a general example of how one would do this (but see below for M-CORD):
git clone https://gerrit.opencord.org/xos-gui cd xos-gui # Make edit described above sudo docker build -t xos-gui . # Builds xos-gui:latest from local source cd ~/cord/helm-charts helm upgrade xos-core xos-core --set xos-gui.imagePullPolicy="IfNotPresent" --set xos-gui.xos_guiImage="xos-gui:latest"
However, the xos-gui Dockerfile performs a multi-stage build and this is is not supported by the version of Docker installed by the "mcord-in-a-box.sh" script. Therefore I have pushed a version of the image to Docker Hub with this change. To deploy the container directly from Docker Hub:
cd ~/cord/helm-charts helm upgrade xos-core xos-core --set xos-gui.xos_guiImage="andybavier/test-image:xos-gui"