Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7c90be21
authored
Sep 22, 2016
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdriver: more logging for shutdown
parent
1562b83b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vmdriver.py
+3
-0
No files found.
vmdriver.py
View file @
7c90be21
...
@@ -210,9 +210,12 @@ class shutdown(AbortableTask):
...
@@ -210,9 +210,12 @@ class shutdown(AbortableTask):
def
run
(
self
,
args
):
def
run
(
self
,
args
):
from
time
import
sleep
from
time
import
sleep
name
,
=
args
name
,
=
args
logging
.
info
(
"Shutdown started for vm:
%
s"
,
name
)
try
:
try
:
domain
=
lookupByName
(
name
)
domain
=
lookupByName
(
name
)
logging
.
info
(
"
%
s domain found in shutdown"
,
name
)
domain
.
shutdown
()
domain
.
shutdown
()
logging
.
info
(
"Domain shutdown called for vm:
%
s"
,
name
)
while
True
:
while
True
:
try
:
try
:
Connection
.
get
()
.
lookupByName
(
name
)
Connection
.
get
()
.
lookupByName
(
name
)
...
...
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