Could not build octavia image using local source code

Bug #2057489 reported by Wodel Youchi
6
This bug affects 1 person
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-healthchecks --logs-dir /root/work/logs --openstack-release 2023.2 octavia

Results :

ia && mkdir -p /etc/octavia && cp -r /octavia/etc/* /etc/octavia/ && touch /usr/local/bin/kolla_octavia_extend_start && chmod 644 /usr/local/bin/kolla_extend_start /usr/loca
l/bin/kolla_octavia_extend_start
ERROR:kolla.common.utils.octavia-base:Processing /octavia
ERROR:kolla.common.utils.octavia-base:Preparing metadata (setup.py): started
ERROR:kolla.common.utils.octavia-base:Preparing metadata (setup.py): finished with status 'error'
ERROR:kolla.common.utils.octavia-base:error: subprocess-exited-with-error

 × python setup.py egg_info did not run successfully.
 │ exit code: 1
 ╰─> [19 lines of output]
     [pbr] Generating ChangeLog
     /var/lib/kolla/venv/lib64/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and othe
r standards-based tools.
       warnings.warn(
     /var/lib/kolla/venv/lib64/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards
-based tools.
       warnings.warn(
     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.common.utils.octavia-base:error: metadata-generation-failed

Could you help me?

Regards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.