Bug 1078805

Summary: libstorage-ng autoyast PartitionImpl.cc:730 THROW
Product: [openSUSE] openSUSE Distribution Reporter: Bernhard Wiedemann <bwiedemann>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED NORESPONSE QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: ancor, aschnell, bwiedemann, schubi
Version: Leap 15.0Flags: ancor: needinfo? (bwiedemann)
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Bernhard Wiedemann 2018-02-01 15:32:52 UTC
Created attachment 758438 [details]
y2log

When installing a machine with a slightly adapted autoyast.xml
http://clouddata.cloud.suse.de/netinst/autoyast.leap150-yastbug.xml
that worked fine on SLES-12-SP3

It now fails with a backtrace on Leap 15.0

[libstorage] PartitionImpl.cc:730 THROW:
partition id 256 of /dev/sda1 does not have text representation


# sfdisk --dump /dev/sda
label: gpt
label-id: 209F7C69-8E3C-41F8-8B72-0CD5C13448DB
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 3907029134

/dev/sda1 : start=        2048, size=    52428800, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=13B6AAD7-86D8-47F3-9899-8B45026DA539
/dev/sda2 : start=    52430848, size=  3854596096, type=E6D6D379-F507-44C2-A23C-238F2A3DF928, uuid=0DD02F2B-B69C-4AB1-B4F1-ED00AD9F53BF
/dev/sda3 : start=  3907026944, size=        2191, type=21686148-6449-6E6F-744E-656564454649, uuid=B1092B7E-D42A-487A-B24D-536B155BCB2C

sdb only contained a PV, but same bug occurs when (start of) sdb is zeroed.

Dropping the whole partitioning section from autoyast.xml
made it install correctly, but it used sdb for the install,
so it is still unclear if the problem was with the previous content of sda
or with details in the autoyast.xml
Comment 1 Arvin Schnell 2018-02-01 16:46:26 UTC
Creating a partition and setting the ID to ID_UNKNOWN (256) does not
work. AutoYaST must set it to some reasonable value.
Comment 2 Ancor Gonzalez Sosa 2018-02-01 16:55:11 UTC
Your profile includes this for the / partition

<partition_id config:type="integer">24</partition_id>

Which means the partition id of your main ext4 partition should be set to "AST Windows". Is that really what you wanted? I would say that's an error in the profile (it was probably just ignored by previous versions of AutoYaST).
Comment 3 Steffen Winterfeldt 2018-04-27 14:05:08 UTC
Closing as there's been no response for over 10 weeks.

If you can provide the requested information, feel free to re-open.