Skip to content
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

bgpstream setup which works locally fails in container #30

Closed
t0gre opened this issue May 29, 2020 · 6 comments
Closed

bgpstream setup which works locally fails in container #30

t0gre opened this issue May 29, 2020 · 6 comments

Comments

@t0gre
Copy link

t0gre commented May 29, 2020

I have this code which works fine locally:

    stream = pybgpstream.BGPStream(data_interface = "singlefile")
    stream.set_data_interface_option("singlefile", "upd-file", file_path)

    for elem in stream:
         print(str(elem))

When I run this exact same code in a container on kubernetes it fails silently. Everything up until iteration on the stream runs (there's some code above that in reality, and I put in some logging), but when it comes to the for-loop on the stream the process just stalls. No error message, just silence.

I can exec into the container and check the file is there, and it is.

Any idea what's might be causing that?

Thanks

@alistairking
Copy link
Member

Interesting!

It's especially odd that you're not getting any error messages.

Does the container work if you run it without putting it into k8s?

@t0gre
Copy link
Author

t0gre commented May 29, 2020

Just tried that now. Exactly the same in local docker. Similarly, I can exec into the container and the file is there. I am using the caida/bgpstream:2.0.0-rc3 image as my base for the container, and I have other containers collecting from routeviews with this container, so it's something related to the singlefile...

@alistairking
Copy link
Member

We'll try and reproduce the problem and see if we can figure this out

@t0gre
Copy link
Author

t0gre commented May 29, 2020

Thanks very much

@digizeph
Copy link
Contributor

Hi @tomgreenwood1, we have updated the bgpstream docker images with a fix that should resolve your issue. Could you try use caida/bgpstream:2.0.0-rc4 image as base, rebuild your image with --no-cache option, and see if the issue is resolved? Thanks!

@t0gre
Copy link
Author

t0gre commented Jun 1, 2020

Hi @digizeph I can confirm that has resolved the issue. Thanks.

@t0gre t0gre closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants