Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Mirror
cc-node
Commits
e9d7ea3f
Commit
e9d7ea3f
authored
13 years ago
by
Thibault VINCENT
Browse files
Options
Downloads
Patches
Plain Diff
add: support for unix sockets in TCPTunnelJob
parent
6cd44a88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ccnode/handlers.py
+11
-8
11 additions, 8 deletions
ccnode/handlers.py
with
11 additions
and
8 deletions
ccnode/handlers.py
+
11
−
8
View file @
e9d7ea3f
...
...
@@ -732,18 +732,21 @@ class NodeHandler(RpcHandler):
def
tun_connect_hv
(
self
,
res
,
migration
=
False
):
'''
'''
# FIXME magic values
ip
=
'
127.0.0.1
'
if
migration
and
self
.
_host_handle
.
get_hv_type
()
==
'
xen
'
:
port
=
8002
else
:
port
=
16509
# facilities
jobmgr
=
self
.
_host_handle
.
jobmgr
# get the job
job
=
jobmgr
.
get_job
(
res
[
'
jid
'
])
# connect to libvirt
job
.
tunnel_connect
((
ip
,
port
))
# choose connection endpoint
if
self
.
_host_handle
.
get_hv_type
()
==
'
xen
'
:
# FIXME magic values
ip
=
'
127.0.0.1
'
port
=
8002
if
migration
else
16509
endpoint
=
(
ip
,
port
)
else
:
# FIXME magic values
endpoint
=
'
/var/run/libvirt/libvirt-sock
'
# connect to libvirt/hv
job
.
tunnel_connect
(
endpoint
)
@pure
def
tun_destroy
(
self
,
res
):
...
...
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