[Starlingx-discuss] How to enable IPv6 on stx-openstack?

Yu, Weifei weifei.yu at intel.com
Thu Nov 28 08:41:28 UTC 2019


Hi  All,

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.
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 am able to see the IP on command show but VM actually doesn't gets correct IP.
controller-0:/home/sysadmin# openstack server list
+--------------------------------------+------+--------+---------------------------------------+--------+----------+
| ID                                   | Name | Status | Networks                              | Image  | Flavor   |
+--------------------------------------+------+--------+---------------------------------------+--------+----------+
| fe009153-49a0-49a8-95cb-302418016ca4 | vm1  | ACTIVE | public-net0=2019::f816:3eff:fe09:d386 | cirros | m1.tinny |
| 8ac10f9c-ce7f-41c1-be91-c7c2a1675d38 | vm0  | ACTIVE | public-net0=2019::f816:3eff:fef8:a856 | cirros | m1.tinny |
+--------------------------------------+------+--------+---------------------------------------+--------+----------+

The instance console log show some info:
Starting network...
udhcpc (v1.23.2) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed


controller-0:/home/sysadmin#  openstack subnet show cec4c9fe-3550-4305-af47-07cce8733bb8
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                                                                     |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| allocation_pools  | 2019::2-2019::ffff:ffff:ffff:ffff                                                                                                                                                                         |
| cidr              | 2019::/64                                                                                                                                                                                                 |
| created_at        | 2019-11-28T07:13:11Z                                                                                                                                                                                      |
| description       |                                                                                                                                                                                                           |
| dns_nameservers   |                                                                                                                                                                                                           |
| enable_dhcp       | True                                                                                                                                                                                                      |
| gateway_ip        | 2019::1                                                                                                                                                                                                   |
| host_routes       |                                                                                                                                                                                                           |
| id                | cec4c9fe-3550-4305-af47-07cce8733bb8                                                                                                                                                                      |
| ip_version        | 6                                                                                                                                                                                                         |
| ipv6_address_mode | slaac                                                                                                                                                                                                     |
| ipv6_ra_mode      | slaac                                                                                                                                                                                                     |
| location          | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'76a69c24405a4ac1a98502219d674c48'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) |
| name              | public-subnet0                                                                                                                                                                                            |
| network_id        | f1b35934-b266-4768-b3e4-f043e7c282c3                                                                                                                                                                      |
| prefix_length     | None                                                                                                                                                                                                      |
| project_id        | 76a69c24405a4ac1a98502219d674c48                                                                                                                                                                          |
| revision_number   | 0                                                                                                                                                                                                         |
| segment_id        | None                                                                                                                                                                                                      |
| service_types     |                                                                                                                                                                                                           |
| subnetpool_id     | None                                                                                                                                                                                                      |
| tags              |                                                                                                                                                                                                           |
| updated_at        | 2019-11-28T07:13:11Z                                                                                                                                                                                      |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

is there any documents for reference? Or some advice?

B&R
weifei

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191128/2721084d/attachment-0001.html>


More information about the Starlingx-discuss mailing list