NoneObject error when cinder-manage service list

Bug #1549563 reported by Lisa Li on 2016-02-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Critical
Lisa Li

Bug Description

In cinder master,
When running command 'cinder-manage servicel ist', it has following error:

2016-02-25 01:53:01.695 CRITICAL cinder [req-a66a6dac-ab4f-46d9-bbc2-e3a7f7c37d9e None None] AttributeError: 'NoneType' object has no attribute 'pop'

2016-02-25 01:53:01.695 TRACE cinder Traceback (most recent call last):
2016-02-25 01:53:01.695 TRACE cinder File "/usr/local/bin/cinder-manage", line 10, in <module>
2016-02-25 01:53:01.695 TRACE cinder sys.exit(main())
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/cmd/manage.py", line 575, in main
2016-02-25 01:53:01.695 TRACE cinder fn(*fn_args)
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/cmd/manage.py", line 422, in list
2016-02-25 01:53:01.695 TRACE cinder services = objects.ServiceList.get_all(ctxt)
2016-02-25 01:53:01.695 TRACE cinder File "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 181, in wrapper
2016-02-25 01:53:01.695 TRACE cinder result = fn(cls, context, *args, **kwargs)
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/objects/service.py", line 150, in get_all
2016-02-25 01:53:01.695 TRACE cinder services = db.service_get_all(context, filters)
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/db/api.py", line 111, in service_get_all
2016-02-25 01:53:01.695 TRACE cinder return IMPL.service_get_all(context, filters)
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/db/sqlalchemy/api.py", line 175, in wrapper
2016-02-25 01:53:01.695 TRACE cinder return f(*args, **kwargs)
2016-02-25 01:53:01.695 TRACE cinder File "/opt/stack/cinder/cinder/db/sqlalchemy/api.py", line 383, in service_get_all
2016-02-25 01:53:01.695 TRACE cinder host = filters.pop('host')
2016-02-25 01:53:01.695 TRACE cinder AttributeError: 'NoneType' object has no attribute 'pop'
2016-02-25 01:53:01.695 TRACE cinder

Lisa Li (lisali) wrote :

This bug is imported by the patch
https://review.openstack.org/#/c/263257/

Changed in cinder:
importance: Undecided → High

Fix proposed to branch: master
Review: https://review.openstack.org/284500

Changed in cinder:
status: New → In Progress
Michal Dulko (michal-dulko-f) wrote :

According to [1] this matches criteria for critical.

[1] https://wiki.openstack.org/wiki/BugTriage

Changed in cinder:
importance: High → Critical
milestone: none → mitaka-3

Reviewed: https://review.openstack.org/284500
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=bd1f6c91250148451aff6660211cf0296b91f5de
Submitter: Jenkins
Branch: master

commit bd1f6c91250148451aff6660211cf0296b91f5de
Author: lisali <email address hidden>
Date: Thu Feb 25 02:19:13 2016 +0000

    Fix NoneType error in service_get_all

    When calling service_get_all without filters,
    it raises NoneType error which is imported by
    this patch I21775106693176ca128dbfd9db0d43cfc58de00a.

    Change-Id: I473a9bbd2caea21c6fcd82b483bece1337ab6535
    Closes-Bug: 1549563

Changed in cinder:
status: In Progress → Fix Released

This issue was fixed in the openstack/cinder 8.0.0.0b3 development milestone.

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

Other bug subscribers