]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix pid file location to avoid I->J changes that break metadata
authorMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 1 Oct 2014 13:16:19 +0000 (15:16 +0200)
committerarmando-migliaccio <armamig@gmail.com>
Wed, 1 Oct 2014 23:31:27 +0000 (16:31 -0700)
commit20dbbab61c1159a3dc6ef838ec65b04f7e9cf560
tree472aedf3f881a073c0d8412c535a695e50dc87ac
parent058aec2bf00c32e7c86f166ccf31b43326e551d1
Fix pid file location to avoid I->J changes that break metadata

Changes in commit 7f8ae630b87392193974dd9cb198c1165cdec93b moved
pid files handled by agent/linux/external_process.py from
$state_path/external/<uuid>.pid  to $state_path/external/<uuid>/pid
that breaks the neutron-ns-metadata-proxy respawn after upgrades
becase the l3 or dhcp agent can't find the old pid file so
they try to start a new neutron-ns-metadata-proxy which won't
succeed, because the old one is holding the port already.

Closes-Bug: #1376128
Change-Id: Id166ec8e508aaab8eea35d89d010a5a0b7fdba1f
neutron/agent/linux/utils.py
neutron/tests/unit/test_linux_external_process.py