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
082c5adb
Commit
082c5adb
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Fix error message when masterd is not listening
Reported by Iustin. Reviewed-by: iustinp
parent
6683bba2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/cli.py
+1
-1
1 addition, 1 deletion
lib/cli.py
lib/luxi.py
+1
-1
1 addition, 1 deletion
lib/luxi.py
with
2 additions
and
2 deletions
lib/cli.py
+
1
−
1
View file @
082c5adb
...
@@ -539,7 +539,7 @@ def FormatError(err):
...
@@ -539,7 +539,7 @@ def FormatError(err):
obuf
.
write
(
"
Unhandled Ganeti error: %s
"
%
msg
)
obuf
.
write
(
"
Unhandled Ganeti error: %s
"
%
msg
)
elif
isinstance
(
err
,
luxi
.
NoMasterError
):
elif
isinstance
(
err
,
luxi
.
NoMasterError
):
obuf
.
write
(
"
Cannot communicate with the master daemon.
\n
Is it running
"
obuf
.
write
(
"
Cannot communicate with the master daemon.
\n
Is it running
"
"
and listening
on
'
%s
'
?
"
%
err
.
args
[
0
]
)
"
and listening
for connections?
"
)
elif
isinstance
(
err
,
luxi
.
TimeoutError
):
elif
isinstance
(
err
,
luxi
.
TimeoutError
):
obuf
.
write
(
"
Timeout while talking to the master daemon. Error:
\n
"
obuf
.
write
(
"
Timeout while talking to the master daemon. Error:
\n
"
"
%s
"
%
msg
)
"
%s
"
%
msg
)
...
...
This diff is collapsed.
Click to expand it.
lib/luxi.py
+
1
−
1
View file @
082c5adb
...
@@ -154,7 +154,7 @@ class Transport:
...
@@ -154,7 +154,7 @@ class Transport:
except
socket
.
timeout
,
err
:
except
socket
.
timeout
,
err
:
raise
TimeoutError
(
"
Connect timed out: %s
"
%
str
(
err
))
raise
TimeoutError
(
"
Connect timed out: %s
"
%
str
(
err
))
except
socket
.
error
,
err
:
except
socket
.
error
,
err
:
if
err
.
args
[
0
]
==
errno
.
ENOENT
:
if
err
.
args
[
0
]
in
(
errno
.
ENOENT
,
errno
.
ECONNREFUSED
)
:
raise
NoMasterError
((
address
,))
raise
NoMasterError
((
address
,))
raise
raise
self
.
socket
.
settimeout
(
self
.
_rwtimeout
)
self
.
socket
.
settimeout
(
self
.
_rwtimeout
)
...
...
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