openstack学习(1)

OpenStack项目结构

OpenStack架构

    1. horizon以图形的方式管理所有的project,包括nova虚拟机的创建,neutron网络,cinder存储,glance镜像等;
    2. keystone为所有的服务提供认证和授权服务,通过keystone能够找到各个服务的endpoint,如nova的地址,neutron的地址,glance的地址,cinder的地址等;
    3. 创建虚拟机,需要提交请求给nova-api,nova通过nova-scheduler选择合适的compue,nova和底层的hypervisor交互,需要建立虚拟机最初工作;
    4. 虚拟机的创建需要下载合适的镜像,此时会请求glance-api,glance通过glance-registry找到和下载到合适的镜像到compute启动;
    5. glance的镜像可以存放在不同的地方,如本地的Filesystem,统一存储ceph或者是swift上;
    6. instance运行时需要建立网络,将请求交给neutron-server,neutron-server会根据网络请求,为虚拟机分配地址,建立网桥,构建iptables安全组规则,此时一个普通的instance就基本可以建立完成了;
    7. instance如果需要外挂存储的话,可以向cinder-api发起请求,通过cinder-scheduler选择到合适的cinder-volume之后,cinder-volume会向端的存储请求存储空间,之后交由instance;
    8. 和image类似,cinder的备份或者快照文件,可以存储在分布式的对象存储swift上。


【OpenStack架构】

 


【核心项目】


【网络拓扑】


【虚拟网络/全局设定->网络】
Net0:
Network name: VirtualBox host-only Ethernet Adapter#2
Purpose: administrator / management network
IP block: 10.20.0.0/24
DHCP: disable
Linux device: eth0

Net1:
Network name: VirtualBox host-only Ethernet Adapter#3
Purpose: public network
DHCP: disable
IP block: 172.16.0.0/24
Linux device: eth1

Net2:
Network name: VirtualBox host-only Ethernet Adapter#4
Purpose: Storage/private network
DHCP: disable
IP block: 192.168.4.0/24
Linux device: eth2


【虚拟机】
VM0:
Name: controller0
vCPU:1
Memory :2G
Disk:80G                  建议100G
Networks: net0
 
VM1:
Name : network0
vCPU:1
Memory :512M       建议2G
Disk:30G                  建议50G
Network:net0,net1,net2
 
VM2:
Name: compute0
vCPU:2
Memory :2G
Disk:30G                 建议50G
Networks:net0,net2


【网络设置】

controller0
eth0:10.20.0.10 (management network)
eht1:172.16.0.10
eht2:(disabled)

network0
eth0:10.20.0.20 (management network)
eht1:172.16.0.20 (public/external network)
eht2:192.168.4.20 (private network)

compute0
eth0:10.20.0.30 (management network)
eht1:172.16.0.30
eht2:192.168.4.30 (private network)



猜你喜欢

转载自www.cnblogs.com/lilongxin/p/9094414.html