Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-1682

Unable to Update "Migration Network" in VMware Provider, from Hosts View

XMLWordPrintable

    • False
    • None
    • True

      on MTV 2.7.3 its impossible to change "Migration network"  from hosts view from VMware  provider 
      im trying to change  the network from default to  "VMkernel -172.16.17.33/16" 
      the error from the  UI 

      admission webhook "secrets.forklift.konveyor" denied the request: Post "https://172.16.17.33/sdk": context deadline exceeded 

      all the three workers have an ip address on the same range and subnet  as the esx host 
      and all the hosts have a ping to the ip address of the esxi host on the secondary ip address range such as 172.16.0.0 / 16 

      [kni@f01-h14-000-r640 git]$ ssh core@worker000-r640 "ping  -c  2 172.16.17.33"
      PING 172.16.17.33 (172.16.17.33) 56(84) bytes of data.
      64 bytes from 172.16.17.33: icmp_seq=1 ttl=64 time=0.089 ms
      64 bytes from 172.16.17.33: icmp_seq=2 ttl=64 time=0.089 ms--- 172.16.17.33 ping statistics ---
      2 packets transmitted, 2 received, 0% packet loss, time 1024ms
      rtt min/avg/max/mdev = 0.089/0.089/0.089/0.000 ms
      [kni@f01-h14-000-r640 git]$ ssh core@worker001-r640 "ping  -c  2 172.16.17.33"
      PING 172.16.17.33 (172.16.17.33) 56(84) bytes of data.
      64 bytes from 172.16.17.33: icmp_seq=1 ttl=64 time=0.216 ms
      64 bytes from 172.16.17.33: icmp_seq=2 ttl=64 time=0.141 ms--- 172.16.17.33 ping statistics ---
      2 packets transmitted, 2 received, 0% packet loss, time 1057ms
      rtt min/avg/max/mdev = 0.141/0.178/0.216/0.037 ms
      [kni@f01-h14-000-r640 git]$ ssh core@worker002-r640 "ping  -c  2 172.16.17.33"
      PING 172.16.17.33 (172.16.17.33) 56(84) bytes of data.
      64 bytes from 172.16.17.33: icmp_seq=1 ttl=64 time=0.166 ms
      64 bytes from 172.16.17.33: icmp_seq=2 ttl=64 time=0.136 ms--- 172.16.17.33 ping statistics ---
      2 packets transmitted, 2 received, 0% packet loss, time 1004ms
      rtt min/avg/max/mdev = 0.136/0.151/0.166/0.015 ms
       

      manage to SSH from one of the worker nodes to the esxi server on the 172.16.x.x network with the same credentials

      [core@worker002-r640 ~]$ ssh root@172.16.17.33
      The authenticity of host '172.16.17.33 (172.16.17.33)' can't be established.
      ECDSA key fingerprint is SHA256:Kx4cc3TlCioLUyiPSsYdHJUdK43opNUcC25EOTTQo10.
      This key is not known by any other names
      Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
      Warning: Permanently added '172.16.17.33' (ECDSA) to the list of known hosts.
      (root@172.16.17.33) Password:
      The time and date of this login have been sent to the system logs.WARNING:
         All commands run on the ESXi shell are logged and may be included in
         support bundles. Do not provide passwords directly on the command line.
         Most tools can prompt for secrets or accept them from standard input.VMware offers supported, powerful system administration tools.  Please
      see www.vmware.com/go/sysadmintools for details.The ESXi Shell can be disabled by an administrative user. See the
      vSphere Security documentation for more information.
      [root@f17-h33-000-r640:~]
       

       
      forklift-api-5cd7d99c44-cqhql   api error 

      {"level":"info","ts":"2024-11-20 09:48:03.048","logger":"mutator","msg":"secret mutator was called"}
      {"level":"info","ts":"2024-11-20 09:48:03.053","logger":"admitter","msg":"secret admitter was called"}
      {"level":"info","ts":"2024-11-20 09:48:03.079","logger":"admitter","msg":"Testing provider connection"}
      {"level":"info","ts":"2024-11-20 09:48:13.089","logger":"admitter","msg":"Test connection to the host failed"}
       

      according to the error from the UI , maybe related to missing secret object that wasn't created using MTV for this provider ?  

        1. forklift-api-5cd7d99c44-cqhql.log
          2 kB
          Tzahi Ashkenazi
        2. forklift-controller-78b5bc867c-bdtzs.log
          7 kB
          Tzahi Ashkenazi
        3. forklift-operator-54b666cf6f-msk2s.log
          78 kB
          Tzahi Ashkenazi
        4. forklift-ui-plugin-5c446b9c57-skz2v.log
          388 kB
          Tzahi Ashkenazi
        5. forklift-validation-c6dfbcbcd-7q54j.log
          574 kB
          Tzahi Ashkenazi
        6. forklift-volume-populator-controller-5976d8b8f9-gdlzd.log
          4 kB
          Tzahi Ashkenazi
        7. image-2024-11-25-15-31-09-498.png
          75 kB
          Chenli Hu
        8. image-2024-11-25-15-43-32-803.png
          40 kB
          Chenli Hu
        9. image-2024-11-25-15-46-19-374.png
          66 kB
          Chenli Hu
        10. image-2024-11-25-15-47-35-676.png
          75 kB
          Chenli Hu
        11. ksnip_20241120-113611.png
          133 kB
          Tzahi Ashkenazi

              Unassigned Unassigned
              tzahia Tzahi Ashkenazi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: