Cannot Ping Private Ip

asked 2016-11-25 14:44:02 -0500

Subiendo gravatar image

Good Afternoon,

When Im creating a VM with this command:

openstack server create --flavor m1.small --image cirros --security-group default --key-name mykey prueba2

This is my response:

    +--------------------------------------+-----------------------------------------------+
| Field                                | Value                                         |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                        |
| OS-EXT-AZ:availability_zone          |                                               |
| OS-EXT-SRV-ATTR:host                 | None                                          |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                          |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000029                             |
| OS-EXT-STS:power_state               | NOSTATE                                       |
| OS-EXT-STS:task_state                | None                                          |
| OS-EXT-STS:vm_state                  | building                                      |
| OS-SRV-USG:launched_at               | None                                          |
| OS-SRV-USG:terminated_at             | None                                          |
| accessIPv4                           |                                               |
| accessIPv6                           |                                               |
| addresses                            |                                               |
| adminPass                            | FBzKNC4rgZZZ                                  |
| config_drive                         |                                               |
| created                              | 2016-11-25T21:32:34Z                          |
| flavor                               | m1.small (0)                                  |
| hostId                               |                                               |
| id                                   | 211e02c5-2191-40b0-9573-ac643af775e8          |
| image                                | cirros (a9a16b8c-3ac9-47fb-af57-19e801408eef) |
| key_name                             | mykey                                         |
| name                                 | prueba2                                       |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| project_id                           | a517f1b52ce04b53b54e0c0d7d5d0334              |
| properties                           |                                               |
| security_groups                      | [{u'name': u'default'}]                       |
| status                               | BUILD                                         |
| updated                              | 2016-11-25T21:32:35Z                          |
| user_id                              | bfee029188db405cab563a261f158f36              |
+--------------------------------------+-----------------------------------------------+

And here is my instance's private IP

+--------------------------------------+---------+--------+-------------------------+------------+
| ID                                   | Name    | Status | Networks                | Image Name |
+--------------------------------------+---------+--------+-------------------------+------------+
| 211e02c5-2191-40b0-9573-ac643af775e8 | prueba2 | ACTIVE | provider=192.168.100.87 | cirros     |
+--------------------------------------+---------+--------+-------------------------+------------+

ICMP and SSH ports are opened at security-group with the following commands:

openstack security group rule create --proto icmp default
openstack security group rule create --proto tcp --dst-port 22 default

When I ping my private IP I got this

PING 192.168.100.87 (192.168.100.87) 56(84) bytes of data.
From 192.168.100.11 icmp_seq=1 Destination Host Unreachable
From 192.168.100.11 icmp_seq=2 Destination Host Unreachable
From 192.168.100.11 icmp_seq=3 Destination Host Unreachable
From 192.168.100.11 icmp_seq=4 Destination Host Unreachable

With a bit of research I got this log message

2016-11-25 18:46:40.737 28867 INFO neutron.agent.securitygroups_rpc [req-aa50f754-d509-419f-ab6f-b34e709ed823 bfee029188db405cab563a261f158f36 a517f1b52ce04b53b54e0c0d7d5d0334 - - -] Security group member updated [u'9c2eceb4-dc5f-42ec-a566-9b652600f9a5']
2016-11-25 18:46:42.329 28867 INFO neutron.agent.securitygroups_rpc [req-75ecf6b4-e90d-4d8c-9634-1fd23869d550 - - - - -] Refresh firewall rules
2016-11-25 18:46:46.330 28867 INFO neutron.agent.securitygroups_rpc [req-75ecf6b4-e90d-4d8c-9634-1fd23869d550 - - - - -] Preparing filters for devices set(['tap8a8402c3-c5'])
2016-11-25 18:46:46.929 28867 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-75ecf6b4-e90d-4d8c-9634-1fd23869d550 - - - - -] Port tap8a8402c3-c5 updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'89b94b88-c307-4147-b9c0-b8f7d9554605', u'segmentation_id': None, u'device_owner': u'compute:None', u'physical_network': u'provider', u'mac_address': u'fa:16:3e:65:ca:c5', u'device': u'tap8a8402c3-c5', u'port_security_enabled': True, u'port_id': u'8a8402c3-c54f-4f90-9cda-896825c10a4a', u'fixed_ips': [{u'subnet_id': u'dbcd85e7-9f40-44f6-b309-cdafbbb2ef12', u'ip_address': u'192.168.100.87'}], u'network_type': u'flat', u'security_groups': [u'9c2eceb4-dc5f-42ec-a566-9b652600f9a5']}
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager [req-75ecf6b4-e90d-4d8c-9634-1fd23869d550 - - - - -] Error during notification for neutron.services.trunk.drivers.linuxbridge.agent.driver.LinuxBridgeTrunkDriver.agent_port_change--9223372036846395701 port_device, after_update
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager Traceback (most recent call last):
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-packages/neutron/callbacks/manager.py", line 146, in _notify_loop
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager     callback(resource, event, trigger, **kwargs)
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-packages/neutron/services/trunk/drivers/linuxbridge/agent/driver.py", line 97, in agent_port_change
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks.manager     trunk = self._tapi.get_trunk(context, device_details['port_id'])
2016-11-25 18:46:47.594 28867 ERROR neutron.callbacks ...
(more)
edit retag flag offensive close merge delete

Comments

The error message indicates either a version mismatch or a strange character in a config file, but I would first check if there is a route to this address, and if the instance has acquired the address. For the latter, use the instance console.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-27 08:11:17 -0500 )edit