tripleo-quickstart does not work

Bug #1810966 reported by Sudeep Batra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Expired
Undecided
Unassigned

Bug Description

I installed Centos 7 on Baremetal node and ran the quickstart steps outlined in the link below :

https://docs.openstack.org/tripleo-quickstart/latest/basic-usage.html#tripleo-quickstart

executed the below steps :
   72 export VIRTHOST=138.85.196.40
   73 echo $VIRTHOST
   74 bash quickstart.sh --tags all $VIRTHOST

It fails with below error :
TASK [did the deployment pass or fail?] ******************************************************************************************************************
task path: /home/user/.quickstart/playbooks/quickstart-extras-overcloud.yml:44
Tuesday 08 January 2019 01:49:42 -0500 (0:00:00.084) 1:37:21.430 *******
fatal: [localhost]: FAILED! => {
    "failed_when_result": true,
    "overcloud_deploy_result": "failed"

Revision history for this message
Alex Schultz (alex-schultz) wrote :

Look at the overcloud_deploy.log to see the cause of the failure.

Changed in tripleo:
status: New → Incomplete
Revision history for this message
Sudeep Batra (sudeep.batra) wrote :

Failure 1:
Ok I cleanly installed again Centos 7 on Baremetal and restarted the installation.

Followed the steps in below :
https://docs.openstack.org/tripleo-quickstart/latest/basic-usage.html#tripleo-quickstart

Create a superuser and login to the superuser user

su - user
    1 export VIRTHOST=127.0.0.2
    2 echo $VIRTHOST
    3 bash quickstart.sh --install-deps
    4 curl -O https://raw.githubusercontent.com/openstack/tripleo-quickstart/master/quickstart.sh
    5 screen
    6 bash quickstart.sh --install-deps
Error :
/home/user/.quickstart/playbooks/teardown-provision.yml
SSH Error: data could not be sent to remote host "127.0.0.2". Make sure this host can be reached over ssh
Resolution :

 7 ssh-keygen
    8 echo $VIRTHOST
 127.0.0.2
    9 ssh-copy-id root@$VIRTHOST
   10 rm -rf _quickstart.log
   11 rm -rf ./.quickstart/

Restarted the installation again:
 12 bash quickstart.sh --tags all $VIRTHOST

Got Error again :
TASK [did the deployment pass or fail?] **********************************************************************
task path: /home/user/.quickstart/playbooks/quickstart-extras-overcloud.yml
fatal: [localhost]: FAILED! =>
"failed_when_result": true,
"overcloud_deploy_result": "failed"

the _quickstart log attached. Now trying to find the overcloud_deploy.log and will share shortly.

Revision history for this message
Sudeep Batra (sudeep.batra) wrote :

Went into the undercloud :
$ ssh -F ~/.quickstart/ssh.config.ansible undercloud

$ cat overcloud_deploy.log (attached for reference)

Found below Error : [ERROR] Error running /var/lib/heat-config/heaOvercloud configuration failed.

2019-01-08 18:09:15 | PLAY RECAP *********************************************************************
2019-01-08 18:09:15 | overcloud-controller-0 : ok=64 changed=22 unreachable=0 failed=1
2019-01-08 18:09:15 | overcloud-novacompute-0 : ok=5 changed=2 unreachable=0 failed=0
2019-01-08 18:09:15 | undercloud : ok=2 changed=0 unreachable=0 failed=0

2019-01-08 18:09:15 | Ansible failed, check log at /var/lib/mistral/8ed13b10-bcd9-4922-bd08-210b69ef673d/ansible.log.

$ sudo cat /var/lib/mistral/8ed13b10-bcd9-4922-bd08-210b69ef673d/ansible.log

                "TASK [Ensure system is NTP time synced] ****************************************",
                "fatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": [\"ntpdate\", \"-u\", \"pool.ntp.org\"], \"delta\": \"0:00:08.773511\", \"end\": \"2019-01-08 18:09:12.820257\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2019-01-08 18:09:04.046746\", \"stderr\": \" 8 Jan 18:09:12 ntpdate[17982]: no server suitable for synchronization found\", \"stderr_lines\": [\" 8 Jan 18:09:12 ntpdate[17982]: no server suitable for synchronization found\"], \"stdout\": \"\", \"stdout_lines\": []}",
                "PLAY RECAP *********************************************************************",
                "localhost : ok=27 changed=19 unreachable=0 failed=1 ",
Error running /var/lib/heat-config/heat-config-ansible/167864a6-973b-4463-8fb9-150badd82d22_playbook.yaml. [2]",
 "status_code": "2"
2019-01-08 18:09:14,117 p=34745 u=mistral | NO MORE HOSTS LEFT *************************************************************
PLAY RECAP *********************************************************************
2019-01-08 18:09:14,118 p=34745 u=mistral | overcloud-controller-0 : ok=64 changed=22 unreachable=0 failed=1
2019-01-08 18:09:14,118 p=34745 u=mistral | overcloud-novacompute-0 : ok=5 changed=2 unreachable=0 failed=0
2019-01-08 18:09:14,118 p=34745 u=mistral | undercloud : ok=2 changed=0 unreachable=0 failed=0

so Probably one solution is either manually configure the NTP (but then subsequent scripts will fail anyway) and quickstart wont be seamless.
the other solution is to use the Rocky release since I see there is a fix for this issues in Rocky : https://bugs.launchpad.net/tripleo/+bug/1777140 since the present default one took Queens.

Next need to find how to specify Rocky release in quickstart script.

Revision history for this message
Sudeep Batra (sudeep.batra) wrote :

Used the below steps :

export RELEASE=rocky
export VIRTHOST=127.0.0.2
time bash quickstart.sh \
     --teardown all \
  --tags all \
  --release $RELEASE \
  --nodes /home/user/tripleo-quickstart/config/nodes/1ctlr_1comp.yml \
  -e undercloud_undercloud_ntp_servers=147.117.251.28 \
  --clean \
  $VIRTHOST

Revision history for this message
Sudeep Batra (sudeep.batra) wrote :

export OPT_TEARDOWN="all"

./tripleo-quickstart/quickstart.sh --clean --release master --teardown all --tags all -e undercloud_undercloud_ntp_servers=147.117.251.28 -e undercloud_clean_nodes=false -e @/home/toor/deploy-config.yaml 127.0.0.2

ERROR :
Went to status ERROR due to "Message: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 604c1477-33a5-4a92-9d48-47afc9b75394., Code: 500"

overcloud_Deploy.log attached.

Revision history for this message
Sudeep Batra (sudeep.batra) wrote :

the same command with rocky ran well and I had success.

./tripleo-quickstart/quickstart.sh --clean --release rocky --teardown all --tags all -e undercloud_undercloud_ntp_servers=147.117.251.28 -e undercloud_clean_nodes=false -e @/home/toor/deploy-config.yaml 127.0.0.2

2019-01-16 01:22:25 | Ansible passed.
2019-01-16 01:22:25 | Overcloud configuration completed.
2019-01-16 01:22:25 | Overcloud Endpoint: https://10.0.0.5:13000
2019-01-16 01:22:25 | Overcloud Horizon Dashboard URL: https://10.0.0.5:443/dashboard
2019-01-16 01:22:25 | Overcloud rc file: /home/stack/overcloudrc
2019-01-16 01:22:25 | Overcloud Deployed

But I have one problem, unable to access the TripleO UI : keep getting error :
Unauthorized Connection to Keystone API could not be established

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.