Ask Your Question
0

Openstack Mitaka ERROR when creating a VM [closed]

asked 2017-01-13 13:53:49 -0500

Subiendo gravatar image

updated 2017-01-17 07:20:41 -0500

Hi all,

As the tutorial says im using step by step the comands written there:

openstack flavor list

openstack flavor list
+----+-----------+-------+------+-----------+-------+-----------+
| ID | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+-----------+-------+------+-----------+-------+-----------+
| 0  | m1.nano   |    64 |    1 |         0 |     1 | True      |
| 1  | m1.tiny   |   512 |    1 |         0 |     1 | True      |
| 2  | m1.small  |  2048 |   20 |         0 |     1 | True      |
| 3  | m1.medium |  4096 |   40 |         0 |     2 | True      |
| 4  | m1.large  |  8192 |   80 |         0 |     4 | True      |
| 5  | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
+----+-----------+-------+------+-----------+-------+-----------+

openstack keypair list
+-------+-------------------------------------------------+
| Name  | Fingerprint                                     |
+-------+-------------------------------------------------+
| mykey | a1:0e:20:a8:19:dd:d2:82:bb:47:d7:a8:82:48:e1:3f |
+-------+-------------------------------------------------+

openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 2a32118a-6f19-4647-a599-427a43552e98 | cirros | active |
+--------------------------------------+--------+--------+

openstack network list
+--------------------------------------+----------+--------------------------------------+
| ID                                   | Name     | Subnets                              |
+--------------------------------------+----------+--------------------------------------+
| 5b74b975-c78c-44cf-8558-1a14047bf1ce | provider | 48a277b9-aa31-43f9-991d-83755b45b022 |
+--------------------------------------+----------+--------------------------------------+

openstack security group list
+--------------------------------------+---------+------------------------+----------------------------------+
| ID                                   | Name    | Description            | Project                          |
+--------------------------------------+---------+------------------------+----------------------------------+
| f2427bca-3a4f-4e95-8d51-9d2977f7c447 | default | Default security group | 9b77bb7a532d4b40a06323640a811b67 |
+--------------------------------------+---------+------------------------+----------------------------------+

openstack server create --flavor m1.tiny --image cirros --security-group default --key-name mykey p3
+--------------------------------------+-----------------------------------------------+
| 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-0000000b                             |
| OS-EXT-STS:power_state               | 0                                             |
| 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                            | 6GzSwFvhQQp2                                  |
| config_drive                         |                                               |
| created                              | 2017-01-13T22:47:31Z                          |
| flavor                               | m1.tiny (1)                                   |
| hostId                               |                                               |
| id                                   | 2b2dbda3-b126-4494-9bf9-84dd966c4ab5          |
| image                                | cirros (2a32118a-6f19-4647-a599-427a43552e98) |
| key_name                             | mykey                                         |
| name                                 | p3                                            |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| project_id                           | 9b77bb7a532d4b40a06323640a811b67              |
| properties                           |                                               |
| security_groups                      | [{u'name': u'default'}]                       |
| status                               | BUILD                                         |
| updated                              | 2017-01-13T22:47:32Z                          |
| user_id                              | 7ead70b5918b4e3c97ca8cce96d41978              |
+--------------------------------------+-----------------------------------------------+

openstack server list
+--------------------------------------+--------------------+--------+----------+
| ID                                   | Name               | Status | Networks |
+--------------------------------------+--------------------+--------+----------+
| 2b2dbda3-b126-4494-9bf9-84dd966c4ab5 | p3                 | ERROR  |          |
+--------------------------------------+--------------------+--------+----------+


neutron agent-list
+------------+------------+------------+-------------------+-------+----------------+---------------+
| id         | agent_type | host       | availability_zone | alive | admin_state_up | binary        |
+------------+------------+------------+-------------------+-------+----------------+---------------+
| 23eee6fe-  | Linux      | controller |                   | :-)   | True           | neutron-      |
| cc72-4533  | bridge     |            |                   |       |                | linuxbridge-  |
| -971e-a72e | agent      |            |                   |       |                | agent         |
| def0dc46   |            |            |                   |       |                |               |
| 34274b2e-0 | Metadata   | controller |                   | :-)   | True           | neutron-      |
| 795-4143-9 | agent      |            |                   |       |                | metadata-     |
| 816-543349 |            |            |                   |       |                | agent         |
| 90748f     |            |            |                   |       |                |               |
| 9fc7162a-  | DHCP agent | controller | nova              | :-)   | True           | neutron-dhcp- |
| fa83-4b0a- |            |            |                   |       |                | agent         |
| ae76-617b2 |            |            |                   |       |                |               |
| 73ff9e2    |            |            |                   |       |                |               |
| e3e8b1ca-9 | Linux      | compute1   |                   | :-)   | True           | neutron-      |
| 99c-4691-a | bridge     |            |                   |       |                | linuxbridge-  |
| d11-b28f00 | agent      |            |                   |       |                | agent         |
| a90749     |            |            |                   |       |                |               |
+------------+------------+------------+-------------------+-------+----------------+---------------+

controller ifconfig

brq5b74b975-c7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet PUBLIC_IP 

enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 IPV6 

enp9s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet INTERNAL_IP

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 1434358  bytes 406370715 (387.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1434358  bytes 406370715 (387.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tapc54d34cc-eb: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 92:15:ba:93:88:fe  txqueuelen 1000  (Ethernet)
        RX packets 8  bytes 648 (648.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 364558  bytes 31374381 (29.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:1f:43:14  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Subiendo
close date 2017-01-17 07:21:09.897430

Comments

PortBindingFailed: Binding failed for port f2dc39fe-4d1c-4907-bef8-41c601a5fc68, please check neutron logs for more information. Start with the neutron server log and use the port number to find relevant log entries.

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-13 17:32:04 -0500 )edit

Added to the post the /var/log/neutron/server.log which is the only one which is modified when creating a VM

Subiendo gravatar imageSubiendo ( 2017-01-14 04:56:00 -0500 )edit

Is there no entry in neutron-server.log that contains the port ID f2dc39fe-4d1c-4907-bef8-41c601a5fc68?

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-14 06:43:00 -0500 )edit

where is the neutron-server.log located? if you mean at controllers node /var/log/neutron/server.log => UPDATED the post with the log

Subiendo gravatar imageSubiendo ( 2017-01-16 06:29:01 -0500 )edit

solution added

Subiendo gravatar imageSubiendo ( 2017-01-17 07:21:00 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-01-14 09:26:55 -0500

mriedem gravatar image

Are the neutron agents reporting as UP and OK? Port binding will fail if the neutron agent is down.

edit flag offensive delete link more

Comments

updated neutron agent-list everything is up and OK

Subiendo gravatar imageSubiendo ( 2017-01-16 06:07:42 -0500 )edit

solution added

Subiendo gravatar imageSubiendo ( 2017-01-17 07:20:46 -0500 )edit
0

answered 2017-01-17 02:51:43 -0500

Matt303 gravatar image

I had this error message, when I had configured /etc/neutron/plugins/ml2/linuxbridge_agent.ini wrong.

I had put physical_interface_mappings = provider:eth1 into the DEFAULT-Section and that was wrong.

Putting physical_interface_mappings = provider:eth1 into the linux_bridge section solved this issue for me.

I recommend to check /etc/neutron/plugins/ml2/linuxbridge_agent.ini on the controller and compute nodes and I would also check the interfaces configuration for controller and compute nodes. Here is an example of my configuration:

auto eth1

iface eth1 inet manual

up ip link set dev $IFACE up

down ip link set dev $IFACE down

edit flag offensive delete link more

Comments

updated with controller, compute interfaces and both files

Subiendo gravatar imageSubiendo ( 2017-01-17 05:30:11 -0500 )edit

im a bit confused if the interfaces according to the files are correctly set. My enp5s0 interfaces are the public ones while enp9s0 are the internal ones

Subiendo gravatar imageSubiendo ( 2017-01-17 05:38:20 -0500 )edit

solution added

Subiendo gravatar imageSubiendo ( 2017-01-17 07:20:52 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-01-13 13:53:49 -0500

Seen: 210 times

Last updated: Jan 17 '17