<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="SFNS Display">Hi colleagues,<br>
<br>
I have an issue with launching 'amphora' image. I'm using
Octavia's diskimage-create.sh tool on Ubuntu 16.04.3, which gives
the following start:<br>
<br>
</font><tt>> Building elements: base base vm ubuntu
haproxy-octavia-ubuntu rebind-sshd amphora-agent-ubuntu
keepalived-octavia-ubuntu pip-cache certs-ramfs</tt><font
face="SFNS Display"><br>
<br>
(note missing no-resolvconf for debug purposes) and then upload
image to Glance using the following command:<br>
<br>
</font><tt>openstack image create \</tt><tt><br>
</tt><tt> --container-format bare --disk-format qcow2 --public \</tt><tt><br>
</tt><tt> --property hw_scsi_model=virtio-scsi --property
hw_disk_bus=scsi --property hw_cdrom_bus=scsi \</tt><tt><br>
</tt><tt> --property hw_qemu_guest_agent=yes \</tt><tt><br>
</tt><tt> --property img_hide_hypervisor_id=true \</tt><tt><br>
</tt><tt> --tag amphora \</tt><tt><br>
</tt><tt> --file amphora-x64-haproxy.qcow2 amphora</tt><tt><br>
</tt><font face="SFNS Display"><br>
but no Octavia's stuff start upon launch due to absence of
amphora_agent.conf:<br>
<br>
</font><tt>Oct 20 13:45:57 lbt-n1 systemd[1]: Starting Creates an
encrypted ramfs for Octavia certs...</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 sh[1779]: awk: fatal: <b>cannot
open file `/etc/octavia/amphora-agent.conf'</b> for reading (No
such file or directory)</tt><tt><br>
</tt><tt>[ ... ]</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: Traceback (most
recent call last):</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: File
"/usr/local/bin/amphora-agent", line 11, in <module></tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:
sys.exit(main())</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: File
"/usr/local/lib/python2.7/dist-packages/octavia/cmd/agent.py",
line 56, in main</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:
service.prepare_service(sys.argv)</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: File
"/usr/local/lib/python2.7/dist-packages/octavia/common/service.py",
line 24, in prepare_service</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:
config.init(argv[1:])</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: File
"/usr/local/lib/python2.7/dist-packages/octavia/common/config.py",
line 576, in init</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: **kwargs)</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: File
"/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line
2469, in __call__</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: raise
ConfigFilesNotFoundError(self._namespace._files_not_found)</tt><tt><br>
</tt><tt>Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:
oslo_config.cfg.ConfigFilesNotFoundError: <b>Failed to find some
config files: /etc/octavia/amphora-agent.conf</b></tt><tt><br>
</tt><font face="SFNS Display"><br>
I inspected /usr/local/share/octavia/elements and again found
nothing about amphora-agent.conf, as well as nothing in git's tree
(except
elements/amphora-agent/init-scripts/upstart/amphora-agent.conf
which isn't config but upstart script)<br>
<br>
So the question is - where to find amphora-agent.conf in order to
launch amphora-agent on agent host?<br>
<br>
Thank you.<br>
<br>
</font>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison
</pre>
</body>
</html>