RexOps / RexOps/Rex

LibVirt: Initial support for virtio-scsi virtual drives (read: ssd trim)

Open
#1,473 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Perl
Stars
737
Forks
214
PR merge metrics
No merged PRs in 30d

Description

User story

As an engineer
I would like to add support for virtio-scsi devices in Libvirt.pm
so I can automate usage of para-virtualized SCSI controller devices

Describe the solution you'd like

  1. Honour driver_cache and driver_discard keys in storage disk config.
  2. Add a SCSI controller if any of the storage disks have SCSI as the target bus.

Such that we could do e.g:

vm create => 'foo', 
    type    => 'kvm',
    storage => [
        {
             dev         => 'sda',
             bus         => 'scsi',
             driver_cache => 'writeback',
             driver_discard => 'unmap',
        }
    ],
    ...

Describe alternatives you've considered

N/A

Additional context

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Libvirt.pm and trace how storage disk configuration is translated for Libvirt. Check the existing handling of storage disks and determine where driver_cache, driver_discard, and an SCSI controller should be represented. Done means SCSI-targeted disks produce the controller and the requested driver settings are honored.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.