OSError: [Errno 98] Address already in use in pkg_mgr_mirror_error.log.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
While working on fs02 on cs9, we have a bunch of patches as depends on https:/
```
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
Depends-On: https:/
```
the puppet-pacemaker changes is built by DLRN and stored in gating repo and the gating repo needs to injected on overcloud images.
The above operation is done by install-built-repo: https:/
When the above got executed, it throws the following error:
https:/
```
Traceback (most recent call last):
File "/usr/lib64/
return _run_code(code, main_globals, None,
File "/usr/lib64/
exec(code, run_globals)
File "/usr/lib64/
test(
File "/usr/lib64/
with ServerClass(addr, HandlerClass) as httpd:
File "/usr/lib64/
self.
File "/usr/lib64/
return super()
File "/usr/lib64/
socketserve
File "/usr/lib64/
self.
OSError: [Errno 98] Address already in use
```
By taking a closer look at above script log:
https:/
```
2021-12-22 11:57:17 | + mkdir -p /opt
2021-12-22 11:57:17 | + pushd /opt
2021-12-22 11:57:17 | /opt /home/zuul
2021-12-22 11:57:17 | + tar xzf /tmp/gating_
2021-12-22 11:57:17 | + cat
2021-12-22 11:57:17 | + ps -ef
2021-12-22 11:57:17 | + grep -i python
2021-12-22 11:57:17 | + grep SimpleHTTPServer
2021-12-22 11:57:17 | + awk '{print $2}'
2021-12-22 11:57:17 | + xargs --no-run-if-empty kill -9
2021-12-22 11:57:17 | + pushd /opt/gating_repo
2021-12-22 11:57:17 | /opt/gating_repo /opt /home/zuul
2021-12-22 11:57:17 | + iptables -I INPUT -p tcp --dport 8766 -j ACCEPT
2021-12-22 11:57:17 | + command -v python3
2021-12-22 11:57:17 | /bin/python3
2021-12-22 11:57:17 | + popd
2021-12-22 11:57:17 | + nohup python3 -m http.server 8766
2021-12-22 11:57:17 | /opt /home/zuul
2021-12-22 11:57:17 | + cat
2021-12-22 11:57:17 | + dnf --enablerepo=
2021-12-22 11:57:18 | Gating repository 2.9 MB/s | 3.0 kB 00:00
2021-12-22 11:57:18 | Dependencies resolved.
2021-12-22 11:57:18 | Nothing to do.
2021-12-22 11:57:18 | Complete!
```
It might happen that ps -ef command does not executed properly https:/
Leading to above error.
Changed in tripleo: | |
status: | Triaged → In Progress |
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- quickstart- extras/ +/822783 /opendev. org/openstack/ tripleo- quickstart- extras/ commit/ 5d3f1c2c9a337ae b219a90d282324e 17562f6c66
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 5d3f1c2c9a337ae b219a90d282324e 17562f6c66
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Thu Dec 23 18:09:33 2021 +0530
Use Python3 based http.server command
Current we are looking for python2 based http server and
it fails to kill the running process which leads to port
already in use error.
Since Python3 is used everywhere so let's use that one.
Closes-Bug: #1956297
Signed-off-by: Chandan Kumar (raukadah) <email address hidden> 28b9c83a7669d28 af7ac0cd49f
Change-Id: I878c6adfa110fa