[Openstack-operators] Multinic feature in openstack

Vivek Singh Raghuwanshi vivekraghuwanshi at gmail.com
Thu Aug 30 16:21:17 UTC 2012


Hi Anne,

I am using 3 servers all are having 4 lancard
node1 =
nova-api,nova-console,nova-compute,nova-manager,nova-volume,nova-cordinator.keystone.dashboard,mysql,rabbitmq,nova-network
eth0=10.83.18.208,eth1+eth2=172.24.31.1,eth3=172.24.30.1

node2 = nova-compute,nova-volume
eth0=10.83.18.209,eth1+eth2=172.24.31.2,eth3=172.24.30.2

node3 =  nova-compute,nova-volume
eth0=10.83.18.210,eth1+eth2=172.24.31.3,eth3=172.24.30.3

bridgeutils is installed on all nodes.



when i am creating nova network on node 1
nova-manage network create --fixed_range_v4=192.168.0.64/26
i am able to access the running vms from node1 and are getting ip in the
range of 192.168.0.66... and also able to access vms from external network
after assigning floating ips.

But when i am creating another network
nova-manage network create
--fixed_range_v4=192.168.0.128/26<http://192.168.0.64/26>
and after restarting nodes when i am launching the vms they are up and able
to get two ip
one in the first network and second from second network but i am not anle
to ping or access any instances, i am also able to attach floating ip to
access them from different machine other than node1, but no luck.




On Thu, Aug 30, 2012 at 8:25 PM, Anne Gentle <anne at openstack.org> wrote:

> Hi Vivek -
> Thanks for the detail, further inquiry below.
>
> >>> >
> >>> > Please help me in configuring multinic feature in openstack.
> >>> >
> >>> > I am able to run my cloud setup with single lan interface for
> instances
> >>> > and
> >>> > ping and ssh them.
> >>> >
> >>> > but when i am adding second network  the instances are up and getting
> >>> > ip but
> >>> > they are not accessable.
>
> Can you further describe from where to where are they not accessible?
> Perhaps you can uncover a routing issue?
>
> Anne
>
> >>> >
> >>> >
> >>> > oot at 1:~# nova-manage network create --fixed_range_v4=192.168.0.64/26
> >>> > --num_networks=1 --network_size=64 --label=first-net --project=admin
> >>> > root at 1:~# nova-manage network create --fixed_range_v4=
> 192.168.0.128/26
> >>> > --num_networks=1 --network_size=64 --label=second-net --project=admin
> >>> > root at 1:~# nova-manage network list
> >>> > id      IPv4                    IPv6            start address   DNS1
> >>> > DNS2            VlanID          project         uuid
> >>> > 1       192.168.0.64/26         None            192.168.0.66
>  8.8.4.4
> >>> > None            None            admin
> >>> > 47658740-399e-4bd5-8441-6f11d7f96344
> >>> > 2       192.168.0.128/26        None            192.168.0.130
> 8.8.4.4
> >>> > None            None            admin
> >>> > 7965a202-b326-41ec-8702-640af2bc2a8d
> >>> > root at 1:~#
> >>> >
> >>> >
> >>> >
> >>> > Nova.conf
> >>> > --dhcpbridge_flagfile=/etc/nova/nova.conf
> >>> > --dhcpbridge=/usr/bin/nova-dhcpbridge
> >>> > --logdir=/var/log/nova
> >>> > --state_path=/data/lib/nova
> >>> > --lock_path=/run/lock/nova
> >>> > --allow_admin_api=true
> >>> > --use_deprecated_auth=false
> >>> > --auth_strategy=keystone
> >>> > --scheduler_driver=nova.scheduler.simple.SimpleScheduler
> >>> > --s3_host=10.83.18.208
> >>> > --ec2_host=10.83.18.208
> >>> > --rabbit_host=10.83.18.208
> >>> > --cc_host=10.83.18.208
> >>> > --nova_url=http://10.83.18.208:8774/v1.1/
> >>> > --routing_source_ip=10.83.18.208
> >>> > --glance_api_servers=10.83.18.208:9292
> >>> > --image_service=nova.image.glance.GlanceImageService
> >>> > #--iscsi_ip_prefix=192.168.4
> >>> > --iscsi_ip_prefix=192.168.0
> >>> > #--iscsi_ip_prefix=172.24.31
> >>> > --sql_connection=mysql://novadbadmin:novasecret@10.83.18.208/nova
> >>> > --ec2_url=http://10.83.18.208:8773/services/Cloud
> >>> > --keystone_ec2_url=http://10.83.18.208:5000/v2.0/ec2tokens
> >>> > --api_paste_config=/etc/nova/api-paste.ini
> >>> > --libvirt_type=kvm
> >>> > --libvirt_use_virtio_for_bridges=true
> >>> > --start_guests_on_host_boot=true
> >>> > --resume_guests_state_on_host_boot=true
> >>> > # vnc specific configuration
> >>> > #--novnc_enabled=true
> >>> > #--novncproxy_base_url=http://10.10.10.2:6080/vnc_auto.html
> >>> > #--vncserver_proxyclient_address=10.10.10.2
> >>> > #--vncserver_listen=10.10.10.2
> >>> > # network specific settings
> >>> > --network_manager=nova.network.manager.FlatDHCPManager
> >>> > --public_interface=eth0
> >>> > --flat_interface=eth3
> >>> > --flat_network_bridge=br100
> >>> > --fixed_range=192.168.0.1/26
> >>> > #--fixed_range=192.168.4.1/27
> >>> > --floating_range=10.83.18.128/25
> >>> > --network_size=64
> >>> > --flat_network_dhcp_start=192.168.0.66
> >>> > --flat_injected=False
> >>> > --force_dhcp_release
> >>> > --iscsi_helper=tgtadm
> >>> > --connection_type=libvirt
> >>> > --root_helper=sudo nova-rootwrap
> >>> > --verbose=False
> >>> > #--vlan_interface=eth0
> >>> > #--firewall_driver=nova.virt.firewall.NoopFirewallDriver
> >>> > --multi_host=True
> >>> > #enabled_apis=ec2,osapi_compute,osapi_volume,metadata
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > security group rules
> >>> > nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
> >>> > nova secgroup-create ssh "SSH server"
> >>> > nova secgroup-add-rule ssh tcp 22 22 0.0.0.0/0
> >>> > nova secgroup-create http "HTTP web server"
> >>> > nova secgroup-add-rule http tcp 80 80 0.0.0.0/0
> >>> > nova secgroup-create https "HTTPS secure web server"
> >>> > nova secgroup-add-rule https tcp 443 443 0.0.0.0/0
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > ViVek Raghuwanshi
> >>> > Mobile -+91-09595950504
> >>> >
> >>> > Skype - vivek_raghuwanshi
> >>> >
> >>> >
> >>> >
> >>> > _______________________________________________
> >>> > OpenStack-operators mailing list
> >>> > OpenStack-operators at lists.openstack.org
> >>> >
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> >>> >
> >>
> >>
> >>
> >>
> >> --
> >> ViVek Raghuwanshi
> >> Mobile -+91-09595950504
> >>
> >> Skype - vivek_raghuwanshi
> >>
> >>
> >
> >
> >
> > --
> > ViVek Raghuwanshi
> > Mobile -+91-09595950504
> >
> > Skype - vivek_raghuwanshi
> >
> >
> >
> > _______________________________________________
> > OpenStack-operators mailing list
> > OpenStack-operators at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> >
>



-- 
ViVek Raghuwanshi
Mobile -+91-09595950504

Skype - vivek_raghuwanshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20120830/8e309875/attachment-0001.html>


More information about the OpenStack-operators mailing list