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
2859b87b
Commit
2859b87b
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Convert ganeti-watcher
Use RPC calls instead of ssconf. Reviewed-by: iustinp
parent
8594f271
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemons/ganeti-watcher
+1
-3
1 addition, 3 deletions
daemons/ganeti-watcher
with
1 addition
and
3 deletions
daemons/ganeti-watcher
+
1
−
3
View file @
2859b87b
...
...
@@ -36,7 +36,6 @@ from optparse import OptionParser
from
ganeti
import
utils
from
ganeti
import
constants
from
ganeti
import
serializer
from
ganeti
import
ssconf
from
ganeti
import
errors
from
ganeti
import
opcodes
from
ganeti
import
logger
...
...
@@ -282,8 +281,7 @@ class Watcher(object):
"""
def
__init__
(
self
):
sstore
=
ssconf
.
SimpleStore
()
master
=
sstore
.
GetMasterNode
()
master
=
client
.
QueryConfigValues
([
"
master_node
"
])[
0
]
if
master
!=
utils
.
HostInfo
().
name
:
raise
NotMasterError
(
"
This is not the master node
"
)
self
.
instances
=
GetInstanceList
()
...
...
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