I have currently created one nic port using Packstack and Ansible and now I am trying to create a new VM using the newly created port.
- os_port:
state: present
fixed_ips:
- ip_address: 10.10.157.138
allowed_address_pairs:
- ip_address: 10.10.157.128/27
name: port-3
security_groups: sg_default
network: nw1
register: port3
tags: neutron_ports
- name: Create the VM
os_server:
state: present
flavor: m1.small
name: vm1
image: cirros
nics:
- port-id: "{{port3.id}}"
tags: vm
I am getting an error after creating it: Error in creating the server. If I am looking into the dashboard, I am seeing the instance, but its state is "Error". Inside the VM, I have the following message: "No valid host was found" with the 500 code. When I am looking at the hosts, all of them are running and available:
[dante@localhost roles(keystone_admin)]$ nova service-list +--------------------------------------+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+-------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
+--------------------------------------+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+-------------+
| 21ac1600-fc5a-481e-a725-3e12265bdb66 | nova-conductor | localhost.localdomain | internal | enabled | up | 2018-08-07T17:08:38.000000 | - | False |
| 6d9393da-42ea-4290-83f6-af4af2c377e3 | nova-scheduler | localhost.localdomain | internal | enabled | up | 2018-08-07T17:08:40.000000 | - | False |
| 6eb82482-d6df-4fb7-ad77-46bdacf442de | nova-consoleauth | localhost.localdomain | internal | enabled | up | 2018-08-07T17:08:38.000000 | - | False |
| 46b5e512-da96-4066-b45e-57336da6cfec | nova-compute | localhost.localdomain | nova | enabled | up | 2018-08-07T17:08:40.000000 | - | False |
Any idea what can be?
Best regards, Dan