Skip to content

Use RunAsAny by default - #5839

Merged
openshift-bot merged 3 commits into
openshift:masterfrom
pweil-:runasany-bydefault
Nov 11, 2015
Merged

openshift-bot merged 3 commits into
openshift:masterfrom
pweil-:runasany-bydefault

Conversation

@pweil-

@pweil- pweil- commented Nov 10, 2015

Copy link
Copy Markdown

There have been issues found showing that changing the default cluster behavior to set FSGroups will adversely affect some of our example images and an unknown number of customer images. This PR changes the default strategies for cluster SCCs to RunAsAny for FSGroup and SupplementalGroups to retain backwards compatible behavior.

Note: while SupplementalGroups technically doesn't need to be changed it seems best to make the behavior consistent for now.

Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1279744

@liggitt @pmorie @bparees @danmcp @ncdc

@pweil-

pweil- commented Nov 10, 2015

Copy link
Copy Markdown
Author

[test]

Comment thread UPGRADE.md Outdated

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.

missing some spaces in "unsetthis"

@pweil-
pweil- force-pushed the runasany-bydefault branch 2 times, most recently from f74beb1 to 9abda8a Compare November 10, 2015 22:19
@bparees

bparees commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

lgtm

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.

update the godoc to clarify that the defaults for missing fields has to be the setting that preserves the behavior that existed prior to the field existing

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.

here and in v1beta3 defaults.go

@liggitt

liggitt commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

nits and comments on comments

@liggitt

liggitt commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

actually, we should discuss the supplemental group change... what is the difference in behavior between leaving that unspecified on a pod, and specifying it? if supplemental groups on a pod are purely additive, should we leave that?

@pweil-
pweil- force-pushed the runasany-bydefault branch from 9abda8a to c6a90c1 Compare November 10, 2015 22:33
@pweil-

pweil- commented Nov 10, 2015

Copy link
Copy Markdown
Author

It is purely additive afaik. I don't think defaulting it buys us anything so it seems right to change it along with fsgroup. I am happy to change it back if we would prefer to have it set default sup groups. At this point making sure it is 3.0-like OOTB seems the safer route.

@liggitt

liggitt commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

ok, LGTM

@liggitt liggitt added this to the 1.1.0 milestone Nov 10, 2015
@liggitt liggitt added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Nov 10, 2015
@liggitt

liggitt commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7038

The Service "external" is invalid.
spec.clusterIP: invalid value '172.30.0.100', Details: provided IP is already allocated
!!! Error in test/cmd/basicresources.sh:73
    'oc create -f test/fixtures/external-service.yaml' exited with status 1

I can't see how that is related... [test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to c6a90c1

@bparees

bparees commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

I can't see how that is related...

famous last github words.......

@bparees

bparees commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

confirming mysql, postgres, and mongo ephemeral templates appear to run successfully w/ these changes.

@liggitt

liggitt commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7039/) (Image: devenv-rhel7_2673)

@pweil-

pweil- commented Nov 10, 2015

Copy link
Copy Markdown
Author
!!! Error in test/cmd/newapp.sh:62
    '[ "$(oc new-app --search --image-stream=nodejs | grep -E "Tags:\s+0.10, latest")" ]' exited with status 1
Call stack:
    1: test/cmd/newapp.sh:62 main(...)
Exiting with status 1

unrelated flake [merge]

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. priority/P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants