]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure config directory created before updating leases
authorMiguel Angel Ajo <mangelajo@redhat.com>
Mon, 5 Jan 2015 12:34:53 +0000 (12:34 +0000)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Mon, 12 Jan 2015 11:20:46 +0000 (11:20 +0000)
commit057e540087150d57a2e628b5f08dcdaa8b43a307
tree2e535aa3dc2db07367cd3746a3f53acad769615a
parentb88f9df7339a576fbcdf481225bfc644a2a13b2f
Ensure config directory created before updating leases

Under high load conditions dhcp-agent could try to start the
dhcp local process via reload_allocations. But it will fail since
the dhcp config directory for the specific network is not
created yet.

We ensure its creation with this patch.

Closes-Bug: 1407618

Change-Id: Ib37651f7f802debd472ab292b148c2a2496063a3
neutron/agent/linux/dhcp.py
neutron/tests/unit/midonet/test_midonet_driver.py
neutron/tests/unit/test_linux_dhcp.py