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
Klaus Wölfel
slapos.core
Commits
5b531d3e
Commit
5b531d3e
authored
Jan 22, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch exception when ServerError is thrown when doing computer_partition.destroyed()
parent
68ae75ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+5
-0
No files found.
slapos/grid/slapgrid.py
View file @
5b531d3e
...
@@ -49,6 +49,7 @@ from utils import setFinished
...
@@ -49,6 +49,7 @@ from utils import setFinished
from
utils
import
getSoftwareUrlHash
from
utils
import
getSoftwareUrlHash
from
slapos
import
slap
from
slapos
import
slap
from
slapos.slap
import
NotFoundError
from
slapos.slap
import
NotFoundError
from
slapos.slap.slap
import
ServerError
from
utils
import
dropPrivileges
from
utils
import
dropPrivileges
from
utils
import
SlapPopen
from
utils
import
SlapPopen
from
svcbackend
import
launchSupervisord
from
svcbackend
import
launchSupervisord
...
@@ -866,6 +867,10 @@ class Slapgrid(object):
...
@@ -866,6 +867,10 @@ class Slapgrid(object):
logger
.
debug
(
'Ignored slap error while trying to inform about '
logger
.
debug
(
'Ignored slap error while trying to inform about '
'destroying not fully configured Computer Partition %r'
%
'destroying not fully configured Computer Partition %r'
%
computer_partition
.
getId
())
computer_partition
.
getId
())
except
ServerError
as
server_error
:
logger
.
debug
(
'Ignored server error while trying to inform about '
'destroying Computer Partition %r. Error is :
\
n
%r'
%
(
computer_partition
.
getId
(),
server_error
.
args
[
0
]))
logger
.
info
(
"Finished usage reports..."
)
logger
.
info
(
"Finished usage reports..."
)
return
clean_run
return
clean_run
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