Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e224aeb
authored
Oct 07, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: use remote_timeout instead of timeout in RemoteOperations
parent
42ffa3c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/vm/operations.py
+4
-4
No files found.
circle/vm/operations.py
View file @
1e224aeb
...
@@ -470,7 +470,7 @@ class MigrateOperation(RemoteInstanceOperation):
...
@@ -470,7 +470,7 @@ class MigrateOperation(RemoteInstanceOperation):
async_queue
=
"localhost.man.slow"
async_queue
=
"localhost.man.slow"
task
=
vm_tasks
.
migrate
task
=
vm_tasks
.
migrate
remote_queue
=
(
"vm"
,
"slow"
)
remote_queue
=
(
"vm"
,
"slow"
)
timeout
=
6
00
remote_timeout
=
10
00
def
_get_remote_args
(
self
,
to_node
,
**
kwargs
):
def
_get_remote_args
(
self
,
to_node
,
**
kwargs
):
return
(
super
(
MigrateOperation
,
self
)
.
_get_remote_args
(
**
kwargs
)
return
(
super
(
MigrateOperation
,
self
)
.
_get_remote_args
(
**
kwargs
)
...
@@ -710,7 +710,7 @@ class ShutdownOperation(AbortableRemoteOperationMixin,
...
@@ -710,7 +710,7 @@ class ShutdownOperation(AbortableRemoteOperationMixin,
resultant_state
=
'STOPPED'
resultant_state
=
'STOPPED'
task
=
vm_tasks
.
shutdown
task
=
vm_tasks
.
shutdown
remote_queue
=
(
"vm"
,
"slow"
)
remote_queue
=
(
"vm"
,
"slow"
)
timeout
=
120
remote_
timeout
=
120
def
_operation
(
self
,
task
):
def
_operation
(
self
,
task
):
super
(
ShutdownOperation
,
self
)
.
_operation
(
task
=
task
)
super
(
ShutdownOperation
,
self
)
.
_operation
(
task
=
task
)
...
@@ -793,7 +793,7 @@ class SleepOperation(InstanceOperation):
...
@@ -793,7 +793,7 @@ class SleepOperation(InstanceOperation):
name
=
_
(
"suspend virtual machine"
)
name
=
_
(
"suspend virtual machine"
)
task
=
vm_tasks
.
sleep
task
=
vm_tasks
.
sleep
remote_queue
=
(
"vm"
,
"slow"
)
remote_queue
=
(
"vm"
,
"slow"
)
timeout
=
6
00
remote_timeout
=
10
00
def
_get_remote_args
(
self
,
**
kwargs
):
def
_get_remote_args
(
self
,
**
kwargs
):
return
(
super
(
SleepOperation
.
SuspendVmOperation
,
self
)
return
(
super
(
SleepOperation
.
SuspendVmOperation
,
self
)
...
@@ -846,7 +846,7 @@ class WakeUpOperation(InstanceOperation):
...
@@ -846,7 +846,7 @@ class WakeUpOperation(InstanceOperation):
name
=
_
(
"resume virtual machine"
)
name
=
_
(
"resume virtual machine"
)
task
=
vm_tasks
.
wake_up
task
=
vm_tasks
.
wake_up
remote_queue
=
(
"vm"
,
"slow"
)
remote_queue
=
(
"vm"
,
"slow"
)
timeout
=
6
00
remote_timeout
=
10
00
def
_get_remote_args
(
self
,
**
kwargs
):
def
_get_remote_args
(
self
,
**
kwargs
):
return
(
super
(
WakeUpOperation
.
WakeUpVmOperation
,
self
)
return
(
super
(
WakeUpOperation
.
WakeUpVmOperation
,
self
)
...
...
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