<1,keystone安装配置>

1,yum -y install openstack-keystone python-keystoneclient;

2,配置实用mysql存储keytone componts 配置信息

/etc/keystone/keystone.conf

connection = mysql://ruiy:321@byruiy.cc/keystone

创建数据库用户赋予合适权限;

3,Define an authorization token to use as a shared secret between the identity service and other OpenStack service
ADMIN_TOKEN=$(openssl rand -hex 10)
admin_token = $ADMIN_TOKEN

export OS_SERVICE_TOKEN=14034bb8102de15503dc
export OS_SERVICE_ENDPOINT=http://byruiy.cc:35357/v2.0

4,Keystone usees PKI tokens,Create the signing keys and certificates and restrict access to the generated data:

keystone-manage pki_setup --keystone-user keystone --keystone-group keystone

chown -R keystone:keystone /etc/keystone/ssl
chmod -R o-rwx /etc/keystone/ssl

5,OpenStack清理expired tokens

6,Define users,tenants,roles

创建administrative用户

创建用户,角色,租户

keystone user-create --name=admin --pass=admin --email=rui.qin@egrandis.com
keystone role-create --name=admin
keystone tenant-create --name=admin --description="Admin Tenant"

链接用户角色租户

创建normal普通用户

daily non-administrative interaction with the OpenStack cloud,skip the tenant role creation step when creating there users;

当前角色有admin(super-user)和_member_(normal-user)

7,Create a service tenant:
OpenStack service also require a username,tenant,and role to access other OpenStack services.

Ruiy tips

基于2中环境变量交互访问OpenStack services components

(1,用户,租户,Auth-URL,无此API called)

export OS_USERNAME=admin
export OS_PASSWORD=321
export OS_TENANT_NAME=admin_project
export OS_AUTH_URL=http://5.10.124.181:5000/v2.0

(2,admin_token,OS_SERVICE_ENDPOINT)

export OS_SERVICE_TOKEN=14034bb8102de15503dc
export OS_SERVICE_ENDPOINT=http://byruiy.cc:35357/v2.0

或是指定OpenStack components --options

8,Define services and API endpoints

keystone service-create     Describes the service;
keystone endpoint-create  Associates API endpoints with the service;

register the identity service itself:

8.1,service-create

8.2,endpoint-create

Specify an OpenStack core components service API endpoint for identity service by using every keystone service-create returned service_ID

8.2.1,截取keystone service-id字段

8.2.2,基于OpenStack service components keystone service-id创建keystone的API endpoint

8.2.3,verify identityService installed and configured correctly

clear unset OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT environment variables

8.2.4,use regular user name-based authentication(基于此时还没使用tenant)
request a authentication token by using the admin user and the password

in response,you receive a token paired with your user ID

verifyes identity service kis running on the expected endpoint and that your user account is established with the expected credenitals

当你看到上面的截图时,你一定惊呆了!要是惊呆了,那你就傻了,上面仅仅是使用上面创建的用户基于密码,而没使用tenant,看到没

分别总结基于环境变量访问以定义的API endpoint

基于OpenStack core components python-OpenStackcorecomponentsClients --options访问API endpoint

keystone --os-username= --os-password= --os-auth-url= token-get

8.2.5,基于tenant 获取token-get for specify tenant

request authorization on tenant

In response,you receive a token that includes the ID of the tenant that you specified.Verifies that your user account has an explicitly defined role on the specified tenant and the tenant exists expected;

测试不使用--os-username= --os-password= --os-tenant-name= --os-auth-url= 而是使用此命令选项的环境变量

或是--os-service-token= --os-service-endpoint=

<二,安装配置OpenStackClient客户端>

OpenStack Client客户端是干啥的?是用来执行CLI called OpenStack core components Services API;

Ruiy Tips:Internally,each OpenStack core components Service client CLI runs cURL commands that embed API requests;

OpenStack APIs are RESTful APIs that use the HTTP protocol,including methods,URIs,media types,and response codes;
URI,URL区别见
http://baike.baidu.com/view/160675.htm?fr=aladdin
Each Openstack service has its own command-line client;

Openstack services   and    clients:

Block Storage    cinder     python-cinderclient   create and manage volumes
Compute           nova      python-novaclient     create and manage images,instances,and flavors

Database service   trove      python-troveclient     create and manage databases

image service        glance     python-glanceclient   create and manage images

identity         keystone python-keystoneclient create and manage users,tenants,roles,endpoints,and credentials

Networking       neutron   python-neutronclient   configure network for guest servers

Object Storage     swift        python-swiftclient       gather statistics,list items,update metadata,and upload,download,and delete files stored by the object storage service,gain access to an object storage installation for ad hoc processing

orchestration       heat        python-heatclient       launch stacks from templates,view details of running stacks including events and resources,and update and delete stacks

telemetry            ceilometer  python-ceilometerclient    create and collect measurements across openstack

prerequisite softwares for openstack core components services clients

setuptools是 Python Enterprise Application Kit(PEAK)的一个副项目,它 是一组Python的 distutilsde工具的增强工具

pip(python package index) CLC

easy_install pip
    from setuptools package

pip install python-PROJECTclient (latest version)

pip enables you to update or remove a packages

upgrade or remove clients
pip install --upgrade python-PROJECTclient
pip uninstall python-PROJECTclient

<三,安装配置image 镜像服务>

OpenStack VMIs image service overview

snapshots for back up and as templates to launch new servers

can store registered
images in Object Storage or in other locations or simple fileSystem

verify image service Succ installed

下载测试镜像

http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img

upload registry img to image service;

online regtry img resources

Ruiy Tips,OpenStack Services Core components image Service(glance)项目下的组件

glance-api
glance-registry

<四,安装配置compute service Inc Compute control service and compute Nodes>

1,compute control service

Ruiy Rips:

every OpenStack core Componets Service 都需要创建一个keystone user,为其指定service tenant,admin role

注册此组件服务,并关联足迹API endpoints

Ubuntu OpenStack compute control service 服务控制

测试compute controll service -->nova 配置Ok!

基于CLIlaunch virtual machine 前提是获取相关image-id,flavor-id

2,compute Nodes

无网络实例化VMI,always spawning

<五,add a Network services (Nrutron,legacy networking)>

关于云计算安全组(security group)概念:
安全组概念属于云网络范畴,Security groups enable adminstrators to defined firewall rules in groups,a VM can blong to one or more security group,and Networking applies the rules in those security groups to block or unblock,port ranges,or traffic types for that VM

Ruiy Tips:一般命令行的参数Arguments及options选项区别

Arguments(通常no --)

Options(通常加--)

调节内核参数,启用内核网络(kernel networking)功能

dmks(动态内核模块支持(Dynamic Kernel Module Support))

generic routing encapsulation(通用路由封装)

Generic Receive Offload (GRO)

Tunneling protocols such as generic routing encapsulation (GRE) include additional
packet headers that increase overhead and decrease space available for the payload or
user data

many network devices lack support for jumbo frames (Mellanox)

基于单网卡(eg,eth0)配置多ip

ifconfig eth0:1 192.168.1.159 netmask 255.255.255.0;

create a router and attach your tenant and external networks to it;

在配置OpenStack网络后启动虚机必须指定网络

基于nova boot --image --flavor --nic net-id= --security-group --key-name New-Instance-You-want-like-to-name初始化创建OpenStack虚机实例VMI VMs;

获取与本机ESTABLISH的外网ip

OpenStack基于CLI删除VMI,VMs;

