[Rdo-list] RDO + floating IPs

Jon Jozwiak jjozwiak at redhat.com
Tue May 26 14:27:22 UTC 2015


> 
> ----- Original Message -----
> From: "Tomas Sedovic" <tsedovic at redhat.com>
> To: rdo-list at redhat.com
> Sent: Tuesday, May 26, 2015 8:54:36 AM
> Subject: [Rdo-list] RDO + floating IPs
> 
> Hey everyone,
> 
> I tried to get RDO set up with floating IP addresses, but I'm running 
> into problems I'm not sure how to debug (not that familiar with 
> networking and Neutron).
> 
> I followed these guides on a clean Fedora 21 x86_64 server:
> 
> https://www.rdoproject.org/Quickstart
> https://www.rdoproject.org/Floating_IP_range
> 
> This on a baremetal box in a network outside of my control but in which 
> there are 5 extra IP addresses assigned to me. It's quite possible that 
> I'm missing something or doing something wrong, so here's exactly what I 
> did:
> 
> yum update -y && reboot
> ---
> systemctl disable NetworkManager
> systemctl enable network
> systemctl stop NetworkManager && ifdown enp0s25 && systemctl start network
> 
> yum install -y https://rdo.fedorapeople.org/rdo-release.rpm
> yum install -y openstack-packstack
> yum-config-manager --disable openstack-kilo
> yum-config-manager --enable openstack-kilo-testing
> setenforce 0
> 
> packstack --allinone --provision-all-in-one-ovs-bridge=n 
--os-heat-install=y --os-ceilometer-install=y
> 
> That succeeded, so I added a keypair and made sure the "default" 
> security group allows all traffic.
> 
> So next onto the neutron stuff:
> 
> source /root/keystonerc_admin
> neutron net-create mynetwork --router:external
> 
> (got a new network with type vxlan and id 
> 4a30e2cc-b9f3-4ebd-b7ab-c35e38c3c75c)
> 
> For the subnet I need the CIDR, gateway and the floating IP range. I'm 
> not sure if I'm getting these right:
> 
> * CIDR: `ip addr`, find my network interface (enp0s25), get it's inet 
> value: 10.40.128.44/20
> * Gateway: `ip route | grep default`  -> default via 10.40.143.254 dev 
> enp0s25
> * And these 5 IP addresses are assigned to me: 10.40.128.80-10.40.128.84
> 
> neutron subnet-create mynetwork 10.40.128.44/20 --name mysubnet 
--enable_dhcp=False --allocation_pool 
start=10.40.128.80,end=10.40.128.84 --gateway 10.40.143.254

I'm not certain if this is the root cause or not, but I believe the subnet should be created as 10.40.128.0/20 rather than 10.40.128.44/20.  



> (this creates a subnet with id 2e3d6966-a659-454c-8c38-d98ed3f105e5)
> 
> neutron router-create myrouter
> 
> (this creates a router with id fced82e6-9917-4053-a286-02838d0325fc)
> 
> neutron router-gateway-set fced82e6-9917-4053-a286-02838d0325fc 
> 4a30e2cc-b9f3-4ebd-b7ab-c35e38c3c75c
> 
> (myrouter id and mynetwork id)
> 
> neutron floatingip-create mynetwork
> 
> 
> With all that out of the way, I created another network+subnet for my 
> VMs and added a myrouter's interface to it. Then I launched a cirros VM 
> into that network and associated a floating IP from "mynetwork".
> 
> The VM had some trouble with cloud-init:
> 
> Starting network...
> udhcpc (v1.20.1) started
> Sending discover...
> Sending select for 192.168.0.4...
> Lease of 192.168.0.4 obtained, lease time 86400
> cirros-ds 'net' up at 0.66
> checking http://169.254.169.254/2009-04-04/instance-id
> failed 1/20: up 0.66. request failed
> failed 2/20: up 5.67. request failed
> failed 3/20: up 8.67. request failed
> failed 4/20: up 11.67. request failed
> ...
> 
> once all 20 requests failed, it got to a login screen, but I could not 
> ping or SSH into it:
> 
> # ping 10.40.128.81
> PING 10.40.128.81 (10.40.128.81) 56(84) bytes of data.
>  From 10.40.128.44 icmp_seq=1 Destination Host Unreachable
>  From 10.40.128.44 icmp_seq=2 Destination Host Unreachable
>  From 10.40.128.44 icmp_seq=3 Destination Host Unreachable
>  From 10.40.128.44 icmp_seq=4 Destination Host Unreachable
> 
> # ssh cirros at 10.40.128.81
> ssh: connect to host 10.40.128.81 port 22: No route to host
> 
> 
> Does anyone have any idea what I may be doing wrong?
> 
> Thanks,
> Tomas
> 
> _______________________________________________
> Rdo-list mailing list
> Rdo-list at redhat.com
> https://www.redhat.com/mailman/listinfo/rdo-list
> 
> To unsubscribe: rdo-list-unsubscribe at redhat.com




More information about the dev mailing list