summaryrefslogtreecommitdiff
path: root/nova/api/openstack/compute/contrib/multinic.py
Commit message (Collapse)AuthorAgeFilesLines
* Normalize API extension updated timestamp formatMark McLoughlin2014-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | It's unusual to include a '+00:00' offset in an ISO8601 timestamp rather than just using the 'Z' suffix. It's also very weird for our API to be returning timestamps which aren't in UTC. Let's make these timestamps consistent with other timestamps by using UTC always and representing that with a 'Z' suffix. Also, enforce this in the API sample tests by using a new 'isotime' regexp. A small number of the extensions in the API sample templates specified the exact timestamp, so templatize those before regenerating the API samples for GET /extensions. Full context here: http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html Change-Id: Idf429e55e4ae13738ac531a25ce54b20d395410d
* Fix the explanations of HTTPNotFound responseKen'ichi Ohmichi2014-02-271-1/+1
| | | | | | | | | | | | | | Nova wsgi framework gets "explanation" from HTTPNotFound exception and outputs it into a response body as "message" attribute. Now some error explanations are passed to HTTPNotFound exception without explanation argument and they are not output to a response body. As the result, the default message "The resource could not be found." of wsgi library are output to a response body instead. This patch fixes them to output right message to a response body. Change-Id: I80d3a2da6258e94c485ce024eb310a63bcf39773 Closes-Bug: #1285437
* Convert remove_fixed_ip_to_instance to objectsMichael Still2014-02-171-1/+2
| | | | | | | Related to blueprint icehouse-objects. Related to blueprint compute-manager-objects. Change-Id: I443784d95cf0556dc4e6f9ac7f91466c766819b6
* Convert add_fixed_ip_to_instance to objectsMichael Still2014-02-171-3/+4
| | | | | | | Related to blueprint icehouse-objects. Related to blueprint compute-manager-objects. Change-Id: I2c79b02e20347caaa2c0c67c46c22b818559aceb
* Remove the monkey patching of _ into the builtinsAlex Gaynor2013-07-261-0/+1
| | | | | | | | Previous _ was monkey patched into builtins whenever certain modules were imported. This removes that and simply imports it when it is needed. Change-Id: I0af2c6d8a230e94440d655d13cab9107ac20d13c
* Update OpenStack LLC to FoundationKurt Taylor2013-02-261-1/+1
| | | | | | Update all references of "LLC" to "Foundation". Change-Id: I009e86784ef4dcf38882d64b0eff484576e04efe
* Fix N402 for nova/apiSean Dague2013-01-081-1/+1
| | | | | | | | | | Fix N402 errors (single line docstring should end in a period) for nova/api, part of a larger attempt to stop ignoring our own hacking.py tests. Fix tests that look at docs in extensions Change-Id: I89d89d1fcf37c4e7740c36375da4c751d1b621ed
* Switch to common logging.Andrew Bogott2012-07-021-1/+1
| | | | | | I only just moved logging from nova to common, so behavior should remain the same. Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
* Include instance in log message.Michael Still2012-04-261-1/+2
| | | | Change-Id: Id4f8be8cf01d04602feaf62f388702011dea692e
* Remove unused imports and variables from OS APIChris Behrens2012-02-291-1/+1
| | | | | | | | Also spotted and fixed a bug in multinic compute extension (extension.* was typoed as extensions.*) Also noted a potential bug in 'virtual_storage_arrays' extension Change-Id: Iee2f67b13b3e321f8de3df5684c1c9eb13db95eb
* Standardize logging delaration and useJason Kölker2012-02-141-1/+1
| | | | | | * Make modules use getLogger(__name__) and log to the result Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
* Remove admin_only ext attr in favor of authzBrian Waldon2012-01-241-2/+5
| | | | | | | | | | | | | Working on blueprint separate-nova-adminapi. This removes the admin_only extension attribute and the allow_admin_api flag. The approach we're going for now is to load all extensions, but to set an admin-only rule in our policy file for those extensions that should be limited to just admin users. Now that all of our admin api code has been moved to extensions, in order to prevent admin api code from being loaded, simply remove it from the extension list. Change-Id: Ic574e06af44922ba764013b769077fc5099fd1a2
* Update some extensions (1)Kevin L. Mitchell2012-01-161-41/+28
| | | | | | | | | | | | | | | | 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
* Implements blueprint separate-nova-volumeapiAnthony Young2012-01-131-0/+106
* Moves openstack/v2 directory to compute and fixes tests accordingly * Moves some code from api/openstack/compute to shared location, for use by volume api * Implements basic volume functionality for types, volumes, and snapshots * Changes service name from osapi to osapi_compute (and adds osapi_volume) * Renames nova-api-os to nova-api-os-compute, adds nove-api-os-volume * Separate extension mechanism for compute and volume ** Removes flag osapi_extension and replaces with osapi_compute_extension and osapi_volume_extension * Updates the paste config * Fixes setup.py to include nova-os-api-compute and nova-os-api-volume * Fix bug in volume version code that occurred as result of trunk merge * Update integrated/test_volumes.py to use new endpoint Change-Id: I4c2e57c3cafd4e1a9e2ff3ce201c8cf28326afcd