Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1625566

Summary: [OSP14] Ansible "dry-run" fails with remote module (command) does not support check mode
Product: Red Hat OpenStack Reporter: Gurenko Alex <agurenko>
Component: openstack-tripleo-commonAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: Arik Chernetsky <achernet>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: ahrechan, jcoufal, mburns, slinaber
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-9.3.1-0.20180920204842.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:51:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gurenko Alex 2018-09-05 08:51:06 UTC
Description of problem: When trying to perform a "dry-run" on config download playbooks, check fails on the task "Remove deployed file for NetworkDeployment when previous deployment failed" because it relies on previous task's rc code and previous task "Check previous deployment rc for NetworkDeployment" reports "remote module (command) does not support check mode"


Version-Release number of selected component (if applicable): 2018-08-23.3


How reproducible: 100%


Steps to Reproduce:
1. Install undercloud
2. Create stack with openstack overcloud deploy --stack-only
3. Generate config download files with openstack overcloud config download --config-dir cd-overcloud --name overcloud
4. Generate ansible inventory
5. Run ansible with --check option

Actual results: check run fails at "Remove deployed file for NetworkDeployment when previous deployment failed"


Expected results: Check run completes successfully


Additional info:

Comment 2 Artem Hrechanychenko 2018-10-01 14:11:25 UTC
VERIFIED

cat overcloud_deploy.sh
openstack overcloud deploy \
  --timeout 100 \
  --templates /usr/share/openstack-tripleo-heat-templates \
  --libvirt-type kvm \
  --stack overcloud \
  --stack-only \
  -r /home/stack/composable_roles/roles/roles_data.yaml \
  -e /home/stack/composable_roles/roles/nodes.yaml \
-e /home/stack/composable_roles/internal.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/composable_roles/network/network-environment.yaml \
-e /home/stack/composable_roles/enable-tls.yaml \
-e /home/stack/composable_roles/inject-trust-anchor.yaml \
-e /home/stack/composable_roles/public_vip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/ssl/tls-endpoints-public-ip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml \
-e /home/stack/composable_roles/hostnames.yaml \
-e /home/stack/composable_roles/debug.yaml \
-e /home/stack/composable_roles/config_heat.yaml \
-e /home/stack/composable_roles/docker-images.yaml \
--log-file overcloud_deployment_45.log
 
 
openstack overcloud config download --config-dir cd-overcloud --name overcloud
 
 tripleo-ansible-inventory   --ansible_ssh_user heat-admin   --static-yaml-inventory inventory.yaml
 
 
ansible-playbook -i inventory.yaml  --become cd-overcloud/deploy_steps_playbook.yaml --check
 
puddle=2018-09-27.3
openstack-tripleo-common-9.3.1-0.20180920204842.el7ost.noarch

Comment 5 errata-xmlrpc 2019-01-11 11:51:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045