[kolla] horizon image build failed

Michał Nasiadka mnasiadka at gmail.com
Fri Mar 31 14:33:54 UTC 2023


Hi Satish,

git clone https://opendev.org/openstack/kolla -b stable/zed
cd kolla
pip3 install . 

I think we should amend the docs a bit to make it easier - thanks for pointing out.

Michal

> On 31 Mar 2023, at 16:27, Satish Patel <satish.txt at gmail.com> wrote:
> 
> Hi Michał,
> 
> This is my sandbox environment so I did  "pip install kolla" and started building images. How do I check out specific stable/zed or tag releases to build images? 
> 
> ~S
> 
> On Fri, Mar 31, 2023 at 9:59 AM Michał Nasiadka <mnasiadka at gmail.com <mailto:mnasiadka at gmail.com>> wrote:
>> Hi Satish,
>> 
>> Vishal mentioned a bug that I raised in Horizon, but we have been pinning to earlier setuptools in Kolla builds just because of that (and that’s the workaround).
>> Are you using kolla from PyPI or the latest stable/zed checkout from Git? We recommend the latter.
>> 
>> Michal
>> 
>>> On 31 Mar 2023, at 15:53, Satish Patel <satish.txt at gmail.com <mailto:satish.txt at gmail.com>> wrote:
>>> 
>>> Thank Michal,
>>> 
>>> I have posted commands in my original post which have distribution Ubuntu and release zed.  ( $ kolla-build --registry docker-reg:4000 -b ubuntu -t source --tag zed horizon )
>>> 
>>> I can definitely open a new bug but it looks like vishal already on it. Are there any workarounds or interim solutions? I am new to the kolla-image building process so I'm not sure where I should change the setup tool version to move on. 
>>> 
>>> Very curious how the CI-CD pipeline passed this bug? 
>>> 
>>> 
>>> On Fri, Mar 31, 2023 at 1:51 AM Michał Nasiadka <mnasiadka at gmail.com <mailto:mnasiadka at gmail.com>> wrote:
>>>> Hi Satish,
>>>> 
>>>> Have you raised a bug in Launchpad (bugs.launchpad.net/kolla <http://bugs.launchpad.net/kolla>) for this?
>>>> 
>>>> You have also not mentioned what distribution and Kolla release are you using, so please do that in the bug report.
>>>> Looking at the output probably it’s stable/yoga and Debian - being fixed in https://review.opendev.org/c/openstack/kolla/+/873913
>>>> 
>>>> Michal
>>>> 
>>>>> On 31 Mar 2023, at 05:05, Satish Patel <satish.txt at gmail.com <mailto:satish.txt at gmail.com>> wrote:
>>>>> 
>>>>> Folks,
>>>>> 
>>>>> All other images build successfully but when i am trying to build horizon which failed with following error:
>>>>> 
>>>>> $ kolla-build --registry docker-reg:4000 -b ubuntu -t source --tag zed horizon
>>>>> 
>>>>> 
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-Dagre>=0.6.4.0
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic_Dagre-0.6.4.1-py2.py3-none-any.whl (140 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.0/140.0 kB 14.4 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-Dagre-D3>=0.4.17.0
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic_Dagre_D3-0.4.17.0-py2.py3-none-any.whl (357 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 357.4/357.4 kB 13.5 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:Requirement already satisfied: XStatic-Font-Awesome>=4.7.0.0 in /var/lib/kolla/venv/lib/python3.10/site-packages (from vitrage-dashboard==3.6.1.dev2) (4.7.0.0)
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-Graphlib>=2.1.7.0
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic_Graphlib-2.1.7.0-py2.py3-none-any.whl (51 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.5/51.5 kB 114.3 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:Requirement already satisfied: XStatic-jQuery>=1.8.2.1 in /var/lib/kolla/venv/lib/python3.10/site-packages (from vitrage-dashboard==3.6.1.dev2) (1.12.4.1)
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-lodash>=4.16.4.1
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic_lodash-4.16.4.2-py3-none-any.whl (167 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.9/167.9 kB 12.4 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-moment>=2.8.4.1
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic_moment-2.8.4.3-py3-none-any.whl (58 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.0/58.0 kB 66.7 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:Collecting XStatic-Moment-Timezone>=0.5.22.0
>>>>> INFO:kolla.common.utils.horizon:  Downloading XStatic-Moment-Timezone-0.5.22.0.tar.gz (99 kB)
>>>>> INFO:kolla.common.utils.horizon:     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.7/99.7 kB 45.1 MB/s eta 0:00:00
>>>>> INFO:kolla.common.utils.horizon:  Preparing metadata (setup.py): started
>>>>> INFO:kolla.common.utils.horizon:  Preparing metadata (setup.py): finished with status 'error'
>>>>> INFO:kolla.common.utils.horizon:  error: subprocess-exited-with-error
>>>>> INFO:kolla.common.utils.horizon:
>>>>> INFO:kolla.common.utils.horizon:  × python setup.py egg_info did not run successfully.
>>>>> INFO:kolla.common.utils.horizon:  │ exit code: 1
>>>>> INFO:kolla.common.utils.horizon:  ╰─> [6 lines of output]
>>>>> INFO:kolla.common.utils.horizon:      Traceback (most recent call last):
>>>>> INFO:kolla.common.utils.horizon:        File "<string>", line 2, in <module>
>>>>> INFO:kolla.common.utils.horizon:        File "<pip-setuptools-caller>", line 34, in <module>
>>>>> INFO:kolla.common.utils.horizon:        File "/tmp/pip-install-dqag1zef/xstatic-moment-timezone_60eeadc1dfb9492781fe3ca90e3b95c2/setup.py", line 2, in <module>
>>>>> INFO:kolla.common.utils.horizon:          from xstatic.pkg import moment_timezone as xs
>>>>> INFO:kolla.common.utils.horizon:      ImportError: cannot import name 'moment_timezone' from 'xstatic.pkg' (unknown location)
>>>>> INFO:kolla.common.utils.horizon:      [end of output]
>>>>> INFO:kolla.common.utils.horizon:
>>>>> INFO:kolla.common.utils.horizon:  note: This error originates from a subprocess, and is likely not a problem with pip.
>>>>> INFO:kolla.common.utils.horizon:
>>>>> INFO:kolla.common.utils.horizon:error: metadata-generation-failed
>>>>> INFO:kolla.common.utils.horizon:× Encountered error while generating package metadata.
>>>>> INFO:kolla.common.utils.horizon:╰─> See above for output.
>>>>> INFO:kolla.common.utils.horizon:note: This is an issue with the package mentioned above, not pip.
>>>>> INFO:kolla.common.utils.horizon:hint: See above for details.
>>>>> INFO:kolla.common.utils.horizon:
>>>>> INFO:kolla.common.utils.horizon:Removing intermediate container e6cd437ba529
>>>>> ERROR:kolla.common.utils.horizon:Error'd with the following message
>>>>> ERROR:kolla.common.utils.horizon:The command '/bin/sh -c ln -s horizon-source/* horizon     && sed -i /^horizon=/d /requirements/upper-constraints.txt     && SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip --no-cache-dir install --upgrade -c /requirements/upper-constraints.txt /horizon     && mkdir -p /etc/openstack-dashboard     && cp -r /horizon/openstack_dashboard/conf/* /etc/openstack-dashboard/     && cp /horizon/openstack_dashboard/local/local_settings.py.example /etc/openstack-dashboard/local_settings     && cp /horizon/manage.py /var/lib/kolla/venv/bin/manage.py     && if [ "$(ls /plugins)" ]; then            SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip --no-cache-dir install --upgrade -c /requirements/upper-constraints.txt /plugins/*;        fi     && for locale in  /var/lib/kolla/venv/lib/python3.10/site-packages/*/locale; do            (cd ${locale%/*} && /var/lib/kolla/venv/bin/django-admin compilemessages)        done     && chmod 644 /usr/local/bin/kolla_extend_start' returned a non-zero code: 1
>>>>> INFO:kolla.common.utils:=========================
>>>>> INFO:kolla.common.utils:Successfully built images
>>>>> INFO:kolla.common.utils:=========================
>>>>> INFO:kolla.common.utils:base
>>>>> INFO:kolla.common.utils:openstack-base
>>>>> INFO:kolla.common.utils:===========================
>>>>> INFO:kolla.common.utils:Images that failed to build
>>>>> INFO:kolla.common.utils:===========================
>>>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230331/de22ed59/attachment-0001.htm>


More information about the openstack-discuss mailing list