Commit Graph

191 Commits

Author SHA1 Message Date
Jenkins 7c34941b89 Merge "Add logging, error handling to the xenstore lib." 2011-11-16 21:19:31 +00:00
Rick Harris 84ac4d84ab Replacing disk config extension to match spec.
Related to instance-disk-management blueprint.

Change-Id: I84689583562f23356064a502577b2924bcbbc460
2011-11-16 14:12:03 -06:00
Mark Washenberger c51104ab01 Add logging, error handling to the xenstore lib.
Change-Id: If007ba117105d63b1eecfee5b8941d98032d2c9a
2011-11-15 16:21:54 -05:00
Mark Washenberger 89f2fb00b9 Add more error handling to glance xenapi plugin
Also add some extra logging to help track down problems that occur
when getting images from glance.

Change-Id: I2246d06364211ae377c7a89f93a76f339a201a8d
2011-11-10 10:41:29 -05:00
Brian Lamar 9a32891107 Switch glance XenAPI plugin to use urllib2.
Currently the plugin uses httplib which does not handle redirects
natively. XenAPI plugins require Python 2.4+ so using httplib2
as far as I know is not a possibility.

(Patch Set 2) Oops, forgot to PEP8 before putting up for review.
(Patch Set 3) Updated logging to be more verbose as per Waldon

Change-Id: I189093fe26dfee30b5b8b3c0f2c21a35fbfbc05e
2011-11-08 11:17:41 -05:00
Naveed Massjouni 1b7fba648a Adding support for retrying glance image downloads.
Change-Id: Ifff40d90f7dc61a6d41ae2d6908d6e1e6f0aea7e
2011-10-26 14:48:46 -04:00
Johannes Erdfelt 80e196069f Restructure host filtering to be easier to use.
The original design for host filtering in the scheduler required the
entire filtering process be contained in a single class; contrast this
with the design for weighting the hosts, which allowed you to specify
a list of functions that would apply various weighting factors to the
hosts.

This commit modifies the filtering process to resemble the way that
the weighting process is designed. Filters can now be small, focused
classes, and you specify which filters to apply by setting the
'FLAGS.default_host_filters' flag to a list of the filter classes
that match your needs.

This is a port of the code from Launchpad, where it was orphaned:

https://code.launchpad.net/~ed-leafe/nova/scheduler-multifilter/+merge/72478

Change-Id: I5f3eff6f21409a9f0eddda3392e9ff9d03039ebe
2011-10-04 23:03:43 +00:00
Johannes Erdfelt 6574d1bb17 Make snapshots private by default
Fixes bug 850389

