Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

more reliable passing of the complex tests#524

Open
nixpanic wants to merge 1 commit into
gluster:masterfrom
nixpanic:test-reliability
Open

more reliable passing of the complex tests#524
nixpanic wants to merge 1 commit into
gluster:masterfrom
nixpanic:test-reliability

Conversation

@nixpanic

@nixpanic nixpanic commented Oct 3, 2018

Copy link
Copy Markdown
Contributor

New versions of Kubernetes' kubeadm do not have the
--skip-preflight-check option anymore. It has been replaced with
--ignore-preflight-errors. While testing, it seems this flag is not
needed anymore, tests can continue without it.

However, the updated Kubernetes versions seem more strict about the
order of objects in the .yaml files. There are two instances where the
Service refers to a Pod that is defined later on. This seems to prevent
the Service from getting created. Moving the Service definition to the
end, and tests pass again.

See-also: kubernetes/kubernetes@3a0aa06


This change is Reviewable

New versions of Kubernetes' kubeadm do not have the
--skip-preflight-check option anymore. It has been replaced with
--ignore-preflight-errors. While testing, it seems this flag is not
needed anymore, tests can continue without it.

However, the updated Kubernetes versions seem more strict about the
order of objects in the .yaml files. There are two instances where the
Service refers to a Pod that is defined later on. This seems to prevent
the Service from getting created. Moving the Service definition to the
end, and tests pass again.

See-also: kubernetes/kubernetes@3a0aa06
@nixpanic nixpanic requested a review from jarrpa October 3, 2018 21:12
@centos-ci

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@jarrpa jarrpa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@nixpanic

nixpanic commented Oct 4, 2018

Copy link
Copy Markdown
Contributor Author

@phlogistonjohn you mentioned something similar the other day?

@jarrpa

jarrpa commented Oct 4, 2018

Copy link
Copy Markdown
Contributor

ok to test
add to whitelist

@phlogistonjohn

Copy link
Copy Markdown
Contributor

@nixpanic I did and yes that was probably the reason for the failure. Since I was under time pressure to test I just used an older version of k8s by editing the global_vars file.
Did you test with any older versions, say one version back from latest?

@nixpanic

nixpanic commented Oct 4, 2018 via email

Copy link
Copy Markdown
Contributor Author

@jarrpa

jarrpa commented Oct 4, 2018

Copy link
Copy Markdown
Contributor

We've generally tried to keep things somewhat backwards-compatible, especially for being able to switch between latest and latest-1. There are some spots where we do version checking that you could use to see if it wouldn't be too bad.

@obnoxxx

obnoxxx commented Oct 8, 2018

Copy link
Copy Markdown
Contributor

So what's the take on this?
Do we want to require backward-compatibility in the templates?

@obnoxxx obnoxxx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Me again: This should have been 2 commits, imho: one for the template change and one for the ansible change (use of --skip-preflight-checks).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants