<div dir="auto">Hi Mauricio,<div dir="auto"><br></div><div dir="auto">What happens if instead of the node name you use the node UUID, as returned from;</div><div dir="auto"><br></div><div dir="auto">openstack hypervisor list</div><div dir="auto"><br></div><div dir="auto">? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 3 Feb 2021, 17:46 Mauricio Tavares, <<a href="mailto:raubvogel@gmail.com">raubvogel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Easy peasy question: According to<br>
<a href="https://docs.openstack.org/nova/rocky/admin/availability-zones.html" rel="noreferrer noreferrer" target="_blank">https://docs.openstack.org/nova/rocky/admin/availability-zones.html</a>, I<br>
can specify the host I want to use by following the format<br>
<br>
 --availability-zone ZONE:HOST<br>
<br>
So, let's get the hostnames for the compute nodes.<br>
<br>
[raub@test-hn ~(keystone_admin)]$ openstack compute service list<br>
--service nova-compute<br>
+----+--------------+-----------------------+------+---------+-------+----------------------------+<br>
| ID | Binary       | Host                  | Zone | Status  | State |<br>
Updated At                 |<br>
+----+--------------+-----------------------+------+---------+-------+----------------------------+<br>
| 11 | nova-compute | <a href="http://compute02.example.com" rel="noreferrer noreferrer" target="_blank">compute02.example.com</a> | nova | enabled | up    |<br>
2021-02-03T17:25:53.000000 |<br>
| 12 | nova-compute | <a href="http://compute03.example.com" rel="noreferrer noreferrer" target="_blank">compute03.example.com</a> | nova | enabled | up    |<br>
2021-02-03T17:25:53.000000 |<br>
| 13 | nova-compute | <a href="http://compute01.example.com" rel="noreferrer noreferrer" target="_blank">compute01.example.com</a> | nova | enabled | up    |<br>
2021-02-03T17:25:52.000000 |<br>
+----+--------------+-----------------------+------+---------+-------+----------------------------+<br>
[raub@test-hn ~(keystone_admin)]$<br>
<br>
I want to use <a href="http://compute01.example.com" rel="noreferrer noreferrer" target="_blank">compute01.example.com</a>, which I can resolve to 10.1.1.11.<br>
But, when I try to create server with (running as admin):<br>
<br>
openstack server create \<br>
--image default_centos_8 \<br>
--flavor m1.small \<br>
--key-name raubkey \<br>
--availability-zone nova:<a href="http://compute01.example.com" rel="noreferrer noreferrer" target="_blank">compute01.example.com</a> \<br>
--nic net-id=LONG_BORING-ID \<br>
raub-netest<br>
<br>
I get the error message (from openstack server show raub-netest|grep fault):<br>
<br>
'message': 'No valid host was found. No such host - host:<br>
<a href="http://compute01.example.com" rel="noreferrer noreferrer" target="_blank">compute01.example.com</a> node: None '<br>
<br>
What am I doing wrong here?<br>
<br>
</blockquote></div>