Ask Your Question
2

beginners question packstack answers file

asked 2014-03-02 12:32:20 -0500

Blacksun gravatar image

updated 2014-04-03 20:19:19 -0500

larsks gravatar image

Hi I just installed packstack and everything is a little new for me. I generated a answer file and I need a little help understanding the (networking) concepts. (My first attempts failed: the VM instances didn't get IP addresses)

I have 2 physical nics on server1.example.local with Fedora 20. ( I disabled the firewall,selinux and NetworkManager. I enabled ntpd, network )

[root@server1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

    # Internal Network
    DEVICE=eth0
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=192.168.1.10
    NETMASK=255.255.255.0
    GATEWAY=192.168.1.1
    DEFROUTE=yes
    ONBOOT=yes

[root@server1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# External Network
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=static
IPADDR=10.0.1.10
NETMASK=255.255.255.0
DEFROUTE=yes
ONBOOT=yes
  • DNS server 192.168.1.3
  • I have 192.168.1.100-200 to assign to my virtual machines.

What should I fill in in the below values?

For example: em1 should be eth0, em2 should be eth1 I think. Should I give each virtual machine a floating IP in the dashboard to give it internet access? (I also have server2.example.local ready as extra compute host. But that's the next step.)

# Auto generated answer file.
# Private interface for Flat DHCP on the Nova compute servers
CONFIG_NOVA_COMPUTE_PRIVIF=em2

# The list of IP addresses of the server on which to install the Nova
# Network service
CONFIG_NOVA_NETWORK_HOSTS=192.168.1.10

# Nova network manager
CONFIG_NOVA_NETWORK_MANAGER=nova.network.manager.FlatDHCPManager

# Public interface on the Nova network server
CONFIG_NOVA_NETWORK_PUBIF=em1

# Private interface for network manager on the Nova network server
CONFIG_NOVA_NETWORK_PRIVIF=em2

# IP Range for network manager
CONFIG_NOVA_NETWORK_FIXEDRANGE=192.168.32.0/22

# IP Range for Floating IP's
CONFIG_NOVA_NETWORK_FLOATRANGE=10.3.4.0/22

# Name of the default floating pool to which the specified floating
# ranges are added to
CONFIG_NOVA_NETWORK_DEFAULTFLOATINGPOOL=nova

# Automatically assign a floating IP to new instances
CONFIG_NOVA_NETWORK_AUTOASSIGNFLOATINGIP=n

# Number of addresses in each private subnet
CONFIG_NOVA_NETWORK_SIZE=255

# A comma separated list of IP addresses on which to install Neutron
# L3 agent
CONFIG_NEUTRON_L3_HOSTS=192.168.1.10

# The name of the bridge that the Neutron L3 agent will use for
# external traffic, or 'provider' if using provider networks
CONFIG_NEUTRON_L3_EXT_BRIDGE=br-ex

# A comma separated list of IP addresses on which to install Neutron
# DHCP agent
CONFIG_NEUTRON_DHCP_HOSTS=192.168.1.10

# Whether to provision for demo usage and testing
CONFIG_PROVISION_DEMO=n

# The CIDR network address for the floating IP subnet
CONFIG_PROVISION_DEMO_FLOATRANGE=172.24.4.224/28
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-05-06 08:44:02 -0500

dbaxps gravatar image

updated 2014-05-06 11:26:15 -0500

Your question (1) : em1 should be eth0, em2 should be eth1 I think.
    Answer is  -   don't do that on Fedora 20 ( or any other)
    Keep names of Ethernet interfaces as they have been created by OS.
Your question(2) : Should I give each virtual machine a floating IP in the dashboard to give it internet access?
Answer : Not neccessary for outbound connectivity.  Try as experiment not to assign floating IP.
If all Neutron Agents (DHCP,META,L3)&&OVS Plugin && DNSMASQ daemon are doing their work as required . Upon creating your instance will get IP on private network , cloud-init will do it's job, and instance ( even without floating IP)  will get Internet access. The simplest  example is to launch Cirros instance , login as cirros ( cubswin:)), run ifconfig  to make sure you have private IP and for instance ping yours ISP DNS Server or send request for EC2 or Openstack metadata to host 169.254.169.254.
Same thing is possible with Ubuntu instance if load it with post creating script , not keypair. Script may look like :
$  cat ./myfile.txt
#cloud-config
password: mysecret
chpasswd: { expire: False }
ssh_pwauth: True
It gives you an option login via VNC console as ubuntu ( mysecret )

Samples snapshots are here.

In reality creating instance with keypair you will have to assign floating IP to be able connect via ssh and keypair,
you won't have VNC login ( except CirrOS). In general, it is required due to security reasons.  So, floating IPs  are  mostly responsible for inbound connectivity, outbound connectivity you get as I wrote when private IP gets assigned and cloud-init commits it's work successfully.
edit flag offensive delete link more

Comments

If you would want more detailed information 1 and 2. Basically , this are compilations from Mirantis's brief articles and one blog entry of larsks

dbaxps gravatar imagedbaxps ( 2014-05-06 10:09:47 -0500 )edit
1

answered 2014-05-05 07:07:47 -0500

paramite gravatar image

Greetings,

from the configuration you showed it is not evident if you used Nova network or Neutron, anyway there is a pretty good hangout [1] that shows all you need to do. The only difference is that Lars is showing multi host installation, but the same steps are required for single host installation.

Regards, Martin

[1] https://www.youtube.com/watch?v=DGf-n...

edit flag offensive delete link more

Comments

On fresh F20 ( with static IP and Internet) you may just follow RDO Officilal. In mean time it should run pretty smoothly and generate answer file for you . Finally , you will get working AIO IceHouse Instance. No ethernet interfaces renaming , just keep everything as is. I doubt that you will be able to modify this answer file for multi-node setup on Fedora 20 on your own, but who knows.
Make sure CONFIG_NEUTRON_OVS_TENANT_NETWORK_TYPE=local in your answer-file.
Lars's Hangout (as is) is supposed to work on CentOS 6.5, not Fedora 20 boxes.
You may take a look at AIO RDO Icehouse setup on Fedora 20

dbaxps gravatar imagedbaxps ( 2014-05-05 07:49:20 -0500 )edit

Maybe now it's possible to generate answer-file for Multi Node IceHouse deployment on F20 like (Controller&NeutronServer+Compute) or (Controller+NeutronServer+Compute) ) OVS&VLAN , but on Official page I can find only one command packstack --allinone and per my experience generated by successful install answer-file has one important CONFIG set to local. All Multi Node Havana setups on F20 I did manually, just service by service starting with keystone on Controller.

dbaxps gravatar imagedbaxps ( 2014-05-05 08:10:00 -0500 )edit

Yours /etc/sysconfig/network-scripts/ seems pretty strange for Fedora. Maybe it's CentOS 6.5, then your answer file seems strange. You provide inconsistent information.

DanIzack gravatar imageDanIzack ( 2014-05-06 04:12:39 -0500 )edit

Your question : Should I give each virtual machine a floating IP in the dashboard to give it internet access?
Answer : Not neccessary. If all Neutron Agents (DHCP,META,L3) &&OVS Plugin && DNSMASQ daemon
are doing their work as required . Upon creating your instance will get IP on private network , cloud-init
will do it's job, and instance ( even without floating IP) will get Internet access. This simplest example is to launch Cirros instance , log in as cirros ( cubswin:)) , run ifconfig to make sure you have private IP and for instance ping yours ISP DNS Server or send request for EC2 or Openstack metadata host 169.254.169.254.

dbaxps gravatar imagedbaxps ( 2014-05-06 08:27:43 -0500 )edit

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

Stats

Asked: 2014-03-02 12:32:20 -0500

Seen: 4,984 times

Last updated: May 06 '14