Debian sanity: bootstrap fails validating domain
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Andre Kantek |
Bug Description
Issue seen in sanity
"TASK [bootstrap/
Triage:
Issue network related; bootstrap fails something like this:
sysadmin@
Traceback (most recent call last):
File "/tmp/a.py", line 2, in <module>
from sysinv.common.utils import is_valid_
File "/usr/lib/
from eventlet.green import subprocess
File "/usr/lib/
from eventlet import convenience
File "/usr/lib/
from eventlet.green import socket
File "/usr/lib/
from eventlet.support import greendns
File "/usr/lib/
resolver = ResolverProxy(
File "/usr/lib/
self.clear()
File "/usr/lib/
self._resolver = dns.resolver.
File "/usr/lib/
self.
File "/usr/lib/
raise NoResolverConfi
dns.resolver.
There is no dns server in /etc/resolv.conf, even if one is configured in localhost.yml.
sysadmin@
sysadmin@
—
admin_password: Li69nux*
admin_username: admin
ansible_
dns_servers:
10.20.2.1
This was also seen at the beginning of integration. Now https:/
Changed in starlingx: | |
assignee: | nobody → Andre Kantek (akantek) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.debian stx.networking |
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/845022 /opendev. org/starlingx/ ansible- playbooks/ commit/ 8589ebb2a07745b ea3f60d2cfdad5b 3f68b7170e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8589ebb2a07745b ea3f60d2cfdad5b 3f68b7170e
Author: Andre Fernando Zanella Kantek <email address hidden>
Date: Tue Jun 7 16:01:12 2022 -0300
Move update of resolv.conf from persist-config to validate-config
On python3, when importing eventlet.green library a /review. opendev. org/c/starlingx /tools/ +/844460
verification is done on /etc/resolv.conf to have at least one valid
nameserver. Since we are on a fresh install and the resolv.conf
file is clean on the iso as part of
https:/
It fails the execution
It was attempted to solve the first error in validate- config/ tasks/validate_ address. yml with the task /review. opendev. org/c/starlingx /config/ +/845003 /review. opendev. org/c/starlingx /ansible- playbooks/ +/845015
bootstrap/
"Check if the supplied address is a valid domain name or ip address"
to isolate the code inside sysinv as can be seen on the abandoned
changes
https:/
https:/
But the problem was just postponed to store-passwd/ tasks/main. yml on the task
bootstrap/
"Store admin password", and this one uses just python libraries.
So we are just moving the update of resolv.conf from persist-config
to validate-config as this will not change execution times for
bootstrap execution and it works for both CentOS and Debian
With the delivery of /review. opendev. org/c/starlingx /config/ +/843012 the task
https:/
"Remove localhost address from resolv.conf" is no longer needed
Test Plan:
PASS execution of AIO-SX bootstrap for Debian
PASS execution of AIO-SX bootstrap on CentOS
Closes-Bug: 1977887
Signed-off-by: Andre Fernando Zanella Kantek <email address hidden> 2d52b6f972c7944 857e2547494
Change-Id: I63e9dbaa82eb50