Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-71500

[RHEL9.6] gi.repository.GLib.GError: g-bd-crypto-error-quark: Failed to initialize device: No such device (0)

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • libblockdev
    • None
    • No
    • None
    • rhel-storage-management
    • ssg_platform_storage
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

       

      # cryptsetup  luksDump /dev/nvme0n1 
      LUKS header information
      Version:           2
      Epoch:             3
      Metadata area:     16384 [bytes]
      Keyslots area:     16744448 [bytes]
      UUID:              06f64aa0-47ec-4371-b343-034d7126349a
      Label:             (no label)
      Subsystem:         (no subsystem)
      Flags:           (no flags)Data segments:
        0: crypt
          offset: 16777216 [bytes]
          length: (whole device)
          cipher: aes-xts-plain64
          sector: 4096 [bytes]Keyslots:
        0: luks2
          Key:        512 bits
          Priority:   normal
          Cipher:     aes-xts-plain64
          Cipher key: 512 bits
          PBKDF:      argon2id
          Time cost:  10
          Memory:     102400
          Threads:    1
          Salt:       28 63 63 7d f3 78 45 d6 fc 6f 04 cb 90 93 5d f5 
                      84 5f 40 d4 27 10 9b fd f1 b7 2d c1 b2 8f 72 65 
          AF stripes: 4000
          AF hash:    sha256
          Area offset:32768 [bytes]
          Area length:258048 [bytes]
          Digest ID:  0
      Tokens:
      Digests:
        0: pbkdf2
          Hash:       sha256
          Iterations: 1000
          Salt:       a5 5f c9 f6 a5 e7 f8 e7 f2 2d 19 7b 63 77 50 97 
                      b6 aa 52 e6 80 f7 de 59 b3 ea dd 3f b0 e3 b8 dc 
          Digest:     23 f0 ab 53 41 34 a5 eb 46 90 14 d7 bc e5 3b a2 
                      9d fc 32 88 7c 9a f7 a1 2a 00 25 02 36 d7 8a 35 
       
      
      >>> o.bd.crypto_luks_info("/dev/nvme0n1")
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      gi.repository.GLib.GError: g-bd-crypto-error-quark: Failed to initialize device: No such device (0)
      >>> hasattr(o.bd, 'crypto_luks_info')
      True
      >>> 

      libblockdev-2.28-12.el9.x86_64

      5.14.0-539.el9.x86_64

      [root@storageqe-108 libblockdev]# nvme list
      Node                  Generic               SN                   Model                                    Namespace  Usage                      Format           FW Rev  
      --------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
      /dev/nvme0n1          /dev/ng0n1            3EJ0A04H0NB3         Dell Ent NVMe FIPS CM6 MU 1.6TB          0x1         16.78  MB /   1.60  TB      4 KiB + 64 B   3.1.5   
      [root@storageqe-108 libblockdev]# 
       

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Vojtěch Trefný Vojtěch Trefný
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: