openstack 组件命令

Glance组件操作(镜像服务组件)

#环境配置:
source /etc/keystone/admin-openrc.sh
#查看镜像列表:
glance image-list openstack image list
#查看镜像详情:
glance image-show 镜像ID openstack image show centos7
#上传:
cd /opt/iaas/images/glance image-create --name "centos7.2" --disk-format qcow2 --container-format bare --progress < CentOS_7.2_x86_64_XD.qcow2
#更新:
glance image-update --min-disk 1 镜像ID
#导出:
glance image-download --file /opt/centos72.qcow2 --progress 镜像ID
cd /opt/
du -sh *
#删除:
glance image-delete 镜像ID

Keystone运维命令

#环境配置:
source /etc/keystone/admin-openrc.sh
#创建用户:
openstack user create --password ps1234 --email zzz@example.com --domain demo zzz
#创建acme项目:
openstack project create --domain demo acme
#创建角色:
openstack role create compute-user
#绑定用户和项目权限
#添加的用户需要分配一定的权限,需要把用户关联绑定到对应的项目和角色:
openstack role add --user hqs --project acme compute-user
#用户列表查询:
openstack user list
#查询zzz用户详细信息:
openstack user show zzz
#查询当前openstack平台所有项目:
openstack project list
#查询acme项目详情:
openstack project show acme
#查询所有keystone角色:
openstack role list

Nova组建操作(计算服务组件)

#安全组查看:
nova secgroup-list
#安全组创建:
nova secgroup-create zzz 'Most great security group'
#安全组删除:
nova secgroup-delete zzz
#安全组规则查看:
nova secgroup-list-rules zzz
nova secgroup-list-rules default
#安全组规则添加:
nova secgroup-add-rule hqs icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule hqs udp 1 65535 0.0.0.0/0
nova secgroup-add-rule hqs tcp 1 65535 0.0.0.0/0
#安全组规则删除:
nova secgroup-delete-rule zzz icmp -1 -1 0.0.0.0/0
nova secgroup-list-rules zzz #查看规则

Horizon(自动化图形界面)

暂无

Neutorn(网络服务组件)

网络

#查看网络列表:
neutron net-list
#创建外部网络:
neutron net-create --shared --router:external=true --provider:network_type gre net-test-gre
#创建内部网络:
neutron net-create --shared --provider:network_type gre int-test-gre
#查看网络详情:
neutron net-show int-test-gre
#删除网络:
neutron net-delete int-test-gre
#更新网络:
openstack network set net-test-gre --name net-test11-gre --disable --no-share
neutron net-show net-test11-gre

子网

#创建外网子网:
neutron subnet-create net-gre 192.168.20.0/24 --name net-subnet01 --gateway 192.168.20.2 --allocation-pool start=192.168.20.101,end=192.168.20.240 --enable-dhcp --dns-nameserver 8.8.8.8
#创建内网子网:
neutron subnet-create int-gre 10.10.1.0/24 --name int-subnet01 --gateway 10.10.1.2 --allocation-pool start=10.10.1.101,end=10.10.1.240 --enable-dhcp
#查看子网列表信息:
neutron subnet-list
#查看子网详细信息:
neutron subnet-show net-subnet01
#删除子网:
neutron subnet-delete int-subnet01

路由

#创建路由:
neutron router-create router
#查看路由列表:
neutron router-list
#查看路由详情:
neutron router-show router
#删除路由:
neutron router-delete router
#添加外部网关:
neutron router-gateway-set router01 net-gre
neutron router-port-list router01
#删除外部网关:
neutron router-gateway-clear router01
neutron router-port-list router01
#添加内部接口:
neutron router-interface-add router01 int-subnet
neutron router-port-list router01
#删除内部接口:
neutron router-interface-delete router01 subnet=int-subnet
neutron router-port-list router01
#查看路由端口信息列表:
neutron router-port-list router01

端口

#查看端口列表:
neutron port-list
#查看端口详情:
neutron port-show 1b46a0d6-0df6-4f96-b3a3-d47aae6ed589
#创建端口:
neutron port-create int-gre --name test-port
#删除端口:
neutron port-delete test-port
#修改端口:
neutron port-update test-port --name test-port-8080 --security-group 54c9ccb7-7f00-4485-898f-e4bbebafa73b

Cinder(块存储服务模块)

#卷列表查看:
cinder list
#卷详情查看:
cinder show test2(查看的name)
#卷创建(size只能是整数):
cinder create --name test --description 'new volume' --availability-zone nova 2
#卷删除:
cinder delete test
#扩容:
cinder extend test-volume-01 5
cinder list
#查看类型:
cinder type-list
#删除类型:
cinder type-delete lvm

heat(编排服务)

暂无

Ceilometer(监控服务组件)

暂无

Swift (对象存储服务)

