Bug 1157599
Summary: | fresh neutron install fails due unknown database column 'id' | ||
---|---|---|---|
Product: | [Community] RDO | Reporter: | Matthias Runge <mrunge> |
Component: | openstack-neutron | Assignee: | Alan Pevec <apevec> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ofer Blaut <oblaut> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | apevec, chrisw, gchamoul, ihrachys, tshefi, whayutin, yeylon |
Target Milestone: | --- | ||
Target Release: | Juno | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-neutron-2014.2-10.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matthias Runge
2014-10-27 11:15:32 UTC
This was tested on f21 while RDO CI runs currently on f20 since f21 image was not stable yet NB database on f21 is mariadb-galera-server-10.0.13-6.fc21.x86_64 while f20 has 5.5 I can not reproduce this on f20. it seems to be a change in database table routerl3agentbindings. The following query fails: DELETE routerl3agentbindings FROM routerl3agentbindings LEFT OUTER JOIN (SELECT MIN(id) as id, router_id, l3_agent_id FROM routerl3agentbindings GROUP BY router_id, l3_agent_id) AS temp ON routerl3agentbindings.id = temp.id WHERE temp.id is NULL; on f20, f21, juno: MariaDB [neutron]> describe routerl3agentbindings; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | router_id | varchar(36) | YES | MUL | NULL | | | l3_agent_id | varchar(36) | YES | MUL | NULL | | +-------------+-------------+------+-----+---------+-------+ where Icehouse has an 'id' field: MariaDB [neutron]> describe routerl3agentbindings; +-------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+-----+---------+-------+ | id | varchar(36) | NO | PRI | NULL | | | router_id | varchar(36) | YES | MUL | NULL | | | l3_agent_id | varchar(36) | YES | MUL | NULL | | +-------------+-------------+------+-----+---------+-------+ 3 rows in set (0.00 sec) The question would be more: why f20 does not fail? on f21: python-sqlalchemy-0.9.8-1.fc21.x86_64 python-alembic-0.6.6-1.fc21.noarch neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade head reproduced the problem for me The problem since MySQL 5.6 forbids to alter column with FK constraint. I tested solution we drop both FKs (router_id, l3_agent_id), set new primary key for l3_agent_id and then re-create FKs and it works. I'll send patch soon. *** Bug 1160009 has been marked as a duplicate of this bug. *** *** Bug 1154702 has been marked as a duplicate of this bug. *** https://review.openstack.org/#/c/132273/ has been merged, please build new RDO Juno openstack-neutron which includes this fix. |