第一个问题 安装配置完成后 启动 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.gz
export 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=RegionOne
glance --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 Uploading image 'tty-linuxkernel'
Failed to add image. Got error:
An object with the specified identifier was not found.
Details: 404 Not Found
The 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
请各位大虾指教
|
|