]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove the warning for Scheduling Network
authorchen-li <chen.li@intel.com>
Tue, 12 Nov 2013 01:17:17 +0000 (09:17 +0800)
committerchen-li <chen.li@intel.com>
Tue, 12 Nov 2013 07:56:30 +0000 (15:56 +0800)
commit3ef877fc5a669659c2fa4bb2fc416d4a473c6ac5
tree242e379d208299ed3ebff4d7ddc868840cc9c12c
parentba52f489b6b057a5a0eb9b63ba3e855037591553
Remove the warning for Scheduling Network

when a new port is created, the schedule_network in agentschedulers_db is called.
Since this network may already be hosted, it will directly return None in dhcp_agent_scheduler,
which cause the agentschedulers_db.schedule_network log a warning message.

This is really annoying and making users confused.
And, real warnings are already addressed in the real scheduler function.
which is neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler.schedule by default.

Change-Id: I11bdbe47c2cc0fc45fb143970fb6762678bc27e5
Closes-Bug: #1192786
neutron/db/agentschedulers_db.py