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

Octopus Migrator does not account for Worker Pool Variable type #6391

Open
5 tasks done
donnybell opened this issue May 27, 2020 · 1 comment
Open
5 tasks done

Octopus Migrator does not account for Worker Pool Variable type #6391

donnybell opened this issue May 27, 2020 · 1 comment
Labels
area/core feature/migrator kind/bug This issue represents a verified problem we are committed to solving

Comments

@donnybell
Copy link

donnybell commented May 27, 2020

Prerequisites

  • I have verified the problem exists in the latest version
  • I have searched open and closed issues to make sure it isn't already reported
  • I have written a descriptive issue title
  • I have linked the original source of this report
  • I have tagged the issue appropriately (area/*, kind/bug, tag/regression?)

The bug

The Octopus Migrator tool does not how to handle the Worker Pool Variable type for a project. This error forces a roll back on import. Export creates the appropriate PROJECT-VariableSet.json, but throws the following error when running the import:

Error importing Variable set ' ' (variableset-Projects-XX)
Missing dependency WorkerPools-X

What I expected to happen

The Octopus Migrator tool exports the dependencies to account for the Value of a "WorkerPool" Type.

Steps to reproduce

  1. Within a Project, go to 'Variables'
  2. Create a name for a new variable
  3. Click on "Change Type", with the cursor on the "Enter value" field
  4. Select Worker Pool, choose any available and save
  5. Using the Octopus CLI, Octopus.Migrator.exe partial-export --directory="" --project="" --password=""
  6. Change the project name that was just exported (i.e. Project becomes Project-Old)
  7. Using the Octopus CLI, Octopus.Migrator.exe import --directory"" --password=""

Screen capture

image

Log exerpt

6120      1 ERROR    Error importing VariableSet '' (variableset-Projects-81):
6120      1 ERROR    Missing dependency WorkerPools-1

Affected versions

2020.1.0+ (Tested on Octopus Server 2020.1.14 and 2020.2.9)

Workarounds

Manually change the variable type to "Text", export, import, then change it back

Links

https://secure.helpscout.net/conversation/1162080747/64407?folderId=3767295 <--Internal Use Only

@donnybell donnybell added the kind/bug This issue represents a verified problem we are committed to solving label May 27, 2020
@Waldo000000
Copy link
Contributor

Waldo000000 commented May 28, 2020

@mcasperson mcasperson added product/noqrfcapacity Do not use this label anymore feature/migrator labels Jun 8, 2020
@kengel100 kengel100 added area/core and removed product/noqrfcapacity Do not use this label anymore labels Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core feature/migrator kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

4 participants