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

PR - cicd : fixes for failed sctp test-cases #707

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/k3s-calico-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- run: curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.22.9+k3s1 INSTALL_K3S_EXEC="server --disable traefik --disable servicelb --disable-cloud-controller --kubelet-arg cloud-provider=external --flannel-backend=none --cluster-cidr=10.42.0.0/16" K3S_KUBECONFIG_MODE="644" sh -
- run: |
sleep 10
kubectl "${{ env.KUBECONFIG }}" create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
kubectl "${{ env.KUBECONFIG }}" create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml
- run: |
sleep 10
kubectl "${{ env.KUBECONFIG }}" create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
kubectl "${{ env.KUBECONFIG }}" create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom-resources.yaml
- run: |
sleep 10
kubectl "${{ env.KUBECONFIG }}" taint nodes --all node.cloudprovider.kubernetes.io/uninitialized=false:NoSchedule-
Expand Down
Binary file modified cicd/common/sctp_socat_client
Binary file not shown.
13 changes: 5 additions & 8 deletions cicd/common/sctp_socat_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <unistd.h>
#include <errno.h>

#define RECVBUFSIZE 4096
#define RECVBUFSIZE 1024
#define PPID 1234

int main(int argc, char* argv[])
Expand All @@ -24,8 +24,7 @@ int main(int argc, char* argv[])
struct sctp_sndrcvinfo sndrcvinfo = {0};
struct sctp_event_subscribe events = {0};
struct sctp_initmsg initmsg = {0};
char msg[1024] = {0};
char buff[1024] = {0};
char msg[RECVBUFSIZE] = {0};
socklen_t opt_len;
socklen_t slen = (socklen_t) sizeof(struct sockaddr_in);

Expand Down Expand Up @@ -56,13 +55,11 @@ int main(int argc, char* argv[])

while(1)
{
in = sctp_recvmsg(sockfd, (void*)buff, RECVBUFSIZE,
(struct sockaddr *)&servaddr,
&slen, &sndrcvinfo, &flags);
in = recv(sockfd, (void*)msg, RECVBUFSIZE, 0);
if (in > 0 && in < RECVBUFSIZE - 1)
{
buff[in] = 0;
printf("%s",buff);
msg[in] = 0;
printf("%s",msg);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ubuntu22/yaml/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ software:
cluster:
box: bento/ubuntu-22.04
version: 202401.31.0
calico: 3.26.0
calico: 3.26.1
# To skip the dashboard installation, set its version to an empty value or comment it out:
kubernetes: 1.29.2
os: xUbuntu_22.04
2 changes: 1 addition & 1 deletion cicd/k8s-calico/yaml/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ software:
cluster:
box: bento/ubuntu-22.04
version: 202401.31.0
calico: 3.26.0
calico: 3.26.1
# To skip the dashboard installation, set its version to an empty value or comment it out:
kubernetes: 1.29.2
os: xUbuntu_22.04
Loading