Bug in subnet create command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
Fix Released
|
High
|
Yuli |
Bug Description
Hello
In the latest version (devstack master branch) we have the following bug when creating the subnet:
File "/opt/stack/
dhcp_address = self._get_
File "/opt/stack/
for fixed_ip in port['fixed_ips']:
TypeError: string indices must be integers, not str
Running stack;sh failes because of this.
Here is a command that fails:
neutron --os-cloud devstack-admin --os-region RegionOne subnet-create --tenant-id e1cce8f30f5141d
Problem is with DHCP port.
When creating subnet _handle_ create_ subnet_ dhcp() function
returns DHCP address as a string and does not create a new port.
def _handle_ create_ subnet_ dhcp(self, context, subnet):
"""Create the dhcp configration for the subnet
Returns the dhcp server port if configured 'enable_ dhcp']: df.use_ centralized_ ipv6_DHCP:
return subnet[ 'allocation_ pools'] [0]['start' ]
"""
if subnet[
if cfg.CONF.
The last command returns IP in ipv4 format.