Bug 1655180 - [v2v][osp] Post migration playbook runs against 'localhost'
Summary: [v2v][osp] Post migration playbook runs against 'localhost'
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: V2V
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.10.0
Assignee: Fabien Dupont
QA Contact: Kedar Kulkarni
Red Hat CloudForms Documentation
URL:
Whiteboard: v2v
Depends On: 1626503
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-30 21:25 UTC by Kedar Kulkarni
Modified: 2018-12-12 23:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-12 23:44:25 UTC
Category: ---
Cloudforms Team: V2V
Target Upstream Version:
Embargoed:
kkulkarn: automate_bug+


Attachments (Terms of Use)

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


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