<div dir="ltr"><div><div>Hi Dhastha,<br><br></div>Its not the problem with firewall, but mostly due to some misconfiguration in network-config. You can have a reference of this good blog to debug the network issue. Hope it helps.<br>

<br><a href="http://techbackground.blogspot.in/2013/05/debugging-quantum-dhcp-and-open-vswitch.html">http://techbackground.blogspot.in/2013/05/debugging-quantum-dhcp-and-open-vswitch.html</a><br><br></div><div>-Regards<br>

Rahul Sharma<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 4:21 PM, Dhastha <span dir="ltr"><<a href="mailto:dhasthagheer@gmail.com" target="_blank">dhasthagheer@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any problem with firewall . I ran following command in Network node<br>
<br>
<br>
iptables -L -n -v<br>
<br>
Chain INPUT (policy ACCEPT 61352 packets, 5843K bytes)<br>
 pkts bytes target     prot opt in     out     source<br>
destination<br>
    0     0 ACCEPT     47   --  *      *       <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
<a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
<br>
Chain FORWARD (policy ACCEPT 219 packets, 13746 bytes)<br>
 pkts bytes target     prot opt in     out     source<br>
destination<br>
<br>
Chain OUTPUT (policy ACCEPT 25450 packets, 3847K bytes)<br>
 pkts bytes target     prot opt in     out     source               destination<br>
<br>
<br>
<br>
<br>
I tried<br>
<br>
iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill<br>
<br>
<br>
But instances doesnt get DHCP.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Oct 14, 2013 at 2:49 PM, Dhastha <<a href="mailto:dhasthagheer@gmail.com">dhasthagheer@gmail.com</a>> wrote:<br>
> My virtual machine not getting IP address<br>
><br>
> Console log in Horizon looks like below<br>
><br>
> cloud-init-nonet waiting 120 seconds for a network device.<br>
> cloud-init-nonet gave up waiting for a network device.<br>
> ci-info: lo    : 1 127.0.0.1       255.0.0.0       .<br>
> ci-info: eth0  : 1 .               .               fa:16:3e:f9:9c:66<br>
> route_info failed<br>
><br>
><br>
> How to solve this?<br>
><br>
><br>
> On Mon, Oct 14, 2013 at 1:30 PM, Rahul Sharma <<a href="mailto:rahulsharmaait@gmail.com">rahulsharmaait@gmail.com</a>> wrote:<br>
>> Hi Dhastha,<br>
>><br>
>> Data interface is just to have connectivity between compute node and network<br>
>> node. They are the two endpoints of the GRE tunnel formed between the<br>
>> compute and the network node. If you don't want data-interface, you can use<br>
>> the management interface as well. You specify that interface in the quantum<br>
>> openvswitch-agent's file. You can have a look at the detailed diagram on<br>
>> this site:-<br>
>><br>
>> <a href="https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst" target="_blank">https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_MultiNode/OpenStack_Grizzly_Install_Guide.rst</a><br>


>><br>
>> On your second question that you are unable to ping or ssh the VM, have you<br>
>> checked that the IP is assigned to the VM properly? Verify it by running<br>
>> ifconfig on the CLI of the VM. If yes, then kindly check whether the two<br>
>> conditions added using CLI to security-groups are present in UI. It might be<br>
>> the security-groups issue or it could be that VM hasn't received IP from<br>
>> dhcp-server.<br>
>><br>
>> -Regards<br>
>> Rahul Sharma<br>
>><br>
>><br>
>> On Mon, Oct 14, 2013 at 10:36 AM, Dhastha <<a href="mailto:dhasthagheer@gmail.com">dhasthagheer@gmail.com</a>> wrote:<br>
>>><br>
>>> I followed<br>
>>><br>
>>><br>
>>> <a href="http://longgeek.com/2013/03/31/openstack-grizzly-multi-node-deployment-in-ubuntu-12-04/" target="_blank">http://longgeek.com/2013/03/31/openstack-grizzly-multi-node-deployment-in-ubuntu-12-04/</a><br>


