summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | | | | | | | Move aggregate_get() to conductorDan Smith2012-12-195-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the final remaining aggregate DB operation from the compute/manager to conductor/manager. Related to bp/no-db-compute-manager Change-Id: I1ec6b64d29da21f978f7b72a1f8271fe68e3a44d
* | | | | | | | | | | | | | | | | Merge "Add .testrepository/ directory to gitginore"Jenkins2012-12-191-0/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | | Add .testrepository/ directory to gitginoreMauro S. M. Rodrigues2012-12-191-0/+1
| |/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib46a3d996e54c249773ac3c45960d471d21d2357
* | | | | | | | | | | | | | | | | Merge "Make NBD retry logic more generic, add retry to loop."Jenkins2012-12-195-18/+154
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Make NBD retry logic more generic, add retry to loop.Michael Still2012-12-195-18/+154
| | |/ / / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other device implementations require retry logic as well. This change pushes the retry logic up one layer so that its easy to implement for the other drivers that will benefit from it, and then adds retry to the loop driver. This change also adds some unit test coverage for the loop driver. Change-Id: Iab0d42d5075e9d50b4e7eb8c7fcef12cae281b40
* | | | | | | | | | | | | | | | Merge "Make load_network_driver load passed in driver."Jenkins2012-12-191-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Make load_network_driver load passed in driver.Dan Prince2012-12-191-2/+2
| | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small fix to the load_network_driver function so that it loads the driver we pass in as a variable rather than always using CONF.network_driver. Change-Id: I9afbbd87bde07ad9d425512dce37b54fd5e3b21e
* | | | | | | | | | | | | | | Merge "Add option to make exception format errors fatal."Jenkins2012-12-191-2/+16
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|/ / / / / / / / / / | |/| | | | | | | | | | | / / | |_|_|_|_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Add option to make exception format errors fatal.Dan Prince2012-12-181-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new fatal_exception_format_errors config option which defaults to False. This option is use to control how the base NovaException class handles errors which can occur when it formats error messages. The motivation for this change is to be able to enable exception format checking in our tests by setting fatal_exception_format_errors=True. Change-Id: Ie96261ed96bcede4a2b5ec5600cb93c15141a800
* | | | | | | | | | | | | | Merge "Import cfg module in extract_opts.py."Jenkins2012-12-191-0/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Import cfg module in extract_opts.py.Dan Prince2012-12-181-0/+1
| |/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the tools/conf/extract_opts.py module so it imports cfg again. Fixes "global name 'cfg' is not defined" errors which occur without it. Change-Id: Idf7c2c5201c79e7aa359bc555306caadebcc18ce
* | | | | | | | | | | | | Merge "Update command on devref doc"Jenkins2012-12-191-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Update command on devref docSulochan Acharya2012-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the apt-get command to build mysql dependency for ubuntu. It currenly says apt-get install build-dep python-mysqldb which should just be apt-get build-dep python-mysqldb Change-Id: I541f7b80802a6b7191f2fe0338965ef425e7c2fd
* | | | | | | | | | | | | | Merge "Fixed deleting instance booted from invalid vol"Jenkins2012-12-192-2/+28
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Fixed deleting instance booted from invalid volUnmesh Gurjar2012-12-142-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Translated the exception (NotFound) raised from Cinder client to Nova's native exception (VolumeNotFound). 2. Added unit test coverage. Fixes LP: #1087214. Change-Id: I3cee31a9fd068b65a4097f3f3054aebb69d9ba61
* | | | | | | | | | | | | | Merge "Fix API samples generation."Jenkins2012-12-191-2/+5
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Fix API samples generation.Matthew Treinish2012-12-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Change: Ie46b24a65145c407d46974b63a97a84911223547 a check was added to _verify_response() to verify the samples. However, when trying to generate new samples this blocks _write_sample() because it attempts to read a non-existent file. This change ensures that the sample is created before the verification and still retains the behavior that the samples are only updated on changes. Change-Id: I1527ba71676b2e1e10bd334f2a7878404d12600c
* | | | | | | | | | | | | | | Merge "Remove the WillNotSchedule exception."Jenkins2012-12-191-4/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Remove the WillNotSchedule exception.Dan Prince2012-12-161-4/+0
| | |_|_|_|_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the WillNotSchedule from the Nova exception module. It is no longer being used. Change-Id: I865402ec30f9fa1de31c443db51e7f53004d6817
* | | | | | | | | | | | | | | Merge "Allow specification of libvirt guest interface backend driver"Jenkins2012-12-192-0/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Allow specification of libvirt guest interface backend driverDaniel P. Berrange2012-12-182-0/+7
| | |_|_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the libvirt config APIs to allow the backend driver name to be set for guest interface devices Change-Id: Ibde6f0c5e1700b414bb188fb47f511a47cfc0abf Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* / | | | | | | | | | | | | Fix typos in vncserver_listen config param help descriptionDaniel P. Berrange2012-12-181-1/+1
|/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing space between words, and capitalize "IP" fully in vncserver_listen config param Change-Id: Ica525910a883e8ff99793e950316d640e1750f98 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | | | | | | | | | | | Merge "Move network_driver into new nova.network.driver"Jenkins2012-12-185-18/+50
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Move network_driver into new nova.network.driverMark McLoughlin2012-12-165-18/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new load_network_driver() function which constrains the use of the network_driver option and move the option into nova.network.driver. blueprint: scope-config-opts Change-Id: I0a839765890093dc871b48435cfd113e0f8e46c4
* | | | | | | | | | | | | | Merge "network/api add_fixed_ip correctly passes uuid"Jenkins2012-12-181-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | network/api add_fixed_ip correctly passes uuidTrey Morris2012-12-181-1/+1
| | |_|_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network/api.py add_fixed_ip_to_instance() was passing the instance id instead of the uuid. fixes bug 1091598 Change-Id: If2bc8de35793e6574da236bc1189ed5d60b30529
* | | | | | | | | | | | | | Merge "Imported Translations from Transifex"OpenStack Jenkins2012-12-181-251/+278
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2012-12-181-251/+278
| | |_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I86a8f90017429f23b8f212679fe5dd97a3a905ea
* | | | | | | | | | | | | | Merge "Move DNS manager options into network.manager"Jenkins2012-12-183-13/+12
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | |
| * | | | | | | | | | | | | Move DNS manager options into network.managerMark McLoughlin2012-12-163-13/+12
| | |_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The instance_dns_manager, instance_dns_domain and floating_ip_dns_manager options are only used in nova.network.manager. blueprint: scope-config-opts Change-Id: Ic4dfe01ec87e0b9a4ba244f85cf0a81568f3f9bf
* | | | | | | | | | | | | Merge "Traceback when user doesn't have permission."Jenkins2012-12-181-0/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Traceback when user doesn't have permission.Chuck Short2012-12-181-0/+3
| | |_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a user tries to access an image that is forbidden it sends an HTTPForbidden. Inform the user with a help message that the permission is not available to them. Change-Id: I3082c789876440226b5f177216ec628436c7b3ce Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | | | | | | | | | | | | Merge "removed duplicate function definitions"Jenkins2012-12-181-8/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | removed duplicate function definitionsTrey Morris2012-12-181-8/+0
| | |_|/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes bug 1091611 Change-Id: I8d4d69122e5743dc230ce83d3631b6edfed6ebbd
* | | | | | | | | | | | Merge "Properly remove the time override in quota tests."Jenkins2012-12-181-7/+3
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Properly remove the time override in quota tests.Robert Collins2012-12-181-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using set_time_override directly makes it easy to forget to call clear_time_override, and forgetting to call it will break tests that rely on time being sensible, advancing normally etc. Using useFixture(TimeOverride()) ensures that clear_time_override is automatically called when the test ends. Change-Id: I8753524324fb9a20c30b41a114b265b336b3d54c
* | | | | | | | | | | | | Merge "Move TimeOverride to the general reusable-test-helper place."Jenkins2012-12-182-11/+10
|\| | | | | | | | | | | | | |/ / / / / / / / / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Move TimeOverride to the general reusable-test-helper place.Robert Collins2012-12-182-11/+10
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ife5355252813f9b14d5b3f8b543649b88a92acb9
* | | | | | | | | | | Merge "Added conf support for security groups"Jenkins2012-12-181-1/+6
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Added conf support for security groupsJustin Hammond2012-12-171-1/+6
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified the way nova.compute.api.API loads the security group API. Previously it would accept a named-parameter and if that was None, default to SecurityGroupAPI. It still accepts a named-parameter but if that is None, then it will attempt to load the API from CONF, and then default to SecurityGroupAPI. The basic use-case should not be altered by these changes. Implements: blueprint nova-securitygroups-expansion Change-Id: Ib252a0755f320289c3c7cb6518d55e63d3392789
* | | | | | | | | | | Merge "Use service fixture in DB servicegroup tests."Jenkins2012-12-181-15/+26
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Use service fixture in DB servicegroup tests.Clark Boylan2012-12-171-15/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was possible that the services created by the DB servicegroup tests hung around and conflicted with other tests. Move the services used by these tests into a fixture so that they can be cleaned up properly. To ensure cleanup happens call Service.kill() on the service. Change-Id: I38aafc6b6d3a17f104db9d8f13b1ab3b4632d470
* | | | | | | | | | | | Merge "Reset the IPv6 API backend when resetting the conf stack."Jenkins2012-12-181-0/+2
|\| | | | | | | | | | |
| * | | | | | | | | | | Reset the IPv6 API backend when resetting the conf stack.Robert Collins2012-12-181-0/+2
| | |_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes test isolation errors where tests were running with the wrong ipv6 backend and failing. The failures occured because Python discovers tests in filesystem order rather than a sorted order, and the test that was changing the backend had previously always run later under nose, which does not use filesystem order. Change-Id: Ife4370d0747b269c9bc9aabb50c531cb6c9fec13
* | | | | | | | | | | Merge "Add DBDuplicateEntry exception for unique constraint violations"Jenkins2012-12-183-25/+91
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | |
| * | | | | | | | | | Add DBDuplicateEntry exception for unique constraint violationsBoris Pavlovic2012-12-183-25/+91
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unique constraint violation is wrapped by IntegrityError in SqlAlchemy. SqlAlchemy doesn't unify errors from different DBs so we must do this in nova. Also in some tables (for example instance_types) there are more than one unique constraint. This means we should get names of columns, which values violate unique constraint, from error message. Unique constraint violations messages are different for different DB backedns: 1) sqlite: 1 column - (IntegrityError) column c1 is not unique N columns - (IntegrityError) column c1, c2, ..., N are not unique 2) postgres: 1 column - (IntegrityError) duplicate key value violates unique constraint "users_c1_key" N columns - (IntegrityError) duplicate key value violates unique constraint "name_of_our_constraint" 3) mysql: 1 column - (IntegrityError) (1062, "Duplicate entry 'value_of_c1' for key 'c1'") N columns - (IntegrityError) (1062, "Duplicate entry 'values joined with -' for key 'name_of_our_constraint'") There is no information about table and columns in `N columns` messages for mysql and postgres. So we should make name convention for UniqueConstraints name: "uniq_c1_x_c2_x_c3" means that columns c1, c2, c3 are in UniqueConstraint. Also there is another way to get columns name from unique constraint: 1) Get table name. 2) Load table = Table(table_name, meta, autoload=True). 3) Find unique constraint that is in table.constraints by name. 4) Get columns names from unique constraint object. But I think that it is a bad approach because: 1) We must do table autoload in exception handling 2) There is no easy way to get table name in wrap_db_error() method. Remove Duplicate exception handling from models.save() method. Add new DBDuplicateEntry exception to exceptions module. Add new wrapper in sqlalchemy get_session() for handling Integrity Error. blueprint db-unique-keys Change-Id: Ic8fd8e0613f10d06c1d7d90f76a436099e8bfef2
* | | | | | | | | | Merge "Add the missing replacement text in devref doc."Jenkins2012-12-182-0/+2
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / |/| | | | | | | | |
| * | | | | | | | | Add the missing replacement text in devref doc.Xiangyang Chu2012-12-142-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add AggregateInstanceExtraSpecsFilter's replacement text in doc/source/devref/filter_scheduler.rst Change-Id: I5b74c5f51eb85f79f79a2d2c556d6522d97f1497
* | | | | | | | | | Merge "Remove the deprecated quantum v1 code and directory."Jenkins2012-12-181-273/+0
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Remove the deprecated quantum v1 code and directory.Yaguang Tang2012-12-121-273/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code in this directory is the v1 to integrate quantum with nova. at that time, quantum hasn't a client and keystone support. At the nova side , there is a quantum manager that connect to quantum server. now, all code has been removed execept the nova_ipam_lib which is unused too. this patch removes the nova_ipam_lib.py. Change-Id: I05146d47fb57f215f8d010dbde8fdc0b2de55301