TASK [overcloud-prep-images : Introspect overcloud nodes - legacy] failing on c8 train

Bug #1935948 reported by Bhagyashri Shewale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Sandeep Yadav

Bug Description

2021-07-13 08:30:29.328302 | primary | TASK [overcloud-prep-images : Introspect overcloud nodes - legacy] *************
2021-07-13 08:30:29.328315 | primary | Tuesday 13 July 2021 08:30:29 +0000 (0:00:01.849) 1:12:09.422 **********
2021-07-13 08:30:29.691882 | primary | fatal: [undercloud]: FAILED! => {
2021-07-13 08:30:29.692367 | primary | "changed": true,
2021-07-13 08:30:29.693384 | primary | "cmd": "set -o pipefail && /home/zuul/overcloud-introspect.sh 2>&1 | awk '{ print strftime(\"%Y-%m-%d %H:%M:%S |\"), $0; fflush(); }' > /home/zuul/overcloud_introspect.log changed_when: true\n",
2021-07-13 08:30:29.693875 | primary | "delta": "0:00:00.013302",
2021-07-13 08:30:29.693903 | primary | "end": "2021-07-13 08:30:29.669912",
2021-07-13 08:30:29.694237 | primary | "rc": 2,
2021-07-13 08:30:29.694257 | primary | "start": "2021-07-13 08:30:29.656610"
2021-07-13 08:30:29.694294 | primary | }
2021-07-13 08:30:29.694314 | primary |
2021-07-13 08:30:29.694331 | primary | STDERR:
2021-07-13 08:30:29.694348 | primary |
2021-07-13 08:30:29.694365 | primary | awk: fatal: cannot open file `changed_when:' for reading (No such file or directory)

Affected jobs:

[1]: periodic-tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-train
[2]: periodic-tripleo-ci-centos-8-ovb-1ctlr_1comp-featureset002-train
[3]: periodic-tripleo-ci-centos-8-ovb-1ctlr_2comp-featureset020-train
[4]: periodic-tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset035-train

Looks like the issue started due to this change:
https://review.opendev.org/q/topic:%22utilize-tripleo-operator%22+(status:open%20OR%20status:merged)

links:

[1]: https://logserver.rdoproject.org/openstack-periodic-integration-stable4/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-8-ovb-1ctlr_1comp-featureset002-train/3feab4a/job-output.txt
[2]: https://logserver.rdoproject.org/openstack-periodic-integration-stable4/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-8-ovb-1ctlr_2comp-featureset020-train/bafb121/logs/undercloud/home/zuul/overcloud_introspect.log.txt.gz this file is blank

Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

I see the issue:

`changed_when: true` got over indented under the shell module

https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/800215/2/roles/overcloud-prep-images/tasks/overcloud-prep-images.yml#112

~~~
      shell: >
        set -o pipefail &&
        {{ working_dir }}/overcloud-introspect.sh 2>&1 {{ timestamper_cmd }} >
        {{ overcloud_introspect_script_log }}
        changed_when: true
~~~

We never wanted to change anything for < ussuri.

Changed in tripleo:
assignee: nobody → Sandeep Yadav (sandeepyadav93)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

Posted[1] to utilize operator for train and fix indentation in the legacy script.

[1] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/800592

Changed in tripleo:
milestone: none → xena-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/800592
Committed: https://opendev.org/openstack/tripleo-quickstart-extras/commit/b522292a292d1907c826d935bce4d837057d81f4
Submitter: "Zuul (22348)"
Branch: master

commit b522292a292d1907c826d935bce4d837057d81f4
Author: Sandeep Yadav <email address hidden>
Date: Tue Jul 13 11:34:52 2021 +0530

    Utilize t-o-a role for import/introspect in train

    We are already using tripleo operator role for import /introspect for
    ussuri+ since patches[1] and [2].

    With this patch we are starting to use operator role in train branch
    as well.

    Also fixes the legacy task for introspection, Issue introduced in [3].
    `changed_when: true` got over indented under the shell module.

    [1] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/726847
    [2] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/800215
    [3] https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/800215

    Closes-Bug: #1935948

    Change-Id: I153c56461d8def736d056e01e17283322a0d621e

Changed in tripleo:
status: In Progress → Fix Released
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.