openstack的一些零碎笔记

/opt/stack/noVNC/utils/nova-wsproxy.py --flagfile /opt/stack/nova/bin/nova.conf --web . 6080 &

/opt/stack/keystone/bin/keystone --config-file=/opt/stack/keystone/etc/keystone.conf &

/opt/stack/nova/bin/nova-api &

/opt/stack/glance/bin/glance-registry --config-file=/opt/stack/glance/etc/glance-registry.conf &

/opt/stack/glance/bin/glance-api --config-file=/opt/stack/glance/etc/glance-api.conf &

/opt/stack/nova/bin/nova-network &

/opt/stack/nova/bin/nova-scheduler &


/usr/sbin/rabbitmq-server



ImportError: No module named auth_handler

I've already solved this problem by :


1. Clone Boto project to my server

    - git clone  https://github.com/boto/boto.git


2. Go to boto directory and install setup.py

    - sudo python setup.py install


Now you can run euca command without an error


sudo nova-manage db sync

sk@openstack:~$ sudo nova-manage user admin sk

2011-12-19 15:33:35,069 AUDIT nova.auth.manager [-] Created user sk (admin: True)

export EC2_ACCESS_KEY=f19994fe-ee79-44da-ad12-e0d0b41354ee

export EC2_SECRET_KEY=a28a243d-24d3-49d9-a10d-8b1fb580bb7a


glance index --host=127.0.0.1 -A zhengwei

glance -A zhengwei add name="ubuntu1010" is_public=true container_format=ami disk_format=ami < maverick-server-uec-amd64.img 

sk@openstack:/opt/stack/test$ glance add -A zhengwei name="ubuntu1010-kernel" is_public=true container_format=aki disk_format=aki < maverick-server-uec-amd64-vmlinuz-virtual    

Added new image with ID: 22da3ceb-e53d-4e0c-93f2-e11a7b9e5abc


sk@openstack:/opt/stack/test$ glance add -A zhengwei name="ubuntu1010" is_public=true container_format=ami disk_format=ami kernel_id=22da3ceb-e53d-4e0c-93f2-e11a7b9e5abc ramdisk_id=22da3ceb-e53d-4e0c-93f2-e11a7b9e5abc < maverick-server-uec-amd64.img                                                                            

Added new image with ID: 6b32cb23-2fcd-4daf-8f9a-3477d1b83284

服务器维护 服务器配置 服务器 维护 运维 网管 系统调优 网络调优 数据库优化