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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
f7b00a8c
Commit
f7b00a8c
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
10 additions
and
0 deletions
+10
-0
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
...pgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
+10
-0
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_fixupSiteMigrationToVirtualMaster.py
View file @
f7b00a8c
...
...
@@ -98,6 +98,16 @@ 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'
]):
# Do not migrate resiliency subinstances
# recreate the root instance, which does not contain user data, instead
# Do not expect webrunner to be allocated on another server. Skip 'runner-import'
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