rax.py issues

73 views
Skip to first unread message

Michael Liu

unread,
Nov 7, 2014, 3:31:48 PM11/7/14
to ansible...@googlegroups.com
Seeing the following when using rax.py.

./rax.py --list
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)
  InsecureRequestWarning)
Traceback (most recent call last):
  File "./rax.py", line 284, in <module>
    main()
  File "./rax.py", line 277, in main
    _list(regions)
  File "./rax.py", line 187, in _list
    imagegroup = 'image-%s' % images[server.image['id']]
TypeError: string indices must be integers

Has anyone else experienced this "TypeError: string indices must be integers" error from the rax.py script?  I believe this script worked a few weeks ago.

Thanks.

Matt Martz

unread,
Nov 10, 2014, 10:06:13 AM11/10/14
to ansible...@googlegroups.com
Do you currently have any servers booting from volumes (cloud block storage)?

When booting from a volume, server.image is an empty string, and not a dictionary.  I am working on a pull request that will be submitted soon, that will handle servers being booted from a volume.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/36df37fc-8936-4f07-98b9-03d8470041a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages