Welcome to the Linux Foundation Forum!

lab 4.3 Failure to Failed to update / restart haproxy.service

Please help, my set-up fails to succeed running the command "sudo bash -x ./aio-centos-update-haproxy-http.sh"

this is the output I get

[aarna@aio1 setup-utils]$ sudo bash -x ./aio-centos-update-haproxy-http.sh

  • '[' 0 -ne 0 ']'
  • echo 'Going to update the keystone_service'
    Going to update the keystone_service

  • pushd /etc/haproxy/conf.d
    ./aio-centos-update-haproxy-http.sh: line 12: pushd: /etc/haproxy/conf.d: No such file or directory

  • cp keystone_service keystone_service.original
    cp: cannot stat ‘keystone_service’: No such file or directory

  • sed -i 's|ssl crt.*||g' keystone_service
    sed: can't read keystone_service: No such file or directory

  • sed -i 's|reqadd X-Forwarded-Proto:\ https|reqadd X-Forwarded-Proto:\ http|g' keystone_service
    sed: can't read keystone_service: No such file or directory

  • popd
    ./aio-centos-update-haproxy-http.sh: line 16: popd: directory stack empty

  • pushd /etc/haproxy
    ./aio-centos-update-haproxy-http.sh: line 19: pushd: /etc/haproxy: No such file or directory

  • echo 'haproxy.cfg modifcation'
    haproxy.cfg modifcation

  • echo 'Moving out the horizon content form the cnf'
    Moving out the horizon content form the cnf

  • sed -n '/^frontend horizon-redirect-front-1/,/^ server aio1_horizon_/p' haproxy.cfg

  • echo 'Delete horizon content'
    Delete horizon content

  • sed '/^frontend horizon-redirect-front-1/,/^ server aio1_horizon_/d' haproxy.cfg

  • echo 'Copy the original haproxy config file'
    Copy the original haproxy config file

  • cp haproxy.cfg haproxy.cfg.original

  • echo 'Rmove the ssl certificate'
    Rmove the ssl certificate

  • sed -i 's|ssl crt.*||g' no_horizon_proxy_config.temp

  • echo 'Updated https to http'
    Updated https to http

  • sed -i 's|reqadd X-Forwarded-Proto:\ https|reqadd X-Forwarded-Proto:\ http|g' no_horizon_proxy_config.temp

  • echo 'Creating the haproxy file'
    Creating the haproxy file

  • cat horizon_proxy_config.temp no_horizon_proxy_config.temp

  • popd
    ./aio-centos-update-haproxy-http.sh: line 46: popd: directory stack empty

  • systemctl restart haproxy
    Failed to restart haproxy.service: Unit not found.

  • exit 0

Comments

  • Hi @fisherkamanga,

    It appears that the directory "/etc/haproxy/conf.d" is not created.

    Could you please confirm that you have successfully deployed OpenStack?. Have you run this command to install OpenStack "#nohup sudo bash -x aio-centos-gcp-deploy.sh 4 &" as per page# 12. If yes, could you please share the output of the below command.

    cd $HOME/onap-custom/setup-utils
    cat nohup.out | grep -i 'Playbook execution success'

  • Hi, I did run the command. And the hostname had changed to "aio1" but it reverted after logging back in.This is the output of "cat nohup.out | grep -i 'Playbook execution success' "

    [aarna@openstack-01 setup-utils]$ cat nohup.out | grep -i 'Playbook execution success'
    EXIT NOTICE [Playbook execution success] **************************************

    • grep -q 'Playbook execution success' bootstrap-aio.out
      EXIT NOTICE [Playbook execution success] **************************************

    • grep -q 'Playbook execution success' bootstrap-aio.out

    • grep -q 'Playbook execution success' setup-hosts.out
    • grep -q 'Playbook execution success' setup-hosts.out
    • grep -q 'Playbook execution success' setup-hosts.out
    • grep -q 'Playbook execution success' setup-hosts.out
      [aarna@openstack-01 setup-utils]$
  • Hi @fisherkamanga,

    Thanks for sharing the logs in Slack channel.
    As discussed, There are failures in Openstack install nohup.out log. since there are failures /etc/haproxy/ directory is not created and hence the script in next step is failing.
    Could you please re-run the Openstack install again?.

    Ref: Page# 12.
    cd $HOME/onap-custom/setup-utils
    git pull -v
    nohup sudo bash -x aio-centos-gcp-deploy.sh 4 &

    [aarna@openstack-01 setup-utils]$ cat nohup.out | grep -i 'Playbook execution failure' EXIT NOTICE [Playbook execution failure] ************************************** EXIT NOTICE [Playbook execution failure] ************************************** EXIT NOTICE [Playbook execution failure] ************************************** EXIT NOTICE [Playbook execution failure] **************************************

    [aarna@openstack-01 setup-utils]$ cat nohup.out | grep -i 'Playbook execution failure' -A 3 -B 3EXIT NOTICE [Playbook execution failure] **************************************===============================================================================+ grep -q 'Playbook execution success' setup-hosts.out+ echo 'Failed to run the ansible playbook setup-hosts.yml'--EXIT NOTICE [Playbook execution failure] **************************************===============================================================================+ grep -q 'Playbook execution success' setup-hosts.out+ echo 'Failed to run the ansible playbook setup-hosts.yml'--EXIT NOTICE [Playbook execution failure] **************************************===============================================================================+ grep -q 'Playbook execution success' setup-hosts.out+ echo 'Failed to run the ansible playbook setup-hosts.yml'--EXIT NOTICE [Playbook execution failure] **************************************===============================================================================+ grep -q 'Playbook execution success' setup-hosts.out+ echo 'Failed to run the ansible playbook setup-hosts.yml'

Categories

Upcoming Training