Openstack之各组件命令的更多相关文章

  1. Openstack计算Nova组件

    欢迎来到虚拟机的世界,如果我们将Openstack环境里运行在各个无力节点上的各种服务看座生命体,而不是死的指令集合,那么就是一个虚拟机的世界. Openstack的计算组件,也就是Nova项目实现了 ...

  2. openstack 5大组件之间的关系和基本架构思维导图

    云计算是一种按使用量付费的模式,这种模式提供可用的/便捷的/按需的网络访问,进入可配置的计算资源共享池(资源包括网络/服务器/存储/应用软件和服务),这些资源能够被快速提供,只需投入很少的管理工作或与 ...

  3. openstack环境搭建常用命令

    1,编辑/etc/selinux/config文件,关闭selinux SELINUX=disabled 2,清空iptables规则并保存 # iptables -F # service iptab ...

  4. OpenStack之各组件介绍

    OpenStack简介 OpenStack既是一个社区,也是一个项目和一个开源软件,它提供了一个部署云的操作平台或工具集.其宗旨在于:帮助组织运行为虚拟计算或存储服务的云,为公有云.私有云,也为大云. ...

  5. OpenStack的Heat组件详解

    一:简介     一.什么Heat 1. Heat 是一套业务流程平台,旨在帮助用户更轻松地配置以 OpenStack 为基础的云体系.利用Heat应用程序,开发人员能够在程序中使用模板以实现资源的自 ...

  6. openstack中Glance组件简解

    一.Glance组件介绍 1.概念 Glance是OpenStack镜像服务,用来注册.登陆和检索虚拟机镜像.Glance服务提供了一个REST API,使你能够查询虚拟机镜像元数据和检索的实际镜像. ...

  7. OpenStack 的Nova组件详解

    Open Stack Compute Infrastructure (Nova) Nova是OpenStack云中的计算组织控制器.支持OpenStack云中实例(instances)生命周期的所有活 ...

  8. Windows2008安装组件命令行工具ServerManagerCmd用法介绍

    转自:http://blog.sina.com.cn/s/blog_537de4b5010128al.html Windows2008 安装组件服务等内容比原来复杂的多,用鼠标点来点去,既繁琐也缓慢, ...

  9. vue中创建全局单文件组件/命令

    1.在 vue中如果我们使用基于vue.js编写的插件,我们可以使用Vue.use() 如在main.js中: 2.添加全局命令,让每个vue单文件组件都可以使用到: 第一步:最好建一个全局的命令文件 ...

随机推荐

  1. 在公网服务器搭建CobaltStrike4.0

    因为工作需要使用cs,正好之前腾讯云薅了一把羊毛,就把VPS装起来cs. 选的环境是centos7.6 cs运行需要java环境 先使用yum -y list java* 查看yum存在的java库 ...

  2. SAP APO - Architecture

    SAP APO体系结构由多个组件组成-数据库,BI环境包含InfoCube和实时缓存. InfoCube是BI数据集市的一部分,实时缓存是您保留与计划和调度有关的所有数据的主要区域. 您可以在实时缓存 ...

  3. ABAP CDS - Annotations 注解

    Syntax ... annotation[.annotation1[.annotation2]][:value]  ... Effect Annotation that can be specifi ...

  4. React技巧之处理tab页关闭事件

    原文链接:https://bobbyhadz.com/blog/react-handle-tab-close-event 作者:Borislav Hadzhiev 正文从这开始~ 总览 在React中 ...

  5. Windows启动谷歌浏览器Chrome失败(应用程序无法启动,因为应用程序的并行配置不正确)解决方法

    目录 一.系统环境 二.问题描述 三.解决方法 一.系统环境 Windows版本 系统类型 浏览器Chrome版本 Windows 10 专业版 64 位操作系统, 基于 x64 的处理器 版本 10 ...

  6. 入行数字IC验证后会做些什么?

    半年前,公众号写了第一篇推文<入行数字IC验证的一些建议>,介绍了IC小白可以如何一步一步地摸索入门数字IC验证,同时也在知乎发了这篇入门贴,并且衍生出很多额外基础的内容,收获了不少的浏览 ...

  7. 如何在.Net Framework应用中请求HTTP2站点

    背景介绍 本文的需求背景是对接苹果公司的推送服务(APNS),苹果在安全方面比较积极,已经严格限制API只支持HTTP2.但是我这里的应用目前仍然是.NET Framework平台,所以必须寻找一种解 ...

  8. vue Blob 下载附件报错

    vue Blob 下载附件报错,不妨试试: window.location.href=后台地址

  9. zenmap安装

    发现最新版的KALI不带zenmap了,下面是安装步骤: 安装包转换工具:sudo apt-get install alien fakeroot -y 下载并转换:https://nmap.org/d ...

  10. ACWing94. 递归实现排列型枚举

    题面 把 1∼n 这 n个整数排成一行后随机打乱顺序,输出所有可能的次序. 输入格式 一个整数 n. 输出格式 按照从小到大的顺序输出所有方案,每行 1 个. 首先,同一行相邻两个数用一个空格隔开. ...