Uploaded image for project: 'CORD'
  1. CORD
  2. CORD-3219

XOS GUI for M-CORD sometimes unresponsive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do (View Workflow)
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: M-CORD, XOS
    • Labels:
      None

      Description

      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"
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            acb Andy Bavier
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes