~gandelman-a/ubuntu/precise/nova/UCA_2012.2.1

« back to all changes in this revision

Viewing changes to nova/api/openstack/compute/contrib/server_start_stop.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-05-24 13:12:53 UTC
  • mfrom: (1.1.55)
  • Revision ID: package-import@ubuntu.com-20120524131253-ommql08fg1en06ut
Tags: 2012.2~f1-0ubuntu1
* New upstream release.
* Prepare for quantal:
  - Dropped debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch
  - Dropped debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch
  - Dropped debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch
  - Dropped debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch
  - Dropped debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch
  - Dropped debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 
  - Dropped debian/patches/0001-fix-useexisting-deprecation-warnings.patch
* debian/control: Add python-keystone as a dependency. (LP: #907197)
* debian/patches/kombu_tests_timeout.patch: Refreshed.
* debian/nova.conf, debian/nova-common.postinst: Convert to new ini
  file configuration
* debian/patches/nova-manage_flagfile_location.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    def _start_server(self, req, id, body):
43
43
        """Start an instance. """
44
44
        context = req.environ['nova.context']
45
 
        LOG.debug(_("start instance %r"), id)
46
45
        instance = self._get_instance(context, id)
 
46
        LOG.debug(_('start instance'), instance=instance)
47
47
        self.compute_api.start(context, instance)
48
48
        return webob.Response(status_int=202)
49
49
 
51
51
    def _stop_server(self, req, id, body):
52
52
        """Stop an instance."""
53
53
        context = req.environ['nova.context']
54
 
        LOG.debug(_("stop instance %r"), id)
55
54
        instance = self._get_instance(context, id)
 
55
        LOG.debug(_('stop instance'), instance=instance)
56
56
        self.compute_api.stop(context, instance)
57
57
        return webob.Response(status_int=202)
58
58