<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (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:"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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Menlo;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
margin-bottom:.0001pt;
background:white;
font-size:8.5pt;
font-family:Menlo;
color:black;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0cm;
margin-bottom:.0001pt;
background:white;
font-size:8.5pt;
font-family:Menlo;
color:#34BC26;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.s1
{mso-style-name:s1;
color:#34BC26;}
span.s3
{mso-style-name:s3;
color:#5230E1;}
span.s4
{mso-style-name:s4;
color:black;}
span.s2
{mso-style-name:s2;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle25
{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:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 bgcolor="white" lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi Greg,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">This parameter has just been added to the CLI and it hasn’t been fully implemented yet. Sorry for the confusion. Here is how I expect this parameter to work:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">1. Create from neutron network name:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">$ zun run --name ctn-ping --nets network=private …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">2. Create from neutron network uuid:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">$ zun run --name ctn-ping --nets network=c59455d9-c103-4c05-b28c-a1f5d041d804 …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">3. Create from neutron port uuid/name:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">$ zun run --name ctn-ping --nets port=<port_name_or_uuid> …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">4. Give me a network:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">$ zun run --name ctn-ping --nets auto …<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">For now, please simply ignore this parameter. Zun will find a usable network under your tenant to boot the container.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hongbin<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Waines, Greg [mailto:Greg.Waines@windriver.com]
<br>
<b>Sent:</b> July-12-17 1:20 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [zun] "--nets network=..." usage question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">What is expected for the “--nets network=...” parameter on zun run or create ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Is it the network name, the subnet name, the network uuid, the subnet uuid, ... I think I’ve tried them all and none work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Full logs:<o:p></o:p></span></p>
<p class="p1"><span class="s1"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s2"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s2"><span lang="EN-US">$ neutron net-list</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">| id </span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| name</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| tenant_id</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| subnets</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">|</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">| c1731d77-c849-4b6b-b5e9-85030c8c6b52 | public</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| dcea3cea809f40c1a53b85ec3522de36 | aec0bc66-fb6a-453b-93c7-d04537a6bb05 2001:db8::/64
</span></span><span class="apple-converted-space"><span lang="EN-US"> </span>
</span><span class="s2"><span lang="EN-US">|</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">|</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| </span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">|</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| 8c881229-982e-417b-bbaa-e86d6192afa6 172.24.4.0/24
</span></span><span class="apple-converted-space"><span lang="EN-US"> </span>
</span><span class="s2"><span lang="EN-US">|</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">| c59455d9-c103-4c05-b28c-a1f5d041d804 | private | c8398b3154094049960e86b3caba1a4a | e12679b1-87e6-42cf-a2fe-e0f954dbd15f fdac:1365:7242::/64 |</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">|</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| </span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">|</span></span><span class="apple-converted-space"><span lang="EN-US">
</span></span><span class="s2"><span lang="EN-US">| a1fc0a84-8cae-4193-8d33-711b612529b7 10.0.0.0/26
</span></span><span class="apple-converted-space"><span lang="EN-US"> </span>
</span><span class="s2"><span lang="EN-US">|</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">+--------------------------------------+---------+----------------------------------+----------------------------------------------------------+</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p2"><span class="s2"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s4"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s4"><span lang="EN-US">$</span></span><span class="apple-converted-space"><span lang="EN-US" style="color:black"> </span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p2"><span class="s2"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s4"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s4"><span lang="EN-US">$</span></span><span class="apple-converted-space"><span lang="EN-US" style="color:black"> </span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p2"><span class="s2"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s4"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s4"><span lang="EN-US">$</span></span><span class="apple-converted-space"><span lang="EN-US" style="color:black"> </span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p2"><span class="s2"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s4"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s4"><span lang="EN-US">$</span></span><span class="apple-converted-space"><span lang="EN-US" style="color:black"> </span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s1"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s2"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s2"><span lang="EN-US">$ zun run --name
ctn-ping --nets network=private cirros ping 8.8.8.8</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">...<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$
zun list</span><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| uuid | name | image | status | task_state | addresses | ports |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| 649724f6-2ccd-4b21-8684-8f6616228d86 | ctn-ping | cirros | Error | None | | [] |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$
zun show ctn-ping | fgrep reason<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| status_</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#C33720">reason</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">
| Docker internal error: 404 Client Error: Not Found ("network private not found"). |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$ </span><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26"><o:p></o:p></span></p>
<p class="p1"><span class="s1"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s2"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s2"><span lang="EN-US">$ zun delete ctn-ping</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p1"><span class="s2"><span lang="EN-US">Request to delete container ctn-ping has been accepted.</span></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="p2"><span class="s2"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s4"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s4"><span lang="EN-US">$
</span><o:p></o:p></span></p>
<p class="p1"><span class="s1"><b><span lang="EN-US">stack@devstack-zun</span></b></span><span class="s2"><span lang="EN-US">:</span></span><span class="s3"><b><span lang="EN-US">~/devstack</span></b></span><span class="s2"><span lang="EN-US">$ zun run --name
ctn-ping --nets network=c59455d9-c103-4c05-b28c-a1f5d041d804 cirros ping 8.8.8.8</span></span><o:p></o:p></p>
<p class="p2"><span lang="EN-US">...<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$
zun list</span><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| uuid | name | image | status | task_state | addresses | ports |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| 6093bdc2-d288-4ea9-a98b-3ca055318c9e | ctn-ping | cirros | Error | None | | [] |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">+--------------------------------------+----------+--------+--------+------------+-----------+-------+<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$
zun show ctn-ping | fgrep reason<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">| status_</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#C33720">reason</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">
| Docker internal error: 404 Client Error: Not Found ("network c59455d9-c103-4c05-b28c-a1f5d041d804 not found"). |<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26">stack@devstack-zun</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">:</span><b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#5230E1">~/devstack</span></b><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:black">$ </span><span lang="EN-US" style="font-size:8.5pt;font-family:Menlo;color:#34BC26"><o:p></o:p></span></p>
<p class="p2"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Any ideas ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Greg.<o:p></o:p></span></p>
</div>
</div>
</body>
</html>