按照教程,在ubuntu12.04上安装了单节点的Openstack,本机是在虚拟机上跑的ubuntu,开启了双网卡,一个是NAT,另外一个是Custom:Specific virtual network
但是出现了以下问题:
1.root@ubuntu:~# nova list
ERROR: string indices must be integers, not str2.网页进入本机IP,输入账号密码后出现:
Internal Server ErrorAn unexpected error occurred while processing your request. Please try your request again.3.ubuntu@ubuntu:~$ nova list
ERROR: string indices must be integers, not str
ubuntu@ubuntu:~$ sudo nova list 
ERROR: You must provide a username via either --os_username or env[OS_USERNAME]
ubuntu@ubuntu:~$ sudo su -
root@ubuntu:~# nova list
ERROR: string indices must be integers, not str
为什么会出现sudo后出现的这种错误呢,export定义了的。请大神帮忙解答下,非常感谢。novastring indicesErrorprocessing

解决方案 »

  1.   

    是什么版本的OpenStack?希望这个能帮助你,https://lists.launchpad.net/openstack/msg09986.html
    this occurs “When auth_host (in api-paste.ini) has the wrong IP address”。
      

  2.   

    谢谢你。我是按照《51CTO下载-OpenStack安装配置指南》这个PDF来安装的Openstack,是什么版本我也不知道。另外在系统中没有找到 api-paste.ini文件,因此无法修改。请问下现在如果装多节点的openstack是看哪一套教程呢?
      

  3.   


    帮楼主再发一下谢谢你。我是按照《51CTO下载-OpenStack安装配置指南》这个PDF来安装的Openstack,是什么版本我也不知道。另外在系统中没有找到 api-paste.ini文件,因此无法修改。请问下现在如果装多节点的openstack是看哪一套教程呢?
      

  4.   

    新手的话可以试着按照陈沙克老师的方法配置,比较简单,即使遇到问题,也可以看看下面评论里的解决方法
    地址:http://www.chenshake.com/ubuntu-12-04-openstack-essex-installation-single-node/#comment-1627
      

  5.   

    请查看  /etc/nova/api-paste.ini, 是否修改!auth_protocol = http
    auth_uri = http://127.0.0.1:5000/
    admin_tenant_name = admin
    admin_user = admin
    admin_password = admin