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

more reliable passing of the complex tests #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nixpanic
Copy link
Member

@nixpanic nixpanic commented Oct 3, 2018

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
Collaborator

Can one of the admins verify this patch?

Copy link
Contributor

@jarrpa jarrpa left a comment

Choose a reason for hiding this comment

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

LGTM

@nixpanic
Copy link
Member Author

nixpanic commented Oct 4, 2018

@phlogistonjohn you mentioned something similar the other day?

@jarrpa
Copy link
Contributor

jarrpa commented Oct 4, 2018

ok to test
add to whitelist

@phlogistonjohn
Copy link
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
Copy link
Member Author

nixpanic commented Oct 4, 2018 via email

@jarrpa
Copy link
Contributor

jarrpa commented Oct 4, 2018

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
Copy link
Contributor

obnoxxx commented Oct 8, 2018

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

Copy link
Contributor

@obnoxxx obnoxxx left a comment

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.

None yet

5 participants