Octavia deployment failing with undefined variable

Solution Verified - Updated -

Issue

During the deployment of Octavia, the Ansible task octavia-controller-config : include_tasks fails with the following error:

TASK [octavia-controller-config : include_tasks] *******************************"
, "fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'private_key_content|length > 0' failed. The error was: error while evaluating conditional (
private_key_content|length > 0): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'private_key_content'\
\
The error appears to be in '/usr/share/openstack-tripleo-common/playbooks/roles/octavia-controller-config/tasks/main.yml': line 8, column 5, but may\
be elsewhere in the file depending on the exact syntax problem.\
\
The offending line appears to be:\
\
      node_hostname: \\"{{ hostname.stdout }}\\"\
  - include_tasks: certificate.yml\
    ^ here\

Environment

Red Hat OpenStack Platform 15

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content