--- a/_modules/openstack_client.py Thu Mar 21 14:35:02 2013 +0100
+++ b/_modules/openstack_client.py Thu Feb 28 16:47:40 2013 +0100
@@ -1,6 +1,9 @@
#!/usr/bin/env python
'''
-translation of a bash script to connect to nova
+this module replaces temporarely the glance script from salt (unavailable due to
+glanceclient not being available in debian)
+
+it also relies on the nova script (which works)
'''
from os import environ
--- a/_modules/vm_create.py Thu Mar 21 14:35:02 2013 +0100
+++ b/_modules/vm_create.py Thu Feb 28 16:47:40 2013 +0100
@@ -125,10 +125,12 @@
def update_image(path, image_dirname, create_proxy=True, create_policy=True):
'''
- update image using apt-get. Doing so, it creates a
+ update image using apt-get. Doing so, it creates a few files.
+ In order to be executed in chroot, you should use is with
+ create_proxy=True unless you have /run mounted
***WARNING***
- it also deletes whoopsie which crashed when being updated
+ it also deletes whoopsie which crashed while being updated
return files added which must be deletes afterwards
CLI Example::
@@ -176,7 +178,7 @@
def create_flavor(archive_name, flavor_filename, path=DEFAULT_PATH, upload_to_glance=True):
'''
- complete function to create the new flavor
+ complete function to create the new flavor from a virtual machine
CLI Example::
@@ -199,3 +201,6 @@
#clean
revert(path, (kernel_name, ramdisk_name))
return True
+
+def instanciate_container(container_id):
+