Could not build octavia image using local source code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am trying to build octavia images using local source code downloaded from and patched.
When building from the Internet it works, when using kolla_build.conf with local directory it does not and I get some python error codes regarding the build.
Here are the steps I took :
1- I am using podman as container engine
2- I've created a local registry
3- I downloded octavia's source code from github version 2023.2
4- I've created a python 3.9 venv, and I did install podman in it and kolla 17.3.0
5- I've applied the patch
6- I created koll_build.conf like this
[DEFAULT]
base = rocky
namespace = kolla
push = true
registry = 192.168.2.35:4000
[octavia-base]
type = local
location = /root/work/octavia
7- I started podman.socket
8- I started the build like this
(2023.2) [root@r9localrepo work]# kolla-build --config-file ./kolla_build.conf --tag 2023.2-1 --engine podman -d --docker-
Results :
ia && mkdir -p /etc/octavia && cp -r /octavia/etc/* /etc/octavia/ && touch /usr/local/
l/bin/kolla_
ERROR:kolla.
ERROR:kolla.
ERROR:kolla.
ERROR:kolla.
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
[pbr] Generating ChangeLog
/var/
r standards-based tools.
/var/
-based tools.
error: Multiple top-level packages discovered in a flat-layout: ['etc', 'httpd', 'specs', 'devstack', 'elements', 'playbooks', 'releasenotes'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR:kolla.
Could you help me?
Regards.