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
0
Merge Requests
0
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
Boxiang Sun
slapos.core
Commits
f6d4fb66
Commit
f6d4fb66
authored
Mar 06, 2023
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
2386cb66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+6
-12
No files found.
slapos/grid/slapgrid.py
View file @
f6d4fb66
...
@@ -1293,10 +1293,14 @@ stderr_logfile_backups=1
...
@@ -1293,10 +1293,14 @@ stderr_logfile_backups=1
self
.
_checkPromiseList
(
local_partition
)
self
.
_checkPromiseList
(
local_partition
)
computer_partition
.
started
()
computer_partition
.
started
()
bad_service_list
=
local_partition
.
checkOnWatchServiceStatus
()
bad_service_list
=
local_partition
.
checkOnWatchServiceStatus
()
if
len
(
bad_service_list
)
>
0
:
self
.
logger
.
removeHandler
(
partition_file_handler
)
for
service
in
bad_service_list
:
for
service
in
bad_service_list
:
self
.
logger
.
info
(
'On watch service %r is not running'
%
service
)
self
.
logger
.
info
(
'On watch service %r is not running'
%
service
)
if
len
(
bad_service_list
)
>
0
:
self
.
logger
.
addHandler
(
partition_file_handler
)
raise
ChildProcessError
(
"No RUNNING on-watch process founded."
)
raise
ChildProcessError
(
"No RUNNING on-watch process founded."
)
self
.
_endInstallationTransaction
(
computer_partition
)
self
.
_endInstallationTransaction
(
computer_partition
)
elif
computer_partition_state
==
COMPUTER_PARTITION_STOPPED_STATE
:
elif
computer_partition_state
==
COMPUTER_PARTITION_STOPPED_STATE
:
try
:
try
:
...
@@ -1544,21 +1548,11 @@ stderr_logfile_backups=1
...
@@ -1544,21 +1548,11 @@ stderr_logfile_backups=1
except
slapos
.
slap
.
ResourceNotReady
:
except
slapos
.
slap
.
ResourceNotReady
:
return
'(not ready)'
return
'(not ready)'
self
.
logger
.
info
(
'---------------------------------'
)
self
.
logger
.
info
(
'---------------------------------'
)
self
.
logger
.
info
(
'---------------------------------'
)
self
.
logger
.
info
(
'I want generate an output here!!!'
)
if
promise_error_partition_list
:
if
promise_error_partition_list
:
self
.
logger
.
info
(
'Finished computer partitions.'
)
self
.
logger
.
info
(
'Finished computer partitions.'
)
for
partition
,
exc
in
promise_error_partition_list
:
for
partition
,
exc
in
promise_error_partition_list
:
self
.
logger
.
info
(
' %s[%s]: %s'
,
partition
.
getId
(),
getPartitionType
(
partition
),
exc
)
self
.
logger
.
info
(
' %s[%s]: %s'
,
partition
.
getId
(),
getPartitionType
(
partition
),
exc
)
self
.
logger
.
info
(
'================================='
)
self
.
logger
.
info
(
'================================='
)
self
.
logger
.
info
(
'================================='
)
self
.
logger
.
info
(
'I want generate an output here!!!'
)
# Return success value
# Return success value
if
not
clean_run_promise
:
if
not
clean_run_promise
:
return
SLAPGRID_PROMISE_FAIL
return
SLAPGRID_PROMISE_FAIL
...
...
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