OpenStack Pike Minimal安装:六、管理界面

Ⅰ、配置dashboard

1.在controller上安装dashboard

[[email protected] ~]# yum install openstack-dashboard -y

2.配置

①修改local_settings文件

[[email protected] ~]# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

SESSION_ENGINE = ‘django.contrib.sessions.backends.cache‘
CACHES = {
   ‘default‘: {
        ‘BACKEND‘: ‘django.core.cache.backends.memcached.MemcachedCache‘,
        ‘LOCATION‘: ‘controller:11211‘,
   }
}

OPENSTACK_API_VERSIONS = {
   "identity": 3,
   "image": 2,
   "volume": 2,
}

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

ALLOWED_HOSTS = [‘*‘]

OPENSTACK_NEUTRON_NETWORK = {
    ‘enable_router‘: False,
    ‘enable_quotas‘: False,
    ‘enable_ipv6‘: False,
    ‘enable_distributed_router‘: False,
    ‘enable_ha_router‘: False,
    ‘enable_fip_topology_check‘: False,
    ‘enable_lb‘: False,
    ‘enable_firewall‘: False,
    ‘enable_***‘: False,
}

TIME_ZONE = "UTC"

[[email protected] ~]# cat /etc/httpd/conf.d/openstack-dashboard.conf
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
#添加这一行
WSGIApplicationGroup %{GLOBAL}

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  Options All
  AllowOverride All
  Require all granted
</Directory>

<Directory /usr/share/openstack-dashboard/static>
  Options All
  AllowOverride All
  Require all granted
</Directory>

3.重启httpd和mecached

[[email protected] ~]# systemctl restart httpd.service memcached.service

4.查看页面

http://controller/dashboard

Ⅱ、创建一个实例

1.创建network

[[email protected] ~]# . admin-openstack.sh

openstack network create --share --external \
--provider-physical-network provider \
--provider-network-type flat provider

2.创建subnet

openstack subnet create --network provider --allocation-pool \
start=192.168.0.101,end=192.168.0.150 --dns-nameserver 192.168.0.1 \
--gateway 192.168.0.1 --subnet-range 192.168.0.0/24 provider

3.创建flavor

openstack flavor create --id 0 --vcpus 1 --ram 64 --disk 1 m1.nano

4.创建keypair

[[email protected] ~]# ssh-keygen -q -N ""
Enter file in which to save the key (/root/.ssh/id_rsa):
[[email protected] ~]# openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey
[[email protected] ~]# openstack keypair list

5.配置安全组

openstack security group rule create --proto icmp default
openstack security group rule create --proto tcp --dst-port 22 default

6.创建instance

①列出已配置的项目

openstack flavor list
openstack image list
openstack network list
openstack security group list

②创建test主机

nova boot --flavor m1.nano --image cirros --nic net-id=e8d43d9c-0098-450e-8cb3-c676951e3f94 --security-group default --key-name mykey test-instance

③查看实例状态

openstack server list

④获取URL

openstack console url show test-instance

原文地址:http://blog.51cto.com/lullaby/2174627

时间: 2024-11-09 00:32:36

OpenStack Pike Minimal安装:六、管理界面的相关文章

OpenStack Pike Minimal安装:三、镜像管理

1.创建服务凭据 #先使用脚本登陆admin [[email protected] ~]# . admin-openstack.sh ①创建glance user openstack user create --domain default --password-prompt glance ②关联 openstack role add --project service --user glance admin ③创建glance service openstack service create

OpenStack Pike Minimal安装:一、环境准备

1.关闭防火墙和selinux 2.配置hosts [[email protected] ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 20.0.20.21 controller 20.0.20.22 compu

OpenStack Pike Minimal安装:二、身份认证

1.在controller节点上安装keystone [email protected] ~]# yum install openstack-keystone httpd mod_wsgi -y 2.配置 [[email protected] ~]# vim /etc/keystone/keystone.conf [database] connection = mysql+pymysql://keystone:[email protected]/keystone [token] provider

OpenStack Pike Minimal安装:四、计算服务

Ⅰ.在controller节点上配置nova 1.创建nova服务凭据 #先使用脚本登陆admin [[email protected] ~]# . admin-openstack.sh ①创建nova user openstack user create --domain default --password-prompt nova ②关联 openstack role add --project service --user nova admin ③创建nova service openst

OpenStack pike版 安装openstack服务(4) 续安装openstack服务(3) &nbsp; &nbsp;

Compute service overview 计算服务概述 OpenStack用于对主机的计算和管理云计算系统.OpenStack的计算是一个基础设施即服务(IaaS)系统的一个重要组成部分.主要模块是用python实现的. OpenStack计算与OpenStack身份验证交互用来完成认证:OpenStack镜像服务用于磁盘和服务器镜像:用户和管理接口为OpenStack Dashboard.镜像访问受到项目和用户的限制,每个项目的配额是有限的(例如,实例的数量).OpenStack计算可

Solr7 安装部署 管理界面介绍

Solr7 安装部署 管理界面介绍 本章重点介绍CentOS 安装部署Solr7 ,Solr的管理界面介绍,添加核心Core配置,Dataimport导入数据,Documents 在线维护索引,Query复杂查询和一些常见问题处理办法. 什么是Solr Solr 是Apache下的一个顶级开源项目,采用Java开发,基于Lucene的全文搜索服务器.Solr可以独立运行在Jetty.Tomcat等这些Servlet容器中. 这里谈到了Lucene,它是一个开放源代码的全文检索引擎工具包.提供了完

OpenStack pike版 安装openstack服务(3) 续基本环境部署(2)

安装openstack服务 所有openstack服务的安装指南链接:https://docs.openstack.org/pike/install/ 最小化部署,需要按照下面指定的顺序安装以下服务: Identity service – keystone installation for Pike Image service – glance installation for Pike Compute service – nova installation for Pike Networkin

OpenStack pike版 安装openstack服务(5) 续安装openstack服务(4)

网络服务简介 OpenStack网络(neutron)允许您创建和将其他OpenStack服务管理的接口设备附加到网络中.插件可以适应不同的网络设备和软件,为OpenStack的架构和部署提供灵活性. 它包括以下组件: neutron-server:接受并将API请求路由到相应的OpenStack网络插件以进行操作. OpenStack Networking plug-ins and agent:即插即用端口,创建网络或者子网,提供IP地址.这些插件和代理根据特定云使用的供应商和技术而有所不同.

Linux安装web管理界面-Webmin控制面板

1.下载相应的软件包 http://www.webmin.com/download.html 官网 [[email protected] ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.770-1.noarch.rpm [[email protected] ~]# rpm -vih webmin-1.770-1.noarch.rpm [[email protected] ~]# yum -y install openss