Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
cc2bea8b
Commit
cc2bea8b
authored
Jul 02, 2008
by
Michael Hanselmann
Browse files
ganeti-masterd: Remove unused locking code
Reviewed-by: iustinp, ultrotter
parent
96cb3986
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemons/ganeti-masterd
View file @
cc2bea8b
...
...
@@ -288,28 +288,21 @@ def PoolWorker(worker_id, incoming_queue, context):
if
item
is
None
:
break
logging
.
debug
(
"worker %s processing job %s"
,
worker_id
,
item
.
data
.
job_id
)
#utils.Lock('cmd'
)
proc
=
mcpu
.
Processor
(
context
,
feedback
=
lambda
x
:
None
)
try
:
proc
=
mcpu
.
Processor
(
context
,
feedback
=
lambda
x
:
None
)
try
:
JobRunner
(
proc
,
item
,
context
)
except
errors
.
GenericError
,
err
:
msg
=
"ganeti exception"
logging
.
error
(
msg
,
exc_info
=
err
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
except
Exception
,
err
:
msg
=
"unhandled exception"
logging
.
error
(
msg
,
exc_info
=
err
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
except
:
msg
=
"unhandled unknown exception"
logging
.
error
(
msg
,
exc_info
=
True
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
finally
:
#utils.Unlock('cmd')
#utils.LockCleanup()
pass
JobRunner
(
proc
,
item
,
context
)
except
errors
.
GenericError
,
err
:
msg
=
"ganeti exception"
logging
.
error
(
msg
,
exc_info
=
err
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
except
Exception
,
err
:
msg
=
"unhandled exception"
logging
.
error
(
msg
,
exc_info
=
err
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
except
:
msg
=
"unhandled unknown exception"
logging
.
error
(
msg
,
exc_info
=
True
)
item
.
SetStatus
(
opcodes
.
Job
.
STATUS_FAIL
,
result
=
[
msg
])
logging
.
debug
(
"worker %s finish job %s"
,
worker_id
,
item
.
data
.
job_id
)
logging
.
debug
(
"worker %s exiting"
,
worker_id
)
...
...
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