Skip to content

fix(v2v-helper): restore code dropped by PR #2266's mechanical restructure - #2324

Open
spai-p9 wants to merge 1 commit into
mainfrom
fix-v2v-helper
Open

fix(v2v-helper): restore code dropped by PR #2266's mechanical restructure#2324
spai-p9 wants to merge 1 commit into
mainfrom
fix-v2v-helper

Conversation

@spai-p9

@spai-p9 spai-p9 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it

The migrate.go split in #2266 silently dropped several functions along with their call sites instead of moving them:

  • openstack/clients.go: 7 PrintLog/DoRetryWithExponentialBackoff calls were left unqualified after pkg/utils was moved behind the pkgutils alias, causing undefined-symbol build failures.

  • migrate/vm_ops.go: resolveTargetServerID was never moved; its logic got inlined/duplicated into verifyVMCreatedDespiteTimeout instead, breaking the LDM promotion and probe-volume cleanup paths in migrate.go that call resolveTargetServerID directly.

  • migrate/conversion.go: ldmImageMetadata, mergeBootVolumeImageMetadata, detectLDMGuest, and createLDMProbeVolume were dropped entirely, along with the ConvertVolumes steps that call them - silently disabling LDM (Dynamic Disk) guest handling, not just breaking the build.

  • migrate/migrate.go: missing "strings" import after the split.

Restored the missing functions in the new split files (not the old migrate.go), matching the PR's intended module boundaries, with no logic changes.

Which issue(s) this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)

fixes #

Special notes for your reviewer

Testing done

please add testing details (logs, screenshots, etc.)

…cture

The migrate.go split in #2266 silently dropped several functions along
with their call sites instead of moving them:

- openstack/clients.go: 7 PrintLog/DoRetryWithExponentialBackoff calls
  were left unqualified after pkg/utils was moved behind the pkgutils
  alias, causing undefined-symbol build failures.

- migrate/vm_ops.go: resolveTargetServerID was never moved; its logic
  got inlined/duplicated into verifyVMCreatedDespiteTimeout instead,
  breaking the LDM promotion and probe-volume cleanup paths in
  migrate.go that call resolveTargetServerID directly.

- migrate/conversion.go: ldmImageMetadata, mergeBootVolumeImageMetadata,
  detectLDMGuest, and createLDMProbeVolume were dropped entirely, along
  with the ConvertVolumes steps that call them - silently disabling LDM
  (Dynamic Disk) guest handling, not just breaking the build.

- migrate/migrate.go: missing "strings" import after the split.

Restored the missing functions in the new split files (not the old
migrate.go), matching the PR's intended module boundaries, with no
logic changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Vulnerability Summary

No change in security posture

📊 Overall Changes

Metric Count
Total Added 0
Total Fixed 0
Net Change 0

🔍 Detailed Breakdown

📦 Gosec (Static Analysis)

Current Baseline Added Fixed Method
0 0 0 0 artifact

📦 Trivy (Dependency Scan)

Current Baseline Added Fixed Method
92 92 0 0 artifact

📋 Baseline Methods

  • 📦 artifact: Used stored report from main branch
  • 🔄 live_scan: Scanned base branch in real-time
  • ⚠️ no_baseline: No baseline available (all vulnerabilities treated as new)

Only HIGH and CRITICAL severity vulnerabilities are tracked
Baseline: 29134c894d55e8571260619b87ca0ea4b68b84e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant