980c76266629ea66bc23fddb02f5be61c51d873c
382 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Yong Sheng Gong
|
66bf71b1fc |
Implement nova network API for quantum API 2.0
blueprint improved-nova-quantum-integration This new network API depends on quantum v2.0 client to connect quantum server via Quantum server API V2.0. This change implements the minimum set of methods so that we can boot an instance with ip allocated by quantum server. Change-Id: I34acbbf84dd8601db8143267c8cc41255a0c6d3f |
||
|
Steve Baker
|
ded5b51d3c |
Fixes bug 1014194, metadata keys are incorrect for kernel-id and ramdisk-id
Kernel and ramdisk IDs are using currently being inserted in the metadata using the keys aki-id and ari-id. They should be using the keys kernel-id and ramdisk-id. http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html This bug is in a block of code which did not previously have test coverage; this change also adds that coverage. Change-Id: I2ee3663169160c0e351e548d831fef2f34f9f2fd |
||
|
Jenkins
|
92dff6857d | Merge "Adds default fall-through to the multi scheduler. Fixes bug 1009681" | ||
|
Jenkins
|
9f88c719b5 | Merge "Remove duplicate check of server_dict['name']" | ||
|
Jenkins
|
e4c7892a01 | Merge "Migrate existing routes from flat_interface" | ||
|
Sean M. Collins
|
8ecb4d6f23 |
Remove duplicate check of server_dict['name']
Exact same three lines are at line 614. Change-Id: I806574e9d5152e7c63bdb45e86e8844ce78fbc9f |
||
|
David Scannell
|
a4e0a8594b |
Adds default fall-through to the multi scheduler.
Fixes bug 1009681 This offers a default scheduler driver that will be used by the multischeduler for requests that are not destined for the compute or volume topic. This is useful for openstack extensions that want to use the nova-scheduler to schedule requests to compute nodes but provide their own manager and topic. Change-Id: I753e87fc8979fd0b62529974f00cf11fa55b3d63 |
||
|
David Shrewsbury
|
c4ddd0fff5 |
Fix invalid variable reference.
Correct variable name is 'source_type', but just happened to work because the default value for the variable is also 'mount'. Change-Id: Ifba9ce0ef3052e1b5e07f90d236bfcf24ca6a608 |
||
|
Dan Smith
|
76a7a3540b |
Migrate existing routes from flat_interface
Right now, any routes that exist on flat_interface (other than the default route) get lost when we set up the bridge. This patch migrates them over to avoid losing that connectivity. It does so by using 'ip route' instead of 'route', which is much easier to script and is consistent with other use of iproute2 tools in linux_net.py. Bug 962822 Change-Id: I7d9e8e05169f2f87e8481595397c02fd3a3612f4 |
||
|
Jenkins
|
5ae50d14fe | Merge "Update pylint/pep8 issues jenkins job link" | ||
|
Jenkins
|
1e742df038 | Merge "Add instance_id in Usage API response." | ||
|
Sascha Peilicke
|
080671c9b5 |
Update pylint/pep8 issues jenkins job link
Change-Id: Ibf5ac4b29d668d0d0f15e980361b0bd71d0bc050 |
||
|
Ralf Haferkamp
|
a519752eef |
Addtional CommandFilters to fix rootwrap on SLES
Fixes bug 1013147 (for SLES) Change-Id: Ib362c913b809f7601a9a4faedede89b22794dfb7 |
||
|
Lin Hua Cheng
|
52fd1536a8 |
Add instance_id in Usage API response.
Fixes bug 1003093. Required to fix horizon bug 1003299. Add the instance_id in the server usage response. The value of the id is the UUID of the instance. Change-Id: I77e0f64db456b4c80a03fa922dd18146b94d1187 |
||
|
Dominik Heidler
|
38c98c4df5 |
add nova-manage bash completion script
Change-Id: I856349fb0b31f32ec4570c74ebceb3563fa22547 |
||
|
Jenkins
|
6e6ffc2e4e | Merge "Handle missing server when getting security groups" | ||
|
Trey Morris
|
82599c7734 |
moved update cache functionality to the network api
previously the network manager get_instance_nw_info was responsible for updating the cache. This is to prevent calling that function in a confusing way. part 2 of this patch was fixing bug997763 floating_ip_associate was removed from the compute api. network api associate is now called directly. network api floating_ip functions now require instance as an argument in order to update cache. Change-Id: Ie8daa017b99e48769afbac4862696ef0a8eb1067 |
||
|
Martin Packman
|
984435b1ed |
Handle missing server when getting security groups
Fix bug 1010486. Treat InstanceNotFound as a 404 when querying the security groups of server that does not exist. Also removes old exception translation, ApiError no longer exists and NotAuthorized shouldn't need handling at this level. Includes tweak suggested by Mark McLoughlin in review. Change-Id: Iaeada84dbadc232968f792c6f4855bf61cc5a5ae |
||
|
Jenkins
|
e4b4d34723 | Merge "Unwrap httplib.HTTPConnection after WsgiLimiterProxyTest." | ||
|
deevi rani
|
7097e01a15 |
Updates the cache
fixes bug 939122 Following are the changes done: 1. in compute/api.py to display the floating ip in nova list command upon its association with an instance. 2. in network/api.py to solve the similar issue upon the floating ip disassocaition Updated version of: https://review.openstack.org/#/c/7059 Change-Id: Ief1a3f544c3d14bd61cc0814612df3ee521ddec2 |
||
|
Eric Harney
|
cbd334d0a8 |
Unwrap httplib.HTTPConnection after WsgiLimiterProxyTest.
Fixes bug 1007307. Change-Id: I0b84d29a86a727b611f60f6be15a6d0d21c17a4b |
||
|
Jenkins
|
dfcaa325f7 | Merge "blueprint lvm-disk-images" | ||
|
Boris Filippov
|
e0540dfed1 |
blueprint lvm-disk-images
Add ability to use LVM volumes for VM disks. Implements LVM disks support for libvirt driver. VM disks will be stored on LVM volumes in volume group specified by `libvirt_images_volume_group` option. Another option `libvirt_local_images_type` specify which storage type will be used. Supported values are `raw`, `lvm`, `qcow2`, `default`. If `libvirt_local_images_type` = `default`, usual logic with `use_cow_images` flag is used. Boolean option `libvirt_sparse_logical_volumes` controls which type of logical volumes will be created (sparsed with virtualsize or usual logical volumes with full space allocation). Default value for this option is `False`. Commit introduce three classes: `Raw`, `Qcow2` and `Lvm`. They contain image creation logic, that was stored in `LibvirtConnection._cache_image` and `libvirt_info` methods, that produce right `LibvirtGuestConfigDisk` configurations for libvirt. `Backend` class choose which image type to use. Change-Id: I0d01cb7d2fd67de2565b8d45d34f7846ad4112c2 |
||
|
Devananda van der Veen
|
ad0031c7fb |
implement sql-comment-string stack traces
Implements solution for bug 1007648. Add python stack traces to all sql comment strings so that someone looking at database query logs can immediately see what code generated each query. This is especially powerful when combined with pt-query-digest to get per-file or per-method aggregates. Change-Id: Ieda5cf4d70cc2643d27fb00efb48de14ca2abe52 |
||
|
Florian Haas
|
42998d0a6f |
More meaningful help messages for libvirt migration options
Change-Id: I08f4724a7ef664cfebba57c5c9495494853289a8 Reference: http://libvirt.org/html/libvirt-libvirt.html#virDomainMigrate |
||
|
Jenkins
|
b1cfea8b97 | Merge "bug #1006094 correct typo in addmethod.openstackapi.rst" | ||
|
daisy-ycguo
|
664723bde9 |
bug #1006094 correct typo in addmethod.openstackapi.rst
Change-Id: Ic03996357aacb6f135b95fc1e5810066b776b980 |
||
|
Zhiteng Huang
|
e599636d09 |
blueprint <multi-process-api-service>
Add multiprocess support for API serivces (EC2/OSAPI_Compute/OSAPI_Volume/Metadata). 2012年06月1日 v7: * Add unittest to cover worker recovery, service termination functionality in wsgi.py, fix python 2.6 compatibility issue. * Modify generate_uid() to introduce per-process seeds in utils.py to avoid collisions. * Add worker session to nova.conf.sample. 2012年05月21日 v6: * Fix 'test_wsgi' unittest error. 2012年04月28日 v5: * Add SIGINT handler and fix child-parent race condition when Ctrl+C is pressed. 2012年03月31日 v4: * Fixed typo, removed debug code. 2012年03月30日 v3: * Fixed localization/pep8 error in unittest, add metadata test. * nova/wsgi.py:Server: use the greenthread pool created for each process. * nova/service.py: remove debug code 2012年03月27日 v2: * Fixed unittest error. * nova/wsgi.py:Server: Use self._logger to do logging in multiprocess mode. * nova/wsgi.py:Server: Move self._pool creation into proper place. * code style fix. 2012年03月25日 v1: * Modification to nova/service.py and nova/wsgi.py in order to support multiprocess (a.k.a. workers) for various API services. If multiprocess mode is enabled, (i.e. flags 'APINAME_workers' set to positive numbers), corresponding API service will run in target number of process(es). There is also a master_worker process spawned for managing all workers (handling signal/termination). * Add unittest for multiprocess API service, also alter testing/runner.py to adopt new unittest. Change-Id: Ia045e595543ddfd192894b2a05801cc4b7ca90cb |
||
|
Jenkins
|
069f8f3ea4 | Merge "Add scheduler filter for trustedness of a host" | ||
|
Matt Joyce
|
1bbf44fa67 |
Grammar / spelling corrections
Change-Id: Id5b6665a2a40a9bd0830c1a3500b4ad98eec435b |
||
|
Don Dugger
|
14c01e09b6 |
Add scheduler filter for trustedness of a host
Implements blueprint trusted-computing-pools Add a scheduling filter that filters based upon the trustedness of a node. A request is sent to the attestation service to disover the trustedness of the target node and, only if it matches the `trust_host' key/value pair in the `extra_specs' for the instance type, then the instance can be started on that node. More details can be found in the docspec for the filter in: nova/scheduler/filters/trusted_filter.py To setup an attestation server go to the Open Attestation Project at: https://github.com/OpenAttestation/OpenAttestation Also add 5 tests for the new filter that verifies: 1) Schedule works with no trust in the extra specs 2) Schedule works with trusted instance and trusted host 3) Schedule works with untrusted instance and untrusted host 4) Schedule fails with trusted instance and untrusted host 5) Scheduel fails with untrusted instance and trusted host Signed-off-by: Don Dugger <donald.d.dugger@intel.com> Signed-off-by: Fred Yang <fred.yang@intel.com> Change-Id: Iafa6aed8061f6cd4630367553aee14bd4b0263e2 |
||
|
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 |
||
|
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 |
||
|
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 |
||
|
Jenkins
|
a07fddf525 | Merge "Use default qemu-img cluster size in libvirt connection driver" | ||
|
Alessio Ababilov
|
f6088545d2 |
Setup logging, particularly for keystone middleware
Fixes bug 979282 and bug 988951 Change-Id: I895d00ac9648e8b3cb3ad1bf141c9bfe02ef3680 |
||
|
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 |
||
|
hua zhang
|
61a515a5a7 |
httplib throw "TypeError: an integer is required" when run quantum
Bug 993149 Change-Id: Ife663ec1cf2b9d094a00c488f849da5857cc34a3 |
||
|
Jenkins
|
d42c424cb9 | Merge "Disallow network creation when label > 255. Fixes bug 965008" | ||
|
vaddi-kiran
|
6a4c092cb8 |
Make updating hostId raises BadRequest.
fixes bug 944028 Change-Id: I563f51dd7afea1d0a9c7391c9e641e7c8c493216 |
||
|
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 |
||
|
Jenkins
|
d813d20c3b | Merge "Introduced flag base_dir_name. Fixes bug 973194" | ||
|
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 |
||
|
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 |
||
|
Jenkins
|
f73dc32a2a | Merge "fix TypeError with unstarted threads in nova-network" | ||
|
Paul McMillan
|
1513cc178e |
Improve grammar throughout nova.
Fixes some "its" and "it's" mistakes, and unifies the tense of some documentation. Change-Id: I9b83aba535b554e80b2cf1e048bb3a4e5cac0e5e |
||
|
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 |
||
|
Brian Elliott
|
549616d122 |
bug 968452
Update test-requires to use pep8>=1.0. Removed PEP8 warning suppression around 3-arg raises. Change-Id: Ib4ed42adc167aa1e8078619a36b409b76b9f5d73 |
||
|
Gabriel Hurley
|
4ceb1adc48 |
Corrects an AttributeError in the quota API.
Fixes bug 972001. Change-Id: Iaf833bb6dae9cc17689e9f13eff917e91a2b722a |
||
|
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 |