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

Migrator partial-export command is not exporting LibraryVariableSets for releases #5100

Closed
michaelnoonan opened this issue Nov 19, 2018 · 3 comments

Comments

@michaelnoonan
Copy link
Contributor

commented Nov 19, 2018

Imagine you are exporting a single project using the Octopus.Migrator.exe partial-export --project="MyProject" command. The exported files contain any Library Variable Sets currently used by the Project, but not any Library Variable Sets which were used by the Project for some Releases, and subsequently removed from the Project.

When you try to import this project using Octopus.Migrator.exe import ... the process fails because the Library Variable Set referred to by an older Release was not exported.

What I expected to happen

Any Library Variable Sets required to successfully import the Project and any included Releases should be exported - resulting in a successful import.

Steps to reproduce

  1. Create a Library Variable Set and a Project
  2. Create a Release of that Project
  3. Remove the Library Variable Set from the Project
  4. Create another Release of that Project
  5. Export the Project
  6. Try to import the Project and it will fail with the error message like this: Error importing LibraryVariableSet 'MyLibraryVariableSet' (LibraryVariableSets-22): Missing dependency variableset-LibraryVariableSets-22

Affected versions

Octopus Server: 3.0 until fixed

Workarounds

Re-connect the Library Variable Set to the Project before exporting - the result:

  1. The Library Variable Set will be exported correctly because it is used by the Project directly
  2. Any releases you create will use that Variable Set even though it isn't required for successful deployments.
@michaelnoonan

This comment has been minimized.

@octoreleasebot octoreleasebot added this to the 2018.9.12 milestone Nov 21, 2018
@octoreleasebot

This comment has been minimized.

Copy link

commented Nov 21, 2018

Release Note: migrator.exe now correctly exports library variable sets used by a project and any of its releases, where beforehand any library variable sets removed from the project would not be exported subsequently causing the import to fail

@MJRichardson MJRichardson modified the milestones: 2018.9.12, 2018.9.11 Nov 21, 2018
@lock

This comment has been minimized.

Copy link

commented Feb 19, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.