Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-20482

AWX/AEE Job running vmware-migration-kit fails during instance creation with "sudo: command not found"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Team OS Migrate Sprint 7
    • 1
    • Important

      Description

      The AWX job utilizing the quay.io/os-migrate/vmware-migration-kit AEE is failing at the "Create instance" task within the os_migrate.vmware_migration_kit.import_workloads role. The failure indicates that the sudo command is not available or executable on the target/conversion host, which is required for the become (privilege escalation) to succeed.

      Steps to Reproduce

      1. Run an AWX/AAP Job Template using the quay.io/os-migrate/vmware-migration-kit AEE.
      1. Use the provided variables (below) to configure the job to re-use an existing conversion host.
      1. Observe the job fail at the Create instance task.

      Expected Results

      The AWX job should successfully provision the VM (winweb01-9fqww) into the OpenStack environment.

      Actual Results

      The job fails with an error indicating that sudo is not found, suggesting a dependency on the AEE is missing

      Error Details

      The full error message from the task failure:

      TASK [os_migrate.vmware_migration_kit.import_workloads : Create instance] ****** [ERROR]: Task failed: Premature end of stream waiting for become success. >>> Standard Error /bin/sh: line 1: sudo: command not found Origin: /usr/share/ansible/collections/ansible_collections/os_migrate/vmware_migration_kit/roles/import_workloads/tasks/create_os_instance.yml:68:7 66 - nics is defined 67 block: 68 - name: Create instance ^ column 7 fatal: [conversion_host -> localhost]: FAILED! => {"changed": false, "msg": "Task failed: Premature end of stream waiting for become success.\n>>> Standard Error\n/bin/sh: line 1: sudo: command not found"} 

      Configuration / Environment

      # osm working directory:
      os_migrate_tear_down: false
      runner_from_aee: true
      os_migrate_vmw_data_dir: /tmp/os-migrate
      copy_openstack_credentials_to_conv_host: false
      # Re-use an already deployed conversion host:
      already_deploy_conversion_host: true
      # If no mapped network, set the OpenStack network:
      openstack_private_network: private
      # Security groups for the instance:
      security_groups: 7b74f111-341c-47c4-aac4-b5aa859ce6e0
      use_existing_flavor: false
      # Network settings for OpenStack:
      os_migrate_create_network_port: true
      copy_metadata_to_conv_host: true
      used_mapped_networks: falseos_migrate_configure_network: truevms_list:
        - winweb01-9fqww
      # VMware parameters:
      vcenter_hostname: vcsrs01-vc.infra.demo.redhat.com
      vcenter_username: ocpvirt-9fqww@infra
      vcenter_password: ********
      vcenter_datacenter: RS01
      os_cloud_environ: demo.redhat.com
      dst_cloud:
        auth:
          auth_url: https://keystone-public-openstack.apps.cluster-9fqww.dynamic.redhatworkshops.io
          username: admin
          project_id: 541ca994ce4e48d8a460178c45b5b0e6
          project_name: admin
          user_domain_name: Default
          password: ******
        region_name: regionOne
        interface: public
        insecure: true
        identity_api_version: 3

              rhn-engineering-mbultel mathieu bultel
              pnavarro@redhat.com Pedro Navarro Perez
              rhos-dfg-migrations
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: