According to the pip freeze output, you have installed newer version of zun, not the rocky version, and you are using rocky version of kuryr libnetwork, which explained why you have this error. Would you look into this issue further? Let us know if anything we can help.

On Fri., Apr. 5, 2019, 4:27 a.m. Navdeep Uniyal <navdeep.uniyal@bristol.ac.uk> wrote:

Dear Hongbin,

Attached are the logs of both the commands.

Thank you,
Regards,

Navdeep

 

From: Hongbin Lu <hongbin034@gmail.com>
Sent: 05 April 2019 01:56
To: Navdeep Uniyal <navdeep.uniyal@bristol.ac.uk>
Cc: openstack@lists.openstack.org
Subject: Re: [Zun] Address already belongs to a bound Neutron port Error

 

Navdeep,

 

Would you provide the following as well:

 

* The output of "pip freeze"

* The log of zun-compute (sudo journalctl -u zun-compute > zun-compute.log) 

 

Best regards,

Hongbin

 

On Thu, Apr 4, 2019 at 9:21 AM Navdeep Uniyal <navdeep.uniyal@bristol.ac.uk> wrote:

Hi Hongbin,

Thank you for your reply.
Following are the log errors I am getting:

LogFile:
2019-04-04 12:59:04.718 42324 INFO werkzeug [-] 127.0.0.1 - - [04/Apr/2019 12:59:04] "POST /IpamDriver.RequestAddress HTTP/1.1" 500 -

2019-04-04 13:16:34.652 42324 DEBUG kuryr_libnetwork.controllers [-] Received JSON data {u'Address': u'10.68.48.137', u'Options': {u'com.docker.network.endpoint.macaddress': u'fa:16:3e:20:9d:2c'}, u'PoolID': u'b130d090-9b7f-4c68-9f45-775a18bbb649'} for /IpamDriver.RequestAddress ipam_request_address /usr/local/lib/python2.7/dist-packages/kuryr_libnetwork/controllers.py:1646

2019-04-04 13:16:35.113 42324 ERROR kuryr_libnetwork.utils [-] Unexpected error happened: Requested ip address {'subnet_id': u'e684a17b-6b17-4ea2-bbc9-752a21304dcc', 'ip_address': u'10.68.48.137'} already belongs to a bound Neutron port: 045ff1a5-d20c-4299-9ffd-9c676af398b0: AddressInUseException: Requested ip address {'subnet_id': u'e684a17b-6b17-4ea2-bbc9-752a21304dcc', 'ip_address': u'10.68.48.137'} already belongs to a bound Neutron port: 045ff1a5-d20c-4299-9ffd-9c676af398b0

 

Journald:

Apr 04 13:16:35 bedminster kuryr-server[42324]: Traceback (most recent call last):

Apr 04 13:16:35 bedminster kuryr-server[42324]:   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request

Apr 04 13:16:35 bedminster kuryr-server[42324]:     rv = self.dispatch_request()

Apr 04 13:16:35 bedminster kuryr-server[42324]:   File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request

Apr 04 13:16:35 bedminster kuryr-server[42324]:     return self.view_functions[rule.endpoint](**req.view_args)

Apr 04 13:16:35 bedminster kuryr-server[42324]:   File "/usr/local/lib/python2.7/dist-packages/kuryr_libnetwork/controllers.py", line 1740, in ipam_request_address

Apr 04 13:16:35 bedminster kuryr-server[42324]:     existing_port, fixed_ip, req_mac_address)

Apr 04 13:16:35 bedminster kuryr-server[42324]:   File "/usr/local/lib/python2.7/dist-packages/kuryr_libnetwork/controllers.py", line 542, in _update_existing_port

Apr 04 13:16:35 bedminster kuryr-server[42324]:     existing_port['id']))

Apr 04 13:16:35 bedminster kuryr-server[42324]: AddressInUseException: Requested ip address {'subnet_id': u'e684a17b-6b17-4ea2-bbc9-752a21304dcc', 'ip_address': u'10.68.48.137'} already belongs to a bound Neutron port: 045ff1a5-d20c-4299-9ffd-9c676af398b0

 

 

Kind Regards,

Navdeep