Fixing issues with Glance image upload function

On first run, multiple images were being uploaded with
the same name.  This patch limits the task to the first
Magnum container to prevent this.  Additionally, the Glance
client was not installed on the server, thus resulting
in an error when attemping to upload the image.  This is
now included in the magnum_requires_pip_packages variable.

Change-Id: I03183881390fe98b492b010b7627d5a444a7d7b3
This commit is contained in:
Chris Hultin 2016-07-06 11:24:30 -05:00
parent e6f8ef8580
commit 50780ba07f
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ magnum_glance_images: []
magnum_requires_pip_packages:
- httplib2
- python-glanceclient
- python-keystoneclient
- virtualenv
- virtualenv-tools

View File

@ -52,3 +52,4 @@
insecure: "{{ keystone_service_internaluri_insecure }}"
openrc_path: /root/openrc
with_items: "{{ magnum_glance_images }}"
when: inventory_hostname == groups['magnum_all'][0]