This is a known issue affecting VMware Integrated Openstack.
Workaround:
The database is in a corrupted state. Remove the subnet in question from the database.
- Make sure you have a valid, recent backup of the database. If not then take a backup before proceeding.
Note: See product documentation for your version.
- Log in to MariaDB
osctl exec -ti mariadb-server-0 -- mysql --defaults-file=/etc/mysql/admin_user.cnf
- Log into the neutron database:
use neutron;
- List the subnets table with NULL network_id:
select * from subnets where network_id is NULL or network_id='';
- Delete the entry with the NULL network_id and exit database:
delete from subnets where network_id is NULL or network_id='';
\q