<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>
BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.9600.18450"></HEAD>
<BODY
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>I intended to use etcd as data store for Zun project. So I installed docker
and started a docker container with an etcd server running in it using</DIV>
<DIV>devstack script. The etcd server listens on 127.0.0.1:2379 for client
requests. And per CI log [1] the container had been started successfully
and</DIV>
<DIV>functioned well (I added some test code and etcd server is available
on 127.0.0.1:2379).</DIV>
<DIV> </DIV>
<DIV>But during the execution of unit test cases, the connection
to 127.0.0.1:2379 became inavailable [2], all the cases tried to connect to
etcd server</DIV>
<DIV>failed. I did some investigation and found that the test cases were
running in an isolated network environment (maybe within an container?).</DIV>
<DIV>So the etcd server can not be reached via 127.0.0.1:2379 during test
run.</DIV>
<DIV> </DIV>
<DIV>I intended to configure etcd server to listen on an IP address which can be
reached from the test envrionment, but I realized that even if I did
that,</DIV>
<DIV>it's not easy to query that IP address in test cases. An alternative
method is to forward the request sent to 127.0.0.1:2379 of test environment
to</DIV>
<DIV>corresponding socket of the environment inwhich the etcd
container is running.</DIV>
<DIV> </DIV>
<DIV>Now I have no idea how to deal with this issue, please help me out! Thanks
in advance!</DIV>
<DIV> </DIV>
<DIV>[1]http://paste.openstack.org/show/586299/</DIV>
<DIV>[2]http://paste.openstack.org/show/586310/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: #c0c0c0">
<DIV align=left>2016-10-19</DIV>
<HR id=SignNameHR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN id=_FlashSignName>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 11.00.9600.18315"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 11.00.9600.18315"><STATIONERY>
<DIV>Best Regards,</DIV>
<DIV>Wenzhi Yu
(yuywz)</DIV></STATIONERY></DIV></STATIONERY></SPAN></DIV></STATIONERY></BODY></HTML>