[Openstack] launch Amphora (Octavia) image

Volodymyr Litovka doka.ua at gmx.com
Fri Oct 20 14:47:12 UTC 2017


Hi colleagues,

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:

 > Building elements: base  base vm ubuntu haproxy-octavia-ubuntu 
rebind-sshd amphora-agent-ubuntu keepalived-octavia-ubuntu pip-cache 
certs-ramfs

(note missing no-resolvconf for debug purposes) and then upload image to 
Glance using the following command:

openstack image create \
   --container-format bare --disk-format qcow2 --public \
   --property hw_scsi_model=virtio-scsi --property hw_disk_bus=scsi 
--property hw_cdrom_bus=scsi \
   --property hw_qemu_guest_agent=yes \
   --property img_hide_hypervisor_id=true \
   --tag amphora \
   --file amphora-x64-haproxy.qcow2 amphora

but no Octavia's stuff start upon launch due to absence of 
amphora_agent.conf:

Oct 20 13:45:57 lbt-n1 systemd[1]: Starting Creates an encrypted ramfs 
for Octavia certs...
Oct 20 13:45:57 lbt-n1 sh[1779]: awk: fatal: *cannot open file 
`/etc/octavia/amphora-agent.conf'* for reading (No such file or directory)
[ ... ]
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: Traceback (most recent call 
last):
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:   File 
"/usr/local/bin/amphora-agent", line 11, in <module>
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: sys.exit(main())
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
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: 
service.prepare_service(sys.argv)
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
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: config.init(argv[1:])
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
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:     **kwargs)
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__
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:     raise 
ConfigFilesNotFoundError(self._namespace._files_not_found)
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]: 
oslo_config.cfg.ConfigFilesNotFoundError: *Failed to find some config 
files: /etc/octavia/amphora-agent.conf*

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)

So the question is - where to find amphora-agent.conf in order to launch 
amphora-agent on agent host?

Thank you.

-- 
Volodymyr Litovka
   "Vision without Execution is Hallucination." -- Thomas Edison

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20171020/0fa453f7/attachment.html>


More information about the Openstack mailing list