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

[RHEL10.1] blivet.errors.StorageError: Disk "sda" given in part command does not exist.

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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • python-blivet
    • None
    • No
    • None
    • rhel-storage-management
    • ssg_platform_storage
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

       

       

              <ks_append><![CDATA[
           firewall --disabled
      rootpw redhat
      keyboard us
      lang en_US
      reboot
      zerombr
      timezone  America/New_York
      clearpart --all --initlabel  --drives=sda,sdb,sdc,sdd,sde
      bootloader --location=mbr  --append="loglevel=7 "  --driveorder=sda
      part /boot --asprimary --fstype=ext4 --size=512 --label=BOOT --ondisk=sda
      part swap --fstype="swap" --size=100 --label=SWAP --ondisk=sda
      part biosboot --fstype="biosboot" --ondisk=sda --size=1
      part pv.01 --size=1000 --grow  --encrypted  --passphrase="redhat redhat" --pbkdf="pbkdf2" --ondisk=sda
      volgroup myvg1 pv.01
      logvol / --vgname=myvg1 --name=rootvol --size=3000  --grow
          ]]></ks_append>
              <ks_append><![CDATA[
           %pre --log=/dev/console
      echo "the begin install time is `date`"
      vgchange -a n
      mdadm -Ss; rm -f /etc/system-fips
      wipefs -a /dev/sd[a-h]1 && wipefs -a /dev/sda[1-3] && wipefs -a /dev/sd[a-h]
      %end
          ]]></ks_append>
              <ks_append><![CDATA[
           %post --log=/dev/console
      curl -o /root/runtest.sh  http://pnate-control-01.fast.eng.rdu2.dc.redhat.com/guazhang/runtest.sh
      sh /root/runtest.sh
      time pvs
      echo "the finished install time is `date`"
      grub2-editenv - set debug=all
      grub2-editenv - set pager=0
      %end 

      random hit the error

      DEBUG:anaconda.modules.storage.bootloader.base:new disk list: [DiskDevice instance (0x7f2cf79ceae0) --
        name = sdb  status = True  id = 4
        children = []
        parents = []
        uuid = None  size = 931.51 GiB
        format = non-existent gpt disklabel
        major = 8  minor = 16  exists = True  protected = False
        sysfs path = /sys/devices/pci0000:00/0000:00:01.0/0000:03:00.0/host0/target0:0:0/0:0:0:0/block/sdb
        target size = 931.51 GiB  path = /dev/sdb
        format args = []  original_format = disklabel  removable = False  wwn = 500003963b783014]
      DEBUG:anaconda.modules.storage.bootloader.execution:Applying bootloader location: MBR
      INFO:program:Running... udevadm settle --timeout=300
      DEBUG:program:Return code: 0
      DEBUG:testdata:sysfs attr /sys/class/block/sdb/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sdc/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sda/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sdd/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sde/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sdf/device/model: 544f5348494241204d473033414341310a
      DEBUG:testdata:sysfs attr /sys/class/block/sdg/device/model: 5354343030304e4d303033332d395a4d0a
      DEBUG:testdata:sysfs attr /sys/class/block/sdh/device/model: 5354343030304e4d303033332d395a4d0a
      DEBUG:blivet:                 DeviceTree.get_device_by_name: name: sda ; incomplete: False ; hidden: False ;
      DEBUG:blivet:                 DeviceTree.get_device_by_name returned None
      DEBUG:blivet:                 DeviceTree.get_device_by_path: path: /dev/sda ; incomplete: False ; hidden: False ;
      DEBUG:blivet:                 DeviceTree.get_device_by_path returned None
      DEBUG:blivet:failed to resolve '/dev/sda'
      DEBUG:anaconda.core.storage:sda matches ['sda'] for devicetree=existing 931.51 GiB disk sdb (4) with non-existent gpt disklabel
      existing 0 B file /tmp/curl_fetch_url1/install.img (deleted) (81)
        existing 0 B loop loop0 (85)
       and disks_only=True
      WARNING:anaconda.modules.storage.bootloader.execution:Requested drive sda in boot drive order doesn't exist or cannot be used.
      DEBUG:anaconda.modules.storage.bootloader.execution:Applying drive order: []
      DEBUG:anaconda.modules.storage.bootloader.base:new disk order: []
      DEBUG:anaconda.modules.storage.bootloader.base:Is /tmp/curl_fetch_url1/install.img (deleted) a valid stage1 target device?
      DEBUG:anaconda.modules.storage.bootloader.base:stage1 device cannot be of type file
      DEBUG:anaconda.modules.storage.bootloader.base:Is loop0 a valid stage1 target device?
      DEBUG:anaconda.modules.storage.bootloader.base:stage1 device cannot be of type loop
      DEBUG:anaconda.modules.storage.bootloader.base:Is sdb a valid stage1 target device?
      DEBUG:anaconda.modules.storage.bootloader.base:_is_valid_disklabel(sdb) returning True
      DEBUG:anaconda.modules.storage.bootloader.base:_is_valid_size(sdb) returning True
      DEBUG:anaconda.modules.storage.bootloader.base:_is_valid_location(sdb) returning True
      DEBUG:anaconda.modules.storage.bootloader.base:_is_valid_format(sdb) returning True
      DEBUG:anaconda.modules.storage.bootloader.base:is_valid_stage1_device(sdb) returning True
      DEBUG:anaconda.modules.storage.bootloader.execution:Found a drive with a valid stage1: sdb
      DEBUG:anaconda.modules.storage.bootloader.execution:Use a usable drive with a valid stage1 device.
      DEBUG:anaconda.modules.storage.bootloader.execution:Using a boot drive: sdb
      DEBUG:blivet:                DeviceTree.get_device_by_name: name: sdb ; incomplete: False ; hidden: False ;
      DEBUG:blivet:                DeviceTree.get_device_by_name returned existing 931.51 GiB disk sdb (4) with non-existent gpt disklabel
      DEBUG:blivet:resolved 'sdb' to 'sdb' (disk)
      DEBUG:anaconda.modules.storage.partitioning.custom.custom_partitioning:Executing the custom partitioning.
      DEBUG:blivet:                Ext4FS.supported: supported: True ;
      DEBUG:blivet:get_format('ext4') returning Ext4FS instance with object id 154
      DEBUG:blivet:               DeviceTree.get_device_by_name: name: sda ; incomplete: False ; hidden: False ;
      DEBUG:blivet:               DeviceTree.get_device_by_name returned None
      DEBUG:blivet:               DeviceTree.get_device_by_path: path: /dev/sda ; incomplete: False ; hidden: False ;
      DEBUG:blivet:               DeviceTree.get_device_by_path returned None
      DEBUG:blivet:failed to resolve '/dev/sda'
      ERROR:anaconda.modules.storage.partitioning.base_partitioning:Storage configuration has failed: Disk "sda" given in part command does not exist.
      INFO:anaconda.core.threads:Thread Failed: AnaTaskThread-CustomPartitioningTask-1 (139831109498560)
      ERROR:anaconda.modules.common.task.task:Thread AnaTaskThread-CustomPartitioningTask-1 has failed: Traceback (most recent call last):
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 53, in run
          self._run(self._storage)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/automatic/noninteractive_partitioning.py", line 43, in _run
          self._configure_partitioning(storage)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 90, in _configure_partitioning
          self._execute_partition(storage, data)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 136, in _execute_partition
          self._execute_partition_data(storage, data, partition_data)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 305, in _execute_partition_data
          raise StorageError(
      blivet.errors.StorageError: Disk "sda" given in part command does not exist.
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 280, in run
          threading.Thread.run(self)
        File "/usr/lib64/python3.12/threading.py", line 1012, in run
          self._target(*self._args, **self._kwargs)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
          self._task_run_callback()
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
          self._set_result(self.run())
                           ^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 61, in run
          self._handle_storage_error(e, str(e))
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 83, in _handle_storage_error
          raise StorageConfigurationError(message) from exception
      pyanaconda.modules.common.errors.configuration.StorageConfigurationError: Disk "sda" given in part command does not exist.
      
      INFO:anaconda.core.threads:Thread Done: AnaTaskThread-CustomPartitioningTask-1 (139831109498560)
      WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Task.Finish has failed with an exception:
      Traceback (most recent call last):
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 53, in run
          self._run(self._storage)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/automatic/noninteractive_partitioning.py", line 43, in _run
          self._configure_partitioning(storage)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 90, in _configure_partitioning
          self._execute_partition(storage, data)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 136, in _execute_partition
          self._execute_partition_data(storage, data, partition_data)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/custom/custom_partitioning.py", line 305, in _execute_partition_data
          raise StorageError(
      blivet.errors.StorageError: Disk "sda" given in part command does not exist.
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        File "/usr/lib/python3.12/site-packages/dasbus/server/handler.py", line 455, in _method_callback
          result = self._handle_call(
                   ^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.12/site-packages/dasbus/server/handler.py", line 265, in _handle_call
          return handler(*parameters, **additional_args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task_interface.py", line 114, in Finish
          self.implementation.finish()
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 173, in finish
          thread_manager.raise_if_error(self._thread_name)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 171, in raise_if_error
          raise exc_info[1]
        File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 280, in run
          threading.Thread.run(self)
        File "/usr/lib64/python3.12/threading.py", line 1012, in run
          self._target(*self._args, **self._kwargs)
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
          self._task_run_callback()
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
          self._set_result(self.run())
                           ^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 61, in run
          self._handle_storage_error(e, str(e))
        File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/storage/partitioning/base_partitioning.py", line 83, in _handle_storage_error
          raise StorageConfigurationError(message) from exception
      pyanaconda.modules.common.errors.configuration.StorageConfigurationError: Disk "sda" given in part command does not exist.
      DEBUG:anaconda.modules.storage.bootloader.bootloader:Drive is set to ''.
      DEBUG:anaconda.modules.storage.disk_selection.selection:Exclusive disks are set to '[]'.
      DEBUG:anaconda.storage:Creating a copy of the storage model.
      DEBUG:blivet:starting Blivet copy
      DEBUG:blivet:                  PartitionDevice._set_parted_partition: sdb1 ;
      DEBUG:blivet:device sdb1 new parted_partition parted.Partition instance --
        disk: <parted.disk.Disk object at 0x7f2cf7a45880>  fileSystem: None
        number: 1  path: /dev/sdb1  type: 0
        name:   active: True  busy: False
        geometry: <parted.geometry.Geometry object at 0x7f2cf7a366f0>  PedPartition: <_ped.Partition object at 0x7f2cf71bbab0>
      DEBUG:blivet:                  PartitionDevice._set_parted_partition: sdb2 ;
      DEBUG:blivet:device sdb2 new parted_partition parted.Partition instance --
        disk: <parted.disk.Disk object at 0x7f2cf7a45880>  fileSystem: <parted.filesystem.FileSystem object at 0x7f2cf7a368d0>
        number: 2  path: /dev/sdb2  type: 0
        name:   active: True  busy: False
        geometry: <parted.geometry.Geometry object at 0x7f2cf7a36720>  PedPartition: <_ped.Partition object at 0x7f2cf71bbb50>
      DEBUG:blivet:                  PartitionDevice._set_parted_partition: sdb3 ;
      DEBUG:blivet:device sdb3 new parted_partition parted.Partition instance --
        disk: <parted.disk.Disk object at 0x7f2cf7a45880>  fileSystem: <parted.filesystem.FileSystem object at 0x7f2cf7a36a80>
        number: 3  path: /dev/sdb3  type: 0
        name:   active: True  busy: False
        geometry: <parted.geometry.Geometry object at 0x7f2cf7a36a20>  PedPartition: <_ped.Partition object at 0x7f2cf71bbe20>
      DEBUG:blivet:                  PartitionDevice._set_parted_partition: sdb4 ;
      DEBUG:blivet:device sdb4 new parted_partition parted.Partition instance --
        disk: <parted.disk.Disk object at 0x7f2cf7a45880>  fileSystem: None
        number: 4  path: /dev/sdb4  type: 0
        name:   active: True  busy: False
        geometry: <parted.geometry.Geometry object at 0x7f2cf7a36ba0>  PedPartition: <_ped.Partition object at 0x7f2cf71bbb00>
      DEBUG:blivet:finished Blivet copy
      DEBUG:anaconda.storage:Finished a copy of the storage model.
      DEBUG:dasbus.connection:Publishing an object at /org/fedoraproject/Anaconda/Modules/Storage/Task/3.
      INFO:anaconda.core.threads:Running Thread: AnaTaskThread-ScanDevicesTask-2 (139831109498560)
      INFO:anaconda.modules.common.task.task:Scan all devices
      INFO:program:Running... systemctl start iscsi-init.service
      DEBUG:program:Return code: 0
      INFO:blivet:no initiator set 

       

      st09

      https://beaker.engineering.redhat.com/recipes/18753840#installation

      st69

      https://beaker.engineering.redhat.com/recipes/18753693#installation

       

       

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

                Created:
                Updated:
                Resolved: