-
Notifications
You must be signed in to change notification settings - Fork 28
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
issue 235: kafka consumer and publisher for multiple brokers #236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix possible panic.
Hmmm I will turn to undraft when I get messages to kafka. I added sample prefixes to the XR's but I cannot seem to get sth in the single- or multi-broker case even with the initial gobmp container, looking at |
@kotronis-te The issue was with kafka client/metadata configuration, see my test PR for diff. |
I am also getting the following on ios xr side:
|
Hmmm I think I am on to sth, the admin seems to want to create aux topics that have replication factor of 3 (minimum), which will not work in the single-broker case. Checking and will come back to this.
In the meanwhile, I will integrate your changes. |
@kotronis-te you can safely ignore these:
we are using xrd in eval mode. |
OK will ping when I switch the testbed I use to gobgp which I had tested also in the past |
Not sure if it is worth it to switch to gobgp, as your change with a single node kafka is green, all expected messages for unicast v4 are received. Have nothing against using gobgp in future in ci/cd pipeline, just now let's try to keep less changes. |
No worries it will be a separate compose and configuration, used for testing. Will ping soon when tested. |
Fixed in 49044c9
Opening the PR for review, let me know what to edit when available. |
@sbezverk I will turn to draft and work on the restructuring you propose so that this is better integrated with the CI. |
I am facing some issues with the current CI, will un-draft when resolved. |
@sbezverk I am running the CI/CD commands exactly as they are in the GH Action workflow:
however even for the classic workflow I get:
Any ideas? You had said at one point that you had verified the CI with the new changes, can you let me know what you did please and how the timeout was remedied? This is blocking from testing also the other new workflows I have added, since I still get the timeout |
@kotronis-te from the first look, it seems ok, but we need to test it in gihub cicd, try to add this code at the end of - name: stop unicast v4 integration test
run: docker compose -f ./build/unicastv4-bgp/test_bed.yml down
- name: starts kafka multi broker
run: docker compose -f ./build/kafka-single-multi-broker/test_bed_multi_broker.yaml up --detach
- name: check conection to kafka and bmp session with a router
id: session2
run: ./build/monitor_container.sh gobmp
continue-on-error: true
- name: Check on failures
if: steps.session2.outcome != 'success'
run: |
docker ps -a
docker logs gobmp
docker logs xr-1
exit 1
- name: stop kafka multi broker
run: docker compose -f ./build/kafka-single-multi-broker/test_bed_multi_broker.yaml down
- name: starts kafka single broker
run: docker compose -f ./build/kafka-single-multi-broker/test_bed_one_broker.yaml up --detach
- name: check conection to kafka and bmp session with a router
id: session3
run: ./build/monitor_container.sh gobmp
continue-on-error: true
- name: Check on failures
if: steps.session3.outcome != 'success'
run: |
docker ps -a
docker logs gobmp
docker logs xr-1
exit 1
- name: stop kafka single broker
run: docker compose -f ./build/kafka-single-multi-broker/test_bed_one_broker.yaml down Let's see if your scripts work in cicd. |
Closing, will re-initiate PR from other official repo for better software management. |
This PR adds support for multiple brokers using sarama ClusterAdmin interface.
It includes (currently in draft) docker-compose files to initiate a local installation with a kafka cluster and zookeeper.
Closes #235