]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Enable Guru Meditation Reports for other refarch agents
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 17 Dec 2015 13:38:08 +0000 (14:38 +0100)
committerIhar Hrachyshka <ihrachys@redhat.com>
Fri, 18 Dec 2015 22:04:56 +0000 (22:04 +0000)
commit60a40ffccaeece0e228edbca139c6f7908b66ceb
treee63d6e9982116fca27e0bfe9e127c21c075ef323
parentab8adcf69380d1042c3440fe40b8a886fb855f45
Enable Guru Meditation Reports for other refarch agents

OVS agent already supports GMR, but LinuxBridge and SR-IOV agents don't.
To enable them for those agents, we should move their main() entry
points under neutron/cmd/, so that __init__.py code that initializes
them is triggered on their invocation.

Since we put their entrypoints under neutron/cmd/eventlet/, there is now
also no need to explicitly monkey patch stdlib for eventlet in the
agents code (neutron/cmd/eventlet/__init__.py already does it for us).
With that, there is no more code in the tree that directly patches
stdlib except neutron/cmd/eventlet/__init__.py.

Also removed a way to execute agent modules as scripts since it's not a
supported way to invoke them (instead, stevedore generated console
scripts should always be used).

Change-Id: I9b823d07a41b575334e52065eed7e6be2741e79d
Implements: blueprint guru-meditation-report
neutron/cmd/eventlet/plugins/linuxbridge_neutron_agent.py [new file with mode: 0644]
neutron/cmd/eventlet/plugins/sriov_nic_neutron_agent.py [new file with mode: 0644]
neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/ml2/drivers/mech_sriov/agent/sriov_nic_agent.py
setup.cfg