Bug 1655180

Summary: [v2v][osp] Post migration playbook runs against 'localhost'
Product: Red Hat CloudForms Management Engine Reporter: Kedar Kulkarni <kkulkarn>
Component: V2VAssignee: Fabien Dupont <fdupont>
Status: CLOSED WORKSFORME QA Contact: Kedar Kulkarni <kkulkarn>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: bthurber, dmetzger, fdupont, jocarter, kkulkarn, rjones
Target Milestone: GAFlags: kkulkarn: automate_bug+
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-12 23:44:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: V2V Target Upstream Version:
Embargoed:
Bug Depends On: 1626503    
Bug Blocks:    

Description Kedar Kulkarni 2018-11-30 21:25:16 UTC
Description of problem:
When migrating VMware to OSP if there is a post migration playbook to be executed, it does not fetch the IP address of migrated VM, and runs against localhost.

Version-Release number of selected component (if applicable):
5.10.0.27

How reproducible:
Believe 100%

Steps to Reproduce:
1.Add VMware and OSP providers and configure for migration
2.Add ansible repo, machine credentials to use, and create Catalog Item that can act as post migration playbook
3.Create infra map and migration plan with ansible post migration playbook
4.Execute migration plan

Actual results:
Plan fails to execute post migration playbook correctly. Runs it against localhost instead of IP addr of migrated VM.

Expected results:
It should fetch IP address and execute against migrated VM instead of localhost(miq appliance) 

Additional info:


PLAY [Simple playbook ran against CFME/ManageIQ in Ansible Services - retirement playbook] ***


TASK [Gathering Facts] *********************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?\\n", "module_stdout": "", "msg": "MODULE FAILURE\\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1

Comment 11 Kedar Kulkarni 2018-12-12 23:44:25 UTC
I was able to successfully execute post migration playbook against migrated VMs. This is no more an issue on CFME 5.10.0.29