Dry-run verification fails on task Stop iscsi.service

Bug #1834409 reported by Cédric Jeanneret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Cédric Jeanneret

Bug Description

Hello,

Running config-download playbook with --check (dry-run mode) fails:

TASK [Stop iscsi.service] ******************************************************
fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'iscsi_service_enabled_result.rc == 0' failed. The error was: error while evaluating conditional (iscsi_service_enabled_result.rc == 0): 'dict object' has no attribute 'rc'\n\nThe error appears to be in '/home/stack/config-download/Controller/host_prep_tasks.yaml': line 592, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n register: iscsi_service_enabled_result\n- name: Stop iscsi.service\n ^ here\n"}

This is the same kind of issue as haproxy+rsyslog configuration.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/667783

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/667783
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=2d4430bd7188a7ae49a8cdb15b1dd546b46c7de5
Submitter: Zuul
Branch: master

commit 2d4430bd7188a7ae49a8cdb15b1dd546b46c7de5
Author: Cédric Jeanneret <email address hidden>
Date: Thu Jun 27 07:21:11 2019 +0200

    Avoid checking rc if we're in dry-run mode

    Currently running `ansible --check' against generated playbook fails
    because the "exec" won't be done, hence the registered resource won't
    get the "rc" entry.

    Change-Id: Ic8001d4fd8c489f10c565d05ae82060fa3fb6ce8
    Closes-Bug: #1834409

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/668023

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/stein)

Reviewed: https://review.opendev.org/668023
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=93ead16ca213db8f3ef18a40c55437e324c50740
Submitter: Zuul
Branch: stable/stein

commit 93ead16ca213db8f3ef18a40c55437e324c50740
Author: Cédric Jeanneret <email address hidden>
Date: Thu Jun 27 07:21:11 2019 +0200

    Avoid checking rc if we're in dry-run mode

    Currently running `ansible --check' against generated playbook fails
    because the "exec" won't be done, hence the registered resource won't
    get the "rc" entry.

    Change-Id: Ic8001d4fd8c489f10c565d05ae82060fa3fb6ce8
    Closes-Bug: #1834409
    (cherry picked from commit 2d4430bd7188a7ae49a8cdb15b1dd546b46c7de5)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.6.0

This issue was fixed in the openstack/tripleo-heat-templates 10.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.1.0

This issue was fixed in the openstack/tripleo-heat-templates 11.1.0 release.

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.