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
17
Merge Requests
17
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
nexedi
slapos.core
Commits
f68f3a22
Commit
f68f3a22
authored
Sep 10, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_upgrader: fixup migration of archived instances
parent
754b3e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
...pgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
+2
-2
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
View file @
f68f3a22
...
...
@@ -54,7 +54,7 @@ elif not_migrated_instance_tree_dict[instance_tree_relative_url]['project_relati
not_migrated_instance_tree_dict
.
pop
(
instance_tree_relative_url
)
# Node requested to be allocated on a specific node
elif
(
software_instance
is
not
None
)
and
(
sla_xml_dict
.
get
(
'computer_guid'
,
None
)
is
not
None
):
elif
(
software_instance
is
not
None
)
and
(
instance_tree
.
getValidationState
()
!=
'archived'
)
and
(
sla_xml_dict
.
get
(
'computer_guid'
,
None
)
is
not
None
):
project_instance_reference
=
sla_xml_dict
.
get
(
'computer_guid'
,
None
)
project_instance
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Compute Node'
,
reference
=
project_instance_reference
)
...
...
@@ -65,7 +65,7 @@ elif (software_instance is not None) and (sla_xml_dict.get('computer_guid', None
not_migrated_instance_tree_dict
.
pop
(
instance_tree_relative_url
)
# Slave Node requested to be allocated on a specific project instance
elif
(
software_instance
is
not
None
)
and
(
sla_xml_dict
.
get
(
'instance_guid'
,
None
)
is
not
None
):
elif
(
software_instance
is
not
None
)
and
(
instance_tree
.
getValidationState
()
!=
'archived'
)
and
(
sla_xml_dict
.
get
(
'instance_guid'
,
None
)
is
not
None
):
project_instance_reference
=
sla_xml_dict
.
get
(
'instance_guid'
,
None
)
project_instance
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Software Instance'
,
reference
=
project_instance_reference
)
...
...
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