[Starlingx-discuss] 回复:回复: 【StarlingX】Regarding external networking issue

CH.Huang789 ch.huang789 at advantech.com.tw
Tue Nov 17 09:25:17 UTC 2020


Thanks, Mingyuan.

I follow Austin’s input and its working now.

echo "Using helm-overrides to change the vni"
cat > neutron-overrides.yaml <<EOF
conf:
plugins:
   ml2_conf:
     ml2_type_vxlan:
       vni_ranges:
       - 1:4000
EOF

echo "Update the neutron overrides and apply to stx-openstack"
source /etc/platform/openrc
system helm-override-update stx-openstack neutron openstack --values neutron-overrides.yaml
system application-apply stx-openstack
watch -n 5 system application-list

[ml2_type_vxlan]
vni_ranges = 1:4000

Regards,
C.H. Huang
Technical Service for Advantech Cloud-IoT<https://advt.ch/support>

From: Qi, Mingyuan <mingyuan.qi at intel.com>
Sent: Tuesday, November 17, 2020 4:51 PM
To: CH.Huang789 <ch.huang789 at advantech.com.tw>; starlingx-discuss at lists.starlingx.io
Subject: RE: [Starlingx-discuss] 回复:回复: 【StarlingX】Regarding external networking issue

Hi C.H. Huang,

The config are mounted from secret “neutron-etc” with read-only attribute. That’s why you are not able to change that config within the pod.
If you want to modify the config, you will need to modify the ml2_conf.ini in secret “neutron-etc” (base64 encoded) and restart the ovs-agent pod.

Mingyuan

From: CH.Huang789 <ch.huang789 at advantech.com.tw<mailto:ch.huang789 at advantech.com.tw>>
Sent: Tuesday, November 17, 2020 16:37
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Subject: Re: [Starlingx-discuss] 回复:回复: 【StarlingX】Regarding external networking issue

Hi All:

I try to edit the ml2_config.ini but it’s always show me a readonly file even I am the root user or I use “sudo”.
controller-0:~$ source ./openrc.os
[sysadmin at controller-0 ~(keystone_admin)]$ kubectl exec -it neutron-ovs-agent-controller-0-937646f6-k5q4x -n openstack -- bash
[root at controller-0 /]# vi /etc/neutron/plugins/ml2/ml2_conf.ini

[agent]
extensions =
[ml2]
extension_drivers = port_security
mechanism_drivers = openvswitch,sriovnicswitch,l2population
path_mtu = 0
physical_network_mtus = phy-flat1:1500,physnet2:1500
tenant_network_types = vlan,vxlan
type_drivers = flat,vlan,vxlan
[ml2_type_flat]
flat_networks = phy-flat1,physnet2
[ml2_type_vxlan]
vni_ranges =
vxlan_group =
[ovs_driver]
vhost_user_enabled = true
[securitygroup]
firewall_driver = openvswitch
~
"/etc/neutron/plugins/ml2/ml2_conf.ini" [readonly] 18L, 435C

Can someone help me?

Regards,
C.H. Huang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20201117/b63c3e60/attachment.html>


More information about the Starlingx-discuss mailing list