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

Daisuke Morita morita.daisuke at lab.ntt.co.jp
Fri Sep 19 04:49:09 UTC 2014


Boris,

I am so sorry for my toooooo late reply.
I retried verify command after I updated my rally, then everything
worked well. Thanks for your quick bug fix.


Best regards,
Daisuke Morita

On 2014/09/09 6:48, Boris Pavlovic wrote:
> Daisuke,
>
>
> This patch https://review.openstack.org/#/c/116766/ introduced this bug:
> https://bugs.launchpad.net/rally/+bug/1366824
> That was fixed by this commit: https://review.openstack.org/#/c/119790/
>
> So update your rally and try one more time. Everything should work now.
>
>
> Best regards,
> Boris Pavlovic
>
> On Mon, Sep 8, 2014 at 4:05 PM, Daisuke Morita
> <morita.daisuke at lab.ntt.co.jp <mailto:morita.daisuke at lab.ntt.co.jp>> wrote:
>
>
>     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>
>         <mailto: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/
>         <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
>         <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>
>         <mailto: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>
>         <mailto: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/
>         <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>
>                  <mailto: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>
>                  <mailto:OpenStack-dev at lists.__openstack.org
>         <mailto:OpenStack-dev at lists.openstack.org>>
>         http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev
>         <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>
>              <mailto:OpenStack-dev at lists.__openstack.org
>         <mailto:OpenStack-dev at lists.openstack.org>>
>         http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev
>         <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
>         <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev>
>
>
>     --
>     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 <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