>>><br>
>>> tutorial to deploy openstack using 3 physical machine.<br>
>>><br>
>>> My networking setup as follows<br>
>>><br>
>>> Controller:<br>
>>> eth0 : 172.16.0.51 (openstack management network)<br>
>>> eth1 : 10.129.50.140 (public network)<br>
>>><br>
>>> Network:<br>
>>> eth0: 172.16.0.52 (management network)<br>
>>> eth1: 10.10.10.52 (Data network)<br>
>>> eth2: 10.129.50.141 (public network)<br>
>>><br>
>>> Compute Node:<br>
>>> eth0: 172.16.0.52 (management network)<br>
>>> eth1: 10.10.10.53 (Data network)<br>
>>><br>
>>><br>
>>> Can anyone tell me How data network works?<br>
>>><br>
>>> And,<br>
>>><br>
>>> I followed following way to create VM in Openstack<br>
>>><br>
>>> # keystone tenant-create --name project_one<br>
>>> #keystone user-create --name=user_one --pass=user_one --tenant-id<br>
>>> $put_id_of_project_one --email=<a href="mailto:user_one@domain.com">user_one@domain.com</a><br>
>>> # keystone user-role-add --tenant-id $put_id_of_project_one  --user-id<br>
>>> $put_id_of_user_one --role-id $put_id_of_member_role<br>
>>> # quantum net-create --tenant-id $put_id_of_project_one net_proj_one<br>
>>> # quantum subnet-create --tenant-id $put_id_of_project_one<br>
>>> net_proj_one <a href="http://50.50.1.0/24" target="_blank">50.50.1.0/24</a> --dns_nameservers list=true 10.200.1.11<br>
>>> #quantum router-create --tenant-id $put_id_of_project_one router_proj_one<br>
>>> # quantum agent-list (to get the l3 agent ID)<br>
>>> # quantum l3-agent-router-add $l3_agent_ID router_proj_one<br>
>>> # quantum router-interface-add $put_router_proj_one_id_here<br>
>>> $put_subnet_id_here<br>
>>> # cd /etc/init.d/; for i in $( ls quantum-* ); do sudo service $i restart;<br>
>>> done<br>
>>> # quantum net-create --tenant-id $put_id_of_admin_tenant ext_net<br>
>>> --router:external=True<br>
>>> # quantum subnet-create --tenant-id $put_id_of_admin_tenant<br>
>>> --allocation-pool start=10.129.50.145,end=10.129.50.158 --gateway<br>
>>> 10.129.1.250 ext_net <a href="http://10.129.50.145/28" target="_blank">10.129.50.145/28</a> --enable_dhcp=False<br>
>>> # quantum router-gateway-set $put_router_proj_one_id_here<br>
>>> $put_id_of_ext_net_here<br>
>>><br>
>>> vi creds_proj_one<br>
>>><br>
>>> #Paste the following:<br>
>>> export OS_TENANT_NAME=project_one<br>
>>> export OS_USERNAME=user_one<br>
>>> export OS_PASSWORD=user_one<br>
>>> export OS_AUTH_URL="<a href="http://10.129.50.140:5000/v2.0/" target="_blank">http://10.129.50.140:5000/v2.0/</a>"<br>
>>><br>
>>> # source creds_proj_one<br>
>>><br>
>>><br>
>>> # nova --no-cache secgroup-add-rule default icmp -1 -1 <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
>>> # nova --no-cache secgroup-add-rule default tcp 22 22 <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
>>> # quantum floatingip-create ext_net<br>
>>> # nova --no-cache boot --image $id_myFirstImage --flavor 1 my_first_vm<br>
>>> # quantum port-list<br>
>>> # quantum floatingip-associate $put_id_floating_ip $put_id_vm_port<br>
>>><br>
>>><br>
>>> The above commands created VM and VM gets two IP address. But I can<br>
>>> not ssh and ping the VM.<br>
>>><br>
>>> Can anyone help me to setup network for VM in Openstack?<br>
>>><br>
>>> Thanks in advance.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> Cheers,<br>
>>><br>
>>> Dhasthagheer<br>
>>> Jr. Software Engineer<br>
>>> Fundamental Research Group<br>
>>> Indian Institute of Technology, Bombay<br>
>>><br>
>>> _______________________________________________<br>
>>> Mailing list:<br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
>>> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
>>> Unsubscribe :<br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
><br>
><br>
><br>
><br>
> Cheers,<br>
><br>
> Dhasthagheer<br>
> Jr. Software Engineer<br>
> Fundamental Research Group<br>
> Indian Institute of Technology, Bombay<br>
<br>
<br>
<br>
--<br>
<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Dhasthagheer<br>
Jr. Software Engineer<br>
Fundamental Research Group<br>
Indian Institute of Technology, Bombay<br>
</div></div></blockquote></div><br></div>