Browbeat installation failed in OpenStack NEWTON(RHOSP10) on RHEL7.7

Bug #1999523 reported by SK
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-browbeat
New
Undecided
Unassigned

Bug Description

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

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

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...

Read more...

Revision history for this message
SK (msalmanmasood) wrote :

TASK [osp_version : set numeric version for release] **********************************************************************************************************************************************************************************************************************
task path: /home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml:27
Wednesday 14 December 2022 00:13:56 +0300 (0:00:00.057) 0:00:03.463 ****
fatal: [localhost]: FAILED! => {
    "failed": true,
    "msg": "The task includes an option with an undefined variable. The error was: 'unicode object' has no attribute 'content'\n\nThe error appears to have been in '/home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml': line 27, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: set numeric version for release\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'unicode object' has no attribute 'content'"
}
        to retry, use: --limit @/home/stack/browbeat/ansible/install/browbeat.retry

PLAY RECAP ****************************************************************************************************************************************************************************************************************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=1

Revision history for this message
SK (msalmanmasood) wrote :

So here the issue is when encoded the release with base64

TASK [osp_version : set numeric version for release] **********************************************************************************************************************************************************************************************************************
task path: /home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml:27
Wednesday 14 December 2022 00:13:56 +0300 (0:00:00.057) 0:00:03.463 ****
fatal: [localhost]: FAILED! => {
    "failed": true,
    "msg": "The task includes an option with an undefined variable. The error was: 'unicode object' has no attribute 'content'\n\nThe error appears to have been in '/home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml': line 27, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: set numeric version for release\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'unicode object' has no attribute 'content'"
}
        to retry, use: --limit @/home/stack/browbeat/ansible/install/browbeat.retry

PLAY RECAP ****************************************************************************************************************************************************************************************************************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=1

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

No issue with base64 encoding and decoding!

Removed the dict part from the code after version and it worked

Will share the code tomorrow here for info

On Wed, 14 Dec 2022 at 01:10 SK <email address hidden> wrote:

> TASK [osp_version : set numeric version for release]
> **********************************************************************************************************************************************************************************************************************
> task path:
> /home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml:27
> Wednesday 14 December 2022 00:13:56 +0300 (0:00:00.057) 0:00:03.463
> ****
> fatal: [localhost]: FAILED! => {
> "failed": true,
> "msg": "The task includes an option with an undefined variable. The
> error was: 'unicode object' has no attribute 'content'\n\nThe error appears
> to have been in
> '/home/stack/browbeat/ansible/install/roles/osp_version/tasks/main.yml':
> line 27, column 3, but may\nbe elsewhere in the file depending on the exact
> syntax problem.\n\nThe offending line appears to be:\n\n\n- name: set
> numeric version for release\n ^ here\n\nexception type: <class
> 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'unicode object' has
> no attribute 'content'"
> }
> to retry, use: --limit
> @/home/stack/browbeat/ansible/install/browbeat.retry
>
> PLAY RECAP
> ****************************************************************************************************************************************************************************************************************************************************************
> localhost : ok=4 changed=1 unreachable=0 failed=1
>
> --
> 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>

Revision history for this message
SK (msalmanmasood) wrote :

Ok so the code changed as following to carry on the progress:

~~~
index 2878757..7c691c7 100644
--- a/ansible/install/roles/osp_version/tasks/main.yml
+++ b/ansible/install/roles/osp_version/tasks/main.yml
@@ -30,7 +30,7 @@

 - name: set rhosp version (downstream)
   set_fact:
- rhosp_version: "{{ version.split()[5] }}"
+ rhosp_version: "{{ version }}"

 - name: set rhosp major version (downstream)
   set_fact:

~~~

however, then it stuck here:

~~
TASK [rally : install rally browbeat code] ********************************************************************************************************************************************************************************************************************************
task path: /home/stack/browbeat/ansible/install/roles/rally/tasks/main.yml:68
Thursday 15 December 2022 18:21:47 +0300 (0:00:02.485) 0:02:57.229 *****
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 appears 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 approach.\n- name: install rally browbeat code\n ^ here\n"
}
        to retry, use: --limit @/home/stack/browbeat/ansible/install/browbeat.retry

PLAY RECAP ****************************************************************************************************************************************************************************************************************************************************************
localhost : ok=44 changed=12 unreachable=0 failed=1
~~~

Revision history for this message
SK (msalmanmasood) wrote :

One question; browbeat is no more works for RHOSP NEWTON?

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.