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

Update kind dependency to 0.8.4 #95

Merged
merged 5 commits into from
Jun 23, 2020
Merged

Update kind dependency to 0.8.4 #95

merged 5 commits into from
Jun 23, 2020

Conversation

ANeumann82
Copy link
Member

Signed-off-by: Andreas Neumann [email protected]

What this PR does / why we need it:

  • Updates KIND dependency to 0.8.1
  • Updates K8s dependencies to 0.18.2 (required by newer KIND)

We're currently investigating an issue in KUDO C* that may be related to kubernetes-sigs/kind#1288

It seems that KIND 0.8.1 fixes this issue.

Fixes #

@zmalik
Copy link
Member

zmalik commented May 15, 2020

@kensipe mentioned some issues with 0.8.0 I wonder if those are fixed with 0.8.1
https://kubernetes.slack.com/archives/CEKK1KTN2/p1589316603314000

@ANeumann82
Copy link
Member Author

No, they are not yet fixed, as far as I know. That's why I said I wouldn't want to merge this yet. If it turns you that it fixes the flakyness of our tests then we have to think about it...

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm scared of 0.8.1... the latest kind makes some changes that are challenging locally... I don't know how that might affect the integration... can we hold? or talk about this?

@kensipe
Copy link
Member

kensipe commented May 15, 2020

and what flakiness? I would expect flakiness to be a matter of test design.. not the kuttl itself... are you seeing something different?

@ANeumann82
Copy link
Member Author

Yes, we can hold that. I've created this branch to build a local kuttl version that I currently use to test the C* kuttl tests. I will run repeated TC tests over the weekend to test if this would fix the issue.

Wish it were the tests that were flaky, that would be easier to fix ;)

We're running basically into this issue:

failed to get file: command "docker exec --privileged kind-control-plane cat /kind/version" failed with error: exit status 1

kubernetes-sigs/kind#1288

This is mostly triggered because for the failure recovery we create a kind cluster with 4 nodes which increases the chance of this happening.

@ANeumann82
Copy link
Member Author

So, as a quick update: All other flake causes are now fixed in the cassandra operator. There are still some flakes which come from this issue, but they are like 1 in 10 runs, so it's not too urgent to get this updated.

Still - at some point I think we need to push to the new version

@ANeumann82
Copy link
Member Author

@kensipe Any updates from your side? I'm not sure how we want to progress with this. I assume the issue you have with kind 0.8.1 is this one: kubernetes-sigs/kind#1558

Can you use the mentioned workaround?

Getting this into kuttl is not the highest priority, but at some point we do need to upgrade, i guess - and the issue in the older kind versions are responsible for flakes in Cassandra. Not that often, but it is kind of annoying.

@kensipe kensipe changed the base branch from master to main June 17, 2020 20:24
Copy link
Member

@porridge porridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of the main branch? Ah, I see kudobuilder/kudo#1564 now.

@@ -287,8 +288,11 @@ func TestRun(t *testing.T) {
}),
},
}, func(t *testing.T, client client.Client) {
pod := testutils.NewPod("hello", testNamespace)
assert.Nil(t, client.Get(context.TODO(), types.NamespacedName{Namespace: testNamespace, Name: "hello"}, pod))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this related to the bump?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not fully sure, but if it's not in there the test fails on Line 295 with "object was modified". So fetching it once before fixes that.

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recent tests didn't go well... needs to rebased and tested

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following fails

 ./hack/update_codegen.sh 
Cloning code-generator from k8s.io/code-generator
Cloning into '/Users/kensipe/projects/go/src/github.com/kudobuilder/kuttl/hack/code-gen/v0.18.2'...
fatal: repository 'https://k8s.io/code-generator.git/' not found

which means that make generate fails

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code gen scripts were off for some reason :(
Aligned the versions with kudo project.
we should merge kudobuilder/kudo#1537 around the same time

@ANeumann82
Copy link
Member Author

code gen scripts were off for some reason :(
Aligned the versions with kudo project.
we should merge kudobuilder/kudo#1537 around the same time

Yeah, I looked into that as well. I think it got adjusted because we had a custom code-generator to include a bugfix that is now finally merged and released. Thanks for helping out with that.

@kensipe kensipe changed the title Update kind dependency to 0.8.1 Update kind dependency to 0.8.4 Jun 23, 2020
@ANeumann82
Copy link
Member Author

I looked into it: This PR needs to be merged and released before we can update and merge kudobuilder/kudo#1537

@kensipe kensipe merged commit d2e1a59 into main Jun 23, 2020
@kensipe kensipe deleted the an/kind-0.8.1 branch June 23, 2020 15:05
zen-dog added a commit to kudobuilder/operators that referenced this pull request Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants