Rally knows nothing about 'object-store' service

Bug #1400907 reported by Dražen Lučanin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Rohan

Bug Description

I installed Rally on a server that contains an all-in-one OpenStack Icehouse deployment. All the steps from the Rally tutorial went fine until `rally verify start --set image` which fails with a KeyError 'object-store'. I get back a stack trace:

2014-12-09 23:31:47.162 60750 CRITICAL rally [-] KeyError: u'object-store'
2014-12-09 23:31:47.162 60750 TRACE rally Traceback (most recent call last):
2014-12-09 23:31:47.162 60750 TRACE rally File "/usr/local/bin/rally", line 10, in <module>
2014-12-09 23:31:47.162 60750 TRACE rally sys.exit(main())
2014-12-09 23:31:47.162 60750 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/cmd/main.py", line 42, in main
2014-12-09 23:31:47.162 60750 TRACE rally return cliutils.run(sys.argv, categories)
...
2014-12-09 23:31:47.162 60750 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/config.py", line 120, in _set_boto
2014-12-09 23:31:47.162 60750 TRACE rally self.conf.set(section_name, 'ec2_url', self._get_url('ec2'))
2014-12-09 23:31:47.162 60750 TRACE rally File "/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/config.py", line 109, in _get_url
2014-12-09 23:31:47.162 60750 TRACE rally if services_type2name_map[service['type']] == servicename:
2014-12-09 23:31:47.162 60750 TRACE rally KeyError: u'object-store'
2014-12-09 23:31:47.162 60750 TRACE rally

I also tried other sets like compute and volume, but the result is the same. Do you know what might be the cause of this error and how to fix it?

Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

Hi! I can propose hot-fix. You should change line https://github.com/stackforge/rally/blob/master/rally/verification/verifiers/tempest/config.py#L109 to:

    if services_type2name_map.get(service['type']) == servicename:

Tomorrow, I'll look closely to this bug.

Changed in rally:
status: New → Triaged
assignee: nobody → Andrey Kurilin (akurilin)
Changed in rally:
importance: Undecided → Medium
assignee: Andrey Kurilin (akurilin) → nobody
summary: - verify start fails with KeyError 'object-store'
+ Rally knows nothing about 'object-store' service
Rohan (kanaderohan)
Changed in rally:
assignee: nobody → Rohan (kanaderohan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

Fix proposed to branch: master
Review: https://review.openstack.org/142100

Changed in rally:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/142100
Committed: https://git.openstack.org/cgit/stackforge/rally/commit/?id=282c06689fe7578dbf261f552a8acc38a7bb519c
Submitter: Jenkins
Branch: master

commit 282c06689fe7578dbf261f552a8acc38a7bb519c
Author: Rohan Kanade <email address hidden>
Date: Tue Dec 16 14:26:58 2014 +0100

    Add swift service to pre-defined service list

    * Ignore any service not present in pre-defined service list
      while generating tempest.conf

    Change-Id: I69661e0cdafe83b5a3ae5cdb777a5c682117fe18
    Closes-Bug: #1400907

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.