Comment 1 for bug 1999523

Revision history for this message
SK (msalmanmasood) wrote : Re: [Bug 1999523] [NEW] Browbeat installation failed in OpenStack NEWTON(RHOSP10) on RHEL7.7

So issue hit when we set the rhosp-release file that is not available on
Newton.. so removed it and then hitting different issue at the file check
for /etc/rhosp-release

Any idea?

On Tue, 13 Dec 2022 at 16:55 SK <email address hidden> wrote:

> Public bug reported:
>
> TASK [rally : Setup rally database]
> ***************************************************************************************************************************************************************************************************************************************
> task path:
> /home/stack/browbeat/ansible/install/roles/rally/tasks/main.yml:61
> Tuesday 13 December 2022 16:42:15 +0300 (0:00:01.670) 0:02:51.874
> ******
> Using module file
> /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
> <localhost> ESTABLISH SSH CONNECTION FOR USER: stack
> <localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s
> -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=stack -o ConnectT
> imeout=30 -o ControlPath=/home/stack/.ansible/cp/a1803a4e6c localhost
> '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
> <localhost> (0, '/home/stack\n', '')
> <localhost> ESTABLISH SSH CONNECTION FOR USER: stack
> <localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s
> -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=stack -o ConnectT
> imeout=30 -o ControlPath=/home/stack/.ansible/cp/a1803a4e6c localhost
> '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299 `" &&
> echo ansible-tmp-1670938935.08-205385638144299="` echo /home/stack/.ansible/
> tmp/ansible-tmp-1670938935.08-205385638144299 `" ) && sleep 0'"'"''
> <localhost> (0,
> 'ansible-tmp-1670938935.08-205385638144299=/home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299\n',
> '')
> <localhost> PUT /tmp/tmptBOXNZ TO
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/command.py
> <localhost> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o
> ControlPersist=60s -o StrictHostKeyChecking=no -o
> KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=stack -o Co
> nnectTimeout=30 -o ControlPath=/home/stack/.ansible/cp/a1803a4e6c
> '[localhost]'
> <localhost> (0, 'sftp> put /tmp/tmptBOXNZ
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/command.py\n',
> '')
> <localhost> ESTABLISH SSH CONNECTION FOR USER: stack
> <localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s
> -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=stack -o ConnectT
> imeout=30 -o ControlPath=/home/stack/.ansible/cp/a1803a4e6c localhost
> '/bin/sh -c '"'"'chmod u+x
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/command.py
> && sleep 0'"'"''
> <localhost> (0, '', '')
> <localhost> ESTABLISH SSH CONNECTION FOR USER: stack
> <localhost> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s
> -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o User=stack -o ConnectT
> imeout=30 -o ControlPath=/home/stack/.ansible/cp/a1803a4e6c -tt localhost
> '/bin/sh -c '"'"'/usr/bin/python
> /home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/command.py;
> rm -rf
> "/home/stack/.ansible/tmp/ansible-tmp-1670938935.08-205385638144299/" > /d
> ev/null 2>&1 && sleep 0'"'"''
> <localhost> (0, '\r\n{"changed": true, "end": "2022-12-13
> 16:42:17.535443", "stdout": "Recreating database:
> sqlite:////tmp/stack.sqlite\\nDatabase deleted successfully\\nDatabase
> created successfully", "cmd": ".
> /home/stack/browbeat/.rally-venv/bin/activate; rally db
> recreate", "rc": 0, "start": "2022-12-13 16:42:16.009725", "stderr": "",
> "delta": "0:00:01.525718", "invocation": {"module_args": {"warn": true,
> "executable": null, "_uses_shell": true, "_raw_params": ".
> /home/stack/browbeat/.rally-venv/bin/activate; rally db recrea
> te", "removes": null, "creates": null, "chdir": null, "stdin":
> null}}}\r\n', 'Shared connection to localhost closed.\r\n')
> changed: [localhost] => {
> "changed": true,
> "cmd": ". /home/stack/browbeat/.rally-venv/bin/activate; rally db
> recreate",
> "delta": "0:00:01.525718",
> "end": "2022-12-13 16:42:17.535443",
> "failed": false,
> "invocation": {
> "module_args": {
> "_raw_params": ".
> /home/stack/browbeat/.rally-venv/bin/activate; rally db recreate",
> "_uses_shell": true,
> "chdir": null,
> "creates": null,
> "executable": null,
> "removes": null,
> "stdin": null,
> "warn": true
> }
> },
> "rc": 0,
> "start": "2022-12-13 16:42:16.009725",
> "stderr": "",
> "stderr_lines": [],
> "stdout": "Recreating database: sqlite:////tmp/stack.sqlite\nDatabase
> deleted successfully\nDatabase created successfully",
> "stdout_lines": [
> "Recreating database: sqlite:////tmp/stack.sqlite",
> "Database deleted successfully",
> "Database created successfully"
> ]
> }
>
> TASK [rally : install rally browbeat code]
> ********************************************************************************************************************************************************************************************************************************
> task path:
> /home/stack/browbeat/ansible/install/roles/rally/tasks/main.yml:68
> Tuesday 13 December 2022 16:42:17 +0300 (0:00:02.530) 0:02:54.405
> ******
> fatal: [localhost]: FAILED! => {
> "failed": true,
> "msg": "The conditional check 'rhosp_version is version('13.0', '>=')'
> failed. The error was: template error while templating string: no test
> named 'version'. String: {% if rhosp_version is version('13.0', '>=') %}
> True {% else %} False {% endif %}\n\nThe error a
> ppears to have been in
> '/home/stack/browbeat/ansible/install/roles/rally/tasks/main.yml': line 68,
> column 3, but may\nbe elsewhere in the file depending on the exact syntax
> problem.\n\nThe offending line appears to be:\n\n# so we came up with this
> python package appr
> oach.\n- name: install rally browbeat code\n ^ here\n"
> }
> to retry, use: --limit
> @/home/stack/browbeat/ansible/install/browbeat.retry
>
> PLAY RECAP
> ****************************************************************************************************************************************************************************************************************************************************************
> localhost : ok=42 changed=12 unreachable=0 failed=1
>
> ** Affects: openstack-browbeat
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1999523
>
> Title:
> Browbeat installation failed in OpenStack NEWTON(RHOSP10) on RHEL7.7
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-browbeat/+bug/1999523/+subscriptions
>
> --

Kind Regards,

M. Salman Masood Khan
+966 593 010 978
+92 321 517 0430
<https://www.linkedin.com/in/msalmanmasood>