Rick Harris
66916be1ad
Read response to reset HTTPConnection state machine
2011-08-05 00:12:19 +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
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
Naveed Massjouni
dcd1cbc5e2
Making the xen plugins rpm to be noarch.
2011-07-11 15:12:47 -04:00
Salvatore Orlando
bc8f009f8a
implemented clean-up logic when VM fails to spawn for xenapi back-end
2011-07-07 18:36:02 +00:00
Ed Leafe
b02b1d7824
Updated the plugin to return the actual enabled status instead of just 'true' or 'false'
...
.
2011-07-05 14:36:52 +00:00
Ed Leafe
42dabbc86e
Updated unit tests
2011-07-01 19:44:10 +00:00
Salvatore Orlando
f09ca2b453
Merge trunk
...
Fixing docstrings
2011-07-01 19:06:18 +01:00
Naveed Massjouni
4a3ef4367d
Adding files for building an rpm for xenserver xenapi plugins.
2011-06-29 14:24:17 +00:00
Naveed Massjouni
7b6ded922a
Updating license to ASL 2.0
2011-06-27 12:10:47 -04:00
Naveed Massjouni
998b5ba2c7
Changed package name to openstack-xen-plugins per dprince's suggestion.
...
All the files in /etc/xapi.d/plugins must be executable.
Added dependency on parted.
Renamed build.sh to build-rpm.sh.
2011-06-27 12:04:44 -04:00
Salvatore Orlando
f4753fbcc0
Merge trunk
2011-06-27 14:42:36 +01:00
Naveed Massjouni
21cbac8334
Adding files for building an rpm for xenserver xenapi plugins.
2011-06-27 00:20:53 -04:00
Ewan Mellor
9f5a604e24
Remove the unnecessary insertion of whitespace. This happens to be enough
...
to make this patch apply on recent versions of XenServer / Xen Cloud Platform.
2011-06-25 02:10:27 +00:00
Salvatore Orlando
e67802fb86
Merge trunk
...
Addressing Sandy's comments
2011-06-23 15:00:59 +01:00
Ewan Mellor
31e3aed4a2
Remove the unnecessary insertion of whitespace. This happens to be enough
...
to match this patch apply on recent versions of XenServer / Xen Cloud Platform.
2011-06-20 20:33:15 -07:00
Johannes Erdfelt
00eae759e8
Result is already in JSON format from _wait_for_agent
2011-06-17 20:34:43 +00:00
Johannes Erdfelt
edcb7399e3
Merge with trunk
2011-06-15 14:33:52 +00:00
Salvatore Orlando
1f717118f3
Merge trunk
...
Adapting code for removing dangling vdis and kernel/ramdisk files to latest changes
2011-06-14 15:44:51 +01:00
Salvatore Orlando
481c7be183
Merge trunk
...
Adapting code to changes in fetch_image
2011-06-13 16:25:54 +01:00
Dan Prince
73303a3465
Updated so that we use a 'tmp' subdirectory under the Xen SR when staging
...
migrations. Fixes an issue where you would get a 'File exists' error because
the directory under 'images' already existed (created via the rsync copy).
2011-06-11 22:12:59 -04:00
Johannes Erdfelt
1392d885e6
Add version and agentupdate commands
2011-06-09 20:10:02 +00:00
Dan Prince
f521426039
Updated to use the '/v1/images' URL when uploading images to glance
...
in the Xen glance plugin. Fixes issue where snapshots failed to get uploaded.
2011-06-03 14:14:28 -04:00
Cory Wright
2bd6e55613
pep8 fixes
2011-05-31 09:51:20 -04:00
Cory Wright
a027d887b7
merge trunk
2011-05-26 16:58:40 -04:00
Cory Wright
613aee2dd1
move udev file so it follows the xen-backend.rules
2011-05-26 16:58:06 -04:00
Chris Behrens
9e22f51c80
put back the hidden assert check i accidentally removed from glance plugin
2011-05-26 20:01:09 +00:00
Chris Behrens
04785db717
fix image_path in glance plugin
2011-05-26 19:37:51 +00:00
Chris Behrens
899642030d
Change the return from glance to be a list of dictionaries describing VDIs
...
Fix the rest of the code to account for this
Add a test for swap
2011-05-26 19:27:27 +00:00
Chris Behrens
42c209d90f
fix tests, have glance plugin return json encoded string of vdi uuids
2011-05-23 16:51:28 -05:00
Chris Behrens
94766fac0f
cleanup and fixes
2011-05-23 20:42:54 +00:00
Chris Behrens
ffac2aa816
initial fudging in of swap disk
2011-05-23 14:38:37 -05:00
Cory Wright
57acd948d8
merge trunk
2011-05-23 11:39:39 -04:00
paul@openstack.org
a615702773
fixing glance plugin bug and setting the plugin to use /v1 of the glance api
2011-05-20 16:45:19 -05:00
Cory Wright
0850945efd
move init start position to 96 to allow openvswitch time to fully start
2011-05-20 21:30:04 +00:00
Cory Wright
2c6c184138
fix typo in udev rule
2011-05-18 20:46:21 +00:00
Cory Wright
bee87f68c4
merge trunk
2011-05-18 20:40:56 +00:00
Josh Kearney
4d025ef1d2
Added missing xenhost plugin.
2011-05-18 11:27:39 -05:00
Cory Wright
fd2861fdcd
fix sys.argv requirement
2011-05-13 21:05:12 +00:00
Cory Wright
bccbe3f845
add udev rules and modified ovs_configure_vif_flows.py to work with udev rules
2011-05-13 19:29:10 +00:00