Hi Mikhail,

Thanks for your quick reply. I have already added cloud by using json format. Just to be safe, I retried to create deployment by following "How to", but the same error is shown now.


My existing.json is as follows. Is there anything wrong?


{
    "type": "ExistingCloud",
    "auth_url": "http://127.0.0.1:5000/v2.0/";,
    "admin": {
        "username": "admin",
        "password": "pass",
        "tenant_name": "admin"
    }
}



Best regards,
Daisuke

On 2014/09/08 20:24, Mikhail Dubov wrote:
Hi Daisuke,

seems like your issue is connected to the change in the deployment
configuration file format for existing clouds we've merged
<https://review.openstack.org/#/c/116766/> recently.

Please see the updated Wiki "How to" page
<https://wiki.openstack.org/wiki/Rally/HowTo#Step_1._Deployment_initialization_.28use_existing_cloud.29>
 that
describes the new format. In your case, you can just update the
deployment configuration file and run again /"rally deployment create"/.
Everything should work then.



Best regards,
Mikhail Dubov

Mirantis, Inc.
E-Mail: mdu...@mirantis.com <mailto:mdu...@mirantis.com>
Skype: msdubov

On Mon, Sep 8, 2014 at 3:16 PM, Daisuke Morita
<morita.dais...@lab.ntt.co.jp <mailto:morita.dais...@lab.ntt.co.jp>> wrote:


    Hi, rally developers!

    Now, I am trying to use Rally to devstack cluster on AWS VM
    (all-in-one). I'm following a blog post
    https://www.mirantis.com/blog/rally-openstack-tempest-testing-made-simpler/
    . I successfully installed Devstack, Rally and Tempest. Now, I just ran
    Tempest by 'rally verify start' command, but the command failed with the
    following stacktrace.


    2014-09-08 10:57:57.803 17176 CRITICAL rally [-] KeyError: 'admin'
    2014-09-08 10:57:57.803 17176 TRACE rally Traceback (most recent
    call last):
    2014-09-08 10:57:57.803 17176 TRACE rally   File "/usr/local/bin/rally",
    line 10, in <module>
    2014-09-08 10:57:57.803 17176 TRACE rally     sys.exit(main())
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/cmd/main.py", line 40,
    in main
    2014-09-08 10:57:57.803 17176 TRACE rally     return
    cliutils.run(sys.argv, categories)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/cmd/cliutils.py", line
    184, in run
    2014-09-08 10:57:57.803 17176 TRACE rally     ret = fn(*fn_args,
    **fn_kwargs)
    2014-09-08 10:57:57.803 17176 TRACE rally   File "<string>", line 2, in
    start
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/cmd/envutils.py", line 64,
    in default_from_global
    2014-09-08 10:57:57.803 17176 TRACE rally     return f(*args, **kwargs)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/cmd/commands/verify.py",
    line 59, in start
    2014-09-08 10:57:57.803 17176 TRACE rally     api.verify(deploy_id,
    set_name, regex)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/orchestrator/api.py", line
    153, in verify
    2014-09-08 10:57:57.803 17176 TRACE rally
    verifier.verify(set_name=set_name, regex=regex)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/tempest.py",
    line 247, in verify
    2014-09-08 10:57:57.803 17176 TRACE rally
    self._prepare_and_run(set_name, regex)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    "/usr/local/lib/python2.7/dist-packages/rally/utils.py", line 165, in
    wrapper
    2014-09-08 10:57:57.803 17176 TRACE rally     result = f(self, *args,
    **kwargs)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/tempest.py",
    line 146, in _prepare_and_run
    2014-09-08 10:57:57.803 17176 TRACE rally
      self.generate_config_file()
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/tempest.py",
    line 89, in generate_config_file
    2014-09-08 10:57:57.803 17176 TRACE rally
    config.TempestConf(self.deploy_id).generate(self.config_file)
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/config.py",
    line 242, in generate
    2014-09-08 10:57:57.803 17176 TRACE rally     func()
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/config.py",
    line 115, in _set_boto
    2014-09-08 10:57:57.803 17176 TRACE rally
    self.conf.set(section_name, 'ec2_url', self._get_url('ec2'))
    2014-09-08 10:57:57.803 17176 TRACE rally   File
    
"/usr/local/lib/python2.7/dist-packages/rally/verification/verifiers/tempest/config.py",
    line 105, in _get_url
    2014-09-08 10:57:57.803 17176 TRACE rally     return
    service['admin']['publicURL']
    2014-09-08 10:57:57.803 17176 TRACE rally KeyError: 'admin'
    2014-09-08 10:57:57.803 17176 TRACE rally


    I tried to dig into the root cause of above error, but I did not have
    any idea where to look into. The most doubtful may be automatically
    generated configuration file, but I did not find anything odd.

    If possible, could you give me some hints on what to do?

    Sorry for bothering you. Thanks in advance.



    Best Regards,
    Daisuke

    --
    Daisuke Morita <morita.dais...@lab.ntt.co.jp
    <mailto:morita.dais...@lab.ntt.co.jp>>
    NTT Software Innovation Center, NTT Corporation


    _______________________________________________
    OpenStack-dev mailing list
    OpenStack-dev@lists.openstack.org
    <mailto:OpenStack-dev@lists.openstack.org>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Daisuke Morita <morita.dais...@lab.ntt.co.jp>
NTT Software Innovation Center, NTT Corporation


_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to