summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Fix disassociating of auto assigned floating ips.Todd Willey2012-01-181-2/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also makes adds passing True to the disassociate/deallocate functions use a kwarg so the meaning is more apparent. Fixes bug #918358. Change-Id: Ie88d19456ffe0fa5f7c7bba79b572672db96c766
* | | | Merge "fixes bug lp914962"Jenkins2012-01-181-2/+3
|\ \ \ \ | |/ / / |/| | |
| * | | fixes bug lp914962Trey Morris2012-01-181-2/+3
| | | | | | | | | | | | | | | | Change-Id: I0f432b790ebee3a017f2124619a9ab78421b0eac
* | | | Add dns domain manipulation to nova.Andrew Bogott2012-01-1815-198/+803
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding this functionality required the existing DNS api to be rearranged considerably. Nova needs to track some information about domains that is outside the scope of the DNS driver, specifically the availability zone of a private domain and the project of a public domain. In order to track those attributes, this patch adds a new table to the Nova database, dns_domains. This patch perpetuates some naming ambiguities (e.g. zone vs. domain). A future renaming patch will sort all this out. For blueprint public-and-private-dns. Change-Id: I80865207d34ab7c6e2afc5638863a299b3913f8e
* | | Merge "Separate scheduler host management"Jenkins2012-01-1824-1266/+1613
|\ \ \
| * | | Separate scheduler host managementChris Behrens2012-01-1824-1266/+1613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bit of a scheduler refactoring to support future scaling work as a part of blueprint scaling-zones. Also fixes bug 891971 (remove unused set_network_host in scheduler) With or without that blueprint work, this cleans a number of things up and paves the way for combining a lot of the schedulers by using this new 'HostManager' for filtering and weighing (future work :) On to the goodies: Introduces new HostManager, splitting code out from ZoneManager. Zone communication and management is handlded in the ZoneManager. Host filtering and weighing is handled in the HostManager. ZoneManager is removed from the SchedulerManager and direct calls to it from the SchedulerManager now occur via the scheduler driver. This simplifies a number of things. ZoneManager and HostManager classes to use are now flags. This allows one to extend the current classes and use them. HostManager uses a HostState class to keep info about hosts. This class needs to be extendable. Since it's very much tied to the HostManager, the HostState class to use is not a flag. It is, instead, a class variable in HostManager. Filtering functions now accept a single host to filter. This improves performance by not having to build a new array of hosts within every filter function. Filtering functions now accept a more generic 'filter_properties' dictionary which we can fill with information available for filtering. Adding additional data to this 'filter_properties' can be done by subclassing. Weighing functions now accept this 'filter_properties', also, although it's poorly named ATM. Will be cleaned up in a future branch when I move some weighing functions into the host manager. Filtering tests are true unit tests now. test_zones was moved from top level to under scheduler as zone_manager tests and refactored to be true unit tests. Host tests are true unit tests now. Other minor cleanups Change-Id: I0ef2acef6639b4500c400c18cf2c673cb80f0150
* | | | Fixed bug 912701Alvaro Lopez Garcia2012-01-183-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an check to the list_instances method so that the domains whose ID is 0 are not listed, since this is reserved in libvirt for hypervisors. Refers to https://lists.launchpad.net/openstack/msg06699.html Change-Id: I55f6f370cbaf8bd2254e08afad8b36d833726817
* | | | Merge "Set instance_ref property when creating snapshots."Jenkins2012-01-185-19/+15
|\ \ \ \ | |/ / / |/| | |
| * | | Set instance_ref property when creating snapshots.Dan Prince2012-01-175-19/+15
| |/ / | | | | | | | | | | | | | | | Fixes LP bug #917810. Change-Id: I17c1e467a13075f3952dc6a1b475bc71a8b1d9bc
* | | Merge "Stop allowing blank image names on snapshot/backup"Jenkins2012-01-182-7/+13
|\ \ \ | |/ / |/| |
| * | Stop allowing blank image names on snapshot/backupAlex Meade2012-01-172-7/+13
| |/ | | | | | | | | | | Fixes bug 917327 Change-Id: I0b77b088c9fe99354bcec3706fbdc05f3c39ae90
* | Merge "Only update if there are networks to update"Jenkins2012-01-171-52/+58
|\ \
| * | Only update if there are networks to updateJohannes Erdfelt2012-01-171-52/+58
| |/ | | | | | | | | | | Fixes bug 917812 Change-Id: Ibb59e2ae634590fe57e777b720a84580c6ed64cc
* | Implements blueprint vnc-console-cleanupAnthony Young2012-01-1728-466/+783
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Creates a unified way to access vnc consoles for xenserver and libvirt * Now supports both java and websocket clients * Removes nova-vncproxy - a replacement version of this (nova-novncproxy) can be found as described in vncconsole.rst * Adds nova-xvpvncproxy, which supports a java vnc client * Adds api extension to access java and novnc access_urls * Fixes proxy server to close/shutdown sockets more cleanly * Address style feedback * Use new-style extension format * Fix setup.py * utils.gen_uuid must be wrapped like str(utils.gen_uuid()) or it can't be serialized Change-Id: I5e42e2f160e8e3476269bd64b0e8aa77e66c918c
* | Merge "blueprint host-aggregates"Jenkins2012-01-177-0/+737
|\ \
| * | blueprint host-aggregatesArmando Migliaccio2012-01-177-0/+737
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first of a series of commits that add the host-aggregates capability, as described on the blueprint page. This commit, more precisely, introduces changes to the Nova model: model classes related to aggregates have been added, as well as DB API methods to interact with the model; a sqlalchemy migration script plus a bunch of tests are also part of this changeset. Commits that will follow are going to add: - Extensions to OSAPI Admin, and related python_novaclient mappings - Implementation of the XenAPI virt layer - Integration of OSAPI and virt layer, via the compute_api - smoketests - openstack-manuals documentation These commits will be pushed for review not necessarily in this exact order. Change-Id: Iceb27609dc53bf4305c02d7cbc436fba4c4a7256
* | | Merge "Fix an error that prevents message from getting substituted."Jenkins2012-01-171-1/+3
|\ \ \
| * | | Fix an error that prevents message from getting substituted.Kevin L. Mitchell2012-01-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem: self.__dict__ contains message. This overrides the default of None for the NovaException constructor. Since a message is provided, it's used directly instead of trying to substitute the keyword arguments. The solution is to limit the keyword arguments we pass to the NovaException constructor, so they don't contain message. Fixes bug 917768. Change-Id: I5986fa7b552c84ba7f902e78b32498ab294beb7b
* | | | Rebuild/Resize support for disk-config.Rick Harris2012-01-173-140/+141
| |_|/ |/| | | | | | | | | | | | | | Fixes bug 917306 Change-Id: I27848a4503a5027b0e5f9cad3f110ea67c462327
* | | Merge "Clean up generate fingerprint."Jenkins2012-01-173-25/+16
|\ \ \ | |_|/ |/| |
| * | Clean up generate fingerprint.MotoKen2012-01-173-25/+16
| | | | | | | | | | | | Change-Id: I5e29c2af495d5b8e58d7101545f43ba40c5a97a4
* | | Merge "Add missing scripts to setup.py (lp#917676)"Jenkins2012-01-171-3/+7
|\ \ \
| * | | Add missing scripts to setup.py (lp#917676)Mark McLoughlin2012-01-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If distutils-extra is installed, all scripts are automatically included in the tarball. We should explicitly include them in setup.py to avoid confusion. As an example, the 2011.3 tarballs appear to have been generated with distutils-extra but the 2011.3.1/2012.1 tarballs are now being generated in a venv. So, these newer tarballs are missing scripts which were included in 2011.3. Change-Id: I2a85418b84b93e041f6c7d31833b09acdcb29daa
* | | | Merge "Add policy checking to nova.network.api.API"Jenkins2012-01-176-15/+173
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add policy checking to nova.network.api.APIBrian Waldon2012-01-166-15/+173
| | | | | | | | | | | | | | | | | | | | | | | | Partially implements bp interim-nova-authz-service Change-Id: Ib93d854ee1a7f22f4e7f313a9d50300df8b8596b
* | | | Merge "Updates linux_net to ignore some shell errors"Jenkins2012-01-172-16/+16
|\ \ \ \
| * | | | Updates linux_net to ignore some shell errorsVishvananda Ishaya2012-01-122-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allows exit 254 from ip add and ip del * Allows exit 7 from route add and route del * These exit codes means the ip/route already existed or was already removed * Fixes bug 915556 Change-Id: Ib71da2351372f3c7e3558cf5b3e9f55e10681875
* | | | | Merge "Fixes bug 917128"Jenkins2012-01-171-2/+2
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Fixes bug 917128Alvaro Lopez Garcia2012-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I01c384666ae2366638fe77ffbe2f85e9e2692303
* | | | | Merge "improve handling of the img_handlers config list"Jenkins2012-01-171-1/+4
|\ \ \ \ \
| * | | | | improve handling of the img_handlers config listPádraig Brady2012-01-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a 'loop' entry to be optional. Also improve the diagnostic with an empty or non capable list. Change-Id: Iec395497e43d1e84adbfc5f29a7bce82d4f91587
* | | | | | Merge "Add default policy rule"Jenkins2012-01-175-93/+63
|\ \ \ \ \ \
| * | | | | | Add default policy ruleBrian Waldon2012-01-165-93/+63
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | If a specific rule is not found, we will check the rule defined in FLAGS.policy_default_action. Change-Id: Ib1b1aa4bbeec74bdb1562d0fc649d33838076f01
* | | | | | Merge "Fix some cfg test case naming conflicts"Jenkins2012-01-171-18/+18
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Fix some cfg test case naming conflictsMark McLoughlin2012-01-121-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out by Vish, there are duplicates of: OverridesTestCase::test_default_override OverridesTestCase::test_override SadPathTestCase::test_conf_file_not_found Also, rename the ConfigFileOptsTestCase so it is obvious they don't clash with the tests by the same name in CliOptsTestCase. Change-Id: I5cda3c4796b98eaf0e99589579d0b3bceaf9cd8b
* | | | | | Merge "Prefixing the request id with 'req-' to decrease confusion when ↵Jenkins2012-01-172-3/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | looking at logs."
| * | | | | | Prefixing the request id with 'req-' to decrease confusion when lookingNaveed Massjouni2012-01-132-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at logs. Change-Id: Ic29b9c6b83c4572d17c0b48fb509063d279d3a78
* | | | | | | Merge "Add ipv4 and ipv6 validation"Jenkins2012-01-172-2/+197
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | |
| * | | | | | Add ipv4 and ipv6 validationAlex Meade2012-01-162-2/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 891264 Change-Id: Ie5975a6ee8129392b308d405ab5cb9303bdd0a89
* | | | | | | Merge "Add tests for volume list and detail through new volume api, and fix ↵Jenkins2012-01-172-1/+110
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | error that the tests caught"
| * | | | | | | Add tests for volume list and detail through new volume api, and fix error ↵Anthony Young2012-01-162-1/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that the tests caught Change-Id: I6c706e4681cf079caab614b0870315b275339028
* | | | | | | | Super is not so super.Naveed Massjouni2012-01-161-8/+8
| |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing bug where calling super causes TypeError. For explanation, see: http://stackoverflow.com/questions/489269/python-super-raises-typeerror-why bug: 917398 Change-Id: Ib2bd69496b4e1e93f63b17b9ba751ae27126f736
* | | | | | | Merge "Update some extensions (1)"Jenkins2012-01-1611-281/+226
|\ \ \ \ \ \ \
| * | | | | | | Update some extensions (1)Kevin L. Mitchell2012-01-1611-281/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the following extensions to conform to new interfaces: * admin_actions (AdminActions) * console_output (Console_output) * deferred_delete (DeferredDelete) * floating_ips (Floating_ips) * multinic (NMN) * rescue (Rescue) * security_groups (SecurityGroups) Related to blueprint extension-refactor. Change-Id: Ica7b44db22835971703cc72d831410d7e7660f1d
* | | | | | | | Fixed the log linePhilip Knouff2012-01-162-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed bug #877417 Change-Id: Iddb9a6d4eb798b0f41f0ef1ab01cb02d16d16dbe
* | | | | | | | Merge "Modify the fake ldap driver to fix compatibility."Jenkins2012-01-161-4/+19
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Modify the fake ldap driver to fix compatibility.Andrew Bogott2012-01-131-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fake implementation was raising an exception during a failed search_s where the normal python ldap module does not. So, removed that raise. Also added a modrdn_s implementation because I need it for a network test. (Indirectly) for blueprint public-and-private-dns. Change-Id: Ia86a776afe19ffce72b285bb4c96ce3ed0ae7c4a
* | | | | | | | Merge "Typofix for impl_kombu."Jenkins2012-01-161-4/+4
|\ \ \ \ \ \ \ \
| * | | | | | | | Typofix for impl_kombu.Rick Harris2012-01-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 917377 Change-Id: I375f70bc35fe96813f8706f1691d1619f46b8f84
* | | | | | | | | Merge "Refactoring logging _log function."Jenkins2012-01-161-12/+47
|\ \ \ \ \ \ \ \ \