<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* 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:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:440145674;
mso-list-type:hybrid;
mso-list-template-ids:-68263642 1822856324 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:27.0pt;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:63.0pt;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:99.0pt;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:135.0pt;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:171.0pt;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:207.0pt;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:243.0pt;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:279.0pt;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:315.0pt;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi list,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m doing some function test based on neutron + ml2 plugin.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want my cloud can support all kind of network, so I can do further comparison tests between different type of network.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So, I create 4 networks:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">neutron net-list<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+---------+------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| id | name | subnets |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+---------+------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 1314f7bb-9b52-4db8-a677-a751e52aad0e | gre-1 | c0774200-7aff-44bd-b122-4264368947da 20.1.100.0/24 |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 4e7d06f0-3547-446d-98ca-3adac416e370 | flat-1 | 83df18e1-ab2e-4983-8892-66d7699c4e9a 192.168.13.0/24 |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| c7e26ebc-078b-4375-b313-795a89a9d8bd | vlan-1 | 22789dfc-e41e-412c-a325-10a210f176c5 30.1.100.0/24 |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| fcd5c1a8-34ab-4e0c-9e4d-d99d168aa300 | vxlan-3 | 534558b0-c0a4-4c7e-add5-1f0abcb91cc3 40.1.100.0/24 |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+---------+------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Because my machine only have 1 NIC port can be used for instances data network, so I start two dhcp agents:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">neutron agent-list<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+--------------------+-------------+-------+----------------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| id | agent_type | host | alive | admin_state_up |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+--------------------+-------------+-------+----------------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 05e23822-0966-4c7c-9b16-687484385383 | Open vSwitch agent | b-compute05 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 1267a2c6-f7cb-49d9-b579-18e986139878 | Open vSwitch agent | b-compute06 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 55f457bf-9ffe-417b-ad50-5878c8a71aab | DHCP agent | b-compute05 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 928495d3-fac0-4fbf-b958-36c3627d9b18 | Open vSwitch agent | b-compute01 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| 934c721b-8c7d-4605-8e03-400676665afc | Open vSwitch agent | b-network01 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| bd491c90-3597-45ea-b4a0-f37610f2ed9b | DHCP agent | b-network01 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| e07c8133-a3f6-4864-adb2-318f2233fe63 | Linux bridge agent | b-compute02 | xxx | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">| e1070c1e-fcb6-43fc-b2a0-a81e688b814a | Open vSwitch agent | b-compute02 | :-) | True |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">+--------------------------------------+--------------------+-------------+-------+----------------+<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The DHCP agent started on b-compute05 is working for network flat-1 and vlan-1.<o:p></o:p></p>
<p class="MsoNormal">The DHCP agent started on b-network01 is working for network gre-1 and vxlan-3.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The Open vSwitch agent on b-compute05 and b-compute06 is configured to working for flat and vlan.<o:p></o:p></p>
<p class="MsoNormal">The Open vSwitch agent on b-compute01 and b-compute02 is configured to working for vxlan and gre.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then I start to create new instances.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here comes the issues:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Network will not be auto scheduled to the right DHCP agent.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">It just randomly chose one of the active DHCP agent, and ignore whether the DHCP agent can work for that type of network or not.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">And no error message can be found in /var/log/neutron/dhcp-agent.log.
<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">Everything looks just fine.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">Only, active instances will never get IP addresses from DHCP.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">I have to assign network to the right DHCP by hand.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Similar issues to nova-scheduler.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">Because nova-scheduler scheduler instances without awareness of what type of network compute node support.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">So, it will scheduler instances to the wrong compute node that do not actually support the kind of network.<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt">These instances will end with error status, and with error message in /var/log/nova/compute.log:<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><o:p> </o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 ERROR nova.compute.manager [req-f3863a12-30e9-420d-a44a-0dd9c0bd1412 c4633e89685d41c4a2d20a2234b5025e 45c69667e2a64c889719ef8d8e0dd098] [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a]
Instance failed to spawn<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1413, in _spawn<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] block_device_info)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2067, in spawn<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] write_to_disk=True)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3040, in to_xml<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] disk_info, rescue, block_device_info)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2927, in get_guest_config<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] inst_type)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/vif.py", line 364, in get_config<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] _("Unexpected vif_type=%s") % vif_type)<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a] NovaException: Unexpected vif_type=binding_failed<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.454 9085 TRACE nova.compute.manager [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a]<o:p></o:p></p>
<p class="MsoListParagraph" style="margin-left:1.0in">2014-01-10 14:59:48.620 9085 AUDIT nova.compute.manager [req-f3863a12-30e9-420d-a44a-0dd9c0bd1412 c4633e89685d41c4a2d20a2234b5025e 45c69667e2a64c889719ef8d8e0dd098] [instance: d477a7c1-590b-485a-ac1a-055a6fdaca3a]
Terminating instance<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyone know what should I do to avoid these two issues ????<o:p></o:p></p>
<p class="MsoNormal">Or any suggestion about what I should do to change the cloud infrastructure to support 4 kind of network at the same time but without these issue ??<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks a lot !!<o:p></o:p></p>
<p class="MsoNormal">-chen <o:p></o:p></p>
</div>
</body>
</html>