Invalid scenario argument: 'Flavor '{'name': 'm1.medium'}' not found'`

Asked by JohnsonYi

Problem was fixed by changing used flavor to public.

------------------------------------------------
Hi folks,

Could you please look into my fally case here? I can't start my test case with valid flavor. Thanks in advance.

root@rally:~/rally/testcase# rally version
0.1.2

(openstack) flavor list
+--------------------------------------+-----------+------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+-----------+------+------+-----------+-------+-----------+
| 0603cf83-927c-4ebc-b4a1-a9bb08ee2ae7 | m1.tiny | 512 | 1 | 0 | 1 | False |
| 5ade9e2b-9bdb-4b00-bc73-8eb6c1436acf | m1.medium | 4096 | 40 | 0 | 2 | False |
| 8fa45413-0fde-4763-9e51-d2ad9f431fc8 | m1.micro | 64 | 0 | 0 | 1 | False |
| 98cbf195-59c3-477d-8da1-941ad2a2a3eb | m1.large | 8192 | 80 | 0 | 4 | False |
| da3be357-c62c-433b-b5c4-939dcf455657 | m1.small | 2048 | 20 | 0 | 1 | False |
+--------------------------------------+-----------+------+------+-----------+-------+-----------+
(openstack) exit
root@rally:~/rally/testcase# rally show flavors

Flavors for user `demo` in tenant `TCloud-Beta-Benchmark`:
+--------------------------------------+-----------+-------+----------+-----------+-----------+
| ID | Name | vCPUs | RAM (MB) | Swap (MB) | Disk (GB) |
+--------------------------------------+-----------+-------+----------+-----------+-----------+
| 0603cf83-927c-4ebc-b4a1-a9bb08ee2ae7 | m1.tiny | 1 | 512 | | 1 |
| 5ade9e2b-9bdb-4b00-bc73-8eb6c1436acf | m1.medium | 2 | 4096 | | 40 |
| 8fa45413-0fde-4763-9e51-d2ad9f431fc8 | m1.micro | 1 | 64 | | 0 |
| 98cbf195-59c3-477d-8da1-941ad2a2a3eb | m1.large | 4 | 8192 | | 80 |
| da3be357-c62c-433b-b5c4-939dcf455657 | m1.small | 1 | 2048 | | 20 |
+--------------------------------------+-----------+-------+----------+-----------+-----------+

root@rally:~/rally/testcase# rally --debug task start boot-and-delete.yaml
2015-10-13 11:14:14.428 4421 RALLYDEBUG rally.cli.cliutils [-] INFO logs from urllib3 and requests module are hide.
2015-10-13 11:14:14.428 4421 RALLYDEBUG rally.cli.cliutils [-] ERROR log from boto module is hide.
2015-10-13 11:14:14.881 4421 DEBUG oslo_db.api [-] Loading backend 'sqlalchemy' from 'rally.common.db.sqlalchemy.api' _load_backend /usr/local/lib/python2.7/dist-packages/oslo_db/api.py:230
--------------------------------------------------------------------------------
 Preparing input task
--------------------------------------------------------------------------------

Input task is:

---
  NovaServers.boot_and_delete_server:
    -
      args:
        flavor:
            name: "m1.medium"
        image:
            name: "win2008srv-enterprise-v1.4.1"
        force_delete: false
      runner:
        type: "constant"
        times: 2
        concurrency: 2
      context:
        users:
          tenants: 1
          users_per_tenant: 1

Task syntax is correct :)
2015-10-13 11:14:15.407 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Task validation.
2015-10-13 11:14:15.677 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Task validation of scenarios names.
2015-10-13 11:14:15.681 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Completed: Task validation of scenarios names.
2015-10-13 11:14:15.681 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Task validation of syntax.
2015-10-13 11:14:15.690 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Completed: Task validation of syntax.
2015-10-13 11:14:15.691 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Task validation of semantic.
2015-10-13 11:14:15.691 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Task validation check cloud.
2015-10-13 11:14:15.749 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:15.791 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:17 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:15.793 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:16.031 4421 INFO rally.task.engine [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Completed: Task validation check cloud.
2015-10-13 11:14:16.045 4421 INFO rally.plugins.openstack.context.keystone.users [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Enter context: `users`
2015-10-13 11:14:16.046 4421 RALLYDEBUG rally.plugins.openstack.context.keystone.users [-] Creating 1 tenants using 30 threads
2015-10-13 11:14:16.150 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:16.162 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:17 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:16.165 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:16.340 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X POST http://10.14.84.4:35357/v2.0/tenants -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}fd6de808df2cbfa5f2bccca2b2334ed9074c551c" -d '{"tenant": {"enabled": true, "name": "ctx_rally_4f6bef48-bcef-4b54-8a2f-c93972c1eaed_tenant_0", "description": null}}' _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:16.428 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:18 GMT Vary: X-Auth-Token Content-Length: 159 Content-Type: application/json Connection: close
RESP BODY: {"tenant": {"description": null, "enabled": true, "id": "5c95f59f40084d3eb5ea28ffdaeebfbf", "name": "ctx_rally_4f6bef48-bcef-4b54-8a2f-c93972c1eaed_tenant_0"}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:16.430 4421 RALLYDEBUG rally.plugins.openstack.context.keystone.users [-] Creating 1 users using 30 threads
2015-10-13 11:14:16.542 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:16.564 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:18 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:16.565 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:16.933 4421 INFO rally.plugins.openstack.context.keystone.users [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Completed: Enter context: `users`
2015-10-13 11:14:16.938 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:16.950 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:18 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:16.952 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
REQ: curl -g -i 'http://10.14.46.3:8774/v2/5c95f59f40084d3eb5ea28ffdaeebfbf/flavors/detail' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: ctx_rally_4f6bef48-bcef-4b54-8a2f-c93972c1eaed_tenant_0" -H "X-Auth-Token: {SHA1}38b2d4db42bbf74ec3219f58fd4e8a6e5b648335"
RESP: [200] {'Date': 'Tue, 13 Oct 2015 03:14:19 GMT', 'X-Compute-Request-Id': 'req-00618ef3-1727-4dac-b4b8-4693c6818174', 'Connection': 'close', 'Content-Type': 'application/json', 'Content-Length': '15'}
RESP BODY: {"flavors": []}

2015-10-13 11:14:17.374 4421 INFO rally.plugins.openstack.context.keystone.users [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Starting: Exit context: `users`
2015-10-13 11:14:17.376 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:17.388 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:19 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:17.389 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:17.675 4421 DEBUG neutronclient.client [-] REQ: curl -i http://10.14.46.3:9696//v2.0/extensions.json -X GET -H "User-Agent: python-neutronclient" -H "X-Auth-Token: d438696256504d5888c4aedab905a0ec" http_log_req /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:137
2015-10-13 11:14:17.837 4421 DEBUG neutronclient.client [-] RESP: 200 {'Date': 'Tue, 13 Oct 2015 03:14:19 GMT', 'Connection': 'close', 'Content-Type': 'application/json; charset=UTF-8', 'Content-Length': '5319', 'X-Openstack-Request-Id': 'req-a7db9255-45e7-46f8-9dab-d9950aaebbf0'} {"extensions": [{"updated": "2013-01-20T00:00:00-00:00", "name": "Neutron Service Type Management", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/service-type/api/v1.0", "alias": "service-type", "description": "API for retrieving service providers for Neutron advanced services"}, {"updated": "2013-03-28T10:00:00-00:00", "name": "Neutron L3 Configurable external gateway mode", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/ext-gw-mode/api/v1.0", "alias": "ext-gw-mode", "description": "Extension of the router abstraction for specifying whether SNAT should occur on the external gateway"}, {"updated": "2012-10-05T10:00:00-00:00", "name": "security-group", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v2.0", "alias": "security-group", "description": "The security groups extension."}, {"updated": "2013-02-07T10:00:00-00:00", "name": "L3 Agent Scheduler", "links": [], "namespace": "http://docs.openstack.org/ext/l3_agent_scheduler/api/v1.0", "alias": "l3_agent_scheduler", "description": "Schedule routers among l3 agents"}, {"updated": "2013-02-07T10:00:00-00:00", "name": "Loadbalancer Agent Scheduler", "links": [], "namespace": "http://docs.openstack.org/ext/lbaas_agent_scheduler/api/v1.0", "alias": "lbaas_agent_scheduler", "description": "Schedule pools among lbaas agents"}, {"updated": "2013-02-25T10:00:00-00:00", "name": "Firewall service", "links": [], "namespace": "http://wiki.openstack.org/Neutron/FWaaS/API_1.0", "alias": "fwaas", "description": "Extension for Firewall service"}, {"updated": "2014-02-03T10:00:00-00:00", "name": "Port Binding", "links": [], "namespace": "http://docs.openstack.org/ext/binding/api/v1.0", "alias": "binding", "description": "Expose port bindings of a virtual port to external application"}, {"updated": "2013-06-12T10:00:00-00:00", "name": "Neutron Metering", "links": [], "namespace": "http://wiki.openstack.org/wiki/Neutron/Metering/Bandwidth#API", "alias": "metering", "description": "Neutron Metering extension."}, {"updated": "2013-02-03T10:00:00-00:00", "name": "agent", "links": [], "namespace": "http://docs.openstack.org/ext/agent/api/v2.0", "alias": "agent", "description": "The agent management extension."}, {"updated": "2012-07-29T10:00:00-00:00", "name": "Quota management support", "links": [], "namespace": "http://docs.openstack.org/network/ext/quotas-sets/api/v2.0", "alias": "quotas", "description": "Expose functions for quotas management per tenant"}, {"updated": "2013-02-07T10:00:00-00:00", "name": "DHCP Agent Scheduler", "links": [], "namespace": "http://docs.openstack.org/ext/dhcp_agent_scheduler/api/v1.0", "alias": "dhcp_agent_scheduler", "description": "Schedule networks among dhcp agents"}, {"updated": "2014-04-26T00:00:00-00:00", "name": "HA Router extension", "links": [], "namespace": "", "alias": "l3-ha", "description": "Add HA capability to routers."}, {"updated": "2013-06-27T10:00:00-00:00", "name": "Multi Provider Network", "links": [], "namespace": "http://docs.openstack.org/ext/multi-provider/api/v1.0", "alias": "multi-provider", "description": "Expose mapping of virtual networks to multiple physical networks"}, {"updated": "2013-01-14T10:00:00-00:00", "name": "Neutron external network", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/external_net/api/v1.0", "alias": "external-net", "description": "Adds external network attribute to network resource."}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Neutron L3 Router", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/router/api/v1.0", "alias": "router", "description": "Router abstraction for basic L3 forwarding between L2 Neutron networks and access to external networks via a NAT gateway."}, {"updated": "2013-07-23T10:00:00-00:00", "name": "Allowed Address Pairs", "links": [], "namespace": "http://docs.openstack.org/ext/allowedaddresspairs/api/v2.0", "alias": "allowed-address-pairs", "description": "Provides allowed address pairs"}, {"updated": "2013-02-01T10:00:00-00:00", "name": "Neutron Extra Route", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/extraroutes/api/v1.0", "alias": "extraroute", "description": "Extra routes configuration for L3 router"}, {"updated": "2013-03-17T12:00:00-00:00", "name": "Neutron Extra DHCP opts", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/extra_dhcp_opt/api/v1.0", "alias": "extra_dhcp_opt", "description": "Extra options configuration for DHCP. For example PXE boot options to DHCP clients can be specified (e.g. tftp-server, server-ip-address, bootfile-name)"}, {"updated": "2012-09-07T10:00:00-00:00", "name": "Provider Network", "links": [], "namespace": "http://docs.openstack.org/ext/provider/api/v1.0", "alias": "provider", "description": "Expose mapping of virtual networks to physical networks"}, {"updated": "2012-10-07T10:00:00-00:00", "name": "LoadBalancing service", "links": [], "namespace": "http://wiki.openstack.org/neutron/LBaaS/API_1.0", "alias": "lbaas", "description": "Extension for LoadBalancing service"}, {"updated": "2014-06-1T10:00:00-00:00", "name": "Distributed Virtual Router", "links": [], "namespace": "http://docs.openstack.org/ext/dvr/api/v1.0", "alias": "dvr", "description": "Enables configuration of Distributed Virtual Routers."}]} http_log_resp /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:146
2015-10-13 11:14:17.841 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:17.858 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:19 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:17.860 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
REQ: curl -g -i 'http://10.14.46.3:8774/v2/5c95f59f40084d3eb5ea28ffdaeebfbf/os-security-groups?name=default' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: ctx_rally_4f6bef48-bcef-4b54-8a2f-c93972c1eaed_tenant_0" -H "X-Auth-Token: {SHA1}a30d1a2c8a4e5a5f85c26a12145ddcfe353d0c08"
RESP: [200] {'Date': 'Tue, 13 Oct 2015 03:14:20 GMT', 'X-Compute-Request-Id': 'req-f1ab33c3-4f82-4f29-9a2d-4498ad952bcf', 'Connection': 'close', 'Content-Type': 'application/json', 'Content-Length': '692'}
RESP BODY: {"security_groups": [{"rules": [{"from_port": null, "group": {"tenant_id": "5c95f59f40084d3eb5ea28ffdaeebfbf", "name": "default"}, "ip_protocol": null, "to_port": null, "parent_group_id": "1d809b8a-d07e-4364-8cd0-5e8aa9d4bf5c", "ip_range": {}, "id": "cb1a28d4-34d2-40d8-aeb7-ae512a165bf7"}, {"from_port": null, "group": {"tenant_id": "5c95f59f40084d3eb5ea28ffdaeebfbf", "name": "default"}, "ip_protocol": null, "to_port": null, "parent_group_id": "1d809b8a-d07e-4364-8cd0-5e8aa9d4bf5c", "ip_range": {}, "id": "9a529e47-6a6d-4830-9686-bf7b9a967254"}], "tenant_id": "5c95f59f40084d3eb5ea28ffdaeebfbf", "description": "default", "id": "1d809b8a-d07e-4364-8cd0-5e8aa9d4bf5c", "name": "default"}]}

2015-10-13 11:14:18.917 4421 DEBUG neutronclient.client [-] REQ: curl -i http://10.14.46.3:9696//v2.0/security-groups/1d809b8a-d07e-4364-8cd0-5e8aa9d4bf5c.json -X DELETE -H "User-Agent: python-neutronclient" -H "X-Auth-Token: d438696256504d5888c4aedab905a0ec" http_log_req /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:137
2015-10-13 11:14:19.150 4421 DEBUG neutronclient.client [-] RESP: 204 {'Date': 'Tue, 13 Oct 2015 03:14:20 GMT', 'Connection': 'close', 'Content-Length': '0', 'X-Openstack-Request-Id': 'req-7ba7e9a0-53c4-4d49-8767-c5573deef606'} http_log_resp /usr/local/lib/python2.7/dist-packages/neutronclient/common/utils.py:146
2015-10-13 11:14:19.255 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:19.278 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:20 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:19.280 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:19.431 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X DELETE http://10.14.84.4:35357/v2.0/users/33db6baa57494a3ca0c0ae035f8f6ba5 -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}c69f6d8cfbc92cac1aa8269c2e724c78f1217f09" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:19.592 4421 DEBUG keystoneclient.session [-] RESP: [204] Date: Tue, 13 Oct 2015 03:14:21 GMT Content-Length: 0 Vary: X-Auth-Token Connection: close _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:19.595 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:19.606 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:21 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:19.609 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
REQ: curl -g -i 'http://10.14.46.3:8774/v2/3f3480fb8f3e4c98b6196486854aa51e/os-services' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: TCloud-Beta-Benchmark" -H "X-Auth-Token: {SHA1}52ea081aada6d7bf6c76e1ca0e54c6cb72dc122e"
RESP: [200] {'Date': 'Tue, 13 Oct 2015 03:14:21 GMT', 'X-Compute-Request-Id': 'req-8ae0d725-4010-425b-b69a-6d240b2c4323', 'Connection': 'close', 'Content-Type': 'application/json', 'Content-Length': '3270'}
RESP BODY: {"services": [{"status": "enabled", "binary": "nova-consoleauth", "zone": "internal", "host": "node-1.tcwyun.com", "updated_at": "2015-10-13T03:13:41.000000", "state": "up", "disabled_reason": null, "id": 1}, {"status": "enabled", "binary": "nova-scheduler", "zone": "internal", "host": "node-1.tcwyun.com", "updated_at": "2015-10-13T03:13:41.000000", "state": "up", "disabled_reason": null, "id": 2}, {"status": "enabled", "binary": "nova-conductor", "zone": "internal", "host": "node-1.tcwyun.com", "updated_at": "2015-10-13T03:13:41.000000", "state": "up", "disabled_reason": null, "id": 3}, {"status": "enabled", "binary": "nova-cert", "zone": "internal", "host": "node-1.tcwyun.com", "updated_at": "2015-10-13T03:13:41.000000", "state": "up", "disabled_reason": null, "id": 4}, {"status": "enabled", "binary": "nova-consoleauth", "zone": "internal", "host": "node-3.tcwyun.com", "updated_at": "2015-10-13T03:13:56.000000", "state": "up", "disabled_reason": null, "id": 7}, {"status": "enabled", "binary": "nova-scheduler", "zone": "internal", "host": "node-3.tcwyun.com", "updated_at": "2015-10-13T03:13:56.000000", "state": "up", "disabled_reason": null, "id": 10}, {"status": "enabled", "binary": "nova-conductor", "zone": "internal", "host": "node-3.tcwyun.com", "updated_at": "2015-10-13T03:13:56.000000", "state": "up", "disabled_reason": null, "id": 13}, {"status": "enabled", "binary": "nova-cert", "zone": "internal", "host": "node-3.tcwyun.com", "updated_at": "2015-10-13T03:13:56.000000", "state": "up", "disabled_reason": null, "id": 22}, {"status": "enabled", "binary": "nova-consoleauth", "zone": "internal", "host": "node-6.tcwyun.com", "updated_at": "2015-10-13T03:13:48.000000", "state": "up", "disabled_reason": null, "id": 25}, {"status": "enabled", "binary": "nova-scheduler", "zone": "internal", "host": "node-6.tcwyun.com", "updated_at": "2015-10-13T03:13:50.000000", "state": "up", "disabled_reason": null, "id": 28}, {"status": "enabled", "binary": "nova-conductor", "zone": "internal", "host": "node-6.tcwyun.com", "updated_at": "2015-10-13T03:13:48.000000", "state": "up", "disabled_reason": null, "id": 31}, {"status": "enabled", "binary": "nova-cert", "zone": "internal", "host": "node-6.tcwyun.com", "updated_at": "2015-10-13T03:13:50.000000", "state": "up", "disabled_reason": null, "id": 37}, {"status": "enabled", "binary": "nova-compute", "zone": "nova", "host": "node-2.tcwyun.com", "updated_at": "2015-10-13T03:13:25.000000", "state": "up", "disabled_reason": null, "id": 40}, {"status": "enabled", "binary": "nova-compute", "zone": "nova", "host": "node-4.tcwyun.com", "updated_at": "2015-10-13T03:13:30.000000", "state": "up", "disabled_reason": null, "id": 46}, {"status": "enabled", "binary": "nova-compute", "zone": "nova", "host": "node-8.tcwyun.com", "updated_at": "2015-10-13T03:13:32.000000", "state": "up", "disabled_reason": null, "id": 49}, {"status": "enabled", "binary": "nova-compute", "zone": "nova", "host": "node-51.tcwyun.com", "updated_at": "2015-10-13T03:13:58.000000", "state": "up", "disabled_reason": null, "id": 55}, {"status": "enabled", "binary": "nova-compute", "zone": "nova", "host": "node-55.tcwyun.com", "updated_at": "2015-10-13T03:14:19.000000", "state": "up", "disabled_reason": null, "id": 61}]}

2015-10-13 11:14:20.097 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://10.14.46.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:20.112 4421 DEBUG keystoneclient.session [-] RESP: [200] Date: Tue, 13 Oct 2015 03:14:21 GMT Vary: X-Auth-Token Content-Length: 420 Content-Type: application/json Connection: close
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.14.46.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
 _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:20.114 4421 DEBUG keystoneclient.auth.identity.v2 [-] Making authentication request to http://10.14.46.3:5000/v2.0/tokens get_auth_ref /usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v2.py:86
2015-10-13 11:14:20.267 4421 DEBUG keystoneclient.session [-] REQ: curl -g -i -X DELETE http://10.14.84.4:35357/v2.0/tenants/5c95f59f40084d3eb5ea28ffdaeebfbf -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8bf86680689c4513eafc3141b7bad5f45f7128df" _http_log_request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:198
2015-10-13 11:14:20.372 4421 DEBUG keystoneclient.session [-] RESP: [204] Date: Tue, 13 Oct 2015 03:14:22 GMT Content-Length: 0 Vary: X-Auth-Token Connection: close _http_log_response /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:215
2015-10-13 11:14:20.373 4421 INFO rally.plugins.openstack.context.keystone.users [-] Task 4f6bef48-bcef-4b54-8a2f-c93972c1eaed | Completed: Exit context: `users`
Task config is invalid: `Input task is invalid!

Benchmark NovaServers.boot_and_delete_server[0] has wrong configuration
Benchmark configuration:
{'runner': {'type': 'constant', 'concurrency': 2, 'times': 2}, 'args': {'force_delete': False, 'flavor': {'name': 'm1.medium'}, 'image': {'name': 'win2008srv-enterprise-v1.4.1'}}, 'context': {'users': {'users_per_tenant': 1, 'tenants': 1}}}

Reason:
 Invalid scenario argument: 'Flavor '{'name': 'm1.medium'}' not found'`

More information may help:
root@rally:~/rally/samples/tasks/scenarios/nova# keystone user-list
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
  super(Client, self).__init__(**kwargs)
/usr/local/lib/python2.7/dist-packages/debtcollector/renames.py:43: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
  return f(*args, **kwargs)
/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py:376: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
+----------------------------------+-----------------+---------+-----------------------+
| id | name | enabled | email |
+----------------------------------+-----------------+---------+-----------------------+
| 54a200e09ff04256a57bfa3b1a56426a | admin | True | admin@localhost |
| 3fdfd3548c4643bea5860209e77530b9 | ceilometer | True | ceilometer@localhost |
| 9fa6c5df4e7745d0bf0f4b5756fd8337 | cinder | True | cinder@localhost |
| eee0dbceb12741c68951f2d7799ccb76 | demo | True | demo@localhost |
| c9f1da7f1b2244d7b112ebf96e7db067 | fuel_stats_user | True | |
| b5daa35fba4444e69ff4ce661905c4df | glance | True | glance@localhost |
| 66136d2eb9e64ffda92dac1b99259b78 | heat | True | heat@localhost |
| 9e83595e98d648cab52ed4689ae7bb9e | heat-cfn | True | heat-cfn@localhost |
| e98f55ca79144726b3bc9a84c8a266f5 | murano | True | murano@localhost |
| d7040a9951054bdbab7a69651a0d6a40 | neutron | True | neutron@localhost |
| d5d1784814aa46e7958c7f9ac2803c20 | nova | True | nova@localhost |
| 509f5b32c56a4b1c8a598c2cd9d4b14c | sahara | True | sahara-team@localhost |
+----------------------------------+-----------------+---------+-----------------------+

Question information

Language:
English Edit question
Status:
Solved
For:
Rally Edit question
Assignee:
No assignee Edit question
Solved by:
JohnsonYi
Solved:
Last query:
Last reply:
Revision history for this message
JohnsonYi (yichengli) said :
#1

Boris Pavlovic (boris-42) wrote 21 hours ago: #1
So first of all seems like this is not a admin of the cloud:

    Flavors for user `demo` in tenant `TCloud-Beta-Benchmark`:

And Rally requires admin.

The second thing is that Rally will create own tenants and users (if exisiting_users feature is not used: https://rally.readthedocs.org/en/latest/tutorial/step_3_benchmarking_with_existing_users.html)

In case of not using existing_users you have to have public flavors. Or create new one using flavors context.