-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes error with "kubernetes_get_host.py" in monasca-agent #327
Comments
I think |
That said, you're right, the cause of the error is probably due to outdated If you're getting this from the |
Output from the latest agent-collector image shows compatible versions:
|
The plugin is fixed IFF the ipaddress package is added to dependencies. At the moment ipaddress is NOT included.
I raised an issue on monasca story board for this. https://review.openstack.org/#/c/519651/
…Sent from my iPhone
On 21 Nov 2017, at 18:58, Tim Buckley ***@***.***> wrote:
Output from the latest agent-collector image shows compatible versions:
[tim:~]↥ 3s % docker run --rm=true -it monasca/agent-collector:master-20171121-122311 pip list | grep -E '(urllib3|ipaddress)'
ipaddress (1.0.18)
urllib3 (1.22)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The upstream bugfix has been merged. Are any actions still required here? |
Kubernetes_get_host.py is still included in the monasca agent base image.
So the problem remains and using the downward API would be a safer option.
…On Wed, 17 Jan 2018 at 10:48, Witek Bedyk ***@***.***> wrote:
The upstream bugfix has been merged. Are any actions still required here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#327 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdweXApYWaG0zkA8jeLB1yVekHo43CYGks5tLcHWgaJpZM4Qc-9D>
.
|
Running the script as is and with monasca pike creates the following error:
The kubernetes service in 1.7.5 is defined as:
This could be tied to kubernetes-client/python#36 ?
The python script "kubernetes_get_host.py" used in monasca-agent can be replaced with the DownwardAPI (see https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/) and the variable injected via en environment variable:
I would propose to remove the python script and associated code in Dockerfile, and start.sh, etc and instead document how to inject the nodename.
If that is acceptable, I can prepare a fix.
The text was updated successfully, but these errors were encountered: