settingsLogin | Registersettings

[Openstack] launch Amphora (Octavia) image

0 votes

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 hwscsimodel=virtio-scsi --property hwdiskbus=scsi
--property hwcdrombus=scsi \
  --property hwqemuguestagent=yes \
  --property img
hidehypervisorid=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
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.prepareservice(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/osloconfig/cfg.py", line 2469,
in call
Oct 20 13:45:57 lbt-n1 amphora-agent[1683]:     raise
ConfigFilesNotFoundError(self.
namespace.filesnotfound)
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


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
asked Oct 20, 2017 in openstack by Volodymyr_Litovka (1,100 points)   1 6 8
...