<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have found the problem of starting a nova-network on a controller node with single network node.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">nova network-list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+----------+------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| ID | Label | Cidr |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">+--------------------------------------+----------+------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">| f9eadb0b-1c0f-4c48-acdf-aa20987d22d1 | demo-net | 192.168.165.0/24 |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">However, the “network” object has a “host” associated with it, which can be seen by directly quering MySQL table. The network object above has the host associated with one the compute node. If I start nova-network
on any compute node, it would work properly, but if I start nova-network on controller node, the network initialization code would be skipped unless I reset the host to be the controller node.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I don’t know if it is a feature or bug of the nova-network. I hope that this information would be helpful for someone playing with nova-network.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Zhi-Wei Lu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">IET-CR-Network Operations Center<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">University of California, Davis<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">(530) 752-0155<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Zhi-Wei Lu [mailto:zwlu@ucdavis.edu] <br>
<b>Sent:</b> Thursday, June 05, 2014 11:49 AM<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> [Openstack] Question about debugging nova-network<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi all, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have posed a question a few weeks ago about debugging the nova-network issue, that I can not run the nova-network on the “controller” node (single flatdhcpmanger), I was able to run that properly on the compute nodes, however. During
the process of debugging, I understand the process of network much better, iptables, ebtable, dhcp, meta-data services all could cause problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I tracked it down in the /usr/lib/python2.6/site-packages/nova/network/l3.py<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">fixed_range = kwargs.get('fixed_range', False)<o:p></o:p></p>
<p class="MsoNormal"> networks = kwargs.get('networks', None)<o:p></o:p></p>
<p class="MsoNormal"> if not fixed_range and networks is not None:<o:p></o:p></p>
<p class="MsoNormal"> LOG.debug("I am here")<o:p></o:p></p>
<p class="MsoNormal"> for network in networks:<o:p></o:p></p>
<p class="MsoNormal"> LOG.debug("But not here")<o:p></o:p></p>
<p class="MsoNormal"> self.initialize_network(network['cidr'])<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Therefore, nova-network skipped bridge configuration and dnsmasq, thus it is quite useless even though the main nova-network is running! The “networks” must be different on the “controller node” and on “compute nodes”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How do I print the variables fixed_range and network using the openstack logging facilities? I would like to get to the bottom of this issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you very much for your help!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Zhi-Wei Lu<o:p></o:p></p>
<p class="MsoNormal">IET-CR-Network Operations Center<o:p></o:p></p>
<p class="MsoNormal">University of California, Davis<o:p></o:p></p>
<p class="MsoNormal">(530) 752-0155<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>