Skip to content

Instantly share code, notes, and snippets.

@mmalchuk
Last active March 21, 2018 11:48
Show Gist options
  • Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.
Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.

Revisions

  1. mmalchuk revised this gist Mar 21, 2018. 3 changed files with 3 additions and 18 deletions.
    7 changes: 1 addition & 6 deletions compute1
    Original file line number Diff line number Diff line change
    @@ -23,13 +23,8 @@ iface ens3.20 inet manual

    # Host network
    auto br-host
    iface br-host inet static
    iface br-host inet dhcp
    bridge_ports ens3
    address 192.168.122.28
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
    7 changes: 1 addition & 6 deletions infra1
    Original file line number Diff line number Diff line change
    @@ -23,13 +23,8 @@ iface ens3.20 inet manual

    # Host network
    auto br-host
    iface br-host inet static
    iface br-host inet dhcp
    bridge_ports ens3
    address 192.168.122.25
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
    7 changes: 1 addition & 6 deletions storage1
    Original file line number Diff line number Diff line change
    @@ -23,13 +23,8 @@ iface ens3.20 inet manual

    # Host network
    auto br-host
    iface br-host inet static
    iface br-host inet dhcp
    bridge_ports ens3
    address 192.168.122.32
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
  2. mmalchuk revised this gist Mar 20, 2018. 1 changed file with 146 additions and 0 deletions.
    146 changes: 146 additions & 0 deletions openstack_user_config.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,146 @@
    ---
    cidr_networks:
    container: 172.29.236.0/22
    tunnel: 172.29.240.0/22
    storage: 172.29.244.0/22

    used_ips:
    - "172.29.236.1,172.29.236.50"
    - "172.29.240.1,172.29.240.50"
    - "172.29.244.1,172.29.244.50"
    - "172.29.248.1,172.29.248.50"

    global_overrides:
    # The internal and external VIP should be different IPs, however they
    # do not need to be on separate networks.
    external_lb_vip_address: 172.29.236.10
    internal_lb_vip_address: 172.29.236.11
    tunnel_bridge: "br-vxlan"
    management_bridge: "br-mgmt"
    provider_networks:
    - network:
    container_bridge: "br-mgmt"
    container_type: "veth"
    container_interface: "eth1"
    ip_from_q: "container"
    type: "raw"
    group_binds:
    - all_containers
    - hosts
    is_container_address: true
    is_ssh_address: true
    - network:
    container_bridge: "br-vxlan"
    container_type: "veth"
    container_interface: "eth10"
    ip_from_q: "tunnel"
    type: "vxlan"
    range: "1:1000"
    net_name: "vxlan"
    group_binds:
    - neutron_linuxbridge_agent
    - network:
    container_bridge: "br-vlan"
    container_type: "veth"
    container_interface: "eth12"
    host_bind_override: "eth12"
    type: "flat"
    net_name: "flat"
    group_binds:
    - neutron_linuxbridge_agent
    - network:
    container_bridge: "br-vlan"
    container_type: "veth"
    container_interface: "eth11"
    type: "vlan"
    range: "1:1"
    net_name: "vlan"
    group_binds:
    - neutron_linuxbridge_agent
    - network:
    container_bridge: "br-storage"
    container_type: "veth"
    container_interface: "eth2"
    ip_from_q: "storage"
    type: "raw"
    group_binds:
    - glance_api
    - cinder_api
    - cinder_volume
    - nova_compute

    ###
    ### Infrastructure
    ###

    # galera, memcache, rabbitmq, utility
    shared-infra_hosts:
    infra1:
    ip: 172.29.236.11

    # repository (apt cache, python packages, etc)
    repo-infra_hosts:
    infra1:
    ip: 172.29.236.11

    # load balancer
    haproxy_hosts:
    infra1:
    ip: 172.29.236.11

    ###
    ### OpenStack
    ###

    # keystone
    identity_hosts:
    infra1:
    ip: 172.29.236.11

    # cinder api services
    storage-infra_hosts:
    infra1:
    ip: 172.29.236.11

    # glance
    image_hosts:
    infra1:
    ip: 172.29.236.11

    # nova api, conductor, etc services
    compute-infra_hosts:
    infra1:
    ip: 172.29.236.11

    # heat
    orchestration_hosts:
    infra1:
    ip: 172.29.236.11

    # horizon
    dashboard_hosts:
    infra1:
    ip: 172.29.236.11

    # neutron server, agents (L3, etc)
    network_hosts:
    infra1:
    ip: 172.29.236.11

    # nova hypervisors
    compute_hosts:
    compute1:
    ip: 172.29.236.12

    # cinder storage host (LVM-backed)
    storage_hosts:
    storage1:
    ip: 172.29.236.13
    container_vars:
    cinder_backends:
    limit_container_types: cinder_volume
    lvm:
    volume_group: cinder-volumes
    volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver
    volume_backend_name: LVM_iSCSI
    iscsi_ip_address: "172.29.244.13"
  3. mmalchuk revised this gist Mar 20, 2018. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion storage1
    Original file line number Diff line number Diff line change
    @@ -60,8 +60,10 @@ iface br-vlan inet manual

    # Storage bridge (optional)
    auto br-storage
    iface br-storage inet manual
    iface br-storage inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.20
    address 172.29.244.13
    netmask 255.255.252.0
  4. mmalchuk revised this gist Mar 20, 2018. 3 changed files with 71 additions and 21 deletions.
    17 changes: 3 additions & 14 deletions compute1
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #loopback
    # Loopback
    auto lo
    iface lo inet loopback

    @@ -42,19 +42,13 @@ iface br-mgmt inet static
    address 172.29.236.12
    netmask 255.255.252.0

    # Bind the External VIP
    #auto br-mgmt:0
    #iface br-mgmt:0 inet static
    # address 172.29.236.10
    # netmask 255.255.252.0

    # OpenStack Networking VXLAN (tunnel/overlay) bridge
    auto br-vxlan
    iface br-vxlan inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports eth0.30
    bridge_ports ens3.30
    address 172.29.240.12
    netmask 255.255.252.0

    @@ -64,11 +58,6 @@ iface br-vlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    #pre-up ip link add br-vlan-veth type veth peer name eth12 || true
    #pre-up ip link set br-vlan-veth up
    #pre-up ip link set eth12 up
    #post-down ip link del br-vlan-veth || true
    #bridge_ports eth0 br-vlan-veth
    bridge_ports ens3

    # Storage bridge (optional)
    @@ -77,6 +66,6 @@ iface br-storage inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports eth0.20
    bridge_ports ens3.20
    address 172.29.244.12
    netmask 255.255.252.0
    8 changes: 1 addition & 7 deletions infra1
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #loopback
    # Loopback
    auto lo
    iface lo inet loopback

    @@ -56,8 +56,6 @@ iface br-vxlan inet manual
    bridge_fd 0
    bridge_ports ens3.30



    # OpenStack Networking VLAN bridge
    auto br-vlan
    iface br-vlan inet manual
    @@ -66,10 +64,6 @@ iface br-vlan inet manual
    bridge_fd 0
    bridge_ports ens3





    # Storage bridge (optional)
    auto br-storage
    iface br-storage inet manual
    67 changes: 67 additions & 0 deletions storage1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    # Loopback
    auto lo
    iface lo inet loopback

    # Physical interface
    auto ens3
    iface ens3 inet manual

    # Container/Host management VLAN interface
    auto ens3.10
    iface ens3.10 inet manual
    vlan-raw-device ens3

    # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
    auto ens3.30
    iface ens3.30 inet manual
    vlan-raw-device ens3

    # Storage network VLAN interface (optional)
    auto ens3.20
    iface ens3.20 inet manual
    vlan-raw-device ens3

    # Host network
    auto br-host
    iface br-host inet static
    bridge_ports ens3
    address 192.168.122.32
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
    auto br-mgmt
    iface br-mgmt inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.10
    address 172.29.236.13
    netmask 255.255.252.0

    # OpenStack Networking VXLAN (tunnel/overlay) bridge
    auto br-vxlan
    iface br-vxlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.30

    # OpenStack Networking VLAN bridge
    auto br-vlan
    iface br-vlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3

    # Storage bridge (optional)
    auto br-storage
    iface br-storage inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.20
  5. mmalchuk created this gist Mar 20, 2018.
    82 changes: 82 additions & 0 deletions compute1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,82 @@
    #loopback
    auto lo
    iface lo inet loopback

    # Physical interface
    auto ens3
    iface ens3 inet manual

    # Container/Host management VLAN interface
    auto ens3.10
    iface ens3.10 inet manual
    vlan-raw-device ens3

    # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
    auto ens3.30
    iface ens3.30 inet manual
    vlan-raw-device ens3

    # Storage network VLAN interface (optional)
    auto ens3.20
    iface ens3.20 inet manual
    vlan-raw-device ens3

    # Host network
    auto br-host
    iface br-host inet static
    bridge_ports ens3
    address 192.168.122.28
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
    auto br-mgmt
    iface br-mgmt inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.10
    address 172.29.236.12
    netmask 255.255.252.0

    # Bind the External VIP
    #auto br-mgmt:0
    #iface br-mgmt:0 inet static
    # address 172.29.236.10
    # netmask 255.255.252.0

    # OpenStack Networking VXLAN (tunnel/overlay) bridge
    auto br-vxlan
    iface br-vxlan inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports eth0.30
    address 172.29.240.12
    netmask 255.255.252.0

    # OpenStack Networking VLAN bridge
    auto br-vlan
    iface br-vlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    #pre-up ip link add br-vlan-veth type veth peer name eth12 || true
    #pre-up ip link set br-vlan-veth up
    #pre-up ip link set eth12 up
    #post-down ip link del br-vlan-veth || true
    #bridge_ports eth0 br-vlan-veth
    bridge_ports ens3

    # Storage bridge (optional)
    auto br-storage
    iface br-storage inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports eth0.20
    address 172.29.244.12
    netmask 255.255.252.0
    79 changes: 79 additions & 0 deletions infra1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,79 @@
    #loopback
    auto lo
    iface lo inet loopback

    # Physical interface
    auto ens3
    iface ens3 inet manual

    # Container/Host management VLAN interface
    auto ens3.10
    iface ens3.10 inet manual
    vlan-raw-device ens3

    # OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
    auto ens3.30
    iface ens3.30 inet manual
    vlan-raw-device ens3

    # Storage network VLAN interface (optional)
    auto ens3.20
    iface ens3.20 inet manual
    vlan-raw-device ens3

    # Host network
    auto br-host
    iface br-host inet static
    bridge_ports ens3
    address 192.168.122.25
    netmask 255.255.255.0
    gateway 192.168.122.1
    dns-nameservers 192.168.122.2
    dns-search example.org
    bridge_stp off

    # Container/Host management bridge
    auto br-mgmt
    iface br-mgmt inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.10
    address 172.29.236.11
    netmask 255.255.252.0

    # Bind the External VIP
    auto br-mgmt:0
    iface br-mgmt:0 inet static
    address 172.29.236.10
    netmask 255.255.252.0

    # OpenStack Networking VXLAN (tunnel/overlay) bridge
    auto br-vxlan
    iface br-vxlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.30



    # OpenStack Networking VLAN bridge
    auto br-vlan
    iface br-vlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3





    # Storage bridge (optional)
    auto br-storage
    iface br-storage inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports ens3.20