Commit Graph

12730 Commits

Author SHA1 Message Date
Jenkins 52fbabc8af Merge "run_tests.sh fix" 2012-02-17 17:31:51 +00:00
Jenkins ea653adbac Merge "Fix API extensions documentation, bug 931516." 2012-02-17 17:21:33 +00:00
Jenkins 6769652801 Merge "Create a flag for force_to_raw for images" 2012-02-17 17:10:58 +00:00
Jenkins 8456f265b2 Merge "fixed bug 928749" 2012-02-17 17:00:04 +00:00
Jenkins 196da29bb2 Merge "Syncs vncviewer mouse cursor when connected to Windows VMs" 2012-02-17 16:49:31 +00:00
Jenkins e45b8bf0a4 Merge "removed unused method and added another test" 2012-02-17 16:36:35 +00:00
Jenkins a53f057313 Merge "Remove all uniqueness constraints in migration 76" 2012-02-17 16:26:20 +00:00
Jenkins 870b954ec2 Merge "Resolve bug/927714 -- get instance names from db." 2012-02-17 16:16:10 +00:00
Armando Migliaccio 57da3b12b1 bug 933620: Error during ComputeManager._poll_bandwidth_usage
add missing session to model query.

Change-Id: I3cb8ebcff1fd286ef198f33514d4ce3d884c5921
2012-02-17 11:44:27 +00:00
Jenkins 5073c4506e Merge "077_convert_to_utf8: Convert *all* FK tables early" 2012-02-17 06:13:31 +00:00
Jenkins ba930e035b Merge "Completes fix for LP #928910 - libvirt performance" 2012-02-17 04:10:17 +00:00
Adam Gandelman 516582b62d 077_convert_to_utf8: Convert *all* FK tables early
The original migration only takes care of migrating the instances
table before all others.  It turns out, when using MySQL with InnoDB
by default, there are many other tables with FKs that need to be converted
early on as well (see bug description for schema diagram).

Fixes bug 931602

Update: Convert all tables in a predefined order from within the same
execution.

Update: Avoid hard-coding database, fixes bug 930863

Update: Fix pep8 spacing

Change-Id: Ideb619eecef2ad067bda5c26612f761674dee924
2012-02-16 17:38:59 -08:00
Justin Santa Barbara 31d1a42376 Normalize odd date formats
The 'updated' value on the extension seems to be returned (in the XML) unaltered.
Some of the date values were 'untraditional', and this broke XML parsing.

Change-Id: I2803e19207af85207b4eca71e1e8b0d5bdcfa4b6
2012-02-16 16:40:42 -08:00
Brian Waldon e35cc0baed Remove all uniqueness constraints in migration 76
Fixes bug 932867

Change-Id: I5b72af7c36cc07ee4f3e23566ed4e91c0c53b10b
2012-02-16 16:34:50 -08:00
Jenkins 844035b6c0 Merge "bug 931604: improve how xenapi RRD records are retrieved" 2012-02-17 00:16:26 +00:00
Jenkins 7162ee5077 Merge "Declare deprecated auth flag before its used." 2012-02-17 00:03:34 +00:00
Jenkins 5a21a28b53 Merge "Add RPC serialization checking, fix exposed problems." 2012-02-16 23:52:59 +00:00
Jenkins 1e5606f4c2 Merge "Remove instance_get stubs from server action tests" 2012-02-16 23:42:25 +00:00
Jenkins 99ba9c1abc Merge "Don't send a SQLAlchemy model over rpc." 2012-02-16 23:31:36 +00:00
Russell Bryant c8c9a87b24 Add RPC serialization checking, fix exposed problems.
Related to bug 933584.

In this bug, I hit a case where some code tried to send a SQLAlchemy
model over rpc, which failed since it couldn't be serialized by Qpid.
This patch adds a simple serialization check to the fake RPC driver
using json.  It also fixes problems that were exposed by adding this
check.

If json can't serialize a message sent through the fake RPC
driver, it will raise TypeError, causing unit tests to fail.  18 unit
tests failed with the check in place, but it was due to only 2 places
in the compute API.

Change-Id: I63f3077c0fa35097d4f5d2c485f4e48eede2c751
2012-02-16 18:02:42 -05:00
Russell Bryant 068f31c6cd Don't send a SQLAlchemy model over rpc.
Fix bug 933584.

I noticed this when Qpid blew up because it didn't know how to serialize
a SQLAlchemy model.  Fix it by making it only consist of primitive types
before sending it.

