Comments (2)
The failure occurred in line 160 of get_pods():
Traceback (most recent call last):
File "./collector.py", line 251, in get_images
images_list.extend(docker.get_images(gs, node['id']))
File "/usr/src/app/utilities.py", line 83, in inner
return func(arg1, arg2)
File "/usr/src/app/docker.py", line 494, in get_images
for pod in kubernetes.get_pods(gs, docker_host):
File "/usr/src/app/utilities.py", line 105, in inner
return func(arg1, arg2)
File "/usr/src/app/kubernetes.py", line 160, in get_pods
if pod['currentState']['host'] == node_id:
KeyError: 'host'
I found one pod in a waiting state which does not have a host.
{
"annotations": {
"label": "cassandra-kqj6r"
},
"id": "cassandra-kqj6r",
"properties": {
"creationTimestamp": "2015-04-06T15:45:47Z",
"currentState": {
"manifest": {
"containers": null,
"id": "",
"restartPolicy": {},
"version": "",
"volumes": null
},
"status": "Waiting"
},
"desiredState": {
"manifest": {
"containers": [
{
"capabilities": {},
"command": [
"/run.sh"
],
"cpu": 1000,
"env": [
{
"key": "MAX_HEAP_SIZE",
"name": "MAX_HEAP_SIZE",
"value": "512M"
},
{
"key": "HEAP_NEWSIZE",
"name": "HEAP_NEWSIZE",
"value": "100M"
}
],
"image": "kubernetes/cassandra:v2",
"imagePullPolicy": "PullIfNotPresent",
"name": "cassandra",
"ports": [
{
"containerPort": 9042,
"name": "cql",
"protocol": "TCP"
},
{
"containerPort": 9160,
"name": "thrift",
"protocol": "TCP"
}
],
"resources": {
"limits": {
"cpu": "1"
}
},
"terminationMessagePath": "/dev/termination-log",
"volumeMounts": [
{
"mountPath": "/cassandra_data",
"name": "data",
"path": "/cassandra_data"
}
]
}
],
"dnsPolicy": "ClusterFirst",
"id": "",
"restartPolicy": {
"always": {}
},
"version": "v1beta2",
"volumes": [
{
"name": "data",
"source": {
"emptyDir": {
"medium": ""
},
"gitRepo": null,
"hostDir": null,
"nfs": null,
"persistentDisk": null,
"secret": null
}
}
]
}
},
"generateName": "cassandra-",
"id": "cassandra-kqj6r",
"labels": {
"name": "cassandra"
},
"namespace": "default",
"resourceVersion": 683766,
"selfLink": "/api/v1beta1/pods/cassandra-kqj6r?namespace=default",
"uid": "fe7622f0-dc73-11e4-bd90-42010af0f42f"
},
"timestamp": "2015-04-06T20:28:11.417748",
"type": "Pod"
},
from cluster-insight.
Closed by #32.
from cluster-insight.
Related Issues (20)
- allow access to the cluster-insight master via a browser using a fixed host name and port HOT 1
- Merge v2 to master HOT 1
- Cluster-insight on Google Container Engine HOT 3
- image size HOT 2
- Cluster-insight POD running successfully but connection refused while connecting to it's endpoint
- An error related to auto-scaling? HOT 1
- Always returns error data HOT 2
- how does the cluster name extraction work? I cannot understand it HOT 1
- when a container has no parent pod, the /cluster/resources/containers throws an error HOT 1
- images with identical names are not merged HOT 2
- report resources in the master node HOT 1
- read information from Docker daemon in the master node
- timestamps should show the time the corresponding data changed HOT 1
- request latency HOT 22
- permission denied to /var/run/docker.sock HOT 14
- docker_proxy.py should use logging instead of 'print'
- the context graph does not contain any containers HOT 4
- latest container image fails to run in some nodes HOT 7
- docker_proxy.py should have a unit test HOT 1
- the installation script often fails because one or more minion collectors are not yet active
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluster-insight.