3379 Commits

Author SHA1 Message Date
Jenkins
e3f5754b19 Merge "Follow hostname RFCs" 2011-11-15 23:28:13 +00:00
Brian Lamar
8686eb6963 Follow hostname RFCs
Updated hostname sanitization method to more closely follow RFC-952
and RFC-1123. Also moved it to nova.utils, where it seems to fit
better.

Fixes bug 885374

(Patch Set 1) Updated hostname sanitization with more efficient and
              [opinion] more readable implementation.

Change-Id: I60d7ee89867c05950bec1fd53b072a1c6247ebea
2011-11-15 17:36:02 -05:00
Lorin Hochstein
997829ea93 Remove contrib/nova.sh and other stale docs.
Removed contrib/nova.sh and any references to it in the RST docs.

removed refernece to old livecd that has nova circa 2010 on it.

.gitignore'ing some additional autogenerated doc files.

Change-Id: I7a07a58a9a6f1112fc7e486367a06f6916207784
2011-11-15 16:32:37 -05:00
Jenkins
92871e6973 Merge "Log the URL to an image_ref and not just the ID." 2011-11-15 17:50:32 +00:00
Josh Kearney
c6fa2b7ca2 Log the URL to an image_ref and not just the ID.
Change-Id: Iaae6b969d9ef3cd0f50dd3297d4b0bb51f61f5c9
2011-11-14 15:30:23 -06:00
Jenkins
beed879a8e Merge "Verify security group parameters" 2011-11-12 17:45:33 +00:00
Ahmad Hassan
f26fae36c2 Verify security group parameters
Introduced various sanity checks before adding security group rule
into the database. The checks have been implemented both in EC2 and
openstack extension code.
Implemented the suggestions made in first patch by Brian
Fixed the unit tests in security groups
Fixed pep8 issues in security group unit tests

Fixes bug 869979.

Change-Id: I2ac28666e90e7bdeacb7b1c2676c0719cfb9e441
2011-11-11 09:46:15 +00:00
Jenkins
3836ed512e Merge "More spelling fixes inside of nova" 2011-11-10 04:26:07 +00:00
Joe Gordon
137fab4769 More spelling fixes inside of nova
Change-Id: I79daf7519c99cc363ac7175c85912298f273da8a
2011-11-09 19:57:44 -08:00
Jenkins
50540892e7 Merge "Refactor logging_error into utils" 2011-11-09 19:59:47 +00:00
Aaron Lee
da86c164cf Refactor logging_error into utils
update: pep8, and fixing log output.
update2: more pep8, I'm looking at you vim
update3: more formating
update4: mailmap
update5: more pep8

Change-Id: I38617e14260e65ed5cb81b3554479d3720850aae
2011-11-09 11:49:52 -06:00
Jenkins
495662dd6d Merge "Added some documentation to db.api module docstring." 2011-11-09 05:06:21 +00:00
Jenkins
b02289c15c Merge "Add DHCP support to the QuantumManager and break apart dhcp/gateway" 2011-11-08 22:44:54 +00:00
Brad Hall
ae2a368761 Add DHCP support to the QuantumManager and break apart dhcp/gateway
This introduces a new flag "quantum_use_dhcp=<boolean>" which indicates whether
or not to enable dhcp for all of the networks.  If it is set then we start
dnsmasq (and provide it with the IP/MACs from Melange) similar to how this was
done in linux_net before.

Prior to this if you enabled dhcp then you would also get a gateway device..
some people may not want that so we now require that you specify the gateway
when creating the network in order to end up with a device that will act as a
gateway.  If you're using Melange IPAM and you don't specify the gateway you
still end up with one because it doesn't allow you to not have one.  This lays
the groundwork for the option of not having one in the future, at least :)

Also, fix quantum/melange ipam interaction

We now query for the subnets by net_id/vif_id instead of searching through all
the blocks to find the right one.  Both of the allocate and deallocate for
instance calls are now using the vif_id -> network_id mapping instead of
searching the quantum networks.  get_port_by_attachment was also changed to
take a net_id so that we don't have to search through all of the quantum
networks to find the corresponding port.

