Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-15493

[fiware-stackoverflow] Last Docker version of Fiware Orion won't start on Kubernetes

    Details

      Description

      Created question in FIWARE Q/A platform on 24-02-2019 at 22:02
      Please, ANSWER this question AT https://stackoverflow.com/questions/54856886/last-docker-version-of-fiware-orion-wont-start-on-kubernetes

      Question:
      Last Docker version of Fiware Orion won't start on Kubernetes

      Description:
      I am running Fiware Orion on Kubernetes (under IBM Cloud Kubernetes service)

      The yaml file used is very simple:

      apiVersion: v1
      kind: Pod
      metadata:
      name: orion
      spec:
      containers:

      • name: orion
        image: fiware/orion:latest
        ports:
      • containerPort: 1026
        args: ["-dbhost", "orion-mongo:27017", "-logLevel", "DEBUG", "-port", "1026"]
        restartPolicy: OnFailure

      (Even it is the default one, I have added -port 1026 to test if forcing it makes it work but no difference)

      Context broker is started as if I get in the pod I see with ps:

      root 1 0.2 0.0 237704 13552 ? Ss 21:40 0:00 /usr/bin/contextBroker -fg -multiservice -ngsiv1Autocast -dbhost orion-mongo:27017 -logLevel DEBUG -port 1026

      So contextBroker seems to work and logs show it connects to MongoDB but it won't listen to the port (1026) (Mongo IP address of the MOngo pod (docker) in my configuration is "orion-mongo")
      Log shows no error... last lines until it "hangs" there:

      time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
      time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command:

      { buildinfo: 1 }

      )
      time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
      time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
      time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
      time=Sunday 24 Feb 21:40:11 2019.190Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command:

      { buildinfo: 1 }

      )
      time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
      time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
      time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
      time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command:

      { buildinfo: 1 }

      )
      time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[231]:mongoInit | msg=Connected to mongo at orion-mongo:27017:orion

      But when I try to check it (from inside the pod or using the Nodeport external port) I get:

      [root@orion /]# curl http://localhost:1026/version
      curl: (7) Failed connect to localhost:1026; Connection refused

        Activity

        backlogmanager Backlog Manager created issue -
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 24-02-2019 at 22:02
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54856886/last-docker-version-of-fiware-orion-wont-start-on-kubernetes


        +Question:+
        Last Docker version of Fiware Orion won't start on Kubernetes

        +Description:+
        I am running Fiware Orion on Kubernetes (under IBM Cloud Kubernetes service)

        The yaml file used is very simple:

        apiVersion: v1
        kind: Pod
        metadata:
          name: orion
        spec:
          containers:
          - name: orion
            image: fiware/orion:latest
            ports:
            - containerPort: 1026
            args: ["-dbhost", "orion-mongo:27017", "-logLevel", "DEBUG", "-port", "1026"]
          restartPolicy: OnFailure


        (Even it is the default one, I have added -port 1026 to test if forcing it makes it work but no difference)

        Context broker is started as if I get in the pod I see with ps:

        root 1 0.2 0.0 237704 13552 ? Ss 21:40 0:00 /usr/bin/contextBroker -fg -multiservice -ngsiv1Autocast -dbhost orion-mongo:27017 -logLevel DEBUG -port 1026


        So contextBroker seems to work and logs show it connects to MongoDB but it won't listen to the port (1026) (Mongo IP address of the MOngo pod (docker) in my configuration is "orion-mongo")
        Log shows no error... last lines until it "hangs" there:

        time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.190Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[231]:mongoInit | msg=Connected to mongo at orion-mongo:27017:orion


        But when I try to check it (from inside the pod or using the Nodeport external port) I get:

        [root@orion /]# curl http://localhost:1026/version
        curl: (7) Failed connect to localhost:1026; Connection refused

        Created question in FIWARE Q/A platform on 24-02-2019 at 22:02
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54856886/last-docker-version-of-fiware-orion-wont-start-on-kubernetes


        +Question:+
        Last Docker version of Fiware Orion won't start on Kubernetes

        +Description:+
        I am running Fiware Orion on Kubernetes (under IBM Cloud Kubernetes service)

        The yaml file used is very simple:

        apiVersion: v1
        kind: Pod
        metadata:
          name: orion
        spec:
          containers:
          - name: orion
            image: fiware/orion:latest
            ports:
            - containerPort: 1026
            args: ["-dbhost", "orion-mongo:27017", "-logLevel", "DEBUG", "-port", "1026"]
          restartPolicy: OnFailure


        (Even it is the default one, I have added -port 1026 to test if forcing it makes it work but no difference)

        Context broker is started as if I get in the pod I see with ps:

        root 1 0.2 0.0 237704 13552 ? Ss 21:40 0:00 /usr/bin/contextBroker -fg -multiservice -ngsiv1Autocast -dbhost orion-mongo:27017 -logLevel DEBUG -port 1026


        So contextBroker seems to work and logs show it connects to MongoDB but it won't listen to the port (1026) (Mongo IP address of the MOngo pod (docker) in my configuration is "orion-mongo")
        Log shows no error... last lines until it "hangs" there:

        time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.190Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[231]:mongoInit | msg=Connected to mongo at orion-mongo:27017:orion


        But when I try to check it (from inside the pod or using the Nodeport external port) I get:

        [root@orion /]# curl http://localhost:1026/version
        curl: (7) Failed connect to localhost:1026; Connection refused

        fla Fernando Lopez made changes -
        Assignee José Ignacio Carretero Guarde [ jicg ]
        jicg José Ignacio Carretero Guarde made changes -
        Resolution Dismissed [ 10102 ]
        Status Open [ 1 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]

          People

          • Assignee:
            jicg José Ignacio Carretero Guarde
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: