[R4.0 ocata ubuntu keystone_v3] Not able to fetch policy and ipam info from horizon

Bug #1723099 reported by aswani kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Manoj
R4.1
Fix Committed
Critical
Manoj
Trunk
Fix Committed
Critical
Manoj

Bug Description

R4.0.2 build 35 ubuntu16 ocata multinode

Not able to fetch and create policys from horizon
webUI and cli working fine

Horizon log
Thu Oct 12 15:09:36.837917 2017] [wsgi:error] [pid 125:tid 139915936655104] Login successful for user "admin", remote address 172.29.241.207.
[Thu Oct 12 15:09:47.862761 2017] [wsgi:error] [pid 124:tid 139915936655104] Project switch successful for user "admin".
[Thu Oct 12 15:10:01.731644 2017] [wsgi:error] [pid 127:tid 139915936655104] Recoverable error: 'Client' object has no attribute 'list_policys'
[Thu Oct 12 15:10:01.732068 2017] [wsgi:error] [pid 127:tid 139915936655104] Recoverable error: 'Client' object has no attribute 'list_ipams'

seeing below trace in neutron log

2017-10-12 12:16:04.807 7 WARNING oslo.service.loopingcall [-] Function 'neutron.agent.metadata.agent.UnixDomainMetadataProxy._report_state' run outlasted interval by 30.01 sec
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent [-] Failed reporting state!
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent Traceback (most recent call last):
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/metadata/agent.py", line 262, in _report_state
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent use_call=self.agent_state.get('start_flag'))
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/rpc.py", line 87, in report_state
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent return method(context, 'report_state', **kwargs)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 169, in call
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent retry=self.retry)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 97, in _send
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent timeout=timeout, retry=retry)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent retry=retry)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 447, in _send
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent result = self._waiter.wait(msg_id, timeout)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 339, in wait
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent message = self.waiters.get(msg_id, timeout=timeout)
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 238, in get
2017-10-12 12:17:04.810 7 ERROR neutron.agent.metadata.agent 'to message ID %s' % msg_id)

Tags: neutron ui
tags: added: neutron ui
Rudra Rugge (rrugge)
Changed in juniperopenstack:
importance: Undecided → Critical
Revision history for this message
Manoj (manojgn) wrote :

We are seeing following errors while accessing horizon networking page.

[Thu Oct 12 17:22:13.772069 2017] [wsgi:error] [pid 19:tid 140314017408768] Recoverable error: 'Client' object has no attribute 'list_ipams'

On further analyzing we found that list_ipams definition is missing in /usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py

In build 32 this used to work. I also see that we had a custom package for neutron client earlier

ii python-neutronclient 1:6.1.0-0ubuntu2~cloud0.1contrail all client API library for Neutron - Python 2.7

but I don’t see that in build 35

ii python-neutronclient 1:6.1.0-0ubuntu3~cloud0 all client API library for Neutron - Python 2.7

Is something missing here. Can someone take a look?

Revision history for this message
Sachin Bansal (sbansal) wrote :

Please try with contrail provided neutron plugin.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36608
Submitter: Manoj (<email address hidden>)

Revision history for this message
Manoj (manojgn) wrote :

From: Nagendra Maynattamai <email address hidden>
Date: Monday, November 6, 2017 at 11:20 PM
To: Manoj Naik <email address hidden>
Cc: Anish Mehta <email address hidden>, Naga Kiran K Y S <email address hidden>, Mithun Mistry <email address hidden>, Vinay Vithal Mahuli <email address hidden>, Biswajit Mandal <email address hidden>, Sachin Bansal <email address hidden>
Subject: Re: 4.0.2 build 35 - Missing definitions in neutron client causing errors in horizon

Manoj,
We noticed this issue in other contrail packages and tracking at https://bugs.launchpad.net/juniperopenstack/+bug/1729460
Ram is adding a fix to use contrail mirrors instead of upstream which can resolve your issue as well.

https://review.opencontrail.org/37137

So lets keep your review on hold.

Regards,
Nagendra Prasath

Revision history for this message
Manoj (manojgn) wrote :

Manually moving to Fix committed as per above comment this issue should be fixed by the same.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.