第一个问题  安装配置完成后 启动 glance-registry   报错/etc/init.d/glance-registry start
Starting OpenStack Glance Registry Server:                 [确定]
/etc/init.d/glance-registry status
glance-registry 已死,但 pid 文件仍存
 这个问题后来换一种启动方式已解决,但不知道适合原因
glance-control registry start第二问题 测试glance是否工作正常是遇到报错,测试过程和报错如下:mkdir /tmp/images
cd /tmp/images/
wget http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-12.
1_2.6.35-22_1.tar.gz
tar -zxvf ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gzexport OS_USERNAME=adminUser
export OS_TENANT_NAME=openstackDemo
export OS_PASSWORD=adminUser123456
export OS_AUTH_URL=http://192.168.8.19:5000/v2.0/
export OS_REGION_NAME=RegionOneglance --os_username=adminUser --os_password=adminUser123456 --os_tenant=openstackDemo --os_auth_url=http://127.0.0.1:5000/v2.0 add name="tty-linuxkernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
Uploading image 'tty-linuxkernel'
Failed to add image. Got error:
An object with the specified identifier was not found.
Details: 404 Not FoundThe resource could not be found.   
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
=====================================================================================================[100%] 41.3M/s, ETA  0h  0m  0s

而我用这样的方式是正常的
curl -d  '{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "adminUser123456"}}}' -H "Content-type:application/json" http://127.0.0.1:5000/v2.0/tokens | python -mjson.tool请各位大虾指教

解决方案 »

  1.   

    你先执行以下glance index看是否能够正常。如果不正常,说明你的glance配置有问题,查看glance的两个配置文件。如果正常,仔细检查你输入的image名字跟你的当前目录下的文件名是否一致。
      

  2.   

    我也遇到这个问题了,
    [root@node1 glance]# service openstack-glance-registry status
    openstack-glance-registry dead but pid file exists
    提示pid存在,但是没有runing
    [root@node1 glance]# glance-control  registry restart
    Stopping glance-registry  pid: 9826  signal: 15
    Process 9826 not running
    Restarting glance-registry
    [root@node1 glance]# service openstack-glance-registry status
    openstack-glance-registry (pid  9841) is running...
    glance-control registry start 就好了,两个配置文件都检查过了没发现问题,再说如果有问题,为什么可以启动起来
      

  3.   

    找到问题了,用户不对修改文件
    # vi /etc/init.d/openstack-glance-registry 
    daemon --user root 。 本来是glance 将之改为root就可以了
    "/etc/rc.d/init.d/openstack-glance-registry" 101L, 1913C written
    [root@node1 glance]# /etc/init.d/openstack-glance-registry status
    openstack-glance-registry dead but pid file exists
    [root@node1 glance]# /etc/init.d/openstack-glance-registry restart
    Stopping openstack-glance-registry: [FAILED]
    Starting openstack-glance-registry: [  OK  ]
    [root@node1 glance]# /etc/init.d/openstack-glance-registry status
    openstack-glance-registry (pid  9946) is running...