openstack--newton安装过程(官方文档)controller

/etc/hosts    192.168.1.202   controller

Network Time Protocol (NTP)

yum install chrony

controller /etc/chrony.conf

server NTP_SERVER iburst

allow 192.168.1.0/24

systemctl enable chronyd.service
systemctl start chronyd.service

compute

server controller iburst

systemctl enable chronyd.service
systemctl start chronyd.service

1、OpenStack packages

http://docs.openstack.org/newton/install-guide-rdo/environment-packages.html

yum install -y centos-release-openstack-newton

yum upgrade

yum install -y python-openstackclient

yum install -y openstack-selinux

2、SQL database

http://docs.openstack.org/newton/install-guide-rdo/environment-sql-database.html

yum install -y mariadb mariadb-server python2-PyMySQL

vim /etc/my.cnf.d/openstack.cnf

[mysqld]
bind-address = 192.168.1.202

default-storage-engine = innodb
innodb_file_per_table
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

systemctl enable mariadb.service
systemctl start mariadb.service

mysql_secure_installation

3、Message queue

http://docs.openstack.org/newton/install-guide-rdo/environment-messaging.html

yum install -y rabbitmq-server

systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service

rabbitmqctl add_user openstack 123456

rabbitmqctl set_permissions openstack ".*" ".*" ".*"

4、Memcached

http://docs.openstack.org/newton/install-guide-rdo/environment-memcached.html

yum install -y memcached python-memcached

systemctl enable memcached.service
systemctl start memcached.service

Identity

Install and configure

mysql -u root -p

mysql> CREATE DATABASE keystone;

mysql> GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone‘@‘localhost‘ \  IDENTIFIED BY ‘123456‘;mysql> GRANT ALL PRIVILEGES ON keystone.* TO ‘keystone‘@‘%‘ \  IDENTIFIED BY ‘123456‘;

yum install -y openstack-keystone httpd mod_wsgi

vim /etc/keystone/keystone.conf

[database]...connection = mysql+pymysql://keystone:[email protected]/keystone

[token]...provider = fernet

# su -s /bin/sh -c "keystone-manage db_sync" keystone

# keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone# keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

# keystone-manage bootstrap --bootstrap-password 123456\
 --bootstrap-admin-url http://controller:35357/v3/ \
 --bootstrap-internal-url http://controller:35357/v3/ \
 --bootstrap-public-url http://controller:5000/v3/ \
 --bootstrap-region-id RegionOne

Configure the Apache HTTP server

vim  /etc/httpd/conf/httpd.conf

ServerName controller

sed -i ‘s/#ServerName www.example.com:80/ServerName controller/g‘ /etc/httpd/conf/httpd.conf

  1. Create a link to the /usr/share/keystone/wsgi-keystone.conf file:

# ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/

Finalize the installation

# systemctl enable httpd.service# systemctl start httpd.service

export OS_USERNAME=adminexport OS_PASSWORD=123456export OS_PROJECT_NAME=adminexport OS_USER_DOMAIN_NAME=Defaultexport OS_PROJECT_DOMAIN_NAME=Defaultexport OS_AUTH_URL=http://controller:35357/v3export OS_IDENTITY_API_VERSION=3

Create a domain, projects, users, and roles

openstack project create --domain default \
 --description "Service Project" service

openstack project create --domain default \
 --description "Demo Project" demo

openstack user create --domain default \
 --password-prompt demo

openstack role create user

openstack role add --project demo --user demo user

Verify operation

vim /etc/keystone/keystone-paste.ini file and remove admin_token_auth from the [pipeline:public_api], [pipeline:admin_api], and [pipeline:api_v3] sections.

unset OS_AUTH_URL OS_PASSWORD

openstack --os-auth-url http://controller:35357/v3 \
 --os-project-domain-name Default --os-user-domain-name Default \
 --os-project-name admin --os-username admin token issue

openstack --os-auth-url http://controller:5000/v3 \
 --os-project-domain-name Default --os-user-domain-name Default \
 --os-project-name demo --os-username demo token issue

Create OpenStack client environment scripts

vim admin-openrc

export OS_PROJECT_DOMAIN_NAME=Defaultexport OS_USER_DOMAIN_NAME=Defaultexport OS_PROJECT_NAME=adminexport OS_USERNAME=adminexport OS_PASSWORD=123456export OS_AUTH_URL=http://controller:35357/v3export OS_IDENTITY_API_VERSION=3export OS_IMAGE_API_VERSION=2

vim demo-openrc

export OS_PROJECT_DOMAIN_NAME=Defaultexport OS_USER_DOMAIN_NAME=Defaultexport OS_PROJECT_NAME=demoexport OS_USERNAME=demoexport OS_PASSWORD=123456export OS_AUTH_URL=http://controller:5000/v3export OS_IDENTITY_API_VERSION=3export OS_IMAGE_API_VERSION=2

. admin-openrc

openstack token issue

Image service

$ mysql -u root -p

mysql> CREATE DATABASE glance;

mysql> GRANT ALL PRIVILEGES ON glance.* TO ‘glance‘@‘localhost‘ \  IDENTIFIED BY ‘123456‘;mysql> GRANT ALL PRIVILEGES ON glance.* TO ‘glance‘@‘%‘ \  IDENTIFIED BY ‘123456‘;

. admin-openrc

openstack user create --domain default --password-prompt glance

openstack role add --project service --user glance admin

openstack service create --name glance \
 --description "OpenStack Image" image

openstack endpoint create --region RegionOne \
 image public http://controller:9292

openstack endpoint create --region RegionOne \
 image internal http://controller:9292

openstack endpoint create --region RegionOne \
 image admin http://controller:9292

Install and configure components

yum install -y openstack-glance

vim /etc/glance/glance-api.conf

[database]...connection = mysql+pymysql://glance:[email protected]/glance

[keystone_authtoken]...auth_uri = http://controller:5000auth_url = http://controller:35357memcached_servers = controller:11211auth_type = passwordproject_domain_name = Defaultuser_domain_name = Defaultproject_name = serviceusername = glancepassword = 123456[paste_deploy]...flavor = keystone

[glance_store]...stores = file,httpdefault_store = filefilesystem_store_datadir = /var/lib/glance/images/

vi /etc/glance/glance-registry.conf

[database]...connection = mysql+pymysql://glance:[email protected]/glance

[keystone_authtoken]...auth_uri = http://controller:5000auth_url = http://controller:35357memcached_servers = controller:11211auth_type = passwordproject_domain_name = Defaultuser_domain_name = Defaultproject_name = serviceusername = glancepassword = 123456[paste_deploy]...flavor = keystone

Populate the Image service database:

# su -s /bin/sh -c "glance-manage db_sync" glance

# systemctl enable openstack-glance-api.service \
 openstack-glance-registry.service# systemctl start openstack-glance-api.service \
 openstack-glance-registry.service

. admin-openrc

wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

openstack image create "cirros" \
 --file cirros-0.3.4-x86_64-disk.img \
 --disk-format qcow2 --container-format bare \
 --public

openstack image list

Compute service

Install and configure controller node

mysql -u root -p

mysql> CREATE DATABASE nova_api;mysql> CREATE DATABASE nova;

mysql> GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘localhost‘ \  IDENTIFIED BY ‘123456‘;mysql> GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘%‘ \  IDENTIFIED BY ‘123456‘;mysql> GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘localhost‘ \  IDENTIFIED BY ‘123456‘;mysql> GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘%‘ \  IDENTIFIED BY ‘123456‘;

. admin-openrc

openstack user create --domain default \
 --password-prompt nova

openstack role add --project service --user nova admin

openstack service create --name nova \
 --description "OpenStack Compute" compute

openstack endpoint create --region RegionOne \
 compute public http://controller:8774/v2.1/%\(tenant_id\)s

openstack endpoint create --region RegionOne \
 compute internal http://controller:8774/v2.1/%\(tenant_id\)s

openstack endpoint create --region RegionOne \
 compute admin http://controller:8774/v2.1/%\(tenant_id\)s

Install and configure components

yum install -y openstack-nova-api openstack-nova-conductor \
 openstack-nova-console openstack-nova-novncproxy \
 openstack-nova-scheduler

vim /etc/nova/nova.conf

[DEFAULT]...enabled_apis = osapi_compute,metadata

[api_database]...connection = mysql+pymysql://nova:[email protected]/nova_api[database]...connection = mysql+pymysql://nova:[email protected]/nova

[DEFAULT]...transport_url = rabbit://openstack:123456@controller

[DEFAULT]...auth_strategy = keystone[keystone_authtoken]...auth_uri = http://controller:5000auth_url = http://controller:35357memcached_servers = controller:11211auth_type = passwordproject_domain_name = Defaultuser_domain_name = Defaultproject_name = serviceusername = novapassword = 123456

[DEFAULT]...my_ip = 10.0.0.11

[DEFAULT]...use_neutron = Truefirewall_driver = nova.virt.firewall.NoopFirewallDriver

[vnc]...vncserver_listen = $my_ipvncserver_proxyclient_address = $my_ip

[glance]...api_servers = http://controller:9292

[oslo_concurrency]...lock_path = /var/lib/nova/tmp

su -s /bin/sh -c "nova-manage api_db sync" nova

su -s /bin/sh -c "nova-manage db sync" nova

Finalize installation

# systemctl enable openstack-nova-api.service \
 openstack-nova-consoleauth.service openstack-nova-scheduler.service \
 openstack-nova-conductor.service openstack-nova-novncproxy.service# systemctl start openstack-nova-api.service \
 openstack-nova-consoleauth.service openstack-nova-scheduler.service \
 openstack-nova-conductor.service openstack-nova-novncproxy.service

时间: 2025-01-02 14:39:34

openstack--newton安装过程(官方文档)controller的相关文章

ios开发UI基础—安装苹果官方文档和Xcode模拟器

