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

Disable mount propagation feature #7936

Closed
wants to merge 1 commit into from

Conversation

gnufied
Copy link
Member

@gnufied gnufied commented Apr 12, 2018

We need to disable mount propagation feature in openshift-ansible for
now becaue it breaks private mounts. We are changing
the defaults in upstream to revert the feature to old behaviour

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1565625

@@ -629,6 +629,7 @@ def build_controller_args(facts):
'cloudprovider')
if 'master' in facts:
controller_args = {}
controller_args['feature-gates'] = 'MountPropagation=false'
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this was best place to add a controller argument. cc @sdodson

Copy link
Member

Choose a reason for hiding this comment

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

Should be a list here: ['MountPropagation=false']. In any case, I don't think its needed, since its being set in l_node_kubelet_feature_flag_dict

Copy link
Member

Choose a reason for hiding this comment

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

It looks like we have moved node flags to openshift_node/defaults/main.yml but master still relies on openshift_facts and this is required by both master and node configs.

@sdodson
Copy link
Member

sdodson commented Apr 13, 2018

This has to be done via master and node config or just one of them?

@gnufied
Copy link
Member Author

gnufied commented Apr 13, 2018

This has to be done in both.

@sdodson
Copy link
Member

sdodson commented Apr 13, 2018

bot, retest this

@vrutkovs
Copy link
Member

bot, retest this please

@@ -629,6 +629,7 @@ def build_controller_args(facts):
'cloudprovider')
if 'master' in facts:
controller_args = {}
controller_args['feature-gates'] = 'MountPropagation=false'
Copy link
Member

Choose a reason for hiding this comment

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

Should be a list here: ['MountPropagation=false']. In any case, I don't think its needed, since its being set in l_node_kubelet_feature_flag_dict

@@ -652,6 +653,7 @@ def build_api_server_args(facts):
'cloudprovider')
if 'master' in facts:
api_server_args = {}
api_server_args['feature-gates'] = 'MountPropagation=false'
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@@ -82,12 +82,16 @@ openshift_node_kubelet_args_dict:

l_node_kubelet_args_default: "{{ openshift_node_kubelet_args_dict[openshift_cloudprovider_kind | default('undefined')] }}"

l_node_kubelet_feature_flag_dict:
feature-gates:
- "MountPropagation=false"
Copy link
Member

Choose a reason for hiding this comment

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

Travis wants 2 spaces here instead of 4

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Contributor

@michaelgugino michaelgugino left a comment

Choose a reason for hiding this comment

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

Commit message should have some explanation of why these changes are being made, not just a link to the BZ.

@@ -82,12 +82,16 @@ openshift_node_kubelet_args_dict:

l_node_kubelet_args_default: "{{ openshift_node_kubelet_args_dict[openshift_cloudprovider_kind | default('undefined')] }}"

l_node_kubelet_feature_flag_dict:
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to stick this in it's own dictionary and also modify l2 dict below.

Just put this feature-gates in the openshift_node_kubelet_args_dict. Or, we should refactor the common bits out of openshift_node_kubelet_args_dict.

We need to disable mount propagation feature in openshift-ansible for
now becaue it breaks private mounts. We are changing
the defaults in upstream to revert the feature to old behaviour
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 13, 2018
@gnufied
Copy link
Member Author

gnufied commented Apr 13, 2018

@vrutkovs @michaelgugino addressed review comments. Also added a reason why need to disable this feature.

@michaelgugino
Copy link
Contributor

@gnufied What do you mean 'for now' ? Just for a week, or for 3.10, or for the foreseeable future?

Will this break any current deployments? Does anything rely on this feature that we are disabling?

How are we accounting for upgrades?

@gnufied
Copy link
Member Author

gnufied commented Apr 13, 2018

@michaelgugino None of the existing stuff should break if we disable the feature. In future - I would like to make this tunable so as user can turn this on and off. May be - we should do this right now. I will try and make it so

@gnufied
Copy link
Member Author

gnufied commented Apr 27, 2018

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 27, 2018
@gnufied
Copy link
Member Author

gnufied commented May 2, 2018

Closing since openshift/origin#19364 is merged.

@gnufied gnufied closed this May 2, 2018
@gnufied gnufied deleted the disable-mount-propagation branch May 2, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants