Re: [openstack-dev] [ovs-discuss] [Neutron][networking-ovn] OVN + Openstack Issues

2017-12-13 Thread Lucas Alvares Gomes
Hi,

> Hi Martin,
>
> I met exactly the same issue with yours, could you please show some details
> about security groups deleting, resyncing and recreating? cause I cleared
> DEFAULT security group and add 'ovn-sync-mode=repair' in config file then
> restarted the neutron-server, but didn't work out.
>

I think we are missing the original context here. Where was this issue
reported, mind pointing it out for us please ?

Cheers,
Lucas

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [ovs-discuss] [Neutron][networking-ovn] OVN + Openstack Issues

2017-12-12 Thread Sing Chia
Hi Martin,

I met exactly the same issue with yours, could you please show some details
about security groups deleting, resyncing and recreating? cause I cleared
DEFAULT security group and add 'ovn-sync-mode=repair' in config file then
restarted the neutron-server, but didn't work out.

best regards
   sing chia
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [ovs-discuss] [Neutron][networking-ovn] OVN + Openstack Issues

2017-01-21 Thread Martin Mailand
Hi Numan,

the security groups were the issue, I deleted them in Openstack, resynced and 
recreated them.

Thanks for your help.

best regards,
 martin

> Am 21.01.2017 um 18:17 schrieb Numan Siddique :
> 
> ​Looks like the Northbound db is not in sync with neutron db.
> Can you run the command "ovn-nbctl list Address_Set" and see if there is a 
> row for the each of the security groups ?
> 
> If you see the ovn northbound db is not in sync, you can sync it by either 
> running the neutron-ovn-db-sync util or by restarting the neutron-server 
> after setting ovn-sync-mode=repair in /etc/neutron/plugins/ml2/ml2_conf.ini


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [ovs-discuss] [Neutron][networking-ovn] OVN + Openstack Issues

2017-01-21 Thread Numan Siddique
Adding openstack-dev mailing list as it is more relevant.

Please see inline for some comments.
​​

On Sat, Jan 21, 2017 at 9:12 PM, Martin Mailand  wrote:

> Hi,
>
> I tried to use OVN with Openstack, but I ran into an Issue.
>
> I use the OVN packages from the Canonical Cloud archive:
>
> On the controller node:
> ii  ovn-central  2.6.0-0ubuntu2~cloud0
>amd64OVN central components
> ii  ovn-common   2.6.0-0ubuntu2~cloud0
>amd64OVN common components
> ii  ovn-host 2.6.0-0ubuntu2~cloud0
>amd64OVN host components
> ii  python-networking-ovn1.0.1.dev4.201610261100.xenial-0ubuntu1
> all  OpenStack virtual network service - OVN driver
>
> On the compute node:
>
> ii  ovn-common   2.6.0-0ubuntu2~cloud0
>   amd64OVN common components
> ii  ovn-host 2.6.0-0ubuntu2~cloud0
>   amd64OVN host components
>
> If I create a network in Openstack I can see it in the norhd.
>
> ovn-nbctl show
> switch 5cd02e8c-aa16-4246-932e-c1455958daa6
> (neutron-83a25bd6-494b-4d9d-ba74-e824a8efb826)
>
> And I can see my compute nodes
>
> ovn-sbctl show
> Chassis "4a191104-a3b6-4bde-82ee-1a09ea1b9f17"
> hostname: "compute03"
> Encap vxlan
> ip: "172.16.44.130"
> options: {csum="true"}
> Encap geneve
> ip: "172.16.44.130"
> options: {csum="true"}
> Chassis "b0623e67-a2cf-4802-9343-807383e3eb94"
> hostname: "compute01"
> Encap geneve
> ip: "172.16.44.17"
> options: {csum="true"}
> Encap vxlan
> ip: "172.16.44.17"
> options: {csum="true“}
>
>
> But if I try to start a VM I get an error in the neutron-server log, could
> you please advise me
> where my mistake is?
>
> Best regards,
> martin
>
> log:
>
> 2017-01-21 15:33:42.239 10877 ERROR neutron.agent.ovsdb.impl_idl
> [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad
> afc5c0f383314e74bdd6bf1e3afbf509 - - -] Traceback (most recent call last):
>   File 
> "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/native/connection.py",
> line 115, in run
> txn.results.put(txn.do_commit())
>   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py",
> line 105, in do_commit
> ctx.reraise = False
>   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line
> 220, in __exit__
> self.force_reraise()
>   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line
> 196, in force_reraise
> six.reraise(self.type_, self.value, self.tb)
>   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_idl.py",
> line 100, in do_commit
> command.run_idl(txn)
>   File "/usr/lib/python2.7/dist-packages/networking_ovn/ovsdb/commands.py",
> line 712, in run_idl
> raise RuntimeError(msg)
> RuntimeError: Address set as_ip4_c67f0b5b_ce6f_4a82_aa48_803f00b15300
> does not exist. Can't update addresses
>
>
​Looks like the Northbound db is not in sync with neutron db.
Can you run the command "ovn-nbctl list Address_Set" and see if there is a
row for the each of the security groups ?

If you see the ovn northbound db is not in sync, you can sync it by either
running the neutron-ovn-db-sync util or by restarting the neutron-server
after setting ovn-sync-mode=repair in /etc/neutron/plugins/ml2/ml2_conf.ini

Do you see the same issue with devstack ?

Thanks
Numan


​


> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers
> [req-fee0a2c8-b205-4e1e-8756-026880fe84cd 44ea98f941ce412d999b3c3dd7fe1dad
> afc5c0f383314e74bdd6bf1e3afbf509 - - -] Mechanism driver 'ovn' failed in
> create_port_postcommit
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers Traceback
> (most recent call last):
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers   File
> "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line
> 433, in _call_on_drivers
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers
>  getattr(driver.obj, method_name)(context)
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers   File
> "/usr/lib/python2.7/dist-packages/networking_ovn/ml2/mech_driver.py",
> line 556, in create_port_postcommit
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers
>  self.create_port_in_ovn(port, ovn_port_info)
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers   File
> "/usr/lib/python2.7/dist-packages/networking_ovn/ml2/mech_driver.py",
> line 657, in create_port_in_ovn
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers
>  if_exists=False))
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers   File
> "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/api.py", line 76,
> in __exit__
> 2017-01-21 15:33:42.240 10877 ERROR neutron.plugins.ml2.managers
>  self.result = self.commit()
>