Failing on configuring IPv4 on DevStack if IPv6 is enabled

Bug #1910760 reported by Victoria Martinez de la Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Victoria Martinez de la Cruz

Bug Description

DevStack fails when trying to set up an environment with IPv6 enabled. The reason is that the env var in use is not being properly initialized. We should use the related local var instead.

Always reproducible
Expected result: DevStack deploys manila with IPv6
Actual result:

2020-12-30 19:52:17.242 | +++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1082 : oscwrap subnet create ipv6-public-subnet --ip-version 6 --network public --subnet-pool shared-default-subnetpool-v6 --no-dhcp -c gateway_ip -f value
2020-12-30 19:52:20.354 | +++ functions-common:oscwrap:2346 : return 0
2020-12-30 19:52:20.359 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1082 : local public_gateway_ipv6=fd63:376f:9518:1::1
2020-12-30 19:52:20.363 | +++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1083 : oscwrap subnet create public-subnet --ip-version 4 --network public --subnet-range 172.24.4.0/24 --no-dhcp -c gateway_ip -f value
2020-12-30 19:52:22.964 | +++ functions-common:oscwrap:2346 : return 0
2020-12-30 19:52:22.967 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1083 : local public_gateway_ipv4=172.24.4.1
2020-12-30 19:52:22.969 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1086 : oscwrap router set --external-gateway public router1
2020-12-30 19:52:27.312 |
2020-12-30 19:52:27.314 | ++ functions-common:oscwrap:2346 : return 0
2020-12-30 19:52:27.317 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1089 : local ipv4_cidr_len=24
2020-12-30 19:52:27.320 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1090 : sudo ip -6 addr add fd63:376f:9518:1::1/64 dev br-ex
2020-12-30 19:52:27.340 | ++ /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1091 : sudo ip addr add /24 dev br-ex
2020-12-30 19:52:27.349 | Error: any valid prefix is expected rather than "/24".
2020-12-30 19:52:27.355 | + /opt/stack/manila/devstack/plugin.sh:setup_ipv6:1 : exit_trap
2020-12-30 19:52:27.359 | + ./stack.sh:exit_trap:491 : local r=1

Changed in manila:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Fixed here: https://review.opendev.org/c/openstack/manila/+/769930 (Uses local variable with ipv4 gateway config)

Changed in manila:
milestone: none → wallaby-2
status: Triaged → Fix Released
Revision history for this message
Vida Haririan (vhariria) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 12.0.0.0rc1

This issue was fixed in the openstack/manila 12.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.