Ask Your Question
1

openstack vm cannot access [closed]

asked 2019-07-07 04:48:54 -0500

Jillman gravatar image

updated 2019-07-23 03:18:03 -0500

I have installed a stein version openstack . But when I run a selfservice instanse , I got a lot trouble in network . First I creat a provider network and selfservice network. After that I found , I can not ping the IP address of router nor the ip address allocated for vm

Also my vm cann't receive an IP from controller .

Bellow is the output that I tried , could anyone help me to resolve the trouble?

[root@node1 ~]#openstack network list

+--------------------------------------+-------------+--------------------------------------+
| ID                                   | Name        | Subnets                              |
+--------------------------------------+-------------+--------------------------------------+
| 049a6285-7d7a-47cf-81c6-be30973c2457 | provider    | 56d73ed4-1be4-4877-94a6-2e3a7b5df0af |
| 8c2e499a-ec58-45b5-90f2-84dc64d9b2ed | selfservice | 3e823520-d47f-4770-823b-ab35e4565c00 |
+--------------------------------------+-------------+--------------------------------------+

[root@node1 ~]# openstack subnet list

+--------------------------------------+-------------+--------------------------------------+-----------------+
| ID                                   | Name        | Network                              | Subnet          |
+--------------------------------------+-------------+--------------------------------------+-----------------+
| 3e823520-d47f-4770-823b-ab35e4565c00 | selfservice | 8c2e499a-ec58-45b5-90f2-84dc64d9b2ed | 172.16.1.0/24   |
| 56d73ed4-1be4-4877-94a6-2e3a7b5df0af | provider    | 049a6285-7d7a-47cf-81c6-be30973c2457 | 192.168.50.0/24 |
+--------------------------------------+-------------+--------------------------------------+-----------------+

[root@node1 ~]# openstack router list

+--------------------------------------+--------+--------+-------+----------------------------------+
| ID                                   | Name   | Status | State | Project                          |
+--------------------------------------+--------+--------+-------+----------------------------------+
| f944b72e-4d34-43fa-a682-ba7d18707529 | router | ACTIVE | UP    | b204387bc5d3410bbae7b4d159040e43 |
+--------------------------------------+--------+--------+-------+----------------------------------+

[root@node1 ~]# openstack port list

+--------------------------------------+------+-------------------+-------------------
| ID                                   | Name | MAC Address       | Fixed IP Addresses                                                          | Status |
+--------------------------------------+------+-------------------+-------------------
| 3d15fb21-ef96-4757-b9be-33dc43c191d0 |      | fa:16:3e:17:f8:70 | ip_address='172.16.1.2', subnet_id='3e823520-d47f-4770-823b-ab35e4565c00'   | ACTIVE |
| 645f7f4e-747b-4b9c-9482-1bf6cb393fe8 |      | fa:16:3e:49:aa:a6 | ip_address='172.16.1.1', subnet_id='3e823520-d47f-4770-823b-ab35e4565c00'   | ACTIVE |
| e0bc9e51-b5c8-4e1d-b771-041804e7c9f6 |      | fa:16:3e:d6:ed:8b | ip_address='172.16.1.236', subnet_id='3e823520-d47f-4770-823b-ab35e4565c00' | ACTIVE |
+--------------------------------------+------+-------------------+-------------------

[root@node1 ~]# openstack floating ip list

+--------------------------------------+---------------------+------------------+-------------------------------------
| ID                                   | Floating IP Address | Fixed IP Address | Port                                 | Floating Network                     | Project                          |
+--------------------------------------+---------------------+------------------+-------------------------------------
| 104d368e-a192-4b4b-a7b0-b14e17061b34 | 192.168.50.245      | 172.16.1.236     | e0bc9e51-b5c8-4e1d-b771-041804e7c9f6 | 049a6285-7d7a-47cf-81c6-be30973c2457 | b204387bc5d3410bbae7b4d159040e43 |
+--------------------------------------+---------------------+------------------+------------------------------------

[root@node1 ~]# openstack server list

+--------------------------------------+----------------------+--------+------------------------------------------+--------+-------
| ID                                   | Name                 | Status | Networks                                 | Image  | Flavor  |
+--------------------------------------+----------------------+--------+-----------------------------------
| 6ac3aa26-4e06-438b-a293-8f4a37964a4f | selfservice-instance | ACTIVE | selfservice=172.16.1.236, 192.168.50.245 | cirros | m1.nano |
+--------------------------------------+----------------------+--------+------------------------------------

[root@node1 ~]# openstack network show provider

+-------------------+-------------------------------------------------------------------
| Field                     | Value                 
+-------------------+-------------------------------------------------------------------
| admin_state_up            | UP                     
| availability_zone_hints   |               
| availability_zones        | nova            
| created_at                | 2019-07-07T08:21:46Z                
| description               |                          
| dns_domain                | None                   
| id                        | 049a6285-7d7a-47cf-81c6-be30973c2457              
| ipv4_address_scope        | None             
| ipv6_address_scope        | None                
| is_default                | False                       
| is_vlan_transparent       | None        
| location                  | Munch({'project': Munch({'domain_name': None, 'domain_id': None, 'name': None, 'id': u'a091af66bfcc4fd884cefdb0c0de0474'}), 'cloud': '', 'region_name': '', 'zone': None}) |
| mtu                       | 1500                
| name                      | provider                       
| port_security_enabled     | True                  
| project_id                | a091af66bfcc4fd884cefdb0c0de0474        
| provider:network_type     | None                     
| provider:physical_network | None        
| provider:segmentation_id  | None                  
| qos_policy_id             | None               
| revision_number           | 2                       
| router:external           | External                 
| segments                  | None             
| shared                    | True                    
| status                    | ACTIVE          
| subnets                   | 56d73ed4-1be4-4877-94a6-2e3a7b5df0af          
| tags                      |            
| updated_at                | 2019-07-07T08:26:56Z           
+-------------------+-------------------------------------------------------------------

[root@node1 ~]# openstack subnet show provider

+-------------------+-------------------------------------------------------------------
| Field             | Value           
+-------------------+-------------------------------------------------------------------
| allocation_pools  | 192.168.50.235-192.168.50.250      
| cidr              | 192.168.50.0/24       
| created_at        | 2019-07-07T08:26:56Z             
| description       |             
| dns_nameservers   | 192.168.50.1         
| enable_dhcp       | True                
| gateway_ip        | 192.168.50.1              
| host_routes       |                    
| id                | 56d73ed4-1be4-4877-94a6-2e3a7b5df0af       
| ip_version        | 4            
| ipv6_address_mode | None                 
| ipv6_ra_mode      | None                 
| location          | Munch({'project': Munch({'domain_name': None, 'domain_id': None, 'name': None, 'id': u'a091af66bfcc4fd884cefdb0c0de0474'}), 'cloud': '', 'region_name': '', 'zone': None}) |
| name              | provider             
| network_id        | 049a6285-7d7a-47cf-81c6-be30973c2457    
| prefix_length     | None                    
| project_id        | a091af66bfcc4fd884cefdb0c0de0474             
| revision_number   | 0                 
| segment_id        | None                    
| service_types     |              
| subnetpool_id     | None                 
| tags              |        
| updated_at        | 2019-07-07T08:26:56Z          
+-------------------+-------------------------------------------------------------------

[root@node1 ~]# openstack subnet show selfservice

+-------------------+-------------------------------------------------------------------
| Field             | Value  
+-------------------+-------------------------------------------------------------------
| allocation_pools  | 172.16.1.2-172.16.1.254        
| cidr              | 172.16.1.0/24       
| created_at        | 2019-07-07T08:31:16Z        
| dns_nameservers   | 192.168.50.1                   
| enable_dhcp       | True               
| gateway_ip        | 172.16.1.1            
| host_routes       |                         
| id                | 3e823520-d47f-4770-823b-ab35e4565c00            
| ip_version        | 4                 
| ipv6_address_mode | None         
| ipv6_ra_mode      | None          
| location          | Munch({'project': Munch({'domain_name': 'Default', 'domain_id': None, 'name': 'myproject', 'id': u'b204387bc5d3410bbae7b4d159040e43'}), 'cloud': '', 'region_name': '', 'zone': None}) |
| name              | selfservice          
| network_id        | 8c2e499a-ec58-45b5-90f2-84dc64d9b2ed        
| prefix_length     | None            
| project_id        | b204387bc5d3410bbae7b4d159040e43          
| revision_number   | 0               
| segment_id        | None       
| service_types     |          
| subnetpool_id     | None        
| tags              |          
| updated_at        | 2019-07-07T08:31:16Z         
+-------------------+-------------------------------------------------------------------

[root@node1 ~]# openstack service list ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Jillman
close date 2019-07-29 02:16:02.485021

Comments

Please show details of the provider network.

Further tests: Check Neutron services (openstack network service list). Ping the selfservice address from the DHCP namespace.

I don't understand what you mean by my ip address information also haven't the selfservice network.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-07 06:11:04 -0500 )edit

Also, how did you install this cloud? Does it run on a single node, or several nodes?

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-07 06:11:32 -0500 )edit

Thank you for your reply. I print the details of provider network and subnet detail of provider and selfservice and service list as bellow

(https://imgchr.com/i/ZyKtl4)

(https://imgchr.com/i/ZyKUX9)

(https://imgchr.com/i/ZyMu9O)

And I can ping the self service gateway from the dhcp namesapce

Jillman gravatar imageJillman ( 2019-07-08 23:58:01 -0500 )edit

BTW I install this cloud follow the doc on homepage I setup a controllor called node1 with keystone、placement、neutron、glance;

And a compute node called node2 with nova .

I get a message in messages log about dhcp like bellow

https://imgchr.com/i/ZyQQiV

It seems that node1 offered an IP to VM?

Jillman gravatar imageJillman ( 2019-07-09 00:09:23 -0500 )edit

The instance must be told what it's IP address is. This is normally done via DHCP. The DHCP server runs on the controller.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-09 05:36:33 -0500 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2019-07-16 23:01:34 -0500

Vinoth gravatar image
  • check bridge mappings.
  • Look for any ERROR on neutron logs.
  • Use tcpdump to dig more on traffic on both bridge & NIC end.
edit flag offensive delete link more
0

answered 2019-07-29 02:14:40 -0500

Jillman gravatar image

I've resolve this problem.But I still don't know how I did it.

I just reinstall the openstack service and make my openvswitch connect to the db properly.

And after I reboot my machine, all vm network worked normally though openvswitch connot connect to the db.

I'm not sure it will be the solution or not.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-07-07 04:48:54 -0500

Seen: 119 times

Last updated: Jul 29