Change-Id: I6a84da35237b6c5f5cdee91ada92642103439a97
2011-11-04 20:11:53 -07:00
Jenkins
8d6dba4c87 Merge "Log original dropped exception when a new exception occurs" 2011-11-03 17:28:43 +00:00
Jenkins
958bd82dd6 Merge "Xen Storage Manager Volume Driver" 2011-11-03 02:59:42 +00:00
Lorin Hochstein
00016e3ee6 Added some documentation to db.api module docstring.
See https://lists.launchpad.net/openstack/msg05222.html for info about return values of db layer.

Change-Id: Id7cc7c783d40a9f81ca0e592691635ee15563e0b
2011-11-02 11:34:28 -04:00
renukaapte
a6e1e380db 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
7400fb3158 Merge "flatten distributed scheduler" 2011-11-01 17:09:59 +00:00
Jenkins
84e231543e Merge "Fixes lp883279" 2011-11-01 15:06:08 +00:00
Jenkins
bd0ca427df Merge "Fix lp:861160 -- newly created network has no uuid" 2011-11-01 14:51:14 +00:00
Sandy Walsh
5dcf71a64b 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
Jenkins
35a2df2b55 Merge "Creating uuid -> id mapping for S3 Image Service" 2011-10-31 18:47:56 +00:00
Brian Waldon
eeecf3536b 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
Matt Dietz
dc1d040ac6 Fixes lp883279
Nova sending instance_id in notifications instead of uuids

Change-Id: I411ea1a9aee53af4ee8cb4b1118dc41549c80227
2011-10-31 11:44:04 -05:00
Johannes Erdfelt
3acbf6499c Log original dropped exception when a new exception occurs
If a exception is caught while processing a previous exception, make sure
to log it so it doesn't silently get discarded

Change-Id: Ic887db9c2592229970737daf5dd9732b2258877b
2011-10-31 16:42:47 +00:00
Unmesh Gurjar
b56dd3e883 Fix lp:861160 -- newly created network has no uuid
Implemented code review changes.
Fixed issue causing pep8 build failure.
Change-Id: If2cc0e23be8d4e1558a10fa86e6ba4cdec61b7d1
2011-10-31 11:32:09 +05:30
Jenkins
ee71c91250 Merge "Adding bulk create fixed ips. The true issue here is the creation of IPs in the DB that are not currently used(we are building the entire block). This fix is just a bandaid, but it does cut ~25 seconds off of the quantum tests on my laptop." 2011-10-28 02:25:44 +00:00
Aaron Lee
e141506944 Adding bulk create fixed ips. The true issue here
is the creation of IPs in the DB that are not 
currently used(we are building the entire block).
This fix is just a bandaid, but it does cut ~25 
seconds off of the quantum tests on my laptop.

(pre)$ ./run_tests.sh -N nova.tests.test_quantum:QuantumNovaIPAMTestCase
QuantumNovaIPAMTestCase
    test_allocate_and_deallocate_instance_dynamic               OK  11.36
    test_allocate_and_deallocate_instance_static                OK  11.27
    test_create_and_delete_nets                                 OK  10.35
    test_validate_bad_network                                   OK  0.10

(post)$ ./run_tests.sh -N nova.tests.test_quantum:QuantumNovaIPAMTestCase
QuantumNovaIPAMTestCase
    test_allocate_and_deallocate_instance_dynamic               OK  2.94
    test_allocate_and_deallocate_instance_static                OK  3.12
    test_create_and_delete_nets                                 OK  1.86
    test_validate_bad_network                                   OK  0.11
    

Change-Id: I46b629f9ca6e019c7c4c6aa8e869c551e5c13fb8
2011-10-27 17:37:34 -05:00
Jenkins
f24ce58b02 Merge "Revert how APIs get IP address info for instances" 2011-10-27 17:55:27 +00:00
Jenkins
5d391b9258 Merge "Add .gitreview config file for gerrit." 2011-10-27 16:09:21 +00:00
Chris Behrens
8a541f6bcd Revert how APIs get IP address info for instances
Fixes bug 862839

listing instances with IPs is extremely inefficient after changes were
made to query the network manager for IP information for each instance.
I tried adding a network manager call that said 'give me IP information
for 'x' instances', but that was also too slow.

We need a solution that caches IP info from the network manager before
we can fully untie things.  So, this reverts APIs to use
instance['fixed_ips'] which hasn't been untied in the DB yet.

