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

virt-v2v migration fails: ‘openstack’ program is not available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • Moderate

      To Reproduce Steps to reproduce the behavior:

      1. Configure in the vars file the parameter:
       os_migrate_virt_v2v: true   
      1. Fill the vddk_thumbprint:
      2. Launch the migration
      3. Error in the log:
         virt-v2v: error: the ‘openstack’ program is not available.  It is needed to communicate with OpenStack
        
        

       

      Expected behavior

      • Vm migrated successfully

      https://github.com/os-migrate/vmware-migration-kit/issues/149

      Known workaround

      User cloud-user has openstack, but root hasn't:

      [cloud-user@vmware-conv-host-3 ~]$ openstack
      (openstack) 
      [cloud-user@vmware-conv-host-3 ~]$ sudo su
      [root@vmware-conv-host-3 cloud-user]# openstack
      bash: openstack: command not found
      
      
      

      Variable $PATH was the problem:

      [cloud-user@vmware-conv-host-3 ~]$ which openstack
      /usr/local/bin/openstack
      [cloud-user@vmware-conv-host-3 ~]$ sudo su
      [root@vmware-conv-host-3 cloud-user]# echo $PATH
      /root/.local/bin:/root/bin:/sbin:/bin:/usr/sbin:/usr/bin

      Additional context

      Actual fix

      • install openstack client for the root user

              Unassigned Unassigned
              fdiazbra@redhat.com Fernando Diaz Bravo
              rhos-dfg-migrations
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: