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

New rollout experiment instance starts even before the previous instance is cleaned up #2699

Open
2 tasks
daniddelrio opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working no-issue-activity

Comments

@daniddelrio
Copy link
Contributor

daniddelrio commented Apr 5, 2023

Checklist:

  • I've included steps to reproduce the bug.
  • I've included the version of argo rollouts.

Describe the bug

After #2633 was introduced, we set service and service.name in our Rollout Experiment to still enable the creation of a service by our experiments. We then encountered this issue:

Template 'smoketest' transitioned from Progressing -> Error: Failed to create Service service-name-smoketest for template 'smoketest': service service-name-smoketest already exists and is not owned by experiment template smoketest

It seems that the service for the Rollout experiment is being created before the previous Rollout experiment run is cleaned up, hence the service service-name-smoketest was still lying around. We deduced this from the logs:

Apr 5, 2023 @ 14:35:23.447: time="2023-04-05T12:35:23Z" level=info msg="Scaled down ReplicaSet service-name (revision 736) from 6 to 0" event_reason=ScalingReplicaSet namespace=namespace-example rollout=service-name
Apr 5, 2023 @ 14:35:23.350: time="2023-04-05T12:35:23Z" level=info msg="Created Experiment 'service-name-55cc99cd94-737-0'" event_reason=ExperimentCreated namespace=namespace-example rollout=service-name

To Reproduce

Expected behavior

Screenshots

Version

Logs

# Paste the logs from the rollout controller

# Logs for the entire controller:
kubectl logs -n argo-rollouts deployment/argo-rollouts

# Logs for a specific rollout:
kubectl logs -n argo-rollouts deployment/argo-rollouts | grep rollout=<ROLLOUTNAME

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

@daniddelrio daniddelrio added the bug Something isn't working label Apr 5, 2023
@daniddelrio
Copy link
Contributor Author

daniddelrio commented Apr 17, 2023

Update: to get it work for now, we just had to unset service.name and resort to just using service: {}

@github-actions
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

1 participant