Failed to create a loadbalancer policy

Bug #1744437 reported by TingtingYu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Undecided
Unassigned

Bug Description

Failed to create a loadbalancer policy with the error message "AttributeError: 'NeutronClient' object has no attribute 'loadbalancer_get'"

2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server [req-bd9617b2-3d0b-432c-8c60-e3bc8e8a29ca 41c2abb75e5345b98468f0fced312ef6 e6bcad1dc9284ef98fe7563b4e9a1ad2 - - -] Exception during message handling: AttributeError: 'NeutronClient' object has no attribute 'loadbalancer_get'
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 220, in dispatch
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 190, in _do_dispatch
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/lib/python2.7/site-packages/osprofiler/profiler.py", line 157, in wrapper
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/senlin/senlin/engine/service.py", line 71, in wrapped
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server return func(self, ctx, req_obj)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/senlin/senlin/engine/service.py", line 588, in policy_create
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server validate_props=True)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/senlin/senlin/engine/service.py", line 562, in _validate_policy
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server policy.validate(ctx, validate_props=validate_props)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server File "/usr/share/senlin_venv/senlin/senlin/policies/lb_policy.py", line 323, in validate
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server oc.loadbalancer_get(self.lb)
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server AttributeError: 'NeutronClient' object has no attribute 'loadbalancer_get'
2018-01-02 14:05:46.350 20592 ERROR oslo_messaging.rpc.server

Revision history for this message
Qiming Teng (tengqim) wrote :

Looks like this has been fixed?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/536027
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=35cd42c28710ae4fe3fb4552249b49e9757fbd88
Submitter: Zuul
Branch: master

commit 35cd42c28710ae4fe3fb4552249b49e9757fbd88
Author: TingtingYu <yu_qearl@163.com>
Date: Sat Jan 20 16:17:19 2018 +0800

    Fix the bug that can not create a loadbalancer policy with
    exists loadbalancer

    Failed to create a loadbalancer policy with the error
    message "AttributeError: 'NeutronClient' object has no
    attribute 'loadbalancer_get'".

    And then I found it's an error call in policies/base.py,
    it should call octavia() rather than network().

    Closes-Bug: #1744437
    Change-Id: I7aabfd0c339339ca5fdc6ff679700ca28b56bc4e

Changed in senlin:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin 5.0.0.0rc1

This issue was fixed in the openstack/senlin 5.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin 6.0.0.0b1

This issue was fixed in the openstack/senlin 6.0.0.0b1 development milestone.

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.