Ask Your Question

johnpham's profile - activity

2019-12-13 01:35:07 -0500 received badge  Notable Question (source)
2019-12-13 01:35:07 -0500 received badge  Popular Question (source)
2019-10-07 03:31:31 -0500 received badge  Popular Question (source)
2019-10-07 03:31:31 -0500 received badge  Notable Question (source)
2018-11-26 11:45:50 -0500 asked a question North-South router can't connect to external network

I'm not able to ping external ip address from inside the network namespace of the router.

I'm able to ping the ip address of the router's external interface, 10.204.36.101 from the controller node. Hence, there is a connection between tap-2 and qr.

However when i ping the default gateway 10.204.36.1 from inside the network namespace I get destination unreachable response:

Command: ip netns exec qrouter.... ping 10 .204.36.1

There are 2 possibilities I can think of:

  1. The router external interface is not connected correctly to an external interface, I used tcpdump to capture the packets going through tap-2 while ping 10.204.36.1 from inside the namespace and got nothing!!

  2. The router is trying to send the package to a destination that doesn't exist. I'm not sure what this means also Bcast:10.204.36.255

Here is the output of ip a from inside the router network's namespace:

root@controller:~# ip netns exec qrouter-7ed15053-83a8-4166-ba73-0bf0c8e7af53 ifconfig -a                                                                          
lo        Link encap:Local Loopback                                               
      inet addr:127.0.0.1  Mask:255.0.0.0                                     
      inet6 addr: ::1/128 Scope:Host                                          
      UP LOOPBACK RUNNING  MTU:65536  Metric:1                                
      RX packets:4814 errors:0 dropped:0 overruns:0 frame:0                   
      TX packets:4814 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1                                               
      RX bytes:539168 (539.1 KB)  TX bytes:539168 (539.1 KB)                  

qr-611a94d2-59 Link encap:Ethernet  HWaddr fa:16:3e:03:fa:df                      
      inet addr:10.204.36.101  Bcast:10.204.36.255  Mask:255.255.255.0        
      inet6 addr: fe80::f816:3eff:fe03:fadf/64 Scope:Link                     
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                      
      RX packets:26748 errors:0 dropped:0 overruns:0 frame:0                  
      **TX packets:4861 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1000                                            
      RX bytes:2867414 (2.8 MB)  TX bytes:243414 (243.4 KB)                   

qr-a72dc808-18 Link encap:Ethernet  HWaddr fa:16:3e:ff:f2:12                      
      inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0          
      inet6 addr: fe80::f816:3eff:feff:f212/64 Scope:Link                     
      UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1                      
      RX packets:3612 errors:0 dropped:0 overruns:0 frame:0                   
      TX packets:3461 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1000                                            
      RX bytes:343135 (343.1 KB)  TX bytes:417974 (417.9 KB)**

Output from ip -d link list:

root@controller:~# ip netns exec qrouter-7ed15053-83a8-4166-ba73-0bf0c8e7af53 ip -d link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 addrgenmode eui64
2: qr-a72dc808-18@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP mode DEFAULT group 
  default qlen 1000
    link/ether fa:16:3e:ff:f2:12 brd ff:ff:ff:ff:ff:ff link-netnsid 0 promiscuity 0
    veth addrgenmode eui64
13: qr-611a94d2-59 ...
(more)
2018-11-26 11:45:50 -0500 asked a question How to change the default port for vnc?

I am trying to reconfigure the nova-novncproxy server to listen to port 5985 instead of 6080. This is because the openstack nodes are residing on a separate network in front of our corp firewall which only allowed a handful of ports, 5985 being one of them. I reconfigured the [vnc] section in /etc/nova/nova.conf on the compute node as follow: [vnc]

enabled = True
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://10.204.16.150:5985/vnc_auto.html

Restart the nova services on both controller and compute, restart apache service. I even reboot the whole thing, but doesn't work. nova-novncproxy is still listening on 6080:

root@controller:~# lsof -i :6080
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nova-novn 2295 nova    4u  IPv4  20957      0t0  TCP *:6080 (LISTEN)

nothing is listening on 5985:

root@controller:~# lsof -i :5985
returned nothing

How do I correctly configure vnc to listen to a different port?

Thanks so much in advance

2018-11-26 11:45:47 -0500 asked a question how to setup provider network openstack

Hi all,

I am new to openstack and trying to deploy a 2 nodes openstack queens architecture. The document, I'm following https://docs.openstack.org/install-guide/environment-networking.html (https://docs.openstack.org/install-gu...).

My current setup consists of 2 VMs running Ubuntu 16.04 each with 3 NICS ens160, ens192 adn ens224.

I configured static IP addresses for ens160 NICs on both VM and this is the management interface

      ** Controller: ens160 - CIDR: 10.204.16.150/24 and gateway: 10.204.16.1
      ** Compute:  ens160 -  CIDR: 10.204.16.151/24 and gateway: 10.204.16.1

The default gateway provides internet access for the VMs to install packages. My /etc/network/interfaces on controller node:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens160
iface ens160 inet static
        address 10.204.16.150
        netmask 255.255.255.0
        network 10.204.16.0
        broadcast 10.204.16.255
        gateway 10.204.16.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8 8.8.4.4


auto ens192
iface ens192 inet manual
        up ip link set dev $IFACE up
        down ip link set dev $IFACE down

Now, I am trying to setup a "provider network" for Openstack so that VM instances within the Openstack Cloud can have internet access. I am using the ens192 NIC to achieve this:

My understanding is that, the provider network should be mapped to a different subnet to the management network. Hence, I intend to configure the provider network as followed:

              ** Provider network: CIDR: 10.204.36.0/24, 
                                   Pool: 10.204.36.100 -> 10.204.36.120
                                   Default Gateway: 10.204.36.1
                                   DNS: 8.8.8.8

Now if I want openstack instances to have internet access I need to configure the default gateway for this provider network which is 10.204.36.1. But the problem is I can only have 1 default gateway configure across all network cards (at least this is what I read).

QUESTIONS:

1.Does this mean I need to remove the default gateway from the first NIC ens160?

2.If so will the openstack nodes still have internet access from the "provider network"?

Thanks in advance, your time is much appreciated. j

Update:

So I ended up create the flat provider network through the dashboard.

Name    provider
ID          bb73e844-e6b3-41d5-a00d-442269362500
Network Name  provider
Network ID       05ae4d05-9ae1-42e3-8435-118b24391a35
Subnet Pool      None
IP Version          IPv4
CIDR     10.204.36.0/24
IP Allocation Pools   Start 10.204.36.100 - End 10.204.36.120
Gateway IP    10.204.36.1
DHCP Enabled  Yes
Additional Routes  None
DNS Name Servers 8.8.8.8

AND then create a Virtual Router connecting 2 openstack private_networks to the provider network. "neutron router-port-list Router" gave output:

+--------------------------------------+------+----------------------------------+-------------------+--------------------------------------------------------------------------------------+
| id                                   | name | tenant_id                        | mac_address       | fixed_ips                                                                            |
+--------------------------------------+------+----------------------------------+-------------------+--------------------------------------------------------------------------------------+
| 4d4b36e5-1cde-472c-b25b-f73e71cef823 |      | acfbef4dcfc742d0bed99c2a448a2b98 | fa ...
(more)
2018-11-26 11:45:47 -0500 asked a question how to configure external network openstack

Hi all,

I am new to openstack and trying to deploy a 2 nodes openstack queens architecture. The document, I'm following https://docs.openstack.org/install-guide/environment-networking.html (https://docs.openstack.org/install-gu...).

My current setup consists of 2 VMs running Ubuntu 16.04 each with 3 NICS ens160, ens192 adn ens224.

I configured static IP addresses for ens160 NICs on both VM and this is the management interface

      ** Controller: ens160 - CIDR: 10.204.16.150/24 and gateway: 10.204.16.1
      ** Compute:  ens160 -  CIDR: 10.204.16.151/24 and gateway: 10.204.16.1

The default gateway provide internet access for the VMs to install packages.

Now, I am trying to setup a "provider network" for Openstack so that VM instances within the Openstack cloud can have internet access. I am using the ens192 NIC to achieve this.

My understanding is that, the provider network should be mapped to a different subnet to the management network. Hence, I intend to configure the provider network as followed:

              ** Provider network: CIDR: 10.204.35.0/24, 
                                   Pool: 10.204.35.50 -> 10.204.35.60
                                   Default Gateway: 10.204.35.1
                                   DNS: 8.8.8.8

Now if I want openstack instances to have internet access I need to configure the default gateway for this provider network which is 10.204.35.1. But the problem is I can only have 1 default gateway configure across all network cards (at least this is what I read).

QUESTIONS:

1.Does this mean I need to remove the default gateway from the first NIC ens160?

2.If so will the openstack nodes still have internet access from the "provider network"?

Thanks in advance, your time is much appreciated. J

2018-07-04 00:00:01 -0500 received badge  Enthusiast