Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
e00ea635
Commit
e00ea635
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Convert gnt-cluster
Replace ssconf with configuration. Reviewed-by: iustinp
parent
d23ef431
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/gnt-cluster
+5
-4
5 additions, 4 deletions
scripts/gnt-cluster
with
5 additions
and
4 deletions
scripts/gnt-cluster
+
5
−
4
View file @
e00ea635
...
...
@@ -127,8 +127,7 @@ def ShowClusterMaster(opts, args):
opts - class with options as members
"""
sstore
=
ssconf
.
SimpleStore
()
print
sstore
.
GetMasterNode
()
print
GetClient
().
QueryConfigValues
([
"
master_node
"
])[
0
]
return
0
...
...
@@ -172,6 +171,8 @@ def ClusterCopyFile(opts, args):
op
=
opcodes
.
OpQueryNodes
(
output_fields
=
[
"
name
"
],
names
=
opts
.
nodes
)
results
=
[
row
[
0
]
for
row
in
SubmitOpCode
(
op
)
if
row
[
0
]
!=
myname
]
# TODO: Potential inconsistency between local node and master
srun
=
ssh
.
SshRunner
(
cfg
)
for
node
in
results
:
if
not
srun
.
CopyFileToNode
(
node
,
filename
):
...
...
@@ -198,8 +199,8 @@ def RunClusterCommand(opts, args):
op
=
opcodes
.
OpQueryNodes
(
output_fields
=
[
"
name
"
],
names
=
opts
.
nodes
)
nodes
=
[
row
[
0
]
for
row
in
SubmitOpCode
(
op
)]
sstore
=
ssconf
.
SimpleStore
()
master_node
=
sstore
.
GetMasterNode
()
# TODO: Potential inconsistency between local node and master
master_node
=
cfg
.
GetMasterNode
()
srun
=
ssh
.
SshRunner
(
cfg
)
# Make sure master node is at list end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment