Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
itminedu
snf-ganeti
Commits
22d31e49
Commit
22d31e49
authored
Oct 31, 2007
by
Michael Hanselmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix usage of OpReplaceDisks.
Reviewed-by: iustinp
parent
bcee9cb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
scripts/gnt-node
scripts/gnt-node
+3
-1
tools/burnin
tools/burnin
+3
-1
No files found.
scripts/gnt-node
View file @
22d31e49
...
...
@@ -131,7 +131,9 @@ def EvacuateNode(opts, args):
good_cnt
=
bad_cnt
=
0
for
iname
in
sinst
:
op
=
opcodes
.
OpReplaceDisks
(
instance_name
=
iname
,
remote_node
=
dst_node
)
remote_node
=
dst_node
,
mode
=
constants
.
REPLACE_DISK_ALL
,
disks
=
[
"sda"
,
"sdb"
])
try
:
logger
.
ToStdout
(
"Replacing disks for instance %s"
%
iname
)
SubmitOpCode
(
op
)
...
...
tools/burnin
View file @
22d31e49
...
...
@@ -145,7 +145,9 @@ def BurninCluster(opts, args):
# failover
for
instance_name
in
args
:
op
=
opcodes
.
OpReplaceDisks
(
instance_name
=
instance_name
,
remote_node
=
None
)
remote_node
=
None
,
mode
=
constants
.
REPLACE_DISK_ALL
,
disks
=
[
"sda"
,
"sdb"
])
Feedback
(
"- Replace disks for instance %s"
%
(
instance_name
))
result
=
proc
.
ExecOpCode
(
op
)
...
...
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