Skip to content

Instantly share code, notes, and snippets.

@leifmadsen
Last active July 10, 2018 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leifmadsen/f17db7ff97e89a03fa101e3d9a59d3ee to your computer and use it in GitHub Desktop.
Save leifmadsen/f17db7ff97e89a03fa101e3d9a59d3ee to your computer and use it in GitHub Desktop.
InfraRed Hybrid Cloud Environment Setup

Deployment Commands

VM spinup

ir virsh --host-address localhost --host-key ~/.ssh/id_rsa --topology-nodes "undercloud:1,controller:1" --topology-network bridged_undercloud --disk-pool /home/images/infrared --image-url https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2

Files

undercloud.conf

[DEFAULT]
local_ip = 192.168.25.252/24
undercloud_public_vip = 192.168.25.250
undercloud_admin_vip = 192.168.25.251
local_interface = eth2
masquerade_network = 192.168.25.0/24
dhcp_start = 192.168.25.32
dhcp_end = 192.168.25.63
network_cidr = 192.168.25.0/24
network_gateway = 192.168.25.254
inspection_iprange = 192.168.25.64,192.168.25.95

plugins/virsh/vars/topology/network/bridged_undercloud.yml

# The following structure used for the hybrid deployments,
# where Undercloud and Controllers are virtual, Computes baremetal
# and the networks are bridged outside of the local hypervisor host.
# The separation of the networks are the following:
# * br-ctlplane - used for provisioning
# * br-vlan - used for OSPd internal services (internal/external/tenent api)
# * br-link - used for dataplane networks
---
networks:
    net1:
        external_connectivity: yes
        name: br-ext
        forward: bridge
        nic: enp2s0f1
    net2:
        name: br-ctlplane
        forward: bridge
        nic: enp1s0f1
        ip_address: 192.168.25.253
        netmask: 255.255.255.0
    net3:
        name: br-vlan
        forward: bridge
        nic: enp1s0f0
    net4:
        name: br-link
        forward: bridge
        nic: enp2s0f0
    net5:
        external_connectivity: yes
        name: "management"
        ip_address: "172.16.0.1"
        netmask: "255.255.255.0"
        forward: nat
        dhcp:
            range:
                start: "172.16.0.2"
                end: "172.16.0.100"
            subnet_cidr: "172.16.0.0/24"
            subnet_gateway: "172.16.0.1"
        floating_ip:
            start: "172.16.0.101"
            end: "172.16.0.150"

nodes:
    undercloud:
        interfaces:
            - network: "br-ext"
              bridged: yes
            - network: "management"
            - network: "br-ctlplane"
              bridged: yes
        external_network:
            network: "management"
    controller:
        interfaces:
            - network: "br-ext"
              bridged: yes
            - network: "br-ctlplane"
              bridged: yes
            - network: "br-vlan"
              bridged: yes
            - network: "br-link"
              bridged: yes
            - network: "management"
        external_network:
            network: "management"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment