Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hosted_engine_setup fails when done remotedly. #176

Closed
kristvanbesien opened this issue Nov 10, 2020 · 4 comments
Closed

hosted_engine_setup fails when done remotedly. #176

kristvanbesien opened this issue Nov 10, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@kristvanbesien
Copy link

SUMMARY

The hosted_engine_setup role does not work when executed from a remote host.

COMPONENT NAME

Role hosted_engine_setup

STEPS TO REPRODUCE

Inventory:

# Settings for the hosted engine 
he_bridge_if: bond0
he_fqdn:***
he_shortname: "{{ he_fqdn.split('.')[0] }}"
he_vm_ip_addr: 10.123.250.18
he_vm_ip_prefix: 29
he_vm_dns_addr: ['10.0.80.11','10.0.80.12']
he_default_gateway: 10.123.250.17 
he_vm_etc_hosts: true
he_domain_type: iscsi
he_cluster: management
he_datacenter: management
he_appliance_password: "{{ login_password }}"
he_admin_password: "{{ login_password }}"
he_mem_size_MB: "4096"
he_vcpus: 4
he_storage_domain_addr: "{{ iscsi_portal }}"
he_iscsi_portal_port: "3260"
he_iscsi_tpgt: "1"
he_iscsi_target: "{{ iscsi_target }}"
he_lun_id": "{{ iscsi_lun }}"
- name: Deploy oVirt hosted engine
  hosts: ***

  vars: 
     he_host_name: "{{ inventory_hostname}}"
     he_host_address: "{{ private_ip }}"    
    
  roles:
     - role: hosted_engine_setup
  collections:
     - redhat.rhv
EXPECTED RESULTS

Hosted engine is deployed.

ACTUAL RESULTS

Process hangs until it times out at:

TASK [redhat.rhv.hosted_engine_setup : Wait for the local VM] ***********************************************************************

This is probably due to the following in full_execution.yaml

- name: Local engine VM installation - Pre tasks
  block:
    - name: 03 Bootstrap local VM
      import_tasks: bootstrap_local_vm/03_engine_initial_tasks.yml
      delegate_to: "{{ groups.engine[0] }}"

I suspect that groups.engine[0] refers to the temporary IP of the HE on the local bridge. This is not accessible from outside the host.

@kristvanbesien kristvanbesien added the bug Something isn't working label Nov 10, 2020
@kristvanbesien
Copy link
Author

It turns out to be a bit more complicated...

The playbook is not hanging, it is just proceeding very slowly. This is an example of the output:

TASK [redhat.rhv.hosted_engine_setup : Wait for the local VM] ***********************************************************************
[WARNING]: sftp transfer mechanism failed on [mgg-rhvmgt-fra5.mgg.local]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [mgg-rhvmgt-fra5.mgg.local]. Use ANSIBLE_DEBUG=1 to see detailed information
ok: [mgg-mgt001-fra5.mgg.local -> mgg-rhvmgt-fra5.mgg.local]

TASK [redhat.rhv.hosted_engine_setup : Add an entry for this host on /etc/hosts on the local VM] ************************************
[WARNING]: sftp transfer mechanism failed on [mgg-rhvmgt-fra5.mgg.local]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [mgg-rhvmgt-fra5.mgg.local]. Use ANSIBLE_DEBUG=1 to see detailed information

So ansible tries to upload the module, first tries sftp, then scp, then something else (what?)

@mwperina
Copy link
Member

@arachmani

@arachmani
Copy link
Member

@kristvanbesien Can you please share the ovirt-hosted-engine-setup log files from the host
and the engine.log from the localVM (the engine)?

You should find the IP address of the localVM in /etc/hosts
or you can use virsh -r net-dhcp-leases default .

@arachmani
Copy link
Member

Following our discussion offline, we are unable to help without any log files.
Please reopen/open a new issue if you encounter this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants