Ask Your Question
0

Rally not able to recognize glance image

asked 2017-02-24 10:56:31 -0600

json.gals gravatar image

I am trying to run a simple rally task that boots and deletes nova VM. The task json file is looking for "Cirrus" image in my machine. I have created the image but even after that Rally is not able to read the image. rally json:

{% set flavor_name = flavor_name or "m1.tiny" %} { "NovaServers.boot_and_delete_server": [ { "args": { "flavor": { "name": "{{flavor_name}}" }, "image": { "name": "^cirros.*uec$" }, "force_delete": false }, "runner": { "type": "constant", "times": 10, "concurrency": 2 }, "context": { "users": { "tenants": 3, "users_per_tenant": 2 } } }, { "args": { "flavor": { "name": "{{flavor_name}}" }, "image": { "name": "Cirros" }, "auto_assign_nic": true }, "runner": { "type": "constant", "times": 10, "concurrency": 2 }, "context": { "users": { "tenants": 3, "users_per_tenant": 2 }, "network": { "start_cidr": "10.2.0.0/24", "networks_per_tenant": 2 } } } ] } ~

openstack image create --os-image-api-version 1 cirros --location <image-url> --disk-format qcow2 --container-format bare +------------------+--------------------------------------+ | Field | Value | +------------------+--------------------------------------+ | checksum | None | | container_format | bare | | created_at | 2017-02-24T16:54:32.000000 | | deleted | False | | deleted_at | None | | disk_format | qcow2 | | id | 38f2fcf9-5dfa-4d0a-9762-4ef0222e2fc7 | | is_public | False | | min_disk | 0 | | min_ram | 0 | | name | cirros | | owner | d469c3976ea549c8a3756b33bccadb1b | | properties | | | protected | False | | size | 13287936 | | status | active | | updated_at | 2017-02-24T16:54:32.000000 | | virtual_size | None | +------------------+--------------------------------------+

The error says: "Image "Cirros" not found"

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-27 11:35:18 -0600

shasha.tavil gravatar image

Hey,

Rally performs execution of its tasks in new project. So, whenever a rally task is run the rally creates a project and after the task is finished the project gets deleted. Therefore Rally is not able to look for the image since the image is private and can only be visible by services attached to that project.

You can set your image to public as follows:

openstack image set <cirros_image_name/id> --public

If the answer solves your issue kindly mark the question as answered.

Thank You

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-24 10:55:56 -0600

Seen: 116 times

Last updated: Feb 27 '17