Git Product home page Git Product logo

Comments (2)

EranGabber avatar EranGabber commented on May 7, 2024

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.

EranGabber avatar EranGabber commented on May 7, 2024

Closed by #32.

from cluster-insight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.