Open stack


Glance:

must edit /etc/my.cnf since the sql it used exceed the limit of sql lenght.

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
max_allowed_packet=10M
wait_timeout=28800
interactive_timeout = 28800

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
max_allowed_packet=10M
wait_timeout=28800
interactive_timeout = 28800

support ovf:

glance add name=lucid_ovf disk_format=vhd container_format=ovf is_public=True < lucid.ova

dashboard:

service memcached start


ECS on keystone:

keystone-manage credentials add admin EC2 'xyz' 'PASSWORD'

export EC2_ACCESS_KEY=xyz

export EC2_SECRET_KEY=PASSWORD

export EC2_URL="http://192.168.1.101:8773/services/Cloud"


PyDev nova-compute:

we must modify the nova-compute like this:

import eventlet
#eventlet.monkey_patch()
eventlet.monkey_patch(all=False, socket=True, select=True)

else it will complain:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/eventlet/hubs/hub.py", line 336, in fire_timers
    timer()
  File "/usr/lib/python2.6/site-packages/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/python2.6/site-packages/eventlet/semaphore.py", line 95, in _do_acquire
    waiter.switch()
error: cannot switch to a different thread


Develop OpenStack env On redhat:

cd /root/git/glance/tools
modify piprequires and then insall pre

pip-python install -r piprequires

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值