[Starlingx-discuss] How to enable IPv6 on stx-openstack?
Peters, Matt
Matt.Peters at windriver.com
Thu Nov 28 12:11:50 UTC 2019
Hello,
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.
-Matt
From: "Yu, Weifei" <weifei.yu at intel.com>
Date: Thursday, November 28, 2019 at 3:41 AM
To: "starlingx-discuss at lists.starlingx.io" <starlingx-discuss at lists.starlingx.io>
Cc: "Zhao, Forrest" <forrest.zhao at intel.com>, "Xu, Chenjie" <chenjie.xu at intel.com>, "Peters, Matt" <Matt.Peters at windriver.com>
Subject: [Starlingx-discuss] How to enable IPv6 on stx-openstack?
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/d402b307/attachment-0001.html>
More information about the Starlingx-discuss
mailing list