~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/scheduler/zone.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short, Chuck Short, Soren Hansen
  • Date: 2011-04-08 10:49:10 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110408104910-syd12xtg27bdqbun
Tags: 2011.2~gamma1-0ubuntu1
[Chuck Short]
* New upstream release.
* debian/nova-doc.docs: Adjust directory to the right docs path.

[Soren Hansen]
* Refresh nova-manage-flags patch.
* Adjust call to ajaxterm to work with the packaged ajaxterm instead
  of the one we ship in the tarball.
* Remove all traces of the adminclient package. It moved to its own
  tarball. There are no known consumers, so this should not be a
  problem.
* Remove build-dependency on python-suds again.
* setup.py now takes care of installing the CA code, so yank those
  bits from debian/nova-common.install.
* setup.py now places api-paste.ini correctly, so stop working around
  it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        zone = _kwargs.get('availability_zone')
53
53
        hosts = self.hosts_up_with_zone(context, topic, zone)
54
54
        if not hosts:
55
 
            raise driver.NoValidHost(_("No hosts found"))
 
55
            raise driver.NoValidHost(_("Scheduler was unable to locate a host"
 
56
                                       " for this request. Is the appropriate"
 
57
                                       " service running?"))
 
58
 
56
59
        return hosts[int(random.random() * len(hosts))]