Bug 1625566 - [OSP14] Ansible "dry-run" fails with remote module (command) does not support check mode
Summary: [OSP14] Ansible "dry-run" fails with remote module (command) does not support...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 14.0 (Rocky)
Assignee: James Slagle
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-05 08:51 UTC by Gurenko Alex
Modified: 2019-01-11 11:53 UTC (History)
4 users (show)

Fixed In Version: openstack-tripleo-common-9.3.1-0.20180920204842.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:51:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1790928 0 None None None 2018-09-05 20:57:06 UTC
OpenStack gerrit 600182 0 None MERGED Fix check mode for server deployments 2020-10-27 14:06:07 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:53:01 UTC

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


Note You need to log in before you can comment on or make changes to this bug.