Skip to content

[2290] Adding disk detach path on keep sata option - #2295

Merged
meghansh-pf9 merged 1 commit into
mainfrom
private/main/megh/keep-sata-volume-detach-delete
Aug 14, 2026
Merged

[2290] Adding disk detach path on keep sata option#2295
meghansh-pf9 merged 1 commit into
mainfrom
private/main/megh/keep-sata-volume-detach-delete

Conversation

@meghansh-pf9

@meghansh-pf9 meghansh-pf9 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Answering the LDM boot gate with "Keep on SATA" left the 1 GB virtio probe disk
attached, relying on delete_on_termination — which only fires when the instance is
eventually deleted, so it lingered for the life of the VM. It is now hot-detached and
deleted. Safe while running: the probe is a raw, unformatted disk and viostor stays
in the DriverStore whether or not the device is present.

Needs two server-scoped OpenStack operations. DetachVolumeFromVM and WaitForVolume
resolve the instance via GetCurrentInstanceUUID — the vJailbreak appliance, not the
migrated VM — so they detach from the wrong server and then wait on an attachment that
is never theirs to release.

Best effort, bounded at 2 minutes: a guest that never loaded viostor may not
acknowledge the unplug, which is usually why "Keep on SATA" was chosen. On expiry the
probe stays attached as before.

fixes #2290

Testing Done

image image

@github-actions

Copy link
Copy Markdown
Contributor

🚨 Security Vulnerability Summary

Security posture degraded

📊 Overall Changes

Metric Count
Total Added 4
Total Fixed 0
Net Change +4

🔍 Detailed Breakdown

📦 Gosec (Static Analysis)

Current Baseline Added Fixed Method
0 0 0 0 artifact

📦 Trivy (Dependency Scan)

Current Baseline Added Fixed Method
90 86 4 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)

🚨 Added Vulnerabilities

Trivy (Dependencies) - 4 Added

Target: k8s/migration/go.mod
Package: golang.org/x/net v0.47.0
Vulnerability: CVE-2026-46600
Severity: HIGH
Title: golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing

Target: pkg/common/go.mod
Package: golang.org/x/net v0.47.0
Vulnerability: CVE-2026-46600
Severity: HIGH
Title: golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing

Target: pkg/vpwned/go.mod
Package: golang.org/x/net v0.47.0
Vulnerability: CVE-2026-46600
Severity: HIGH
Title: golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing

Target: v2v-helper/go.mod
Package: golang.org/x/net v0.47.0
Vulnerability: CVE-2026-46600
Severity: HIGH
Title: golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing


Only HIGH and CRITICAL severity vulnerabilities are tracked
Baseline: 642e5fcc50500a271fedb5d39bf61eb08763b428

@meghansh-pf9
meghansh-pf9 force-pushed the private/main/megh/keep-sata-volume-detach-delete branch from 84b11a0 to 137415b Compare August 13, 2026 14:43
@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
90 90 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: 95f7589b4132b07ebd3d0a69d3ba8bf361b93fe1

@meghansh-pf9
meghansh-pf9 marked this pull request as ready for review August 13, 2026 15:23

@spai-p9 spai-p9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@meghansh-pf9
meghansh-pf9 force-pushed the private/main/megh/keep-sata-volume-detach-delete branch from 137415b to e095388 Compare August 14, 2026 07:06
@meghansh-pf9
meghansh-pf9 enabled auto-merge (squash) August 14, 2026 07:06
@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
90 90 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: 66b08bd311104fa130f7e8f3b1f1684ab0042268

@meghansh-pf9
meghansh-pf9 merged commit 948b599 into main Aug 14, 2026
17 checks passed
@meghansh-pf9
meghansh-pf9 deleted the private/main/megh/keep-sata-volume-detach-delete branch August 14, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Virtio disk is not getting detached from PCD VM when user selected Sata disk controller for LDM

2 participants