[Octavia] Amphora build issues

Eric K. Miller emiller at genesishosting.com
Wed Oct 16 04:50:19 UTC 2019


Hi,

 

It seems that every build I have attempted of an amphora fails in some
way.

 

I have tried CentOS 7, Ubuntu Bionic, Xenial, and Trusty.  Note that we
are running Stein.

 

I will concentrate on Ubuntu issues for now.

 

I first create a fresh VM that is used to install the diskimage-create
tool, then run (after sudo'ing to root):

 

apt update

apt -y upgrade

apt-get -y install qemu qemu-system-common uuid-runtime curl kpartx git
jq python-pip debootstrap libguestfs-tools

pip install 'networkx==2.2'

pip install argparse Babel dib-utils PyYAML

 

git clone -b stable/stein https://github.com/openstack/octavia.git

git clone https://git.openstack.org/openstack/diskimage-builder.git

 

cd diskimage-builder

pip install -r requirements.txt

cd ../octavia/diskimage-create/

pip install -r requirements.txt

 

# And finally, I run the diskimage-create script, specifying the image's
OS, so ONE of these, depending on the OS:

./diskimage-create.sh -d bionic

 

# or to use Xenial:

./diskimage-create.sh -d xenial

 

# Note that when selecting Trusty, diskimage-create.sh error's, and so
never finishes successfully.

# Somewhat expected since it is quite old and unsupported.

./diskimage-create.sh -d trusty

 

The amphorae launch when creating a load balancer, but the amphora agent
fails to start, and thus is not responsive on TCP Port 9443.

 

The log from inside the amphora is below.

 

Has anyone successfully created an image?  Am I missing something?


Thanks!


Eric

 

Amphora agent fails to start inside amphora - this is logged when
running the agent from the command line:

 

2019-10-16 03:41:04.835 1119 INFO octavia.common.config [-]
/usr/local/bin/amphora-agent version 5.1.0.dev20

2019-10-16 03:41:04.835 1119 DEBUG octavia.common.config [-] command
line: /usr/local/bin/amphora-agent --config-file
/etc/octavia/amphora-agent.conf setup_logging
/opt/amphora-agent-venv/lib/python3.5/site-packages/octavia/common/confi
g.py:779

2019-10-16 03:41:05.036 1124 INFO
octavia.amphorae.backends.health_daemon.health_daemon [-] Health Manager
Sender starting.

2019-10-16 03:41:05.084 1119 CRITICAL octavia [-] Unhandled error:
FileNotFoundError: [Errno 2] No such file or directory

2019-10-16 03:41:05.084 1119 ERROR octavia Traceback (most recent call
last):

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/usr/local/bin/amphora-agent", line 8, in <module>

2019-10-16 03:41:05.084 1119 ERROR octavia     sys.exit(main())

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/octavia/cmd/agent.p
y", line 89, in main

2019-10-16 03:41:05.084 1119 ERROR octavia
AmphoraAgent(server_instance.app, options).run()

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/app/base.p
y", line 72, in run

2019-10-16 03:41:05.084 1119 ERROR octavia     Arbiter(self).run()

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/arbiter.py
", line 60, in __init__

2019-10-16 03:41:05.084 1119 ERROR octavia     self.setup(app)

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/arbiter.py
", line 95, in setup

2019-10-16 03:41:05.084 1119 ERROR octavia     self.log =
self.cfg.logger_class(app.cfg)

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/glogging.p
y", line 200, in __init__

2019-10-16 03:41:05.084 1119 ERROR octavia     self.setup(cfg)

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/glogging.p
y", line 227, in setup

2019-10-16 03:41:05.084 1119 ERROR octavia     self.error_log, cfg,
self.syslog_fmt, "error"

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/opt/amphora-agent-venv/lib/python3.5/site-packages/gunicorn/glogging.p
y", line 449, in _set_syslog_handler

2019-10-16 03:41:05.084 1119 ERROR octavia     facility=facility,
socktype=socktype)

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/usr/lib/python3.5/logging/handlers.py", line 806, in __init__

2019-10-16 03:41:05.084 1119 ERROR octavia
self._connect_unixsocket(address)

2019-10-16 03:41:05.084 1119 ERROR octavia   File
"/usr/lib/python3.5/logging/handlers.py", line 823, in
_connect_unixsocket

2019-10-16 03:41:05.084 1119 ERROR octavia
self.socket.connect(address)

2019-10-16 03:41:05.084 1119 ERROR octavia FileNotFoundError: [Errno 2]
No such file or directory

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191015/43418cb6/attachment.html>


More information about the openstack-discuss mailing list