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
f1926756
Commit
f1926756
authored
May 15, 2009
by
Guido Trotter
Browse files
Don't check memory at startup if instance is up
Signed-off-by:
Guido Trotter
<
ultrotter@google.com
>
parent
b8a8fbe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/cmdlib.py
View file @
f1926756
...
...
@@ -2767,9 +2767,14 @@ class LUStartupInstance(LogicalUnit):
# check bridges existance
_CheckInstanceBridgesExist
(
self
,
instance
)
_CheckNodeFreeMemory
(
self
,
instance
.
primary_node
,
"starting instance %s"
%
instance
.
name
,
bep
[
constants
.
BE_MEMORY
],
instance
.
hypervisor
)
remote_info
=
self
.
rpc
.
call_instance_info
(
instance
.
primary_node
,
instance
.
name
,
instance
.
hypervisor
)
remote_info
.
Raise
()
if
not
remote_info
.
data
:
_CheckNodeFreeMemory
(
self
,
instance
.
primary_node
,
"starting instance %s"
%
instance
.
name
,
bep
[
constants
.
BE_MEMORY
],
instance
.
hypervisor
)
def
Exec
(
self
,
feedback_fn
):
"""Start the instance.
...
...
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