Commit Graph

339 Commits

Author SHA1 Message Date
Renier Morales bcb53dfc6a Scope coverage report generation to nova module.
Coverage report generation was not using --include filters.
This resulted in generating a report that included all external
dependencies. Some of these may include problematic characters for
utf8 decoding. In the odd case this was found, coverage would fail
with a UnicodeDecodeError.

Fixes bug #987077.

Change-Id: I276698e65ac1037972209a406058168433cd826b
2012-04-24 07:58:25 -04:00
Jenkins f73dc32a2a Merge "fix TypeError with unstarted threads in nova-network" 2012-04-10 21:52:19 +00:00
Paul McMillan 1513cc178e Improve grammar throughout nova.
Fixes some "its" and "it's" mistakes, and unifies the tense of
some documentation.

Change-Id: I9b83aba535b554e80b2cf1e048bb3a4e5cac0e5e
2012-04-10 11:15:07 -07:00
Mandar Vaze 63c59b8775 migration_get_all_unconfirmed() now uses lowercase "finished" Fixes bug
977719

status set in _finish_resize is lower case, but
migration_get_all_unconfirmed() was filtering using FINISHED
Also updated corresponding test case to use lower case "finished"
Updated Authors file

Change-Id: Ia30e66e541bba91a9dd3d3af1429b2312870793a
2012-04-10 05:09:25 -07:00
Brian Elliott 549616d122 bug 968452
Update test-requires to use pep8>=1.0.  Removed PEP8 warning suppression
around 3-arg raises.

Change-Id: Ib4ed42adc167aa1e8078619a36b409b76b9f5d73
2012-04-09 19:06:03 +00:00
Gabriel Hurley 4ceb1adc48 Corrects an AttributeError in the quota API.
Fixes bug 972001.

Change-Id: Iaf833bb6dae9cc17689e9f13eff917e91a2b722a
2012-04-02 18:30:32 -07:00
Ionuț Arțăriși 48c191ffea fix TypeError with unstarted threads in nova-network
(nova): TRACE: File "/usr/lib64/python2.6/site-packages/nova/utils.py",
line 860, in __init__
(nova): TRACE: self.tname = "-%x-%x" % (ident & 0xffffffff, gident &
0xffffffff)
(nova): TRACE: TypeError: unsupported operand type(s) for &: 'NoneType'
and 'int'

Fixes: bug 971629

Change-Id: I3d34816c36a11cd6fc2dd9c889c93c5872133a2c
2012-04-02 17:29:33 +02:00
J. Daniel Schmidt 6ec0ac30c7 fixed postgresql flavor-create
fixes bug 968190
nova flavor-create failed on postgresql DB
because sqlalchemy tried to write an integer into a varchar field

Change-Id: Ib47d8d10e96fedb2158f454503fe1ca3493c16bb
Signed-Off-By: Bernhard M. Wiedemann <bwiedemann suse.com>
2012-04-01 07:44:06 +02:00
John Kennedy a68156c100 bug 965335
Resolves unclear formatting of compute extensions documentation at
http://nova.openstack.org/api_ext/index.html

The rst extensions template has been updated to include extension name as
top level hierarchy, and demote all other content.

All existing documentation pages have been reformatted as per the updated
template.

The ext_aggreagates.rst file has also been added to index.rst.

Amendments:
 - Author added to Authors file
 - Typo in ext_volumes.rst fixed

Change-Id: Id67ef91a6e8eaaf4fba46abbd57759c77aaf8991
2012-03-30 15:20:58 +01:00
Jenkins 5c5a5fbaa0 Merge "Tweak security port validation for ICMP" 2012-03-23 15:34:18 +00:00
Sean Dague 0e0d0d54f2 Modify nova.wsgi.start() should check backlog parameter.
Fixes bug 883292.

Forward ported from
https://github.com/ntt-pf-lab/nova/tree/openstack-qa-nova-883292

Change-Id: I8839851a72fcf0910a532d558ffe66a39a7db1e8
2012-03-21 15:03:35 -04:00
Greg Althaus c2de5c61b2 Tweak security port validation for ICMP
Horizon allows for ICMP to be type:code.
Type and code can be from -1 to 255.

API refers to both EC2 and Nova APIs

