Bug 1175535 - Storage proposal reuse swap from disk not specified in AY profile
Summary: Storage proposal reuse swap from disk not specified in AY profile
Status: CONFIRMED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: YaST Team
QA Contact: E-mail List
URL: https://trello.com/c/reghQm5A
Whiteboard:
Keywords:
Depends on:
Blocks: 1215639
  Show dependency treegraph
 
Reported: 2020-08-20 11:51 UTC by Josef Reidinger
Modified: 2023-10-24 06:30 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2logs (1.41 MB, application/x-xz)
2020-08-20 11:51 UTC, Josef Reidinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josef Reidinger 2020-08-20 11:51:42 UTC
Created attachment 840857 [details]
y2logs

autoyast profile specify 2 disks out of 5 on system. Storage proposal use one of that disks, but reuse swap from not specified disk, which is not intended.

For details see attached yast logs.
Comment 1 David Diaz 2020-08-20 14:00:25 UTC
(In reply to Josef Reidinger from comment #0)
> Created attachment 840857 [details]
> y2logs
> 
> autoyast profile specify 2 disks out of 5 on system. Storage proposal use
> one of that disks, but reuse swap from not specified disk, which is not
> intended.

It would be nice to have the profile attached too.

> 
> For details see attached yast logs.

See

> 2020-08-20 04:32:25 <1> dhcp67(4181) [Ruby] devices_planner_strategies/ng.rb:219 planned to reuse swap /dev/vdd2
Comment 2 Imobach Gonzalez Sosa 2020-08-21 07:07:56 UTC
I think that, by default, the manual proposal tries to use an existing swap instead of creating a new one. But I have to check such a behavior. A different matter is if we want AutoYaST to behave like that.

If I recall correctly, the partitioning section was something like this:

<partitioning t="list">
  <drive>
    <initialize t="boolean">true</initialize>
    <device>/dev/vda</device>
  </drive>
  <drive>
    <initialize t="boolean">true</initialize>
    <device>/dev/vdb</device>
  </drive>
</partitioning>
Comment 3 roke beedell 2023-09-25 10:43:21 UTC
(In reply to Imobach Gonzalez Sosa from comment #2)
> I think that, by default, the manual proposal tries to use an existing swap
> instead of creating a new one. But I have to check such a behavior. A
> different matter is if we want AutoYaST to behave like that.
> 
> If I recall correctly, the partitioning section was something like this:
> 
> <partitioning t="list">
>   <drive>
>     <initialize t="boolean">true</initialize>
>     <device>/dev/vda</device>
>   </drive>
>   <drive>
>     <initialize t="boolean">true</initialize>
>     <device>/dev/vdb</device>
>   </drive>
> </partitioning>

What would occur if multiple drives has SWAP partitions? If there's some kind of sensible criteria, it might be worth retaining, but if it just chooses a partition at seemingly random, then it might be more sensible for it to default to the installation partition.