[openstack-dev] [rally] KeyError: 'admin'

Daisuke Morita morita.daisuke at lab.ntt.co.jp
Mon Sep 8 12:05:57 UTC 2014


Thanks, Boris.

I tried "rally-manage db recreate" before registering a deployment, but 
nothing changed at all in running Tempest...

It is late in Japan, so I will try it tomorrow.


Best regards,
Daisuke

On 2014/09/08 20:38, Boris Pavlovic wrote:
> Daisuke,
>
> We have as well changes in our DB models.
>
> So running:
>
>    $ rally-manage db recreate
>
> Will be as well required..
>
>
> Best regards,
> Boris Pavlovic
>
>
>
> On Mon, Sep 8, 2014 at 3:24 PM, Mikhail Dubov <mdubov at mirantis.com
> <mailto:mdubov at mirantis.com>> 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: mdubov at mirantis.com <mailto:mdubov at mirantis.com>
>     Skype: msdubov
>
>     On Mon, Sep 8, 2014 at 3:16 PM, Daisuke Morita
>     <morita.daisuke at lab.ntt.co.jp <mailto:morita.daisuke at 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.daisuke at lab.ntt.co.jp
>         <mailto:morita.daisuke at lab.ntt.co.jp>>
>         NTT Software Innovation Center, NTT Corporation
>
>
>         _______________________________________________
>         OpenStack-dev mailing list
>         OpenStack-dev at lists.openstack.org
>         <mailto:OpenStack-dev at lists.openstack.org>
>         http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>     _______________________________________________
>     OpenStack-dev mailing list
>     OpenStack-dev at lists.openstack.org
>     <mailto:OpenStack-dev at lists.openstack.org>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

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




More information about the OpenStack-dev mailing list