ios开发UI基础-安装苹果官方文档和Xcode模拟器 提示:准备资料 (1)com.apple.adc.documentation.AppleiOS7.1.iOSLibrary.docset.zip (2)iPhoneSimulator6.1.sdk.zip 一.安装苹果官方文档 1.安装路径 文档有两个安装路径: (1)~/资源库/Developer/Xcode/UserData/ (2)/Applications/Xcode.app/Contents/Developer/Documenta

有关于OpenStack的Rocky版官方文档部署中的一些错误

OpenStack-Rocky版本的错误错误1:在装包时包下载失败,在确定系统源没有问题之后,发现Ping不通百度.最后,添加了DNS解决的,说明没有添加DNS(/etc/resolv.conf). 错误2:作为admin用户,请求身份验证令牌时发生错误,应为端口错误,在配置的时候,使用的是5000,下面命令中测试使用的是35357,所以错了.[[email protected] ~]# openstack --os-auth-url http://controller:35357/v3 \ -

tomcat 5 启动过程官方文档

http://tomcat.apache.org/tomcat-7.0-doc/architecture/startup/serverStartup.txt Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional informatio

openstack--newton安装过程(官方文档)问题解决

Should vim /etc/hosts     add your ip and hostname to that IP  Hostname写入hosts yum install -y python-openstackclientopenstack-utils 无法确定错误无,安装web管理插件,查看错误. 安装RabbitMQWeb管理插件 rabbitmq-plugins enablerabbitmq_management service rabbitmq-server restart 苦

【Phabricator】教科书一般的Phabricator安装教程(配合官方文档并带有踩坑解决方案)

随着一声惊雷和滂沱的大雨,我的Phabricator页面终于在我的学生机上跑了起来. 想起在这五个小时内踩过的坑甚如大学隔壁炮王干过的妹子,心里的成就感不禁油然而生. 接下来,我将和大家分享一下本人在CentOS7.4版本,利用lnmp搭建Phabricator的实战过程和踩过的坑.这一方面是为我下一步在docker上部署并制作镜像做好铺垫,更重要的是,我能够有幸和游走在这令人头秃的修罗场里的勇士们,分享我自认为史诗一般难得的宝贵经验.好,那么接下来我们进入正题. 一.什么是phabricato

Oracle官方文档(11G r 2)【安装需要参考的文档】

Oracle的官方文档相关的笔记:仅供大家参考,欢迎大家前来指正.提出建议哦 步骤: 点击左上角的Master Book List 然后进入一个书本目录 然后找到如下图所示: 然后根据自己的系统的版本去找相应的文档就OK了 比如我的是RedHat的,那么我就选择 第三项 Database Installation Guide for Linux 这本书了 进入之后如下图 所示 此时直接选择 2.3 点击进入,即可以按照文档去安装Oracle了,但是英语不要太烂哦,嘿嘿,实在不行的话 先去补充一下

Android Studio官方文档之构建和运行你的APP

Android Studio官方文档之构建和运行你的APP 本文由MTJH翻译,jkYishon审校. 前言 默认情况下,Android Studio设置新的项目并且部署到模拟器或者真机设备上,只需要点击几下.使用即时运行,你并不需要构建一个新的APK即可将改变后的方法和现有的应用资源应用到一个正在运行的应用程序中,所以代码的改变是即时可见的. 点击Run来构建并运行你的APP.Android Studio通过Gradle构建你的App,选择一个部署的设备(模拟器或连接的设备),然后把你的APP

【苦读官方文档】2.Android应用程序基本原理概述

官方文档原文地址 应用程序原理 Android应用程序是通过Java编程语言来写.Android软件开发工具把你的代码和其它数据.资源文件一起编译.打包成一个APK文件,这个文档以.apk为后缀,保存了一个Android应用程序全部的内容.Android设备通过它来安装相应的应用. 一旦安装到设备上.每一个Android应用程序就执行在各自独立的安全沙盒中: Android系统是一个多用户的Linux系统.每一个应用都是一个用户. Android系统默认会给每一个应用分配一个唯一的用户ID(这个

Spring Boot 官方文档入门及使用

个人说明:本文内容都是从为知笔记上复制过来的,样式难免走样,以后再修改吧.另外,本文可以看作官方文档的选择性的翻译(大部分),以及个人使用经验及问题. 其他说明:如果对Spring Boot没有概念,请先移步上一篇文章 Spring Boot 学习.本篇原本是为了深入了解下Spring Boot而出现的. 另外,Spring Boot 仍然是基于Spring的,建议在赶完工之后深入学习下Spring,有兴趣可以看看我的 Spring 4 官方文档学习(十一)Web MVC 框架 .欢迎探讨,笑~

Hive官方文档

Hive官方文档 内容列表 Cloudera制作的Hive介绍视频 安装与配置 系统需求 安装Hive发行版 从Hive源码编译 运行Hive 配置管理概览 运行时配置 Hive, Map-Reduce 与本地模式 错误日志 DDL 操作 元数据存储 DML 操作 SQL 操作 查询示例 SELECTS 和 FILTERS GROUP BY JOIN MULTITABLE INSERT STREAMING Simple Example Use Cases MovieLens User Ratin