11331 Commits

Author SHA1 Message Date
Vishvananda Ishaya
36f6da47b0 Allows non-admin users to use simple scheduler
Fixes bug 885955

Change-Id: I88be04cbc55e272162328a33656fc5d6e1831c32
2011-11-03 20:06:12 -07:00
Jenkins
7c5fa147ea Merge "Don't update database before resize" 2011-11-04 01:54:21 +00:00
Jenkins
15b2e713d5 Merge "fix bug 816630" 2011-11-03 20:32:31 +00:00
Jenkins
03b366d434 Merge "Gracefully handle Xen resize failure" 2011-11-03 20:25:06 +00:00
Jenkins
fec3c19c49 Merge "Fixing immediate delete after boot on Libvirt" 2011-11-03 19:55:18 +00:00
Brian Waldon
ca6295e5dd Gracefully handle Xen resize failure
Fixes bug 885723

Change-Id: I8cd04a88f809f49141dc6aa5be7217811e0141e3
2011-11-03 15:33:07 -04:00
Jenkins
907f219b6a Merge "Adds documentation for Xen Storage Manager" 2011-11-03 19:01:55 +00:00
Gabe Westmaas
e45029ced1 Don't update database before resize
Fixes bug lp885815 by ensuring the scheduler doesn't update the database with destination host.  Compute manager now updates upon completion of resize.

Change-Id: I3f9ac664c8807e8523802e2485d316a731190764
2011-11-03 19:01:43 +00:00
Joe Gordon
a6a7e936fe fix bug 816630
Off by one error fixed
With test case

Change-Id: I5060c0a59949d69d6f859a01e7cf5fa8e0227d8a
2011-11-03 10:52:24 -07:00
Jenkins
005db2d7d4 Merge "Log original dropped exception when a new exception occurs" 2011-11-03 17:28:43 +00:00
Jenkins
05370d0aa8 Merge "exception.KeypairNotFound usage correction" 2011-11-03 17:13:57 +00:00
Jenkins
ee515c588c Merge "Bug #884534: nova-ajax-console-proxy crashes on shutdown" 2011-11-03 15:26:13 +00:00
Jenkins
82460d4a79 Merge "Enable admin access to EC2 API server" 2011-11-03 14:45:11 +00:00
Brian Waldon
4cda8f7068 Fixing immediate delete after boot on Libvirt
Addresses bug 884858

Change-Id: Ice05193fce7963dd9742b072cdb4b11882032abe
2011-11-03 09:37:59 -04:00
Brian Waldon
028f9ba81a exception.KeypairNotFound usage correction
Fixes bug 885462

Change-Id: I9f0df87a37395853e052b8300af777607ecbc5de
2011-11-03 09:23:38 -04:00
Jenkins
bed85c1368 Merge "Moves a-zone scheduling into simple scheduler" 2011-11-03 04:09:48 +00:00
Jenkins
286e39ee08 Merge "Speed up tests yet another 45 seconds" 2011-11-03 03:42:26 +00:00
Jenkins
4fb1eda581 Merge "Bug 884863: nova logs everything to syslog twice" 2011-11-03 03:07:56 +00:00
Jenkins
e3ac202c85 Merge "Xen Storage Manager Volume Driver" 2011-11-03 02:59:42 +00:00
Vishvananda Ishaya
7cca5a8ff7 Add local storage of context for logging
* adds nova/local.py:store for storing greenthread local data
 * saves a weak reference to the last context object created
 * uses the last context object if it exists for logging
 * Fixes bug 879582

Cc: stable-maintainers
Change-Id: Ic373556ce197f2e8e7d23c807a65b12111db96eb
2011-11-02 17:09:49 -07:00
Chris Behrens
39c261e683 Reserve memory/disk for dom0/host OS
Only when scheduling with distributed scheduler for now.

Adds flags:

flags.DEFINE_integer('reserved_host_disk_mb', 0,
        'Amount of disk in MB to reserve for host/dom0')
flags.DEFINE_integer('reserved_host_memory_mb', 512,
        'Amount of memory in MB to reserve for host/dom0')

