Bug 1672255 - Cannot Install Octavia by adding "-e octavia.yaml" to overcloud_deploy.sh file
Summary: Cannot Install Octavia by adding "-e octavia.yaml" to overcloud_deploy.sh file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Assaf Muller
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-04 11:43 UTC by Bruna Bonguardo
Modified: 2019-09-10 14:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-13 14:58:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bruna Bonguardo 2019-02-04 11:43:23 UTC
Description of problem:

Deployed OSPD version 14 from:
https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/OSPD-Customized-Deployment-virt/
It worked without errors.
After that, I decided to install Octavia by adding:
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/services/octavia.yaml \

to overcloud_deploy.sh and running overcloud_deploy.sh again:

[stack@undercloud-0 ~]$ . stackrc
(undercloud) [stack@undercloud-0 ~]$ ./overcloud_deploy.sh


overcloud_deploy.sh file:

(undercloud) [stack@undercloud-0 ~]$ cat overcloud_deploy.sh
#!/bin/bash

openstack overcloud deploy \
--timeout 100 \
--templates /usr/share/openstack-tripleo-heat-templates \
--stack overcloud \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
-e /home/stack/virt/config_lvm.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /home/stack/virt/inject-trust-anchor.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/nodes_data.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/services/octavia.yaml \
-e ~/containers-prepare-parameter.yaml \
-e /home/stack/virt/extra_templates.yaml \
--log-file overcloud_deployment_60.log


Actual results:

PLAY RECAP *********************************************************************
compute-0                  : ok=128  changed=24   unreachable=0    failed=0   
compute-1                  : ok=128  changed=24   unreachable=0    failed=0   
controller-0               : ok=174  changed=24   unreachable=0    failed=0   
controller-1               : ok=174  changed=24   unreachable=0    failed=0   
controller-2               : ok=174  changed=24   unreachable=0    failed=0   
undercloud                 : ok=7    changed=4    unreachable=0    failed=1   

Monday 04 February 2019  04:42:46 -0500 (0:00:46.112)       0:05:02.900 ******* 
=============================================================================== 

Ansible failed, check log at /var/lib/mistral/overcloud/ansible.log.
Overcloud configuration failed.

When checking if Octavia is installed:
[stack@undercloud-0 ~]$ . stackrc
(undercloud) [stack@undercloud-0 ~]$ ssh heat-admin.24.6  ---> Connect to controller-1
[heat-admin@controller-1 ~]$ sudo -i
[root@controller-1 ~]# docker ps -a | grep octavia   ---> EMPTY

Octavia is NOT installed.

Comment 2 Carlos Goncalves 2019-02-05 09:20:08 UTC
Installing Octavia (or any other new service) to an existing overcloud requires some preparation steps. In this case, what you are missing are the container images in the registry. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1607567#c7 for a step-by-step guide. Do not copy-paste container tags "2018-08-20.1", instead adapt to your deployment (OSP14, latest image tag).


Note You need to log in before you can comment on or make changes to this bug.