~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/api/ec2/__init__.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short, Tyler Hicks
  • Date: 2012-04-02 11:17:33 UTC
  • mfrom: (1.1.51)
  • Revision ID: package-import@ubuntu.com-20120402111733-n8cu22g0adwj1h1e
Tags: 2012.1~rc2-0ubuntu1
[ Adam Gandelman ]
* debian/control: Remove unncessary nova-cert dependency from nova-api.
  (LP: #965356)
* debian/nova-common.postinst: Clean up spacing, remove redundant chown,
  set blanket 0700 nova.nova permissions on /etc/nova/
* debian/nova-compute-{kvm, lxc, uml, xen}.postinst: Set proper permissions
  on /etc/nova/nova-compute.conf (LP: #861459)
* debian/nova-common.postinst:  Ensure default nova.sqlite database is not
  world-readable.
* debian/{rules, nova-common.{install, postinst}}: Install api-paste.ini 0600
  with nova-common (in prepartion for proper nova-api-* package separation)
* debian/{nova-common.nova-manage.logrotate,
  nova-network.nova-dhcpbridge.logrotate, rules}: Add lograte files,
  override_dh_installlogrotate. (LP: #942646)
* Add manpage stubs for nova-api-ec2, nova-api-metadata,
  nova-api-os-{volume, compute}, nova-rootwrap. Use sphinx built manpage
  for nova-manage (nova-common.manpages)
* debian/nova-compute-{kvm, xen, uml, qemu}.postinst: Remove calls to
  adduser since this is already handled from nova-compute.postsinst in a
  vendor neutral way.  Silences lintian errors regarding adduser dependency

[ Chuck Short ]
* New upstream version.
* debian/patches/libvirt-use-console-pipe.patch: Dropped.
* debian/patches/nova-console-monitor.patch: Add console-monitor
  option.
* debian/nova.conf: Enable use_console_monitor
* debian/patches/fix-ubuntu-tests.patch: Fix nova testsuite.
* debian/rules: fail package build if testsuite fails.
* debian/patches/validate_server_name_length.patch: Dropped no longer
  needed.
* debian/patches/fix-docs-build-without-network.patch: Some docs need
  a network connection in order to build. Disable fetching docs from
  the internet.
* debian/patches/0001-fix-useexisting-deprecation-warnings.patch:
  Remove deprecated warnings with sqlalchemy.

[ Tyler Hicks ]
* SECURITY UPDATE: Denial of service via resource exhaustion in nova-api
  (LP: #968411)
  - debian/patches/validate_server_name_length.patch: Limit server names
    to a maximum of 255 characters to prevent nova-api log files from
    exhausting storage space. Based on upstream patch.
  - CVE-2012-1585

Show diffs side-by-side

added added

removed removed

Lines of Context:
629
629
            LOG.debug(_('InvalidRequest raised: %s'), unicode(ex),
630
630
                     context=context)
631
631
            return ec2_error(req, request_id, type(ex).__name__, unicode(ex))
 
632
        except exception.QuotaError as ex:
 
633
            LOG.debug(_('QuotaError raised: %s'), unicode(ex),
 
634
                      context=context)
 
635
            return ec2_error(req, request_id, type(ex).__name__, unicode(ex))
632
636
        except exception.InvalidInstanceIDMalformed as ex:
633
 
            LOG.debug(_('ValidatorError raised: %s'), unicode(ex),
634
 
                     context=context)
635
 
            #EC2 Compatibility
636
 
            return self._error(req, context, "InvalidInstanceID.Malformed",
637
 
                unicode(ex))
 
637
            LOG.debug(_('Invalid id: bogus (expecting "i-..."): %s'),
 
638
                        unicode(ex), context=context)
 
639
            return ec2_error(req, request_id, type(ex).__name__, unicode(ex))
638
640
        except Exception as ex:
639
641
            env = req.environ.copy()
640
642
            for k in env.keys():