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

Editing Deployment image names via "Edit Config" results in failure #3827

Closed
nickgerace opened this issue Aug 12, 2021 · 5 comments
Closed

Comments

@nickgerace
Copy link

When editing a deployment's image name, via "Edit Config" errors occur. However, when editing it via "Edit YAML", no errors occur.

Error that appears in UI:

Deployment.apps "fleet-agent" is invalid: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms: Required value: must have at least one node selector term

Changing this one field appears to create a large diff as well when using "Edit Config". One field is offset too:

Screen Shot 2021-08-12 at 4 00 24 PM

@nickgerace nickgerace added this to the v2.6.x milestone Aug 12, 2021
@nwmac nwmac assigned ghost Sep 15, 2021
@nwmac
Copy link
Member

nwmac commented Sep 15, 2021

@Sean-McQ Check with @rak-phillip - I think he looked at a similar issue elsewhere (I could be wrong)

@gaktive gaktive modified the milestones: v2.6.x, v2.6.4 Dec 17, 2021
@gaktive
Copy link
Member

gaktive commented Dec 17, 2021

There are additional reports about this happening. Internal reference: SURE-3676.

@gaktive
Copy link
Member

gaktive commented Feb 24, 2022

From the internal reference, there's a comment in place tied to preference that may be the culprit.

@ghost ghost added [zube]: Working and removed [zube]: Next Up labels Feb 28, 2022
@ghost
Copy link

ghost commented Mar 3, 2022

Was unable to reproduce and after a brief conversation with @mantis-toboggan-md it looks like this was previously resolved in 2.6.3 under #4319

@sgapanovich sgapanovich self-assigned this Mar 7, 2022
@sgapanovich
Copy link

Reproduction

Rancher version: 2.6.3
Rancher cluster type: single-node docker install

Downstream cluster type: rke2 ec2 node driver
Downstream K8s version: 1.21.9

  1. Workloads -> Deployments -> Create
  2. Name: test
    Container name: test
    Image: nginx
    Node Scheduling: Run pods on node(s) matching scheduling rules
    -Priority: Preferred
    -Key: node-role.kubernetes.io/worker
    -Operator: is set
    test repro

Test Environment:

Rancher version: v2.6-head 4df2214
Rancher cluster type: HA
Docker version: 20.10

Downstream cluster type: rke1 ec2 node driver
Downstream K8s version: 1.23.4

Testing:

Edit Config for:

  • deployment with Node Scheduling -> Run pods on nodes(s) matching scheduling rules -> Preferred (affinity)
  • deployment with Node Scheduling -> Run pods on nodes(s) matching scheduling rules -> Required (affinity)
  • deployment with Node Scheduling -> Run pods on specific node(s) -> Select node (nodeName)

All deployments are updated successfully with pods recreated

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

No branches or pull requests

6 participants