Change-Id: Ib9b8a4deca241db399a8541ab21697ab08e29dd6
2011-11-02 15:41:54 -07:00
Jenkins
e1b4b282d0 Merge "Use fat32 for Windows, linux-swap for Linux swap partitions." 2011-11-02 21:48:42 +00:00
Johannes Erdfelt
6932d6b94f Speed up tests yet another 45 seconds
This changes the security groups extension tests to use the Controllers
directly, bypassing the slow wsgi setup process. This is part 2 of this
patch and contains the majority of the changes. The code required more
changes than the other test suite speedups because of how the previous
code was written and as a result, the diff is kind of long. As a bonus,
there is a net removal of almost 150 lines.

Change-Id: I7893cf16092ce58860607fd4ab2df10550fe3270
2011-11-02 20:55:59 +00:00
Jenkins
93109e6929 Merge "Updated rst docs to include threading model." 2011-11-02 19:44:58 +00:00
Jenkins
040139ec33 Merge "APIs should not wait on scheduler for builds in single zone deployment" 2011-11-02 19:36:39 +00:00
Jenkins
54dc193e41 Merge changes Ib2849f64,I54e61637
* changes:
  Drop extra XML tests and remove _json suffix from names
  Fix empty group_id to be considered invalid
2011-11-02 19:28:17 +00:00
Chris Behrens
057138540d APIs should not wait on scheduler for builds in single zone deployment
Fixes bug 885349

We can short circuit waiting on the scheduler if we're in a single zone
deployment and only building 1 instance.  This patch checks for that
case and creates the instance DB entry directly in the API (in
compute/api) without the call to the scheduler.

Change-Id: I98b27156167f057d11fbc56a9ff99d4e2ec423d3
2011-11-02 11:55:29 -07:00
Jenkins
830760b4c7 Merge "Too much information is returned from POST /servers" 2011-11-02 15:44:31 +00:00
Lorin Hochstein
743b36dcac Updated rst docs to include threading model.
Change-Id: Id12cd6584dfd22fe32097cfddf0247c0cc115ac0
2011-11-02 10:53:14 -04:00
Renuka Apte
ecd4e3a698 Adds documentation for Xen Storage Manager
Fixes bug 882212.

Change-Id: Ic57e2b13aad3a7e73017ee49fe32740eb579da50
2011-11-01 16:58:50 -07:00
renukaapte
931a0e2068 Xen Storage Manager Volume Driver
For details, please read the full specification here:
http://wiki.openstack.org/xenapi-sm-volume-driver

Change-Id: I17028a491d8ddee465bfa920907fe3bcaa911869
2011-11-01 16:16:09 -07:00
Jenkins
d3e0cfcc7f Merge "Fix KeyError when passed unknown format of time" 2011-11-01 21:57:43 +00:00
Johannes Erdfelt
e79b633e9e Drop extra XML tests and remove _json suffix from names
This is the first step in moving this part of the test suite to using
Controllers directly, bypassing wsgi. After these patches get merged,
tests should end up getting sped up by about 45 seconds.

This is the first in a set of smaller merges that should hopefully
make the original 1200 line patch easier to review.

Change-Id: Ib2849f64220bf2efa333cd739bafdd241348a4a4
2011-11-01 21:03:46 +00:00
Johannes Erdfelt
baf7916bf9 Fix empty group_id to be considered invalid
And fix the test suite to actually try an empty group id correctly

Change-Id: I54e61637b9b230d352e35b9b7964ab10c4eb9a25
2011-11-01 20:46:39 +00:00
Ewan Mellor
a807c57f5b Bug 884863: nova logs everything to syslog twice
Fix double-registration of the syslog handler.
NovaRootLogger.setup_from_flags is called twice from log.setup() -- once
through NovaRootLogger.__init__ and once through reset().  setup_from_flags
wasn't idempotent, so this resulted in the syslog handler being registered
twice.

Rather than fix the twisty-turny maze that is setup(), I've opted to make
setup_from_flags idempotent in this regard, by always unregistering the
syslog handler before doing anything else.

Change-Id: I59ad61751e1a19d2cbb73dc1deea9c708d4c5032
2011-11-01 11:54:59 -07:00
Jenkins
71bd02356b Merge changes I15dd5a5e,I0641f2c4
* changes:
  Support server uuids with security groups
  Support using server uuids when accessing consoles.
2011-11-01 18:24:48 +00:00
Josh Kearney
a506c89c28 Use fat32 for Windows, linux-swap for Linux swap partitions.
Change-Id: I06d7c67290ffb5ba957306306c2838355c36946f
2011-11-01 12:39:37 -05:00
Jenkins
44f9f331fe Merge "flatten distributed scheduler" 2011-11-01 17:09:59 +00:00
Johannes Erdfelt
af5ee6855b Fix KeyError when passed unknown format of time
Fixes bug 883253

