Ask Your Question
0

tripleo - cannot access external network

asked 2019-02-19 02:54:29 -0500

d4c07 gravatar image

I am deploying Openstack via tripleo to one controller and one compute node from the undercloud. The installation completes successfully and the horizon dashboard is given an external IP but I am not able to access this. Nor am i able to ping the IP from the undercloud node. I believe everything from the network side is setup correctly and I appear to have followed the steps correctly. However, the default route is showing as the undercloud which i believe is incorrect as the undercloud should not be required for networking for the overcloud?

[heat-admin@overcloud-controller-0 ~]$ ip route show default via 192.168.24.1 dev enp2s0f1

Deploy command (one of many different variations tried)

openstack overcloud deploy --templates /home/stack/generated-openstack-tripleo-heat-templates \ -e /home/stack/templates/node-info.yaml \ -n /home/stack/templates/network_data.yaml \ -e /home/stack/generated-openstack-tripleo-heat-templates/environments/network-isolation.yaml \ -e /home/stack/generated-openstack-tripleo-heat-templates/environments/network-environment.yaml \ -e /home/stack/generated-openstack-tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml \ --ntp-server http://pool.ntp.org

Can anyone point me in the right direction? Openstack version is Queens on CentOS.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-27 10:42:05 -0500

d4c07 gravatar image

updated 2019-02-27 10:42:42 -0500

So the issue here was that the configuration files within the network-environment.yaml and controller.yaml where not being picked up correctly during the overcloud deploy. Within the relevant files i put the full paths and this then picked up the correct configuration files. Also I added the full path to the run-os-net-config.sh. To correctly setup the controller node to have the right details the interfaces were modified as the below. The external IP was set on the bridge as it is the native VLAN

params:
        $network_config:
          network_config:
          # NIC 2- Provisioning
          - type: interface
            name: nic2
            use_dhcp: false
            defroute: false
            addresses:
            - ip_netmask:
                list_join:
                - /
                - - get_param: ControlPlaneIp
                  - get_param: ControlPlaneSubnetCidr
            routes:
            - ip_netmask: 169.254.169.254/32
              next_hop:
                get_param: EC2MetadataIp


          - type: ovs_bridge
            name: bridge_name
            use_dhcp: false
            addresses:
            - ip_netmask:
                {get_param: ExternalIpSubnet}
            routes:
            - default: true
              ip_netmask: 0.0.0.0/0
              next_hop:
                get_param: ExternalInterfaceDefaultRoute
            dns_servers:
              get_param: DnsServers
            members:
            - type: interface
              name: nic1
              # force the MAC address of the bridge to this interface
              primary: true
            - type: vlan
              vlan_id:
                get_param: StorageNetworkVlanID
              addresses:
              - ip_netmask:
                  get_param: StorageIpSubnet
            - type: vlan
              vlan_id:
                get_param: StorageMgmtNetworkVlanID
              addresses:
              - ip_netmask:
                  get_param: StorageMgmtIpSubnet
            - type: vlan
              vlan_id:
                get_param: InternalApiNetworkVlanID
              addresses:
              - ip_netmask:
                  get_param: InternalApiIpSubnet
            - type: vlan
              vlan_id:
                get_param: TenantNetworkVlanID
              addresses:
              - ip_netmask:
                  get_param: TenantIpSubnet

This now works correctly and the horizon dashboard and VMs are accessible on the external network.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-02-19 02:54:29 -0500

Seen: 143 times

Last updated: Feb 27