[Openstack] Havana to Icehouse and OVS to ML2

Igor Cardoso igordcard at gmail.com
Sun Apr 20 20:24:59 UTC 2014


I decided to upgrade my Havana deployment to Icehouse right after the
official release so I could contribute on the documentation with the steps
necessary, including Neutron and going from the OVS to the ML2 neutron
plugin.

However, I'm still having problems due to the ML2 migration.

All nodes (1 hybrid Controller/Network and 1 Compute) are running up to
date Ubuntu 12.04.4 LTS.
Havana was working perfectly before (OVS with GRE).

Most important steps done so far:
- Updated everything to Icehouse;
- Ran all database migration commands (typical db sync/db_sync);
- Ran Neutron's own migration commands, in the following ways:

neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini stamp havana
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini upgrade icehouse
- Manually ran the ML2 migration script (which failed but then worked):
python -m neutron.db.migration.migrate_to_ml2 openvswitch
mysql://neutron:mypass@mycontroller/neutron

Here are the contents of the ml2_port_bindings table, right after I run the
ML2 migration script:

mysql> select * from ml2_port_bindings;

+--------------------------------------+---------+-----------+---------+----------+-------------+-------------+--------------------------------------+

| port_id                              | host    | vnic_type | profile |
vif_type | vif_details | driver      | segment
                             |

+--------------------------------------+---------+-----------+---------+----------+-------------+-------------+--------------------------------------+

| 2783bcf7-c4fd-4ac7-8f7a-15c3f29cf4cb | mycontroller |           |
        | ovs      |             | openvswitch |
c5ad781a-1e9d-4de8-9d8f-c00ecc1e4d4e |

| 46712caf-70de-4626-8f4a-32874d164dbd | mycontroller |           |
        | ovs      |             | openvswitch |
73cd007b-4d83-445b-86cd-d776a9a1eb24 |

| 537656cb-a467-4a85-a0c5-5125747e7d0c | mycompute |           |         |
ovs      |             | openvswitch | 73cd007b-4d83-445b-86cd-d776a9a1eb24
|

| 5cc39156-3ea2-441b-9baf-df2f2953b5fd | mycontroller |           |
        | ovs      |             | openvswitch |
73cd007b-4d83-445b-86cd-d776a9a1eb24 |

| 7f4244aa-acc9-49b4-9ce3-25a2dabe657f | mycontroller |           |
        | ovs      |             | openvswitch |
c5ad781a-1e9d-4de8-9d8f-c00ecc1e4d4e |

| a6b5fea0-97e1-49b8-9a8a-6dfd3f7ef46c | mycontroller |           |
        | ovs      |             | openvswitch |
cb6e7116-714c-4392-95be-4a5e942affa9 |

| f6f6a366-fe1c-44ba-b2cd-6a41a5ecd063 | mycompute |           |         |
ovs      |             | openvswitch | 73cd007b-4d83-445b-86cd-d776a9a1eb24
|
+--------------------------------------+---------+-----------+---------+----------+-------------+-------------+--------------------------------------+

But, if I restart the neutron services, it becomes:

mysql> select * from ml2_port_bindings;

+--------------------------------------+---------+-----------+---------+----------------+-------------+-------------+--------------------------------------+

| port_id                              | host    | vnic_type | profile |
vif_type       | vif_details | driver      | segment
                             |

+--------------------------------------+---------+-----------+---------+----------------+-------------+-------------+--------------------------------------+

| 2783bcf7-c4fd-4ac7-8f7a-15c3f29cf4cb | demeter |           |         |
ovs            |             | openvswitch |
c5ad781a-1e9d-4de8-9d8f-c00ecc1e4d4e |

| 46712caf-70de-4626-8f4a-32874d164dbd | demeter |           | {}      |
binding_failed |             | NULL        | NULL
                                |

| 537656cb-a467-4a85-a0c5-5125747e7d0c | richard |           |         |
ovs            |             | openvswitch |
73cd007b-4d83-445b-86cd-d776a9a1eb24 |

| 5cc39156-3ea2-441b-9baf-df2f2953b5fd | demeter |           |         |
ovs            |             | openvswitch |
73cd007b-4d83-445b-86cd-d776a9a1eb24 |

| 7f4244aa-acc9-49b4-9ce3-25a2dabe657f | demeter |           | {}      |
binding_failed |             | NULL        | NULL
                                |

| a6b5fea0-97e1-49b8-9a8a-6dfd3f7ef46c | demeter |           |         |
ovs            |             | openvswitch |
cb6e7116-714c-4392-95be-4a5e942affa9 |

| f6f6a366-fe1c-44ba-b2cd-6a41a5ecd063 | richard |           |         |
ovs            |             | openvswitch |
73cd007b-4d83-445b-86cd-d776a9a1eb24 |
+--------------------------------------+---------+-----------+---------+----------------+-------------+-------------+--------------------------------------+


Either way, at the Compute node, starting the nova-compute service yields:
(...)vif_type parameter must be present for this vif_driver
implementation(...)
And doesn't start.

Any ideas?

Thank you very much,

-- 
Igor Duarte Cardoso.
http://igordcard.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140420/2b1be244/attachment.html>


More information about the Openstack mailing list