tsuna-server / build-server-ansible

1 stars 0 forks source link

Cirros will be failed to boot correctly with network bridge OVN with certain settings of /etc/hosts. #51

Closed TsutomuNakamura closed 2 years ago

TsutomuNakamura commented 2 years ago

When I set /etc/hosts (in cloud-init, /etc/cloud/templates/hosts.debian.tmpl) as certain settings, launching Cirros will be failed.

* Message
Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 0837113a-627d-4935-8a98-a293f10f1804.
* Code
500
* Details
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nova/conductor/manager.py", line 669, in build_instances raise exception.MaxRetriesExceeded(reason=msg) nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 0837113a-627d-4935-8a98-a293f10f1804.

Results are difference between settings of /etc/hosts below.

TsutomuNakamura commented 2 years ago

Differences of /etc/hosts might cause differences amount configurations. Configurations might have differences are.

TsutomuNakamura commented 2 years ago

🤔

TsutomuNakamura commented 2 years ago

After deployed with hosts Settings will be failed in first comment of this issue, I changed hosts Settings will be succeeded and re-create Cirros instance, then Cirros failed to running.

A cause of this issue is existing in some roles before a role test_env.

TsutomuNakamura commented 2 years ago

These test cases need modifying /etc/hosts(/etc/cloud/templates/hosts.debian.tmpl) during each border of test cases. A test case need changing /etc/hosts between the role keystone and glance for example.

TestCase01:
  to: keystone, from: glance

Changing border will detect where the bugs are existed.

TsutomuNakamura commented 2 years ago

Test cases


Syntax is ... ex) keystone - glance means Run Ansible to a role keystone, then change hosts, then run Ansible to glance.

TsutomuNakamura commented 2 years ago

To detect where the error points are existed, run Ansible till previous point of the Neutron (Nova), then modify sinarios of Neutron, then run Ansible from neutron.

TsutomuNakamura commented 2 years ago

Base source code

Test cases


There are some problems at installing OVN packages on compute node.

TsutomuNakamura commented 2 years ago

We can set /etc/hosts by writing each hostname at each line to solve this problem temporary.

TsutomuNakamura commented 2 years ago

This already fixed.