Chandan Kumar a5c6dc0977 Allow non admin users to upload image to glance
* Currently only users having admin related permission, has the
  ability to upload image to glance which later used to set Image/
  image_alt ref in tempest.conf. In order to make easier for non-admin
  user, this changes allow the same and if the user does not have
  permission to do the same, it will log an exception with the
  proper message as non-admin user can upload the image from CLI.

* Fixed set_default_tempest_options method for image as it is giving
  AttributeError: 'ImageService' object has no attribute 'image_path
  because image_path is set in set_image_preferences which is called
  after service_class in main.py which leads to the above error.

* Removed additional overrides image.http_image from roles

Change-Id: I3ab32b6c5628281f55193291cd367dcdb76a5571
2018-06-12 15:44:06 +00:00

22 lines
634 B
YAML

- name: Generate tempest configuration file as demo user (expected to fail)
shell: |
./generate-tempestconf.sh
args:
chdir: "{{ tempestconf_src_relative_path }}"
executable: /bin/bash
register: result
failed_when: result.rc == 0
- name: Create m1.nano and m1.micro flavors for demo user
shell: |
set -x
openstack flavor create --os-cloud {{ cloud_admin }} \
--public \
--ram {{ item.ram }} \
--vcpus 1 \
--disk 0 \
{{ item.name }}
with_items:
- { name: "m1.nano", ram: 64 }
- { name: "m1.micro", ram: 128 }