Change-Id: I63eb4bbabdb75fa7b277428bbd1aa2c2e1383383
2012-02-16 18:00:42 -05:00
Rick Harris 8497435226 Adds back e2fsck exit code checking.
References bug 931743

Change-Id: Id9e71b722e2a3b18821bceffdf138ba3895cfcf1
2012-02-16 22:52:54 +00:00
Zhongyue Luo 4118c54d9c Syncs vncviewer mouse cursor when connected to Windows VMs
Fixes bug#885966

Change-Id: Ie78ab1fc265dda61ceb5553e3156d08902115a65
2012-02-16 17:22:02 -05:00
Jenkins 34d77ac8b1 Merge "Core modifications for future zones service." 2012-02-16 21:41:43 +00:00
Chris Behrens c729ba8c0a Core modifications for future zones service.
Makes compute/network/volume API classes pluggable
Splits some code out in compute/api
Adds some race condition checking on deletes in compute/api
Make instance_delete support UUIDs
Add support to RPC to cast to specific servers
Migrations for future zones

Change-Id: Ibee126cd6d325e11770f27589e79dfd0e6104b99
2012-02-16 20:24:35 +00:00
Mark Washenberger 5f1231d596 Remove instance_get stubs from server action tests
I noticed these stubs while reviewing the dependent branch. They aren't
needed anymore. I tried to clean up some of the stub helpers as well.

Change-Id: I41cf93da392f76c150da2fa3125cfe4930a76f11
2012-02-16 14:21:09 -05:00
Aaron Lee 4711505066 removed unused method and added another test
get_network_id_by_cidr is not used, I'm removing
it and it's tests.

get_tenant_id_by_net_id relies on catching 
exceptions as part of the happy path. I expanded
the tests to try to exemplify that.

Change-Id: Iaf973da1d176ba8ea89d0fd762e796936d056d0f
2012-02-16 12:26:38 -06:00
Sandy Walsh 26227b79e9 Removed zones from api and distributed scheduler
There is a new Zones implementation coming that will use AMQP-to-AMQP
channels vs. the public API. This is being done for three reasons:
1. remove complications in the OpenStack API (and possibly allow EC2 Zones)
2. remove dependencies on keystone and novaclient
3. faster scheduling (fewer chances for race conditions)

Learn more here:
http://wiki.openstack.org/EssexSchedulerImprovements

Change-Id: I6fe538923dd5ae19276afac2ac3311a285fd5c99
2012-02-16 17:53:00 +00:00
Jenkins f5e17bbc15 Merge "Tests for a melange_ipam_lib, who is missing tests" 2012-02-16 04:00:21 +00:00
Jenkins d2f2df5a3b Merge "Different exit code in new versions of iscsiadm" 2012-02-16 03:23:01 +00:00
Jenkins 0333d6da8e Merge changes I8c559483,If92c613b
* changes:
  fix a syntax error in libvirt.attach_volume() with lxc
  tests: fix LdapDNS to allow running test_network in isolation
2012-02-16 01:32:19 +00:00
Aaron Lee b6245485b9 Tests for a melange_ipam_lib, who is missing tests
Change-Id: I907964370a7fa47af561704a1105b7299314c6ad
2012-02-15 19:09:28 -06:00
Vishvananda Ishaya e48c252467 Create a flag for force_to_raw for images
* Allows for deployers to use compressed images if they prefer
 * Flag defaults to current behavior
 * Fixes bug 932180
 * Re-enables fetch_to_raw which was being skipped
 * Removes obsolete and broken method from libvirt
 * Checksumming will be re-enabled in a later patch

Change-Id: I40c33cfd3997cae8d127fa45f8cf0aa071418170
2012-02-15 16:30:39 -08:00
Michael Still 75d38d59f1 Resolve bug/927714 -- get instance names from db.
I thought when I wrote the imagecache code for libvirt that the
instance names were of a fixed format. That is not correct. First
off the format is set in the instance_name_template flag. Worse
than that, it can change over time and old instances are not
renamed. So, now I check the database to see if the directory
name is a valid instance name (for this machine).

Change-Id: I318215aef5a10cee32959fd947ad628edff293a2
2012-02-16 10:59:41 +11:00
Russell Bryant aee45cc4ab Fix API extensions documentation, bug 931516.
This patch fixes the docs so that the API extensions documentation gets
included.  In passing, also update the API extensions index to include
an extension that was not listed.

Change-Id: Ia16cab2b29bbc121d940dc4ed9f033340935cde8
2012-02-15 18:52:45 -05:00
Trey Morris 3e1cff368a misc networking fixes
o fixed dns bug where dns was gotten from the wrong subnet
o project_id passed to get_instance_nw_info for when context.project_id
  is null
