Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Dismissed
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
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:
)
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:
)
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:
)
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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
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 |
Assignee | José Ignacio Carretero Guarde [ jicg ] |
Resolution | Dismissed [ 10102 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |