[Openstack-operators] Instances getting both ip tenant and public

Dan Wendlandt dan at nicira.com
Wed Sep 12 18:22:17 UTC 2012


Hi Vivek,

During Essex, there was no special support in Horizon for Quantum or
booting VMs on particular networks (this is being added in the
upcoming Folsom release).

By default, if you boot a VM without specifying a set of networks, a
VM will get a NIC + IP for each network it can see, which is probably
why the first VM you show is getting is getting IPs on both the
"private" network and the "public" network.

I'm assuming if you boot a VM with --nic, it can just get an interface
on a particular network, as you show in the second example.  The
problem is that Horizon in Essex did not support the equivalent of the
--nic option.  This was added in Folsom.

Dan


On Wed, Sep 12, 2012 at 8:22 AM, Vivek Singh Raghuwanshi
<vivekraghuwanshi at gmail.com> wrote:
> Just an update  i am able to tenant net when launching the instant via
> command , but not via dashboard.
>
>
>
>
> On Wed, Sep 12, 2012 at 5:14 PM, Vivek Singh Raghuwanshi
> <vivekraghuwanshi at gmail.com> wrote:
>>
>> Hi All,
>>
>> I am configuring Openstack cloud (essex+quantum+openvswitch)
>> its running fine but instances fired by a tanant also getting ip of public
>> subnet
>>
>> root at US1:~# nova list
>>
>> +--------------------------------------+-------+--------+-------------------------------------------------------------------+
>> |                  ID                  |  Name | Status |
>> Networks                             |
>>
>> +--------------------------------------+-------+--------+-------------------------------------------------------------------+
>> | c97b4c14-470e-4d93-b569-39801b66f166 | vivek | ACTIVE |
>> testing=192.168.3.2, 192.168.4.2; public=192.168.0.3, 192.168.1.3 |
>>
>> root at US000901:~# nova list
>>
>> +--------------------------------------+-------+--------+---------------------------------+
>> |                  ID                  |  Name | Status |
>> Networks            |
>>
>> +--------------------------------------+-------+--------+---------------------------------+
>> | 116b4a22-c0ae-4bef-ab90-a9bfed32b689 | admin | ACTIVE |
>> public=192.168.0.2, 192.168.1.2 |
>>
>> +--------------------------------------+-------+--------+---------------------------------+
>>
>>
>>
>> root at US1:~# nova-manage network list
>> id      IPv4                    IPv6            start address   DNS1
>> DNS2            VlanID          project         uuid
>> 1       192.168.0.0/24          None            192.168.0.2     8.8.4.4
>> None            None            None
>> 6330778a-8907-44ad-a8dc-27480629f5de
>> 2       192.168.1.0/24          None            192.168.1.2     8.8.4.4
>> None            None            None
>> dde9cf50-1220-4112-a20d-6cbb2b614467
>> 3       192.168.3.0/24          None            192.168.3.2     8.8.4.4
>> None            None            d163c974fda246ac9f069220a6a73f59
>> 5d34de04-8474-4191-9628-97c8ad07599f
>> 4       192.168.4.0/24          None            192.168.4.2     8.8.4.4
>> None            None            d163c974fda246ac9f069220a6a73f59
>> aa8ce537-eac2-4eea-ab47-16f5196030b1
>>
>>
>> nova.conf
>> -logdir=/var/log/nova
>> --state_path=/data/lib/nova
>> --lock_path=/var/lock/nova
>> --allow_admin_api=true
>> --use_deprecated_auth=false
>> --auth_strategy=keystone
>> --scheduler_driver=nova.scheduler.simple.SimpleScheduler
>> --linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
>> --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.0.0
>> --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
>> --my_ip=10.83.18.208
>> --resume_guests_state_on_host_boot=true
>> --network_manager=nova.network.quantum.manager.QuantumManager
>> --linuxnet_ovs_integration_bridge=br-int
>> --libvirt_ovs_bridge=br-int
>> --libvirt_vif_type=ethernet
>> --libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
>> --public_interface=eth0
>> --fixed_range=192.168.0.0/16
>> --floating_range=10.83.18.128/25
>> --quantum_connection_host=10.83.18.208
>> --flat_injected=False
>> --force_dhcp_release
>> --quantum_use_dhcp=True
>> --iscsi_helper=tgtadm
>> --connection_type=libvirt
>> --dhcpbridge_flagfile=/etc/nova/nova.conf
>> --dhcpbridge=/usr/bin/nova-dhcpbridge
>> --root_helper=sudo nova-rootwrap
>>
>>
>>
>>
>>
>>
>>
>> --
>> ViVek Raghuwanshi
>> Mobile -+91-09595950504
>>
>> Skype - vivek_raghuwanshi
>>
>>
>
>
>
> --
> ViVek Raghuwanshi
> Mobile -+91-09595950504
>
> Skype - vivek_raghuwanshi
>
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the OpenStack-operators mailing list