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

Upgrade/Downgrade integration tests fails when base resource type stays consistent #7397

Closed
aoldershaw opened this issue Aug 9, 2021 · 1 comment · Fixed by #7450
Closed
Labels
bug release/no-impact This is an issue that never affected released versions (i.e. a regression caught prior to shipping).
Projects
Milestone

Comments

@aoldershaw
Copy link
Contributor

Summary

When the version of the mock base resource type doesn't change between the latest image and the dev image under test, the upgrade and downgrade tests fail with the following errors:

find or create container on worker ops-worker: volume '1311fba6-13ea-4d8b-7a18-746232f265b0' disappeared from worker 'ops-worker'

Steps to reproduce

$ docker pull concourse/dev
$ docker pull concourse/concourse
$ docker-compose build
$ go test -v ./integration/ops -run TestDowngrade

Expected results

Test succeeds

Actual results

Test fails with the error above

Additional context

Based on the logs, it appears as though it's failing trying to FindOrCreateVolumeForBaseResourceType:

web_1     | {"timestamp":"2021-08-09T17:19:18.225118400Z","level":"info","source":"atc","message":"atc.tracker.notify.run.check-step.find-or-create-volume-for-base-resource-type.created-volume-not-found","data":{"build":"check","build_id":9,"container":"8079a51a-02bc-4cf9-50d5-221ce9b5b213","pipeline":"test","resource":"mockery","session":"24.3.2.3.1","step-name":"mockery","team":"main","volume":"1311fba6-13ea-4d8b-7a18-746232f265b0"}}

However, although the /worker-state directory gets wiped when we recreate the worker container, the DB still thinks the volume is created.

Note that this only happens when the version for the mock base resource type stays consistent since otherwise the old worker_base_resource_type would be invalidated, as would the existing volume in the DB.

Also note that we only started to experience this now as a result of 795dccb

Triaging info

  • Concourse version: 7.4.0 dev
  • Did this used to work? yes
@aoldershaw aoldershaw added the bug label Aug 9, 2021
@aoldershaw aoldershaw added this to the v7.5.0 milestone Aug 9, 2021
@aoldershaw aoldershaw changed the title Downgrade integration test fails when base resource type stays consistent Upgrade/Downgrade integration tests fails when base resource type stays consistent Aug 9, 2021
@aoldershaw
Copy link
Contributor Author

It seems to fail on upgrade as well as just downgrade, though it will pass at least ~half the time on upgrade

@scottietremendous scottietremendous added this to To do in Roadmap Aug 23, 2021
Roadmap automation moved this from To do to Done Aug 24, 2021
@clarafu clarafu added the release/no-impact This is an issue that never affected released versions (i.e. a regression caught prior to shipping). label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug release/no-impact This is an issue that never affected released versions (i.e. a regression caught prior to shipping).
Projects
Roadmap
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants