Heat安装及使用

来源:互联网 发布:百度语音识别api php 编辑:程序博客网 时间:2024/05/29 18:25
1. Keystone创建用户(租户)
# keystone user-create --name=heat --pass="tsj" --tenant=service --email=heat@example.com
# keystone user-role-add --user=heat --tenant=service --role=admin

1. Keystone创建服务
keystone service-create --name=heat --type=orchestration --description="Heat Orchestration API"
keystone endpoint-create --region RegionOne --service-id=f4ead103b33645ba852cae730f463720 --publicurl 'http://128.6.3.103:8004/v1/$(tenant_id)s' --internalurl 'http://128.6.3.103:8004/v1/$(tenant_id)s' --adminurl 'http://128.6.3.103:8004/v1/$(tenant_id)s'

keystone service-create --name=heat-cfn --type=cloudformation --description="Heat CloudFormation API"
keystone endpoint-create --region RegionOne --service-id=77543eb29ada4c2196326137b2ae8c63 --publicurl 'http://128.6.3.103:8000/v1' --internalurl 'http://128.6.3.103:8000/v1' --adminurl 'http://128.6.3.103:8000/v1'
注:上面的region要跟keyston的其他service中一样,不加--region参数则默认是region,第一个r是小写的(我在这里出错过)。

1. 安装软件包
apt-get install heat-api heat-api-cfn heat-engine

1. 删除 
rm /var/lib/heat/heat.sqlite


2. 编辑  /etc/heat/heat.conf
[DEFAULT]
# The SQLAlchemy connection string used to connect to the database
sql_connection = mysql://heat:tsj@128.6.3.103/heat

#verbose = True
log_dir=/var/log/heat

rabbit_host = 128.6.3.103
rabbit_password = guest

4. 编辑 /etc/heat/heat.conf
[keystone_authtoken]
auth_host = 128.6.3.103
auth_port = 35357
auth_protocol = http
auth_uri = http://128.6.3.103:5000/v2.0
admin_tenant_name = service
admin_user = heat
admin_password = tsj
[ec2_authtoken]
auth_uri = http://128.6.3.103:5000/v2.0
keystone_ec2_uri = http://128.6.3.103:5000/v2.0/ec2tokens


编辑 /etc/heat/api-paste.ini
[filter:authtoken]
paste.filter_factory = heat.common.auth_token:filter_factory
auth_host = 128.6.3.103
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = heat
admin_password = tsj

1. mysql数据库中创建heat用户
# mysql -u root -p
mysql> CREATE DATABASE heat;
mysql> GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'localhost' IDENTIFIED BY 'HEAT_DBPASS';
mysql> GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'%' IDENTIFIED BY 'tsj';

2. 同步数据库
heat-manage db_sync


1. 重启所有服务

cd /etc/init.d/; for i in $( ls heat-* ); do sudo service $i restart; done

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 qq漂流瓶封了怎么办 我的世界被冻结怎么办 qq里被屏蔽了怎么办 qq领手游礼包账号存在异常怎么办 笔记本电脑太卡怎么办最有效 华为平板电脑忘记开机密码怎么办 平板电脑忘记开机密码怎么办 平板电脑忘了开机密码怎么办 qq文件已被损坏怎么办 斗地主没痘了怎么办 熹妃q传金币不够用怎么办 苹果手机玩王者卡怎么办 苹果6玩王者荣耀卡怎么办 苹果macbook开不了机怎么办 苹果7震动像拖拉机一样怎么办 win10笔记本玩lol卡怎么办 苹果笔记本密码忘了怎么办 苹果笔记本系统密码忘记了怎么办 qq加好友频繁了怎么办 淘宝买食品有问题怎么办 手机的设置图标没有了怎么办 国家创业贷款还不了会怎么办 手机mac显示:不好使.怎么办? 英雄联盟买皮肤重复怎么办 皮肤很油毛孔又粗怎么办 笔记本电脑玩英雄联盟卡怎么办 win10系统更新不动了怎么办 win7任务栏时间没了怎么办 win10桌面图标都没了怎么办 win10软件图标没了怎么办 电脑内存插板没用了怎么办 win10笔记本开不了机怎么办 cad复制东西变卡怎么办 企业网银证书过期怎么办 游戏更新网页无法正常打开怎么办 网页游戏打开说脚本错误怎么办 电脑玩游戏出现闪屏怎么办 玩游戏时出现窗口化怎么办 玩游戏时出现输入不支持怎么办 电脑玩游戏出现蓝屏怎么办 谷歌商店网页版进不去怎么办