ISO_FORMATS should be iso_formats

Change-Id: I3cd122176b72c84570d6b24315526540f8f860b9
2011-11-01 16:47:25 +00:00
Jenkins
79ae282de8 Merge "Fix 'begining' typo in system usage data bug 884307" 2011-11-01 16:15:47 +00:00
Jenkins
e9f1f3a0ef Merge "Fixes lp883279" 2011-11-01 15:06:08 +00:00
Jenkins
d4b0c0615f Merge "Fix lp:861160 -- newly created network has no uuid" 2011-11-01 14:51:14 +00:00
Sandy Walsh
d8e1b8f210 flatten distributed scheduler
This branch removes AbstractScheduler, BaseScheduler and LeastCostScheduler
and replaces it with DistributedScheduler. Now the points of extension are
handled via the --default_host_filters and --least_cost_functions only.

Also, greatly simplified the zone handling logic in DistibutedScheduler, mostly
by removing the cryptic dicts with helper classes.

Fixed up the Least Cost functions to better deal with multiple functions.
(In a followup patch I will removed the normalization that occurs as this will
be a problem).

Tests were mostly rewritten to support this new world order.

Debated removing JSONFilter since it's not accessible from the outside world,
but decided to keep it as there are discussions afoot on making scheduler
changes without having to redeploy code or restart services.

HostFilters once again get the all the host service capabilities, but now
via a HostInfo class that mostly contains read-only dicts of capabilities.

Virtual resource consumption is done in the DistributedScheduler class now.
The filters/weighing functions don't need to worry about this. Also, weighing
functions only have to return a single host and not worry about the number of
instances requested.

Change-Id: I92600a4a9c58b1add775c328a18d8f48c305861e
2011-11-01 04:28:34 -07:00
Ewan Mellor
826888de03 Bug #884534: nova-ajax-console-proxy crashes on shutdown
Close the correct connection, when shutting down.  self is not defined in
this context.

Change-Id: I0dc84a1c7de468a381f5765ccba589acbc8173dd
2011-10-31 17:33:47 -07:00
Ewan Mellor
44d9647e7f Bug 884527: ajax_console_proxy_port needs to be an integer
Fix declaration of ajax_console_proxy_port flag.

Change-Id: If949878a81339def2be5dba67ad1415180db4715
2011-10-31 17:26:13 -07:00
Brian Lamar
a225fa6acf Too much information is returned from POST /servers
Currently we're returning a lot of information in the POST /servers
response. This isn't according to spec and is misleading to other
projects that might try and implement the OpenStack API specification.

The example on docs.openstack.com for the v1.1 API says:

"Note that when creating a server only the server ID, its links, and
the admin password are guaranteed to be returned in the request.
Additional attributes may be retrieved by performing subsequent GETs
on the server."

We're returning too much right now and this patch addresses that.

Further patches should be submitted to refactor the 'view builder'
concept as using keyword arguments like this patch does is not ideal
and I recognize that.

(Patch Set 2) Merged with master + conflict fix
(Patch Set 3) Reverted non-nova-standard superclass call

Change-Id: If246e51dbf84f1db3d2905694235692ab027859d
2011-10-31 17:00:38 -04:00
Johannes Erdfelt
e7ac69a6ed Disable SQLite synchronous mode during tests
SQLite uses synchronous mode by default, which will synchronously write
data to disk. This will increase durability of data at the expense of
performance. The test suite does not need data to be durably written
to disk, so disabling synchronous mode results in a speeding up the
full test suite by about 20 seconds.

Change-Id: I5ca1ab1e8691e912d801fe1002dff752c82f3d5d
2011-10-31 20:34:16 +00:00
Jenkins
24298bb882 Merge "Creating uuid -> id mapping for S3 Image Service" 2011-10-31 18:47:56 +00:00
Jenkins
99bbd37037 Merge "Make sure networks returned from get_instance_nw_info have a label" 2011-10-31 18:39:18 +00:00
Brian Waldon
c13e7f79e5 Creating uuid -> id mapping for S3 Image Service
This creates a mapping of Glance uuids to preserve the
EC2-specific image id format. This adds a lazily generated
mapping layer that is stored in the database.

This also fixes bug 882658

Change-Id: I64bf6c7297b97f206b967781a28791aa3874ca81
2011-10-31 13:56:03 -04:00