Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
961eb109
Commit
961eb109
authored
Aug 26, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_upgrader: rename broken resilient/import software types
parent
56100a1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
...pgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
+9
-0
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
View file @
961eb109
...
...
@@ -98,6 +98,15 @@ while instance_to_check_list:
# Check sub instances only if parent is ok
instance_to_check_list
.
extend
(
instance
.
getSuccessorValueList
())
elif
(
instance
.
getSourceReference
()
in
[
'resilient'
,
'kvm-resilient'
,
'import'
,
'kvm-import'
,
'runner-import'
]):
# Do not migrate resiliency subinstances
# recreate the root instance, which does not contain user date, instead
instance_tree
.
setSuccessorValueList
(
instance_tree
.
getSuccessorValueList
()
+
instance
.
getSuccessorValueList
())
instance_to_check_list
.
extend
(
instance
.
getSuccessorValueList
())
instance
.
setSuccessorValueList
([])
# Do not destroy yet, to prevent any data deletion mistake
instance
.
SoftwareInstance_renameAndRequestStop
()
# Trigger migration
for
instance_virtual_master_relative_url
in
remote_virtual_master_dict
:
instance_tree_virtual_master
.
Project_checkSiteMigrationCreateRemoteNode
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment