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

Fixes #3433: allows to continue deployment on target node var lookup error #159

Conversation

fanf
Copy link
Member

@fanf fanf commented Apr 12, 2013

Fixe for http://www.rudder-project.org/redmine/issues/3433

I'm really not sur that this fix is correct. Not the code, but the semantic of the fix, for two reason:

1/ I'm wondering if it could lead to inconsistency in list sizes.
Suppose we are in the middle of deployment, and that a node is removed in the middle of it. Can't we have one generated list of nodes (hostname for ex) of size n, and the next of size-1, and so mismatching array size in cfengine.
Actually, I'm wondering what prevent it now.

2/ Perhaps the generated promises will just be wrong. We want to apply some config depending of hostnames of nodes in a group (for a cluster, for example). If for some reason, one the hostname is not lookupable when deploying, the node will be ignored (and the config false). Isn't it better to fail the deployment in that case ?

Perhaps we are looking for the bad fixe, and what we really want is a consistency check at LDAP level, saying that you can't have node ID in groups not in ou=node (or something alike).

Fell free to refuse the pull request!

@ncharles
Copy link
Member

I am really not convinced by this change.
Indeed, if a value that is expected is not there, it's probably better to fail rather than continue and generate promises that can be invalid.
And with the implementation here, it will skip the invalid id, and have a too short list of id that could wreck havoc if used by a variable.
I'm rejecting this

@ncharles ncharles closed this Sep 16, 2013
@fanf fanf deleted the bug_3433/continue_deployment_on_target_node_variable_lookup_error branch March 15, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants