[octavia] Error while creating amphora

Michael Johnson johnsomor at gmail.com
Thu May 2 14:58:34 UTC 2019


Volodymyr,

It looks like you have enabled "user_data_config_drive" in the
octavia.conf file.  Is there a reason you need this? If not, please
set it to False and it will resolve your issue.

It appears we have a python3 bug in the "user_data_config_drive"
capability.  It is not generally used and appears to be missing test
coverage.

I have opened a story (bug) on your behalf here:
https://storyboard.openstack.org/#!/story/2005553

Michael

On Thu, May 2, 2019 at 4:29 AM Volodymyr Litovka <doka.ua at gmx.com> wrote:
>
> Dear colleagues,
>
> I'm using Openstack Rocky and trying to launch Octavia 4.0.0. After all installation steps I've got an error during 'openstack loadbalancer create' with the following log:
>
> DEBUG octavia.controller.worker.tasks.compute_tasks [-] Compute create execute for amphora with id d037721f-2cf9-492e-99cb-0be5874da0f6 execute /opt/openstack/lib/python3.6/site-packages/octavia/controller/worker/tasks/compute_tasks.py:63
> ERROR octavia.controller.worker.tasks.compute_tasks [-] Compute create for amphora id: d037721f-2cf9-492e-99cb-0be5874da0f6 failed: TypeError: can't concat str to bytes
> ERROR octavia.controller.worker.tasks.compute_tasks Traceback (most recent call last):
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/octavia/controller/worker/tasks/compute_tasks.py", line 94, in execute
> ERROR octavia.controller.worker.tasks.compute_tasks     config_drive_files)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/octavia/common/jinja/user_data_jinja_cfg.py", line 38, in build_user_data_config
> ERROR octavia.controller.worker.tasks.compute_tasks     return self.agent_template.render(user_data=user_data)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
> ERROR octavia.controller.worker.tasks.compute_tasks     return original_render(self, *args, **kwargs)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
> ERROR octavia.controller.worker.tasks.compute_tasks     return self.environment.handle_exception(exc_info, True)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
> ERROR octavia.controller.worker.tasks.compute_tasks     reraise(exc_type, exc_value, tb)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
> ERROR octavia.controller.worker.tasks.compute_tasks     raise value.with_traceback(tb)
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/octavia/common/jinja/templates/user_data_config_drive.template", line 29, in top-level template code
> ERROR octavia.controller.worker.tasks.compute_tasks     {{ value|indent(8) }}
> ERROR octavia.controller.worker.tasks.compute_tasks   File "/opt/openstack/lib/python3.6/site-packages/jinja2/filters.py", line 557, in do_indent
> ERROR octavia.controller.worker.tasks.compute_tasks     s += u'\n'  # this quirk is necessary for splitlines method
> ERROR octavia.controller.worker.tasks.compute_tasks TypeError: can't concat str to bytes
> ERROR octavia.controller.worker.tasks.compute_tasks
> WARNING octavia.controller.worker.controller_worker [-] Task 'STANDALONE-octavia-create-amp-for-lb-subflow-octavia-cert-compute-create' (06134192-def9-420c-9feb-0d08a068f3b2) transitioned into state 'FAILURE' from state 'RUNNING'
>
> Any advises where is the problem?
>
> My environment:
> - Openstack Rocky
> - Ubuntu 18.04
> - Octavia installed in virtualenv using pip install:
> # pip list |grep octavia
> octavia                4.0.0
> octavia-lib            1.1.1
> python-octaviaclient   1.8.0
>
> Thank you.
>
> --
> Volodymyr Litovka
>   "Vision without Execution is Hallucination." -- Thomas Edison
>
> --
> Volodymyr Litovka
>   "Vision without Execution is Hallucination." -- Thomas Edison



More information about the openstack-discuss mailing list