UbuntuOpenStack core componennts的更多相关文章

  1. ASP.NET Core 之 Identity 入门(一)

    前言 在 ASP.NET Core 中,仍然沿用了 ASP.NET里面的 Identity 组件库,负责对用户的身份进行认证,总体来说的话,没有MVC 5 里面那么复杂,因为在MVC 5里面引入了OW ...

  2. .NET Core中的认证管理解析

    .NET Core中的认证管理解析 0x00 问题来源 在新建.NET Core的Web项目时选择“使用个人用户账户”就可以创建一个带有用户和权限管理的项目,已经准备好了用户注册.登录等很多页面,也可 ...

  3. ASP.NET Core 中的那些认证中间件及一些重要知识点

    前言 在读这篇文章之间,建议先看一下我的 ASP.NET Core 之 Identity 入门系列(一,二,三)奠定一下基础. 有关于 Authentication 的知识太广,所以本篇介绍几个在 A ...

  4. .Net Core MVC 网站开发(Ninesky) 2.4、添加栏目与异步方法

    在2.3中完成依赖注入后,这次主要实现栏目的添加功能.按照前面思路栏目有三种类型,常规栏目即可以添加子栏目也可以选择是否添加内容,内容又可以分文章或其他类型,所以还要添加一个模块功能.这次主要实现栏目 ...

  5. ASP.NET Core应用的错误处理[3]:ExceptionHandlerMiddleware中间件如何呈现“定制化错误页面”

    DeveloperExceptionPageMiddleware中间件利用呈现出来的错误页面实现抛出异常和当前请求的详细信息以辅助开发人员更好地进行纠错诊断工作,而ExceptionHandlerMi ...

  6. EntityFramework Core Raw SQL

    前言 本节我们来讲讲EF Core中的原始查询,目前在项目中对于简单的查询直接通过EF就可以解决,但是涉及到多表查询时为了一步到位就采用了原始查询的方式进行.下面我们一起来看看. EntityFram ...

  7. ASP.NET Core MVC/WebAPi 模型绑定探索

    前言 相信一直关注我的园友都知道,我写的博文都没有特别枯燥理论性的东西,主要是当每开启一门新的技术之旅时,刚开始就直接去看底层实现原理,第一会感觉索然无味,第二也不明白到底为何要这样做,所以只有当你用 ...

  8. ASP.NET Core应用的错误处理[2]:DeveloperExceptionPageMiddleware中间件如何呈现“开发者异常页面”

    在<ASP.NET Core应用的错误处理[1]:三种呈现错误页面的方式>中,我们通过几个简单的实例演示了如何呈现一个错误页面,这些错误页面的呈现分别由三个对应的中间件来完成,接下来我们将 ...

  9. Asp.net Core中使用Session

    前言 2017年就这么悄无声息的开始了,2017年对我来说又是特别重要的一年. 元旦放假在家写了个Asp.net Core验证码登录, 做demo的过程中遇到两个小问题,第一是在Asp.net Cor ...

随机推荐

  1. win7 奇怪的temp用户

    在C:\Users\TEMP 有个temp用户,win+r打开的也是 C:\Users\TEMP>,而不是C:\User\Administrator. 以下文章转自: http://hi.bai ...

  2. spring3.0事务的配置

    第一种配置方法:基于XML的事务管理 这种方法不需要对原有的业务做任何修改,通过在XML文件中定义需要拦截方法的匹配即可完成配置,要求是,业务处理中的方法的命名要有规律,比如setXxx,xxxUpd ...

  3. 大量客户反映wordpress的网站打开巨慢,经分析发现,这些网站大都使用了google的字体服务,由于最近google的服务已经被大陆屏蔽,所以wordpress的网站打开时,会卡在字体加载上。

     一会你安装完wp,发现打开巨卡的话,看看这个帖子:http://bbs.myhostcn.com/thread-1026-1-1.html最近一段时间,大量客户反映wordpress的网站打开巨慢, ...

  4. windows套接字相关函数

    windows套接字相关函数 作者:vpoet mail:vpoet_sir@163.com 我们学习TCP/IP协议无非是利用这些协议进行通信开发,然而如果让我们自己来直接根据协议规则和协议格式来进 ...

  5. Hamming code

    Also known as (7,4) code,7 trainsmitted bits for 4 source code. TRANSMIT The transmitted procedure c ...

  6. Yii2 框架下bootstrap 弹窗预览视频等~

    Yii2 本身已经引用了'yii\bootstrap\BootstrapAsset',所以使用bootstrap 非常简洁. 1 在PHP页面引用命名空间 use app\assets\AppAsse ...

  7. Oracle基础学习5-- Oracle权限之”角色”

    不论什么与权限相关的东西都少不了"角色"的概念,Java如此,.Net如此,Oracle当然也不例外. 角色事实上就是权限的集合,将多个权限打包到一个角色中,这样每一个角色有特定的 ...

  8. 实现怎样支持Android重力感应器Sensor编程

    添加当重力变化时的处理函数 在创建监听器时调用的函数 doSomething(x, y, z) 是自己定义的方法. 当手机倾斜方向改变时,监听器会调用该方法. 我们要做的,就是填充该方法,用于在重力发 ...

  9. Masterha-manager避免自动关闭的方法

    Masterha-manager启动默认是前端启动 在用MHA配置了MySQL高可用集群时,当master挂掉,完成高可用切换后,Masterha-manager会自动关闭,这不是我想要的...... ...

  10. apache的keepalive和keepalivetimeout

    在APACHE的httpd.conf中,KeepAlive指的是保持连接活跃,类似于Mysql的永久连接.换一句话说,如果将KeepAlive设置为On,那么来自同一客户端的请求就不需要再一次连接,避 ...