Rally error 'function' object has no attribute '_meta_init'

Bug #1710828 reported by Liping Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-libnetwork
Fix Released
Undecided
Unassigned

Bug Description

We notice the following errors in Rally test job:

2017-08-12 10:16:15.237012 | 2017-08-12 10:16:15.236 | 2017-08-12 10:16:15.234 7173 INFO rally.common.plugin.discover [-] Loading plugins from directories /home/jenkins/.rally/plugins/*
2017-08-12 10:16:15.238660 | 2017-08-12 10:16:15.238 | 2017-08-12 10:16:15.235 7173 INFO rally.common.plugin.discover [-] Loaded module with plugins: /home/jenkins/.rally/plugins/plugins/__init__.py
2017-08-12 10:16:15.249088 | 2017-08-12 10:16:15.248 | 2017-08-12 10:16:15.246 7173 WARNING rally.common.plugin.discover [-] Failed to load module with plugins /home/jenkins/.rally/plugins/plugins/scenarios/kuryr.py: 'function' object has no attribute '_meta_init'
2017-08-12 10:16:15.250474 | 2017-08-12 10:16:15.250 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover [-] 'function' object has no attribute '_meta_init': AttributeError: 'function' object has no attribute '_meta_init'
2017-08-12 10:16:15.252361 | 2017-08-12 10:16:15.251 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover Traceback (most recent call last):
2017-08-12 10:16:15.254420 | 2017-08-12 10:16:15.253 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover File "/opt/stack/new/rally/rally/common/plugin/discover.py", line 114, in load_plugins
2017-08-12 10:16:15.256346 | 2017-08-12 10:16:15.255 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover imp.load_module(plugin, fp, pathname, descr)
2017-08-12 10:16:15.258692 | 2017-08-12 10:16:15.258 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover File "/home/jenkins/.rally/plugins/plugins/scenarios/kuryr.py", line 23, in <module>
2017-08-12 10:16:15.260735 | 2017-08-12 10:16:15.260 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover class Kuryr(utils.KuryrScenario):
2017-08-12 10:16:15.262700 | 2017-08-12 10:16:15.262 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover File "/home/jenkins/.rally/plugins/plugins/scenarios/kuryr.py", line 32, in Kuryr
2017-08-12 10:16:15.264796 | 2017-08-12 10:16:15.264 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover def list_networks(self, network_list_args=None):
2017-08-12 10:16:15.266777 | 2017-08-12 10:16:15.266 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover File "/opt/stack/new/rally/rally/task/scenario.py", line 57, in wrapper
2017-08-12 10:16:15.268914 | 2017-08-12 10:16:15.268 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover cls = plugin.configure(name=name, platform=platform)(cls)
2017-08-12 10:16:15.270613 | 2017-08-12 10:16:15.270 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover File "/opt/stack/new/rally/rally/common/plugin/plugin.py", line 78, in decorator
2017-08-12 10:16:15.274402 | 2017-08-12 10:16:15.272 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover plugin._meta_init()
2017-08-12 10:16:15.276427 | 2017-08-12 10:16:15.275 | 2017-08-12 10:16:15.247 7173 ERROR rally.common.plugin.discover AttributeError: 'function' object has no attribute '_meta_init'

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

Reviewed: https://review.openstack.org/487476
Committed: https://git.openstack.org/cgit/openstack/kuryr-libnetwork/commit/?id=f0abb5a5798c51ab2efd20ca9a40bbfa84929e6e
Submitter: Jenkins
Branch: master

commit f0abb5a5798c51ab2efd20ca9a40bbfa84929e6e
Author: Liping Mao (limao) <email address hidden>
Date: Wed Jul 26 23:11:38 2017 +0800

    Fix Rally test case error

    Transform plain function into scenario plugin is deprecated.
    Now scenarios must be represented by classes, this patch
    change update all scenarios from functions to classes.

    Change-Id: I60f6fd175d67b72cd93bee5f4a70ee29cc062a70
    Closes-Bug: #1710828

Changed in kuryr-libnetwork:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr-libnetwork 0.2.0

This issue was fixed in the openstack/kuryr-libnetwork 0.2.0 release.

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.