Change-Id: I37d21105d6306f0a812c5eb0f0717a5094cd17b9
2011-10-26 19:17:42 -07:00
Jenkins
ec51366a6a Merge "Replaces all references to nova.db.api with nova.db" 2011-10-26 16:28:10 +00:00
Jenkins
607fd1274f Merge "Improve the liveness checking for services" 2011-10-26 01:01:00 +00:00
Alex Meade
412f112585 Replaces all references to nova.db.api with nova.db
Fixes bug 881640

Change-Id: Idaa9d175a82f42761e4fbfaf96571671cf44cbcd
2011-10-25 16:18:40 -04:00
James E. Blair
40397c07e3 Add .gitreview config file for gerrit.
The CI team is developing a new tool, git-review:

  https://github.com/openstack-ci/git-review

which is intendend to replace rfc.sh.  This adds a .gitreview file
so that it can automatically determine the canonical gerrit location
for the repository when first run.  Later, rfc.sh will be updated to
indicate it is deprecated, and then eventually removed.

Change-Id: Ifc1d34143b1b90faa4324f7750bfc43f69a5f494
2011-10-24 15:07:19 -04:00
Jenkins
c8dcda63bd Merge "Convert instancetype.flavorid to string" 2011-10-24 15:45:02 +00:00
Brian Waldon
684a84ca94 Convert instancetype.flavorid to string
Fixes bug 861666. This also removes some direct database access
in favor of using nova.compute.instance_types throughout the code.

Change-Id: I572cc19454fa76f435f5672d3d6e7ed55c8817da
2011-10-22 12:57:35 -04:00
David Subiros
2fc769e1d8 Improve the liveness checking for services
With this modification both nova-manage and scheduler use the flag
service_down_time and check positive and negative values in a
correct way.
Fixes bug: 867674.

Change-Id: I15c48d80cafa2089cd228c09c61b0a1e513730e8
2011-10-21 13:32:01 +01:00
Jenkins
ecff45d629 Merge "Repartition and resize disk when marked as managed." 2011-10-19 18:08:04 +00:00
Jenkins
8c32fc3eb5 Merge "Remove dead DB API call." 2011-10-19 16:58:32 +00:00
Rick Harris
7c83b754dc Repartition and resize disk when marked as managed.
Implements part of the instance-disk-management blueprint.

Change-Id: I16d0f816cdf82ee1e19a323cb9976477924e4c5c
2011-10-19 11:45:42 -05:00
Chris Behrens
2e52ffc76b Remove dead DB API call.
Removes instance_set_state() from db/api.py.  The sqlalchemy version was
removed a while ago so this call is dead.

Change-Id: Icf6f55481bc0c6a9394ca9b7a15fcdab2c1ad483
2011-10-19 09:43:02 -07:00
Jenkins
b0119996c1 Merge "Remove unused flag_overrides from TestCase" 2011-10-17 18:38:39 +00:00
Mark McLoughlin
7bb73a620a Remove unused flag_overrides from TestCase
This was replaced by _original_flags in e0ae19c7a, but it wasn't
actually removed.

Change-Id: I89ed7de263ff040d86dea970aa8fcda640d19f79
2011-10-15 16:44:56 +01:00
Jenkins
49eff2ef0d Merge "Adds the ability to automatically issue a hard reboot to instances that have been stuck in a 'rebooting' state for longer than a specified window." 2011-10-14 19:04:13 +00:00
Jenkins
f127d7d63c Merge "Xenapi driver can now generate swap from instance_type" 2011-10-14 18:54:09 +00:00
Rick Harris
acc5488acf Xenapi driver can now generate swap from instance_type
Change-Id: I50268a85ccd62b019436a207c2b52b1901597564
2011-10-13 18:46:38 -05:00
Josh Kearney
f60d3eff5c Adds the ability to automatically issue a hard reboot to instances that have been stuck in a 'rebooting' state for longer than a specified window.
Fixes bug 873099.

Change-Id: Ife2c64326fdb3ec849242583d1bd1d96f9f4be0f
2011-10-13 16:12:42 -05:00
Jenkins
7106eb8f5c Merge "Adds more usage data to Nova's usage notifications." 2011-10-13 20:56:29 +00:00