129795c890963c9767ec59e41e3ed3334a2d29c7
Commit Graph

351 Commits

Author SHA1 Message Date
John Tran
c1e54e1968 fixed_ip_get_by_address read_deleted from context
Fixes bug 996482. by default fixed_ip_get_by_address
always sets read_deleted='yes'. Changed it to accept
read_deleted value from context.
updated .mailmap to rewrite my old email to new email
Change-Id: If94251972df7bbcfdeebc226613edac0a3f41186
2012年05月18日 07:15:31 -07:00
Somik Behera
627522525e Fix bug 988034 - Quantum Network Manager - not clearing ips
Added a line in nova_ipam_lib.QuantumNovaIPAMLib init
method to ensure we clean up IPs and explanation of whats
going on.
Also, nuked release_fixed_ip as that is not
needed in QuantumManager anymore.
Change-Id: Ic2ad1e87441c448c10ff097b28d2b6347eef5401
2012年05月15日 13:42:27 -07:00
Craig Vyvial
fbae8d09fd Adding notifications for volumes
Added notifications for volumes have been added with tests.
This includes create/delete/exists events for volumes.
blueprint nova-notifications
Change-Id: I21b74974fac22c3621ccf7564dc5c0d339f8751a
2012年05月14日 16:34:08 -05:00
Jenkins
a07fddf525 Merge "Use default qemu-img cluster size in libvirt connection driver" 2012年05月11日 21:49:00 +00:00
Alessio Ababilov
f6088545d2 Setup logging, particularly for keystone middleware
Fixes bug 979282 and bug 988951
Change-Id: I895d00ac9648e8b3cb3ad1bf141c9bfe02ef3680
2012年05月11日 17:44:57 +03:00
Jim Fehlig
de5cb27e64 Use default qemu-img cluster size in libvirt connection driver
The recommended cluster size [1] for qcow2 is 64k, which is the default
when invoking 'qemu-img create ...'. Remove the cluster_size option
from qemu-img invocation.
[1] http://www.mail-archive.com/openstack@lists.launchpad.net/msg11371.html
V2: Fix test.
Change-Id: Iafc290720a820cb5f57ded10a2f584fdc5cd5b49
2012年05月11日 07:30:56 -07:00
hua zhang
61a515a5a7 httplib throw "TypeError: an integer is required" when run quantum
Bug 993149
Change-Id: Ife663ec1cf2b9d094a00c488f849da5857cc34a3
2012年05月08日 16:38:35 +08:00
Jenkins
d42c424cb9 Merge "Disallow network creation when label > 255. Fixes bug 965008" 2012年04月26日 19:08:06 +00:00
vaddi-kiran
6a4c092cb8 Make updating hostId raises BadRequest.
fixes bug 944028
Change-Id: I563f51dd7afea1d0a9c7391c9e641e7c8c493216
2012年04月26日 05:56:57 -04:00
Mandar Vaze
2cea9b0413 Disallow network creation when label > 255. Fixes bug 965008
Added length check for label. Without length check,
label is truncated. Warning is shown by sqlalchemy layer.
Raise an InvalidInput exception when validation fails (like
rest of the surroudning code)
Change-Id: Iae517e03099e36f1c00f4742049834a9231a2fff
2012年04月26日 01:42:23 -07:00
Jenkins
d813d20c3b Merge "Introduced flag base_dir_name. Fixes bug 973194" 2012年04月25日 07:30:38 +00:00
Mandar Vaze
647e458477 Introduced flag base_dir_name. Fixes bug 973194
rebased from master.
If user faces locking related problem when two nova-compute hosts
sharing same disk area via nfs, try to download same image into
cache concurrently - Then base_dir_name can be set to "_base_$my_ip" in
nova.conf
Default value for base_dir_name is "_base" thus retaining existing
behavior.
Change-Id: Icff10ed75ba83f7256731614dc9e01e578b347a4
2012年04月24日 23:27:35 -07:00
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