Commit 3fe827c5 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

snf-deploy: Fix pithos_url in register

New version of kamaki accepts the location of
images to register as container:file instead of the old
one "pithos://uuid/location".
parent 0909c39c
......@@ -1208,11 +1208,11 @@ def register_image(image="debian_base.diskdump"):
with settings(host_string=env.env.db.ip):
uid, user_auth_token, user_uuid = get_auth_token_from_db(env.env.user_email)
pithos_url = "pithos://{0}/images/{1}".format(user_uuid, image)
image_location = "images:{0}".format(image)
cmd = """
sleep 5
kamaki image register "Debian Base" {0} --public --disk-format=diskdump --property OSFAMILY=linux --property ROOT_PARTITION=1 --property description="Debian Squeeze Base System" --property size=450M --property kernel=2.6.32 --property GUI="No GUI" --property sortorder=1 --property USERS=root --property OS=debian
""".format(pithos_url)
""".format(image_location)
try_run(cmd)
@roles("client")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment