← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1317008] Re: notification is not generated for neutron dhcp-agent-network-add and dhcp-agent-network-remove commands

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => juno-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1317008

Title:
  notification is not generated for neutron dhcp-agent-network-add and
  dhcp-agent-network-remove commands

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  notification_driver is configured in neutron.conf as shown below.

  notification_driver = neutron.openstack.common.notifier.log_notifier

  default_notification_level = INFO

  notification_topics = notifications

  When an administrator wants to associate a particular network to a
  given dhcp agent, then he/she has to execute the below command.

  neutron dhcp-agent-network-add

  as shown in the below example.

  root@preetictl:~# neutron agent-list
  +--------------------------------------+--------------------+----------+-------+----------------+
  | id                                   | agent_type         | host     | alive | admin_state_up |
  +--------------------------------------+--------------------+----------+-------+----------------+
  | 1d7de23f-318b-42ce-af0b-4bf359bf43ba | L3 agent           | preetinn | :-)   | True           |
  | 3e6e04f3-9dd2-412a-a5e4-cc7d1fb3ef5a | DHCP agent         | preetinn | :-)   | True           |
  | 7c771b8c-d3ed-47f5-a211-f7106590d021 | Open vSwitch agent | preetinn | :-)   | True           |
  | 9c136918-6dc7-4ded-b3bc-e5ddf5d8c8b3 | Metering agent     | preetinn | :-)   | True           |
  | e5032227-7bf0-4be3-9abe-b97e5f9872ba | Open vSwitch agent | preeticn | :-)   | True           |
  | ef17dd6d-99cd-4f23-84d6-e051e3769592 | Metadata agent     | preetinn | :-)   | True           |
  +--------------------------------------+--------------------+----------+-------+----------------+

  root@preetictl:~# neutron net-list
  +--------------------------------------+----------------+----------------------------------------------------+
  | id                                   | name           | subnets                                            |
  +--------------------------------------+----------------+----------------------------------------------------+
  | ab83913b-a66d-428d-96cd-269d7de1d3f3 | net1           |                                                    |
  +--------------------------------------+----------------+----------------------------------------------------+

  
  root@preetictl:~# neutron dhcp-agent-network-add 3e6e04f3-9dd2-412a-a5e4-cc7d1fb3ef5a ab83913b-a66d-428d-96cd-269d7de1d3f3
  Added network ab83913b-a66d-428d-96cd-269d7de1d3f3 to DHCP agent

  
  After this operation is successful, a notification is NOT generated although the notification_driver is configured.

  Similarly, neutron dhcp-agent-network-remove also does not generate
  notification.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1317008/+subscriptions


References