Comment 5 for bug 1999523

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