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

The affinity-assistant pods are still spawning after disabling the associated feature-flag: disable-affinity-assistant #2979

Closed
lmserrano opened this issue Jul 21, 2020 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lmserrano
Copy link

lmserrano commented Jul 21, 2020

Expected Behavior

No affinity-assistant pods should spawn

Actual Behavior

There is an affinity-assistant pod spawning for each pipelinerun task that manages to execute

Steps to Reproduce the Problem

  1. Install Tekton Pipeline 0.14.2
  2. kubectl edit configmap feature-flags -n tekton-pipelines and add disable-affinity-assistant as follows:
    apiVersion: v1
    data:
      disable-affinity-assistant: "true"
    ...
    
  3. Start a pipelinerun which uses multiple persistent volume claims (the one i'm running specifically uses 1 pvc template and 2 pre-existing claims, but I don't think that should make a difference)

Additional Info

  • Kubernetes version:

    Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.6-eks-4e7f64", GitCommit:"4e7f642f9f4cbb3c39a4fc6ee84fe341a8ade94c", GitTreeState:"clean", BuildDate:"2020-06-11T13:55:35Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
  • Tekton Pipeline version:

Tekton Pipeline: v0.14.2

@lmserrano lmserrano added the kind/bug Categorizes issue or PR as related to a bug. label Jul 21, 2020
@vdemeester
Copy link
Member

/cc @jlpettersson

@aeweidne
Copy link

Is real and is really annoying

@ghost ghost self-assigned this Jul 24, 2020
@ghost ghost modified the milestone: Pipelines v0.15 Jul 24, 2020
@afrittoli
Copy link
Member

The affinity assistant code tries to read the config value from context or default

func (c *Reconciler) isAffinityAssistantDisabled(ctx context.Context) bool {
cfg := config.FromContextOrDefaults(ctx)
return cfg.FeatureFlags.DisableAffinityAssistant
}

The pipelinerun controller has its own config store, which does not include feature flags, so the code above will always return the default. This should be indirectly solved by: #2938 :)

@jlpettersson
Copy link
Member

Seem to been introduced / changed in #2637

@vdemeester
Copy link
Member

This should be fixed in 0.14.3 and in master with :

I think we can "safely" close this. If this turns out to still be a bug, please comment here and I'll re-open 👼

@abayer
Copy link
Contributor

abayer commented Aug 3, 2020

I seem to still be seeing this with 0.14.3...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

6 participants