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

backport: Add basic go build ./... for the stable branch #552

Closed
wants to merge 39 commits into from

Commits on Jul 31, 2023

  1. Skip LUN task progress

    LUNs disks are a special case. They do not have a task when migrating
    and we do not need to update their progress. The disk are pre-made and
    just being attached. Therefore, we need to skip them.
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    a2f5855 View commit details
    Browse the repository at this point in the history
  2. Fix controller SCC namespace

    Signed-off-by: Bella Khizgiyaev <[email protected]>
    bkhizgiy authored and liranr23 committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    a07ae5a View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. Add missing mounts for virt-v2v container

    In c33a65b, we dropped by mistake the libvirt-domain-xml and
    vddk-vol-mount mounts from the virt-v2v container when migrating from
    vSphere (and kept them only when migrating from OVA provider). This
    broke warm migration from vSphere and decrease the speed of
    cold-migrations significantly. Thus, adding back the missing mounts.
    
    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    406de59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4251a2a View commit details
    Browse the repository at this point in the history
  3. Fix LUN warm migration

    When migrating a LUN disk from ovirt source in warm migration we need to
    mark the CopyDisk as completed.
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 authored and ahadas committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    011520b View commit details
    Browse the repository at this point in the history
  4. validation: fix openstack shared disk validation

    Fix the shared disk validation when the attachments
    array is empty.
    
    Fixes kubev2v#442
    
    Signed-off-by: Miguel Martín <[email protected]>
    mmartinv authored and ahadas committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    22eae0b View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. plan: check error returned by GetPopulatorTaskName

    Signed-off-by: Miguel Martín <[email protected]>
    mmartinv authored and ahadas committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    dc846b3 View commit details
    Browse the repository at this point in the history
  2. ocp: use source client where needed

    Attempt to properly support remote source by using destination and
    source clients where appropriate
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    e6a81db View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Exit when virt-v2v cold hit an error

    Since we now support two flows in the virt-v2v image, it doesn't end
    with the actual `virt-v2v` command. In that case the pod may end with
    success although, it didn't. Now the script will exit with an error on
    the first error occurrence.
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 authored and ahadas committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    9be3425 View commit details
    Browse the repository at this point in the history
  2. Change the storage mapping for OVA

    Signed-off-by: Bella Khizgiyaev <[email protected]>
    bkhizgiy authored and ahadas committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    322997e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. OCP: add support for secrets and configmaps

    Signed-off-by: Benny Zlotnik <[email protected]>
    
    ocp: make sure the volume is a PVC
    
    Since adding support for OCP to OCP volumes may not only be PVCs so a
    nil check has to be made
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    
    ocp: address comments
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    66fc0b4 View commit details
    Browse the repository at this point in the history
  2. fix virt-v2v bracket

    fixing the error in the entrypoint script:
    line 5: [: missing `]'
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 authored and ahadas committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    0f733b3 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. ocp: use namespace from Ref when present

    When looking up VMs in plans we need to use the namespace from the Ref,
    and not rely on splitting the name
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    e6cf6c0 View commit details
    Browse the repository at this point in the history
  2. ocp: make export token TTL configurable

    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    d8b762d View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. openstack: use raw format for images

    The format has to always be raw for OpenShift Virtualization
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    b698fd5 View commit details
    Browse the repository at this point in the history
  2. backport kubev2v#497

    Signed-off-by: Bella Khizgiyaev <[email protected]>
    bkhizgiy authored and ahadas committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    d0f8666 View commit details
    Browse the repository at this point in the history
  3. Fix virt-v2v entrypoint script

    Since we added OVA we had two options to execute the virt-v2v command.
    Now the command will be built and will be executed at the end without
    conditions regarding the source. This will allow us to know if we had an
    error and fail the pod in such case.
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 authored and ahadas committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    da87c4e View commit details
    Browse the repository at this point in the history
  4. ocp: fix mapping name check

    Consider namespace/name format for source NAD
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    7750145 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Fix TLS SSL connection to FIPS enabled systems

    This patch will bump the ubi9-minimal image and include the fix of the
    SSL connection to the cold virt-v2v.
    
    Signed-off-by: Liran Rotenberg <[email protected]>
    liranr23 authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    0f0d752 View commit details
    Browse the repository at this point in the history
  2. add -layer suffix to ems layer

    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    de76b60 View commit details
    Browse the repository at this point in the history
  3. ovirt client: Check if snapshot was created sucesfully

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    75496cc View commit details
    Browse the repository at this point in the history
  4. ovirt: Do not wait for timeout when snapshot removal fails

    When we trigger remove-snapshot and the operation fails, we immediately
    break rather than keep waiting until the timeout of waiting for the
    result of the operation is reached.
    
    This change also includes refactoring - changing the format of the error
    that is generated from ConflictError and simplify the function
    Client#CheckSnapshotReady.
    
    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    dfdc2f8 View commit details
    Browse the repository at this point in the history
  5. Refactor snapshot removal

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    1358cce View commit details
    Browse the repository at this point in the history
  6. Add check for snapshot removal

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    9aaddfa View commit details
    Browse the repository at this point in the history
  7. Update the timeout phase with the start time

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    a3730f7 View commit details
    Browse the repository at this point in the history
  8. Remove go util wait from bazel

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    247db3f View commit details
    Browse the repository at this point in the history
  9. Replace MustCode with Code and check if the element exists

    Signed-off-by: Martin Necas <[email protected]>
    mnecas authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    80c92a6 View commit details
    Browse the repository at this point in the history
  10. ignore events from ovirt without 'code'

    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    0bb60b1 View commit details
    Browse the repository at this point in the history
  11. backport kubev2v#512

    Signed-off-by: Bella Khizgiyaev <[email protected]>
    bkhizgiy authored and ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    890d4a2 View commit details
    Browse the repository at this point in the history
  12. virt-v2v: Build our own fixed appliance on el8

    Similar to kubev2v#226 but on el8 (the appliance used with el8 libguestfs does
    not support qcow2 images so the image is still compressed within the
    container image and extract by the 'entrypoint' script).
    
    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    a2ec3ea View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. ocp: preserve boot order for disks

    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    6b4ca5a View commit details
    Browse the repository at this point in the history
  2. ocp: fix storage mapping validation

    DV based disks need to be considered as well
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    a16b3b3 View commit details
    Browse the repository at this point in the history
  3. ocp: add logger to validator

    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    cbeb402 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. ocp: copy loop var when iterating over interfaces

    Otherwise we end up using the variable which we copy over the same
    interface and keep the type
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    e13818f View commit details
    Browse the repository at this point in the history
  2. Check claimName on DV status

    It seems like dv.PVC is always nil because we don't create a DV from a
    PVC, this leads to failing to find the DV whenever the importer pod
    fails and it will restart forever instead of 3 times
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    
    rename DataVolume to DataVolumeWrapper
    
    Make it slightly less confusing
    
    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz authored and ahadas committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    91f7934 View commit details
    Browse the repository at this point in the history
  3. Fix configuration for disabling EMS check with FIPS

    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    7d51ec8 View commit details
    Browse the repository at this point in the history
  4. bump dependencies of virt-v2v on centos-stream-9

    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    f04b13e View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. fix 'undefined: logging.LevelLogger'

    pkg/controller/plan/adapter/ocp/validator.go:24:23: undefined: logging.LevelLogger
    
    Signed-off-by: Arik Hadas <[email protected]>
    ahadas committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    48cad02 View commit details
    Browse the repository at this point in the history
  2. Add basic go build ./... for the stable branch

    Signed-off-by: Benny Zlotnik <[email protected]>
    bennyz committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    667d1b3 View commit details
    Browse the repository at this point in the history