Bug 2229023

Summary: `lvcreate --type thin` errors when used with `--snapshot`
Product: [Fedora] Fedora Reporter: Patrick Hemmer <bugzilla.redhat>
Component: lvm2Assignee: David Teigland <teigland>
Status: POST --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: agk, anprice, bmarzins, bmr, cfeist, heinzm, kzak, lvm-team, mcsontos, prajnoha, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Hemmer 2023-08-04 01:24:30 UTC
Description of problem:

Attempting to use `lvcreate` with the option `--type thin` and `--snapshot` produces the error:

    Command does not accept option: --snapshot.


Version-Release number of selected component (if applicable):

  LVM version:     2.03.18(2)-git (2022-11-10)
  Library version: 1.02.189-git (2022-11-10)
  Driver version:  4.48.0


How reproducible:
every time

Steps to Reproduce:
1. Have a source thin volume
2. lvcreate -s VG/LV --type thin

Actual results:

    Command does not accept option: --snapshot.

Expected results:

    Logical volume "lvol1" created.

Additional info:

This is a regression as this command used to work fine on Fedora 37. The documentation says that `--type thin` is implied, meaning not required, but is allowed.

Comment 1 Zdenek Kabelac 2023-08-04 12:34:37 UTC
Fixed upstream already (version 2.03.22)

https://listman.redhat.com/archives/lvm-devel/2023-June/024829.html