This patch attempts to resolve:
1. API code throws exceptations when 0 is passed for either field
2. API code validates type:code like from->to range.  type and code
   are independent
3. Update unit tests for this new set of operations.

A side effect is that the following are allowed type:code.
-1:X
X:-1

The code assumes that -1 is a wildcard for the field.

bug 956967

Change-Id: Ieb6989815afc6986b72e0efc7611c2cc353ab5d8
2012-03-16 06:52:19 -07:00
Mark McClain 6a3e22a25c fix timestamps to match documented ec2 api
fixes bug: 823503

Update to the dateTime format to provide three places of precision to
microseconds.  This change makes the API match the ec2 documents.

Change-Id: I765e64e99042ade9fa996dfb1dee603d363f9b2c
2012-03-15 16:32:05 -04:00
Peng Yong 42a96d7ca0 refactoring code, check connection in Listener. refer to Bug #943031
Change-Id: Ic04d1a918fedd5fd71f58af8e27b58deef070ee2
2012-03-12 15:34:46 +08:00
Ante Karamatić c919ba6602 Since 'net' is of nova.network.model.VIF class and 'ips' is an empty
list, net needs to be pulled from hydrated nw_info.fixed_ips(), and
appended to ips.

bug 942593

Change-Id: I9c2f55e300d1dad503b15c261027d988073e8e61
2012-03-09 21:11:11 +01:00
Jenkins 06305fa15d Merge "Minor clarifications for the help strings in nova config options" 2012-03-07 22:14:06 +00:00
Yuriy Taraday 01a938f7fe HACKING fixes, all but sqlalchemy.
Looks like this fixes all HACKING problems that were around.
Thanks to Dina Belova and Alexander Kovalev for this work.

Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
2012-03-07 12:51:39 +04:00
Matt Stephenson bacbfd2b7e Minor clarifications for the help strings in nova config options
Change-Id: I10e7277b2d9b7a905b83192f8db47f425c5ae11a
2012-03-06 20:46:57 -08:00
JC Martin dab9de9357 Do not invoke kill dnsmasq if no pid file was found.
fixes Bug 943690

Change-Id: I2b1f5cc66ba6ef02219c0d4445487bdd3a541f4b
2012-03-02 13:31:58 -08:00
Jenkins 84dc739b28 Merge "bug #941794 VIF and intf drivers for Quantum Linux Bridge plugin" 2012-03-05 19:21:21 +00:00
Lorin Hochstein d304d828d0 Added docs on MySQL queries blocking main thread.
Added to the RST docs to describe how queries to MySQL will block a nova
service.

Change-Id: I4ae209e2827978cc5469162d386197f2e46b342d
2012-03-03 20:56:24 -05:00
Sumit Naiksatam 3c62c9d65d bug #941794 VIF and intf drivers for Quantum Linux Bridge plugin
Drivers have been reviewed earlier by Quantum reviewers and are being
moved here on their request.

Also incorporating Soren,Dan, pp-draigbrady and Vish's suggestions.

Change-Id: If04807c473542e2f0259faa6d243c3e6e9539f64
2012-03-03 01:38:12 -08:00
Doug Hellmann 1ea445c377 blueprint sphinx-doc-cleanup
bug 944381

Add logic to generate_autodoc_index.sh to produce rst underlines to match the heading strings.

Change-Id: Ib0f54a45fcc4ab6dfaa593c756682f1a25fdb420
2012-03-01 17:03:01 -05:00
Dave Walker (Daviey) 42a0d3a4b0 Option expose IP instead of dnshost in ec2 desc'
As documented in bug 901594, previous nova releases, the IP address
was exposed as the DNS hostname, which worked well with euca-tools.
This is unfortunately not always ideal for private clouds.

Whilst it is expected to be able to euca-describe-instances --ipv4
in newer euca2ools releases, this behaviour is not always desired.

This patchset allows the nova admin to set a global flag of:
--ec2_private_dns_show_ip=True, to restore legacy nova behaviour.

This does not change the current default behaviour of nova.

