~zulcss/ubuntu/precise/quantum/trunk

« back to all changes in this revision

Viewing changes to quantum/db/dhcp_rpc_base.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short, Soren Hansen
  • Date: 2012-09-07 18:50:09 UTC
  • mfrom: (2.1.11)
  • Revision ID: package-import@ubuntu.com-20120907185009-n6lh5tkcci19jz1h
Tags: 2012.2~rc1~20120907.1154-0ubuntu1
[ Adam Gandelman ]
* debian/control: Add missing python-keystone dependency.
* wrap-and-sort.

[ Chuck Short ]
* debian/rules:
  - Run testsuite on build.
  - Use get-orig-source.
  - Add python-amqplib, python-anyjson, python-httplib2, python-iso8601,
    python-kombu, python-lxml, python-netadr, python-pyudev to build depends
    and run time deps.
  - Add python-mock, python-mox, and python-unitest2 to build deps.
  - Add adduser as a dep to quantum-common.
* debian/control: Bump standards version to 3.9.3
* debian/quantum-common.install: Add missing configuration files.
  (LP: #988999)
* debian/quantum-plugin-linuxbridge.install: Make isntallable.
* Add manpages: gratitously ripped from debian.
* Fix up lintian warnings. (LP: #1025203), (LP: #1021921)
* Add metaplugin plugin.
* debian/patches/fix-namespace.patch: Dropped it was causing
  python namespace issues.
  (LP: #1045064)
* debian/*.upstart:
  - Specify configuration file and log directory.
  - Start on the right transition.
* debian/rules:
  - Allow to disable testsuite.
  - Dont fail if the testsuite fails.
* debian/patches/fix-quantum-configuration.patch: Fix configuration files.
* Add packaging for quantum-plugin-l3 and quantum-plugin-l3-agent
* Add packaging for quantum-plugin-dhcp-agent and quantum-plugin-dchp-agent
* debian/patches/fix-ubuntu-tests.patch: Fix testsuite failures.

[ Soren Hansen ]
* Update debian/watch to account for symbolically named tarballs and
  use newer URL.
* Add python-configobj as a build and run time dependency. Recently added
  tests need it, and the Cisco plugin has needed it for a while.
* Fix Launchpad URLs in debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
        if retval is None:
108
108
            # No previous port exists, so create a new one.
109
 
            LOG.debug('DHCP port %s for %s created', device_id, network_id,
110
 
                      host)
 
109
            LOG.debug('DHCP port %s on network %s does not exist on %s',
 
110
                      device_id, network_id, host)
111
111
 
112
112
            network = plugin.get_network(context, network_id)
113
113
 
171
171
                    del fixed_ips[i]
172
172
                    break
173
173
            plugin.update_port(context, port['id'], dict(port=port))
 
174
 
 
175
    def update_lease_expiration(self, context, **kwargs):
 
176
        """Release the fixed_ip associated the subnet on a port."""
 
177
        host = kwargs.get('host')
 
178
        network_id = kwargs.get('network_id')
 
179
        ip_address = kwargs.get('ip_address')
 
180
        lease_remaining = kwargs.get('lease_remaining')
 
181
 
 
182
        LOG.debug('Updating lease expiration for %s on network %s from %s.',
 
183
                  ip_address, network_id, host)
 
184
 
 
185
        context = augment_context(context)
 
186
        plugin = manager.QuantumManager.get_plugin()
 
187
 
 
188
        plugin.update_fixed_ip_lease_expiration(context, network_id,
 
189
                                                ip_address, lease_remaining)