<html 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 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:0cm;
        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;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.src
        {mso-style-name:src;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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>
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">You will need to use a guest image that supports SLAAC and/or DHCPv6.  As you can see from the message below, the DHCP failed because it was attempting to retrieve an address via IPv4.  Also note that many cloud images only enable IPv4
 by default, so you may need to create a custom image with IPv6 enabled for your testing.  Alternatively, you could use config-drive to do early initialization of IPv6 network settings.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Matt<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"Yu, Weifei" <weifei.yu@intel.com><br>
<b>Date: </b>Thursday, November 28, 2019 at 3:41 AM<br>
<b>To: </b>"starlingx-discuss@lists.starlingx.io" <starlingx-discuss@lists.starlingx.io><br>
<b>Cc: </b>"Zhao, Forrest" <forrest.zhao@intel.com>, "Xu, Chenjie" <chenjie.xu@intel.com>, "Peters, Matt" <Matt.Peters@windriver.com><br>
<b>Subject: </b>[Starlingx-discuss] How to enable IPv6 on stx-openstack?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Hi  All,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I`m trying to deploy VM with IPv6 on stx-openstack, so I create the subnet by below command and I`ve tried both slaac and dhcpv6-stateful, but the VM didn`t get correct IPv6 address inside.<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt"><i>neutron subnet-create --tenant-id ${ADMINID} --name ${PUBLICSUBNET} --enable-dhcp --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac ${PUBLICNET} 2019::/64</i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am able to see the IP on command show but VM actually doesn't gets correct IP.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">controller-0:/home/sysadmin# openstack server list<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">+--------------------------------------+------+--------+---------------------------------------+--------+----------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">| ID                                   | Name | Status | Networks                              | Image  | Flavor   |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">+--------------------------------------+------+--------+---------------------------------------+--------+----------+<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">| fe009153-49a0-49a8-95cb-302418016ca4 | vm1  | ACTIVE | public-net0=2019::f816:3eff:fe09:d386 | cirros | m1.tinny |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">| 8ac10f9c-ce7f-41c1-be91-c7c2a1675d38 | vm0  | ACTIVE | public-net0=2019::f816:3eff:fef8:a856 | cirros | m1.tinny |<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">+--------------------------------------+------+--------+---------------------------------------+--------+----------+<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The instance console log show some info:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Starting network...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">udhcpc (v1.23.2) started<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Sending discover...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Sending discover...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Sending discover...<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Usage: /sbin/cirros-dhcpc <up|down><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">No lease, failing<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">WARN: /etc/rc3.d/S40-network failed<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">controller-0:/home/sysadmin#  openstack subnet show cec4c9fe-3550-4305-af47-07cce8733bb8<o:p></o:p></p>
<p class="MsoNormal">+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| Field             | Value                                                                                                                                                                                                     |<o:p></o:p></p>
<p class="MsoNormal">+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal">| allocation_pools  | 2019::2-2019::ffff:ffff:ffff:ffff                                                                                                                                                                         |<o:p></o:p></p>
<p class="MsoNormal">| cidr              | 2019::/64                                                                                                                                                                                                 |<o:p></o:p></p>
<p class="MsoNormal">| created_at        | 2019-11-28T07:13:11Z                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| description       |                                                                                                                                                                                                           |<o:p></o:p></p>
<p class="MsoNormal">| dns_nameservers   |                                                                                                                                                                                                           |<o:p></o:p></p>
<p class="MsoNormal">| enable_dhcp       | True                                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| gateway_ip        | 2019::1                                                                                                                                                                                                   |<o:p></o:p></p>
<p class="MsoNormal">| host_routes       |                                                                                                                                                                                                           |<o:p></o:p></p>
<p class="MsoNormal">| id                | cec4c9fe-3550-4305-af47-07cce8733bb8                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| ip_version        | 6                                                                                                                                                                                                         |<o:p></o:p></p>
<p class="MsoNormal">| ipv6_address_mode | slaac                                                                                                                                                                                                     |<o:p></o:p></p>
<p class="MsoNormal">| ipv6_ra_mode      | slaac                                                                                                                                                                                                     |<o:p></o:p></p>
<p class="MsoNormal">| location          | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'76a69c24405a4ac1a98502219d674c48'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) |<o:p></o:p></p>
<p class="MsoNormal">| name              | public-subnet0                                                                                                                                                                                            |<o:p></o:p></p>
<p class="MsoNormal">| network_id        | f1b35934-b266-4768-b3e4-f043e7c282c3                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| prefix_length     | None                                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| project_id        | 76a69c24405a4ac1a98502219d674c48                                                                                                                                                                          |<o:p></o:p></p>
<p class="MsoNormal">| revision_number   | 0                                                                                                                                                                                                         |<o:p></o:p></p>
<p class="MsoNormal">| segment_id        | None                                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| service_types     |                                                                                                                                                                                                           |<o:p></o:p></p>
<p class="MsoNormal">| subnetpool_id     | None                                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">| tags              |                                                                                                                                                                                                           |<o:p></o:p></p>
<p class="MsoNormal">| updated_at        | 2019-11-28T07:13:11Z                                                                                                                                                                                      |<o:p></o:p></p>
<p class="MsoNormal">+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">is there any documents for reference? Or some advice?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">B&R<o:p></o:p></p>
<p class="MsoNormal">weifei<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>