Change-Id: I7c71ffe63929d90d45d9c724ab3409dcdee52b44
2012-02-29 20:45:23 +00:00
Jenkins 99233ace20 Merge "Adds netapp volume driver" 2012-02-29 20:32:08 +00:00
Jenkins 0ab9f2cbae Merge "Include launch_index when creating instances." 2012-02-29 16:55:35 +00:00
Rob Esker 3b7fa6b605 Adds netapp volume driver
* includes a fake implementation of the netapp soap api
 * implements blueprint netapp-volume-driver

Change-Id: I8e2781e8bd4a552354f46a32c4a7ecdfd19f3e7a
2012-02-29 08:49:38 -08:00
Joshua Harlow 6aa0bf7d68 Re-adds ssl to kombu configuration and adds flags that are needed to pass through to kombu.
Implements part of blueprint ssl-endpoints

Adds in configuration options:

kombu_ssl_version (ssl version)
kombu_ssl_keyfile (ssl keyfile)
kombu_ssl_certfile (ssl certfile)
kombu_ssl_ca_certs (ssl ca certfile)

This adds onto rabbit_use_ssl (which must be True for the above to have any effect) and allows
users to specify in greater detail (more than just True/False) how SSL is going to be configured.

Change-Id: I2186a6aa9397df857321324bf4007bc8310b85ce
2012-02-27 11:28:57 -08:00
mbasnight 2172e49e83 Fixes bug lp#940734 - Adding manager import so AuthMiddleware works
Change-Id: Ia4653daf02c14c41bab8e62f063e7673321073f4
2012-02-24 20:20:07 -06:00
Russell Sim 5a080e5b46 fix unicode triggered failure in AuthManager
* Always return a string from AuthManager._build_mc_key()
* Fixes bug 938375

Change-Id: Iffceffab8ae62830202de07e3237230dab4e5a60
2012-02-24 16:16:18 +11:00
Mike Milner e3530a06c4 Include launch_index when creating instances.
Fixes bug 934534.

The launch_index column in the database is used as the ami-launch-index value
provided by the metadata service.

If launch_index is not specified it defaults to 1. This is incorrect for the
single instance case (should be 0) and doesn't correctly handle multi-instance
starts.

This branch changes the default launch_index to 0 (to handle the single
instance case) and adds the launch_index in the schedulers for multi-instance
starts.

Change-Id: Ifc45abf4cd9f50f732ba4a4b68c0a6242a6c9710
2012-02-23 21:34:52 -04:00
Jenkins dd851ff62b Merge "Add attaching state for Volumes" 2012-02-23 18:32:53 +00:00
Liam Kelleher d0cc37f809 Add attaching state for Volumes
bug 897726 Add "attaching" status for volumes and clear state on error
This closes a gap where multiple calls of attach for the same volume
can happen before the volume is actually attached.

Change-Id: I59d22ceda83729c1a455af9994c9ffec1912e23b
2012-02-20 14:21:25 +00:00
Nick Bartos ea0e925972 Escape apostrophe in utils.xhtml_escape() (lp#872450)
Also remove comment which is no longer relevant.

Change-Id: I33a951d08a34510b2a9dbacb9fb3ebf6bee978b4
2012-02-20 04:57:44 -08:00
chris fattarsi 94d3d19855 Handle OSError which can be thrown when removing tmpdir. Fixes bug 883326.
Change-Id: Ie1f40fcce6ce6af4ab71961c725dcd626eda8aea
2012-02-19 18:11:03 -08:00
Jenkins dc9e5feae4 Merge " remove unused nwfilter methods and tests." 2012-02-18 00:01:13 +00:00
Evan Callicoat b61e1ea12c Enables hairpin_mode for virtual bridge ports, allowing NAT reflection
* enables hairpin_mode on virtual bridge ports on instance spawn
* adds conntrack DNAT state criteria to fixed/fixed SNAT exception so reflected traffic SNATs
* updates get_interface ElementTree to work with Python 2.6/2.7
* fixes bug 933640

Change-Id: I63b3e91b41898fcffda8a288be503f9b740b4b4e
2012-02-16 18:11:19 +00:00
Jenkins ab548e2e39 Merge "Prevent Duplicate VLAN IDs" 2012-02-15 17:13:07 +00:00
Jenkins 9f10962470 Merge "Update migration 076 so it supports PostgreSQL." 2012-02-15 16:52:54 +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
Jenkins 99c2e02b44 Merge "Changing nova-manage error message" 2012-02-15 09:03:41 +00:00
Yaguang Tang b4fae4821f remove unused nwfilter methods and tests.
remove unused methods and classes in nova/virt/libvirt/firewall.py
and releative function tests. now,nova use nwfilter offered by
libvirt only for anti ARP and IP spoofing.other security policy use
iptables.

Change-Id: Ib9866802ef64668e2feba09124bdf7c7fee92f92
2012-02-15 12:17:55 +08:00
Dan Prince 9b132000bf Update migration 076 so it supports PostgreSQL.
Fixes LP Bug #32154.

Change-Id: I9d6ddfedcc39308811ff5264879b45b4847ec4a8
2012-02-14 16:45:42 -05:00
Derek Higgins 649e32b0dc Changing nova-manage error message
CA filesystem now created by nova-cert
Also changing Author details

Change-Id: I456d985810d6f0312a7ef94b21637f347e933303
2012-02-14 17:23:41 +00:00
Eoghan Glynn abe9adf470 Fix WADL/PDF docs referenced in describedby links
These compute API links were broken, previously referring to
Rackspace URLs with s/v1.0/v1.1/

The links now correctly reference long-lived locations on
docs.openstack.org.

Change-Id: I10efca2868a05982a1783688e374060acf1d0a69
2012-02-14 15:40:34 +00:00
Jenkins ca51f9822f Merge "Changes for supporting fast cloning on Xenserver. Implements blueprint fast-cloning-for-xenserver 1. use_cow_images flag is reused for xenserver to check if copy on write images should be used. 2. image-id is used to tag an image which has already been streamed from glance. 3. If cow is true, when an instance of an image is created for the first time on a given xenserver, the image is streamed from glance and copy on write disk is created for the instance. 4. For subsequent instance creation requests (of the same image), a copy on write disk is created from the base image that is already present on the host. 5. If cow is false, when an instance of an image is created for the first time on a host, the image is streamed from glance and its copy is made to create a virtual disk for the instance. 6. For subsequent instance creation requests, a copy of disk is made for creating the disk for the instance. 7. Snapshot creation code was updated to handle cow=true. Now there can be upto 3 disks in the chain. The base disk needs to be uploaded too. 8. Also added a cache_images flag. Depending on whether the flag is turned on on not, images will be cached on the host." 2012-02-14 03:38:14 +00:00
Jenkins 6f2ebe058e Merge "dont show blank endpoint headers" 2012-02-13 21:22:25 +00:00
Devdeep Singh 6c3bc216c1 Changes for supporting fast cloning on Xenserver.
Implements blueprint fast-cloning-for-xenserver
	1. use_cow_images flag is reused for xenserver to check if copy on write images should be used.
	2. image-id is used to tag an image which has already been streamed from glance.
	3. If cow is true, when an instance of an image is created for the first time on a given xenserver, the image is streamed from glance and copy on write disk is created for the instance.
	4. For subsequent instance creation requests (of the same image), a copy on write disk is created from the base image that is already present on the host.
	5. If cow is false, when an instance of an image is created for the first time on a host, the image is streamed from glance and its copy is made to create a virtual disk for the instance.
	6. For subsequent instance creation requests, a copy of disk is made for creating the disk for the instance.
	7. Snapshot creation code was updated to handle cow=true. Now there can be upto 3 disks in the chain. The base disk needs to be uploaded too.
	8. Also added a cache_images flag. Depending on whether the flag is turned on on not, images will be cached on the host.

Change-Id: I54838a24b061c134877f3479c925c6ee78da14bc
2012-02-13 09:31:01 +05:30
Mike Pittaro 229221ec97 Fix bug 921814 changes handling of adminPass in API.
Add a new nova configuration flag, boolean, enable_instance_password.

When the flag is True (default), existing behavior is unchanged.

When the flag is False, responses from the create or
rebuild API calls don't include the adminPass attribute.

Change-Id: Icb2bd703770f3a39bb1e458dc31e1489d48da7c1
2012-02-07 15:52:45 -08:00
Mikyung Kang fd9c3aff0d Implements blueprint heterogeneous-tilera-architecture-support
Change-Id: Iad8f66af18eb396f4737cd4ea168edcc77481ee6
2012-02-07 10:41:10 -05:00