Fix the log level in scheduler

Bug #1481745 reported by zhongjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
zhongjun

Bug Description

Fix the log level in scheduler manage.
When I create a share, the scheduler cannot find a valid host. The log level is WARNING, and I cannot find the root reason quickly.
In other words, this log level should be error.

2015-08-05 06:18:49.269 DEBUG manila.openstack.common.scheduler.filters.capabilities_filter [req-587a02ae-3acc-4e93-891a-2675f4dc96a5 f41d6cab39974699aa9251be57946174 79c7119af2a446f3bf74480be695781f] host: 'ubuntu@generic1#StoragePool004', free_capacity_gb: 100, pools: None fails resource_type extra_specs requirements from (pid=21467) host_passes /opt/stack/manila/manila/openstack/common/scheduler/filters/capabilities_filter.py:69
2015-08-05 06:18:49.270 INFO manila.openstack.common.scheduler.base_filter [req-587a02ae-3acc-4e93-891a-2675f4dc96a5 f41d6cab39974699aa9251be57946174 79c7119af2a446f3bf74480be695781f] Filter CapabilitiesFilter returned 0 host(s)

2015-08-05 06:18:49.270 WARNING manila.scheduler.manager [req-587a02ae-3acc-4e93-891a-2675f4dc96a5 f41d6cab39974699aa9251be57946174 79c7119af2a446f3bf74480be695781f] Failed to schedule_create_share: No valid host was found. .

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

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

Changed in manila:
assignee: nobody → zhongjun (jun-zhongjun)
status: New → In Progress
Changed in manila:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/209733
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=fe7bb7fba85536bc817467429963705c1d882bc9
Submitter: Jenkins
Branch: master

commit fe7bb7fba85536bc817467429963705c1d882bc9
Author: zhongjun <email address hidden>
Date: Thu Aug 6 10:28:35 2015 +0800

    Fix the log level in scheduler manage

    Change the log level 'WARNING' to 'ERROR' in scheduler.manage.py.
    Because if the log level is WARNING, The root cause can not be
    found quickly when a new share creation fails in scheduler mode.
    In other words, this log level is more suitable for 'ERROR'.

    Change-Id: Ic6b5a7e84e9dd8c3381b2c3760c9dcc6d434f8ed
    Closes-Bug: #1481745

Changed in manila:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in manila:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: liberty-3 → 1.0.0
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.