Change-Id: I22284c2f71b77aaa1aff0c0679320664cd23dae2
2011-09-28 03:22:41 +00:00
Dan Prince 21da183ede Make sure options is set before checking managed_disk setting. Fixes bug 860520.
Change-Id: I83c6c1cdb8e11959d6af5c08827e9f9ce82a5913
2011-09-27 08:58:54 -04:00
Jenkins a51533729a Merge "Adds disk config" 2011-09-27 05:05:35 +00:00
Dan Prince 14eb9c6ec9 Call endheaders when auth_token is None. Fixes bug 856721.
Change-Id: I2be932d3c532a7be03a0e5296e592e681c05b75d
2011-09-26 13:40:00 -04:00
Matt Dietz 774b5aaa17 Adds disk config
Change-Id: If3e1765b659ead77f9cdaaa86ee8478a82bf67c0
2011-09-23 15:38:36 -05:00
Rick Harris 5652459c41 Fixing list prepend 2011-09-16 20:07:38 +00:00
Rick Harris 6f3ae6e1e5 Allowing resizes to the same machine 2011-09-16 00:22:31 +00:00
Dan Prince 9482275a60 Update GlanceClient, GlanceImageService, and Glance Xen plugin to work with
Glance keystone.
2011-09-10 13:56:54 -04:00
Ed Leafe ecc4e9ee38 Added the host 'enabled' status to the host_data returned by the plugin. 2011-08-17 19:58:22 +00:00
Ed Leafe fee2812193 Fixed typo found in review 2011-08-08 21:46:33 +00:00
Ed Leafe 8f6b59f0a1 Merged trunk. 2011-08-08 20:06:54 +00:00
Ed Leafe de23e5ad63 cleaned up unneeded line 2011-08-08 20:03:14 +00:00
Ed Leafe b23387ef7a Review fixes 2011-08-08 17:34:42 +00:00
Ed Leafe 6dcea0da62 Merged trunk 2011-08-08 15:34:04 +00:00
Ed Leafe 966b7218a0 Merged trunk 2011-08-08 15:31:29 +00:00
Ed Leafe 10ab2e76b1 Updated with code changes on LP 2011-08-08 14:07:03 +00:00
Ed Leafe f1f86d229c Merged trunk 2011-08-08 13:55:04 +00:00
Rick Harris 66916be1ad Read response to reset HTTPConnection state machine 2011-08-05 00:12:19 +00:00
Ed Leafe eb66810f60 Merged in the power action changes 2011-08-04 21:17:21 +00:00
Ed Leafe 75b110aa45 Changed all references to 'power state' to 'power action' as requested by review. 2011-08-04 20:49:21 +00:00
Ed Leafe 6ff2d660d7 Added xenhost config get/setting. 2011-08-04 19:32:10 +00:00
Dan Prince 5e1d63cf3b Updates to the XenServer glance plugin so that it obtains the set of
existing headers and sends them along with the request to PUT a
snapshotted image into glance.
2011-08-04 10:41:42 -04:00
Ed Leafe 3f7c71fd38 Merged trunk 2011-08-03 16:39:48 +00:00
Ed Leafe 8eab369a89 Merged trunk 2011-08-03 00:52:33 +00:00
Ed Leafe a0ec6a6aa5 Removed duplicate methods created by previous merge. 2011-08-03 00:52:15 +00:00
Ed Leafe 0bd6bf4a79 Merged from lab 2011-08-02 19:29:40 +00:00
Ed Leafe 2dce2d54d1 Added the powerstate changes to the plugin. 2011-08-02 18:23:58 +00:00
Ed Leafe 07d89c2938 Added host shutdown/reboot conditioning. 2011-08-02 02:19:31 +00:00
Ed Leafe a2551ad2a2 Merged trunk 2011-08-01 23:38:26 +00:00
Ed Leafe 85795ff1f8 Added option for rebooting or shutting down a host. 2011-08-01 21:06:47 +00:00
Ed Leafe 1753da4d58 Added the config values to the return of the host_data method. 2011-07-28 22:25:08 +00:00
Ed Leafe fe19508779 Added methods to read/write values to a config file on the XenServer host. 2011-07-28 21:59:02 +00:00
Kevin L. Mitchell 4def65d378 Use auth_token to set x-auth-token header in glance requests 2011-07-27 18:13:04 +00:00
Johannes Erdfelt d86af556f4 Older Windows agents are very picky about the data sent to it. It also requires the public key for the password exchange to be in a string format and not an integer.
Also, because of the length of time it takes Windows to boot fully (including a full reboot), the reset network command gets lost. Move this to after we've made sure the agent is up and running successfully.
2011-07-20 21:07:09 +00:00
Johannes Erdfelt 6a88f87c11 Fix permissions for plugins 2011-07-20 15:16:36 +00:00
Johannes Erdfelt 686cd2c5b5 Some older windows agents will crash if the public key for the keyinit command
is not a string.
2011-07-20 14:08:38 +00:00
Dan Prince 813253e8be Don't jsonify the inject_file response. It is already json. 2011-07-18 13:18:16 -04:00
Dan Prince cf14d86767 returncode is an integer. 2011-07-18 10:29:49 -04:00
Dan Prince b927674112 Check returncode in get_agent_features. 2011-07-18 09:38:50 -04:00
Dan Prince 3233d6cafb Change _agent_has_method to _get_agent_features. Update the inject
files function so that it calls _get_agent_features only once per injected
file.
2011-07-16 23:30:47 -04:00
Dan Prince 58eb29ebe4 Updates to the XenServer agent plugin to fix file injection:
-Update _agent_has_method so that it parses the features 'message' from 
 nova-agent correctly. (it was trying to call .split on a dict).
-Rip out the agent_has_method caching functionality which just plain
 isn't working with XenServer 5.6 SP2.
-Pass the arg_dict to _agent_has_method. This fixes an issue where a
 subsequent call to xenstore.write_record didn't get the 'dom_id' (KeyError).
-Fix a string formatting issue in inject_file in creating the b64 data.
2011-07-15 15:05:46 -04:00
Dan Prince 6c3a8e16fb Update the agent plugin so that it gets 'b64_contents' from the args dict
instead of 'b64_file' (which isn't what nova sends).
2011-07-14 13:44:56 -04:00
Naveed Massjouni efc5b1910d Merge from trunk. 2011-07-11 15:13:37 -04:00