yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #88286
[Bug 1958961] Re: [ovn-octavia-provider] lb create failing with with ValueError: invalid literal for int() with base 10: '24 2001:db8::131/64'
This bug is the same as https://bugs.launchpad.net/neutron/+bug/1959903
(or a subset of it).
The fix at https://review.opendev.org/c/openstack/ovn-octavia-
provider/+/827670 also solves this problem
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1958961
Title:
[ovn-octavia-provider] lb create failing with with ValueError: invalid
literal for int() with base 10: '24 2001:db8::131/64'
Status in neutron:
Fix Released
Bug description:
When deployed with octavia-ovn-provider with below local.conf,
loadbalancer create(openstack loadbalancer create --vip-network-id
public --provider ovn) goes into ERROR state.
From o-api logs:-
ERROR ovn_octavia_provider.helper Traceback (most recent call last):
ERROR ovn_octavia_provider.helper File "/usr/local/lib/python3.8/dist-packages/netaddr/ip/__init__.py", line 811, in parse_ip_network
ERROR ovn_octavia_provider.helper prefixlen = int(val2)
ERROR ovn_octavia_provider.helper ValueError: invalid literal for int() with base 10: '24 2001:db8::131/64'
Seems regression caused after
https://review.opendev.org/c/openstack/ovn-octavia-provider/+/816868.
# Logical switch ports output
sudo ovn-nbctl find logical_switch_port type=router
_uuid : 4865f50c-a2cd-4a5c-ae4a-bbc911985fb2
addresses : [router]
dhcpv4_options : []
dhcpv6_options : []
dynamic_addresses : []
enabled : true
external_ids : {"neutron:cidrs"="172.24.4.149/24 2001:db8::131/64", "neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", "neutron:device_owner"="network:router_gateway", "neutron:network_name"=neutron-4708e992-cff8-4438-8142-1cc2ac7010db, "neutron:port_name"="", "neutron:project_id"="", "neutron:revision_number"="6", "neutron:security_group_ids"=""}
ha_chassis_group : []
name : "c18869b9-7777-49a8-bc8a-5d2c51db5b6e"
options : {mcast_flood_reports="true", nat-addresses=router, requested-chassis=ykarel-devstack, router-port=lrp-c18869b9-7777-49a8-bc8a-5d2c51db5b6e}
parent_name : []
port_security : []
tag : []
tag_request : []
type : router
up : true
_uuid : f0ed6566-a942-4e2d-94f5-64ccd6bed568
addresses : [router]
dhcpv4_options : []
dhcpv6_options : []
dynamic_addresses : []
enabled : true
external_ids : {"neutron:cidrs"="fd25:38d5:1d9::1/64", "neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", "neutron:device_owner"="network:router_interface", "neutron:network_name"=neutron-591d2b8c-3501-49b1-822c-731f2cc9b305, "neutron:port_name"="", "neutron:project_id"=f4c9948020024e13a1a091bd09d1fbba, "neutron:revision_number"="3", "neutron:security_group_ids"=""}
ha_chassis_group : []
name : "e778ac75-a15b-441b-b334-6a7579f851fa"
options : {router-port=lrp-e778ac75-a15b-441b-b334-6a7579f851fa}
parent_name : []
port_security : []
tag : []
tag_request : []
type : router
up : true
_uuid : 9c2f3327-ac94-4881-a9c5-a6da87acf6a3
addresses : [router]
dhcpv4_options : []
dhcpv6_options : []
dynamic_addresses : []
enabled : true
external_ids : {"neutron:cidrs"="10.0.0.1/26", "neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", "neutron:device_owner"="network:router_interface", "neutron:network_name"=neutron-591d2b8c-3501-49b1-822c-731f2cc9b305, "neutron:port_name"="", "neutron:project_id"=f4c9948020024e13a1a091bd09d1fbba, "neutron:revision_number"="3", "neutron:security_group_ids"=""}
ha_chassis_group : []
name : "d728e2a3-f9fd-4fff-8a6f-0c55a26bc55c"
options : {router-port=lrp-d728e2a3-f9fd-4fff-8a6f-0c55a26bc55c}
parent_name : []
port_security : []
tag : []
tag_request : []
type : router
up : true
local.conf
==========
[[local|localrc]]
RECLONE=yes
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
Q_AGENT=ovn
Q_ML2_PLUGIN_MECHANISM_DRIVERS=ovn,logger
Q_ML2_PLUGIN_TYPE_DRIVERS=local,flat,vlan,geneve
Q_ML2_TENANT_NETWORK_TYPE="geneve"
OVN_BRANCH="v21.06.0"
OVN_BUILD_FROM_SOURCE="True"
OVS_BRANCH="branch-2.15"
OVS_SYSCONFDIR="/usr/local/etc/openvswitch"
OVN_L3_CREATE_PUBLIC_NETWORK=True
OCTAVIA_NODE="api"
DISABLE_AMP_IMAGE_BUILD=True
enable_plugin barbican https://opendev.org/openstack/barbican
enable_plugin octavia https://opendev.org/openstack/octavia
enable_plugin octavia-dashboard https://opendev.org/openstack/octavia-dashboard
LIBS_FROM_GIT+=python-octaviaclient
enable_service octavia
enable_service o-api
enable_service o-hk
enable_service o-da
disable_service o-cw
disable_service o-hm
enable_plugin ovn-octavia-provider https://opendev.org/openstack/ovn-octavia-provider
LOGFILE=$DEST/logs/stack.sh.log
enable_service ovn-northd
enable_service ovn-controller
enable_service q-ovn-metadata-agent
enable_service q-svc
disable_service q-agt
disable_service q-l3
disable_service q-dhcp
disable_service q-meta
enable_plugin neutron https://opendev.org/openstack/neutron
enable_service q-trunk
enable_service q-dns
enable_service q-port-forwarding
enable_service neutron-segments
enable_service q-log
enable_plugin neutron-tempest-plugin https://opendev.org/openstack/neutron-tempest-plugin
disable_service horizon
disable_service cinder c-sch c-api c-vol
OVN_BUILD_MODULES=True
ENABLE_CHASSIS_AS_GW=True
[[post-config|$NOVA_CONF]]
[scheduler]
discover_hosts_in_cells_interval = 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1958961/+subscriptions
References