openstack
iteye_920
这个作者很懒,什么都没留下…
展开
-
openstack horizon开发环境配置
[code="java"]mkdir open_srccd open_src[/code]1.选择一个目录下载Horizon代码[code="java"]git clone https://github.com/openstack/horizon.gitgit clone git://github.com/openstack/horizon.gitgit clone git:/...原创 2016-03-15 19:48:50 · 366 阅读 · 0 评论 -
openstack安装--glance
创建glance数据库[code="java"]mysql -u root -pCREATE DATABASE glance;GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'GLANCE_DBPASS';GRANT ALL PRIVILEGES ON glance.* TO 'glanc...原创 2016-08-29 15:01:42 · 153 阅读 · 0 评论 -
openstack安装--keystone
安装在controller节点一、数据库1、要求controller和compute节点的数据库能互相访问[code="java"]grant all on *.* to root@'%' identified by "mima" WITH GRANT OPTION; flush privileges;[/code]2、 mysql -u root -p[c...原创 2016-05-27 12:12:07 · 180 阅读 · 0 评论 -
horizon对sql表的增删改查操作
首先根据horizon/doc/source/tutorials/dashboard.rst新加目录结构mydashboard->mypanel一,从数据库中取数据,显示在mypanel的index页面1.tables.py[code="java"] class InstancesTable(tables.DataTable): 定义index页面的字段为数据库里表的字段 ...原创 2016-03-29 15:13:45 · 203 阅读 · 0 评论 -
Nova 架构
消息队列:松耦合、异步、负载均衡 运算工作站 网络控制器Filter Scheduler 是用来判断一个vm应该在哪一台主机上面创建。一台主机选出来被要经历你filters 和weights两个过程。filters:分类器大致分为2类:主机分类器和cell分类器,主机分类器需要重写hostpass() ,cell分类器需重写cellpass()[code="java"]nova.c...原创 2016-03-24 15:53:52 · 189 阅读 · 0 评论 -
dashboard->admin->instance->action
[code="java"]admin->instance->虚拟机创建快照引用project->instance->tables.CreateSnapshotCreateSnapshot的操作逻辑步骤:1.class CreateSnapshot def allowed//该函数的作用是判断是否允许创建,返回Ture或Fasle2.url = "horizon:project:im...原创 2016-03-24 15:50:49 · 214 阅读 · 0 评论 -
dashboard 增加编辑按钮
用到其他目录下的文件,用到workflows1.tables.py添加如下内容[code="java"]from openstack_dashboard.dashboards.project.instances \ import tables as project_tablesclass AdminEditInstance(project_tables.EditIns...原创 2016-03-23 22:24:00 · 365 阅读 · 0 评论 -
dashboard增加删除虚拟机按钮
vim tables.py 新加如下内容[code="java"]from django.utils.translation import ungettext_lazyfrom openstack_dashboard import policy[/code]定义删除动作:[code="java"]class DeleteSnapshotAction(policy.Poli...原创 2016-03-23 14:15:09 · 230 阅读 · 0 评论 -
nova 建虚拟机
要用Nova建虚拟机,首先要用neutron建立网络1.建立一个外部网络[code="java"]neutron net-create public --shared --provider:physical_network public --provider:network_type flat[/code]2.给外部网络建立一个子网[code="java"]neutron subn...原创 2016-03-23 11:27:17 · 236 阅读 · 0 评论 -
dashboard添加可编辑字段
在tables.py中添加如下代码:[code="java"]class UpdateRow(tables.Row): ajax = True def get_data(self, request, instance_id): project_info = api.nova.server_get(request, instance_id) ...原创 2016-03-18 20:41:55 · 330 阅读 · 1 评论 -
dashborad 增加action
============================================Tutorial: Adding a complex action to a table============================================This tutorial covers how to add a more complex action to a t...原创 2016-03-17 12:03:40 · 174 阅读 · 0 评论 -
horizon 增加plugin
==============Horizon Plugin==============Why should I package my code as a plugin?=========================================We highly encourage that you write and maintain your code usin...原创 2016-03-16 21:27:10 · 168 阅读 · 0 评论 -
horizon 添加目录
在horizon中创建一个dashboard1.在mydashboard中自动添加一个mypanel的文件[code="java"]mkdir openstack_dashboard/dashboards/mydashboard ./run_tests.sh -m startdash mydashboard \ --target openstack_d...原创 2016-03-15 20:03:00 · 357 阅读 · 0 评论 -
openstack安装--nova
在controller节点操作创建Nova数据库[code="java"]mysql -u root -pzouhuiyingCREATE DATABASE nova;GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';GRANT ALL PRIVILEGES ON...原创 2016-08-30 16:10:05 · 165 阅读 · 0 评论