o removed line breaks around quantum client request to improve
  readability
o project_id passed into vif creation instead of using context
o exception handling around get_attached_ports in quantum connection
o updated object id generation to start with 1 in network_fake
o updated the fake subnets returned in the network_fake
o added proper v6 address generation to network_fake
o improved get_instance_nw_info test
o update api.openstack.compute.test_servers around improved network fake

Change-Id: I74d0a9dbfcbd38e2fbc7d7fefc2587e578980b6e
2012-02-15 17:45:51 -06:00
Jenkins f69b0923b8 Merge "Move connection pool back into impl_kombu/qpid." 2012-02-15 21:41:35 +00:00
Jenkins 963d24d87d Merge "Expand Quantum Manager Unit Tests + Associated Fixes" 2012-02-15 21:26:26 +00:00
Jenkins 5e267199ea Merge "LOG.exception only works while in an exception handler" 2012-02-15 21:02:16 +00:00
Johannes Erdfelt 3a95d451ed Catch httplib.HTTPException as well
Fixes bug 932927

None of the httplib exceptions will get converted into urllib2 exceptions

Change-Id: Iad72821fa1ed54fdb213b371223e94e183dec334
2012-02-15 18:52:40 +00:00
Dan Wendlandt 1406327cee Expand Quantum Manager Unit Tests + Associated Fixes
- Add fake quantum client to support more complete testing of Quantum Mgr
- Fix issue related to filters not being appended to Quantum queries
- Expand unit tests to check for # vifs, ports created, nic order.
- Add direct unit tests for quantum_connection class.
- improve error reporting for get_port_by_attachment
- remove invalid comment about not supporting floating IPs
- Remove E-3 hack that only allowed L3 gateway if DHCP was enabled.
Proper way to disable L3 gateway is to use the nova.network.l3.NullL3
driver.
- fix delete_network to properly find UUIDs for project specific networks
- fix issue with 'requested_networks' not working properly for a provider network.
- remove dead chunk of code that is unused because all networks in
quantum currently correspond to an entry in the nova db.
- make sure validate_networks allows both provider + tenant networks.

Update: incorporated feedback from first round of reviews.

Change-Id: Id63d27d457c63efe7ea27a7fbd7470a0a5709125
2012-02-15 10:47:11 -08:00
Jenkins 4c756df0bd Merge "bw_usage takes a MAC address now." 2012-02-15 17:33:39 +00:00
Jenkins ab548e2e39 Merge "Prevent Duplicate VLAN IDs" 2012-02-15 17:13:07 +00:00
Josh Kearney cd75e9e18f bw_usage takes a MAC address now.
Change-Id: Ia54a1e21903b96d4f5a07c0513a3dce5ae9f589e
2012-02-15 11:05:10 -06:00
Jenkins 3c7a362763 Merge "Fix the description of the --vnc_enabled option" 2012-02-15 17:02:58 +00:00
Jenkins 9f10962470 Merge "Update migration 076 so it supports PostgreSQL." 2012-02-15 16:52:54 +00:00
Pádraig Brady bd99c61fce fix a syntax error in libvirt.attach_volume() with lxc
This was introduced in commit e40b659d

Change-Id: I8c559483ad5267180ae012b50054f5331f64a437
2012-02-15 16:00:18 +00:00
Andrew Clay Shafer e88a2a616b Prevent Duplicate VLAN IDs
Addresses Bug 708278

Add check for duplicates in api.py
Add DuplicateVlan to exception.py
Add test to raise DuplicateVlan in test_db_api.py
Add to Authors

Change-Id: I9d68d7b7c886071e38df3c9d7d53724758bdd84c
2012-02-15 10:41:07 -05:00
Pádraig Brady dff1ac1dc5 tests: fix LdapDNS to allow running test_network in isolation
* nova/tests/test_network.py (LdapDNSTestCase): Since the
ldapdns module imports ldap unconditionally, the following
will not run on a system without python-ldap installed
  ./run_tests.sh test_network
Therefore ensure the fake ldap module is used, as is the
case when running the full test suite.

Change-Id: If92c613bf2684c25cdadf2ac7f53f2005979b2b6
2012-02-15 11:46:46 +00:00
Alvaro Lopez Garcia 84b9b20ca6 Fix the description of the --vnc_enabled option
Change-Id: If03c8613ec11e6f95f830ef48dd3978e874ecf5d
2012-02-15 12:06:10 +01:00