Bug 1432012

Summary: Installation can't be done on existing thin pool
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Konecny <jkonecny>
Component: python-blivetAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: anaconda-maint-list, blivet-maint-list, extras-qa, g.kaviyarasu, jkonecny, jonathan, jstodola, pkotvan, vanmeeuwen+fedora, vpodzime
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7589248c8dd3a17cb60d4769cd1265c81274e2ef24b0944ce87b5285c283f747;
Fixed In Version: python-blivet-0.61.15.60-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1359122 Environment:
Last Closed: 2017-08-01 23:12:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1359122, 1449963    
Bug Blocks: 1113207, 1444059    

Description Jiri Konecny 2017-03-14 10:14:36 UTC
+++ This bug was initially created as a clone of Bug #1359122 +++

Description of problem:
Anaconda installation to existing volume group with thinPool and thinLV on this thinPool, is failing. 


Steps to reproduce:
1) Create partitioning with vg, thinPool and thinLV
2) Create kickstart which is installing to this existing thinLV with --useexisting parameter (on vg and thiPool too)

Actual results:
Crash in Summary hub

Expected results:
Should install when using existing partitioning

Aditional info:
--useexisting is working fine with "part" kickstart command

Version-Release number of selected component:
anaconda-25.19-1

The following was filed automatically by anaconda:
anaconda 25.19-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.5/site-packages/blivet/deviceaction.py", line 551, in __init__
    raise ValueError("resource to create this format %s is unavailable" % fmt)
  File "/usr/lib/python3.5/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/kickstart.py", line 961, in execute
    devicetree.actions.add(ActionCreateFormat(device, fmt))
  File "/usr/lib64/python3.5/site-packages/pyanaconda/kickstart.py", line 799, in execute
    l.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/kickstart.py", line 2220, in doKickstartStorage
    ksdata.logvol.execute(storage, ksdata, instClass)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 379, in _doExecute
    doKickstartStorage(self.storage, self.data, self.instclass)
  File "/usr/lib64/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/threads.py", line 251, in run
    threading.Thread.run(self, *args, **kwargs)
ValueError: resource to create this format non-existent None is unavailable

Additional info:
addons:         com_redhat_kdump, com_redhat_docker
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   initrd=/test/rawhide/initrd.img nokill resolution=1024x768 inst.repo=ftp://cobra02/rawhide/ ks=http://cobra02/ks/jk/testing.ks BOOT_IMAGE=/test/rawhide/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.7.0-0.rc5.git1.1.fc25.x86_64
product:        Fedora
release:        Cannot get release name.
reproducible:   Not sure how to reproduce the problem
type:           anaconda
version:        rawhide

--- Additional comment from Jiri Konecny on 2016-07-22 06:47:09 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:11 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:12 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:14 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:16 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:17 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:18 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:47 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:48 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:47:50 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:48:03 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:48:07 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:48:09 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:48:10 EDT ---



--- Additional comment from Jiri Konecny on 2016-07-22 06:48:13 EDT ---



--- Additional comment from Jan Kurik on 2016-07-26 00:06:57 EDT ---

This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

--- Additional comment from David Lehman on 2016-07-27 17:06:56 EDT ---

I think you missed --noformat. See if that helps. I don't see a blivet bug here by any stretch of the imagination.

--- Additional comment from Jiri Konecny on 2016-07-28 03:47:45 EDT ---

I have tested it with --noformat and I'm getting "not enough space for LVM requests" which is error too because I don't need any more space then before.

I tested it with --noformat on thinLV and also without --noformat parameter, result is the still the same.

I'm attaching new kickstart file.

--- Additional comment from Jiri Konecny on 2016-07-28 03:49 EDT ---



--- Additional comment from David Lehman on 2016-08-31 10:51:45 EDT ---

This is almost certainly happening in pyanaconda.kickstart.

Comment 2 Jiri Konecny 2017-03-14 10:15:26 UTC
The same is happening in RHEL 7.

Comment 3 Vratislav Podzimek 2017-03-21 12:29:38 UTC
https://github.com/rhinstaller/blivet/pull/563

Comment 5 Peter Kotvan 2017-05-29 10:16:25 UTC
Reproduced on RHEL-7.3 GA, fix verified on RHEL-7.4-20170525.7 with python-blivet-0.61.15.63-1.el7.

Thanks.

Comment 6 errata-xmlrpc 2017-08-01 23:12:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2207