Common Variables set on Library Variable Sets are deleted when Environment mapping from Tenant Variables are changed.
Team
- [X] I've assigned a team label to this issue
Severity
Not Blocking but has removed many variables from at least one instance
Version
2022.4.5099
Latest Version
No response
What happened?
- Create a Variables Template inside a Variable Set, give it a default value (in our example its been set to 'VarTemp1 Variable')
- Attach the variable set to a project
- Map the project to a Tenant
- Set the relevant environments on the Tenant
- Change the common variable value within the Tenant for the variable set and save it (in our example its been changed to 'Very Important Information')
- Remove any environment from the Tenant Mapping - the common variable is reset back to the previous value (in our case 'VarTemp1 Variable')
Reproduction
The Tenant with a default variable value (shown on left) and the tenant view of the variable set within the project's attached Variable Set Template with the variable value changed (shown on right):

Remove a mapped environment:


Go back to the New Variable Set in the tenant and see the variable has been reset back to the previous value:

Re-add the previous environment:

The updated variable ('Very Important Information') is gone forever:

Error and Stacktrace
No response
More Information
No response
Workaround
No response
Customer that reported the issue (internal) - https://octopus.zendesk.com/agent/tickets/99114
Any updates for this? We are having the same problem and most our variables are in library variable sets.
Same issue for me as well.
Another report of this issue (internal ticket link): https://octopus.zendesk.com/agent/tickets/112207
Release Note: Fix tenant variable removal when removing environments from projection connection
:tada: The fix for this issue has been released in:
| Release stream | Release |
|---|---|
| 2023.2 | 2023.2.10466 |
| 2023.3+ | all releases |