https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842021-07-12T06:23:45ZopenSUSE Project Management ToolopenQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4253802021-07-12T06:23:45Zcoolgwwegao@suse.com
<ul><li><strong>Assignee</strong> set to <i>coolgw</i></li></ul> openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4254522021-07-12T08:26:08Zcoolgwwegao@suse.com
<ul></ul><p><a href="https://openqa.suse.de/tests/6416296#step/partitioning/3" class="external">https://openqa.suse.de/tests/6416296#step/partitioning/3</a> failed when try using setting PARTITION_EDIT ext4_btrfs</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4286622021-07-20T01:51:26Zcoolgwwegao@suse.com
<ul><li><strong>Assignee</strong> deleted (<del><i>coolgw</i></del>)</li></ul> openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4286952021-07-20T08:02:19Zlelileli@suse.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>leli</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>10</i></li></ul><p>Create a needle for ext4 filesystem on /.</p>
<p>Wait <a href="https://openqa.suse.de/tests/6491122#live" class="external">https://openqa.suse.de/tests/6491122#live</a> to verify.</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4287192021-07-20T08:29:38Zlelileli@suse.com
<ul><li><strong>% Done</strong> changed from <i>10</i> to <i>30</i></li></ul><p>Create a branch to allow user to set filesystem</p>
<p>Wait <a href="http://openqa.nue.suse.com/tests/6491194#live" class="external">http://openqa.nue.suse.com/tests/6491194#live</a></p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4291192021-07-21T05:24:02Zlelileli@suse.com
<ul></ul><p>Verify whether this works on x86_64, wait <a href="https://openqa.suse.de/tests/6505839#" class="external">https://openqa.suse.de/tests/6505839#</a></p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4294462021-07-22T01:13:49Zlelileli@suse.com
<ul></ul><p>Verified on x86_64:<br>
<a href="https://openqa.nue.suse.com/tests/6506809#step/partitioning/2" class="external">https://openqa.nue.suse.com/tests/6506809#step/partitioning/2</a> ext4<br>
<a href="http://openqa.nue.suse.com/tests/6506810#step/partitioning/2" class="external">http://openqa.nue.suse.com/tests/6506810#step/partitioning/2</a> xfs</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4295392021-07-22T07:28:51Zlelileli@suse.com
<ul><li><strong>% Done</strong> changed from <i>30</i> to <i>50</i></li></ul><p>PR submitted. <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12957" class="external">https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12957</a></p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4303332021-07-26T08:00:49Zlelileli@suse.com
<ul></ul><p>From the suggestion from QE-yast team, we shouldn't use the needle any more, we need add the new setup_libyui and set corresponding test_data.</p>
<p>#############################################################</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:28 PM<br>
Hi Lemon, we don't use this test module anymore (or if we use we are getting rid off in most of the test suites). We try to avoid to use needles or new settings at all cost. So I can only recommend you to use our existing code for guided partitioning:<br>
<a href="https://openqa.suse.de/tests/6518899#step/guided_setup/1">https://openqa.suse.de/tests/6518899#step/guided_setup/1</a><br>
<a href="https://openqa.suse.de/tests/6518935#step/guided_setup/1">https://openqa.suse.de/tests/6518935#step/guided_setup/1</a></p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:29 PM<br>
Ok, I will have a look, thanks.</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:32 PM<br>
don't hesitate to ask, probably you just need to configure the test suite with right schedule 'setup_libyui' and in general mimic for example what is in <a href="https://openqa.suse.de/tests/6518899/settings/schedule/yast/ext4/ext4@yast.yaml">https://openqa.suse.de/tests/6518899/settings/schedule/yast/ext4/ext4@yast.yaml</a> with the test data you need.</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:34 PM<br>
Maybe, but the test is based on functional create_hdd job, we just follow the process.</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:36 PM<br>
it is an installation from scratch, it is not like you boot the hdd, you can have exactly the same schedule except for that test module that I mentioned and the one new to change the file system and add the test data to read the right file system.<br>
what I mean is that you don't have any dependency 🙂</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:40 PM<br>
I see, this looks like a workaround or use a branch to do this. just update the yaml to set different filesystem.<br>
we hope to make this easy, just use a setting to select it.</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:44 PM<br>
settings are not making things easier, because they don't scale well, we avoid them as much as we can because it create many if/else in the code very hard to handle in future (still there is a few needed, but definitely not new ones)</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:46 PM<br>
So for now if we need select a xfs then we need use a branch to set xfs and related data to run the installation?</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:46 PM<br>
what do you mean by branch?<br>
the recommended option is that you use the new test modules using libyui.</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:47 PM<br>
git branch to change the yaml file</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:47 PM<br>
no, you can have different schedules for your test suites, you don't need to branch them<br>
here <a href="https://openqa.suse.de/tests/6518899#settings">https://openqa.suse.de/tests/6518899#settings</a> in Settings you can fine YAML_SCHEDULE<br>
<a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/declarative-schedule-doc.md">https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/declarative-schedule-doc.md</a></p>
<p>github.com<br>
os-autoinst-distri-opensuse/declarative-schedule-doc.md at master · os-autoinst/os-autoinst-distri-opensuse<br>
os-autoinst test cases for openSUSE. Contribute to os-autoinst/os-autoinst-distri-opensuse development by creating an account on GitHub.</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:49 PM<br>
Yes, I see<br>
So we need to add different yaml files for different filesystem.</p>
<p>Joaquín Rivera <a class="user active user-mention" href="https://progress.opensuse.org/users/25932">@JERiveraMoya</a><br>
3:49 PM<br>
and the libyui framework docs here: <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/ui-framework-documentation.md">https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/ui-framework-documentation.md</a></p>
<p>github.com<br>
os-autoinst-distri-opensuse/ui-framework-documentation.md at master · os-autoinst/os-autoinst-distri-opensuse<br>
os-autoinst test cases for openSUSE. Contribute to os-autoinst/os-autoinst-distri-opensuse development by creating an account on GitHub.<br>
not really, it could be one yaml and then you use YAML_TEST_DATA to change the filesystem, but also two yaml if it is more clear</p>
<p>leli<br>
Lemon <a class="user active user-mention" href="https://progress.opensuse.org/users/27996">@leli</a><br>
3:51 PM<br>
Ok, I can make it in one by YAML_schedule.<br>
Thanks.</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4445042021-09-10T07:00:12Zlelileli@suse.com
<ul><li><strong>% Done</strong> changed from <i>50</i> to <i>30</i></li></ul><p>Create a new yaml file for installation on s390x with ext4 as default filesystem, wait <a href="http://openqa.nue.suse.com/tests/7068443#live" class="external">http://openqa.nue.suse.com/tests/7068443#live</a> to verify.</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4452572021-09-13T09:17:26Zlelileli@suse.com
<ul></ul><p>Talking with yast QE, I think update test code for needle is the suitable solution for us.</p>
<p>Lemon Li Today at 1:44 PM<br>
Hi yast experts, I found the get_suggested_partitioning hasn't been defined in Distribution::Sle::15sp2 and 15sp0, <a href="https://openqa.nue.suse.com/tests/7069343#step/select_guided_setup/2">https://openqa.nue.suse.com/tests/7069343#step/select_guided_setup/2</a><br>
So what's the reason? If this is for the feature hasn't been backported, what's the suggestion for the selection for suggested filesystem? Thanks.<br>
10 replies</p>
<p>Lemon Li 4 hours ago<br>
We met this issue during the run to install SLES15SP1 on z/VM.</p>
<p>Joaquin Rivera 3 hours ago<br>
Hi @Oleksandr Orlov seems that this is for SP1, where there is not libuyui, so the framework has to work with needles, do you think we should recommend to use the framework with needles (you were more involve in early stage, maybe you have better idea here) or doing a module from the scratch? wdyt?</p>
<p>Joaquin Rivera 3 hours ago<br>
@Lemon Li in the meantime Alex replies back, you can try one thing, create a file /15sp1.pm and add sub_partitioner from /15sp0.pm. Also you need to fix these two lines in DistributionProvider.pm<br>
return Distribution::Sle::15sp2->new() if is_sle('>=15-sp2');<br>
return Distribution::Sle::15sp1->new() if is_sle('>=15-sp1');<br>
If works out of the box would be a good signal. (edited) </p>
<p>Lemon Li 3 hours ago<br>
@Joaquin Rivera If no problem, I think I can do this by needle, because we are not only do this on SLES15SP1, this action is needed for versions less SLES15SP3 I think.</p>
<p>Lemon Li 3 hours ago<br>
Migration test need cover the migration from SLES15SP1/SP2/SP3 and 12SP3/12SP4/12SP5 to SLES15SP4.</p>
<p>Lemon Li 3 hours ago<br>
I will try your suggestion for code of 15sp1.pm.</p>
<p>Joaquin Rivera 3 hours ago<br>
Oh! 12-SP! Then I would recommend to do the module from scratch or fix some existing one, we are working in SP4, absorving slowly the maintenance part speciall SP3, but lower than that, if it is new development which is your case, our team still didn't reach that far regarding support...</p>
<p>Lemon Li 3 hours ago<br>
Ok, NP, then I will consider to use needle to select expected filesystem for test on version less then 15SP3. Thanks.<br>
New</p>
<p>Oleksandr Orlov 1 hour ago<br>
Hi Lemon! Do you need some setup in guided partitioning? If you just need to use default installation, you may omit those modules and use<br>
tests/sle/tests/installation/partitioning.pm and tests/installation/partitioning_finish.pm like here: <a href="https://openqa.suse.de/tests/6590008">https://openqa.suse.de/tests/6590008</a></p>
<p>Lemon Li 1 minute ago<br>
Hi Oleksandr, in fact I just want to replace the default filesystem and select a new one such as ext4. In fact I have a branch of <a href="https://github.com/os-autoinst/os-autoinst-distri-opensuse/compare/master...lemon-suse:select_filesystem_for_test?expand=1">https://github.com/os-autoinst/os-autoinst-distri-opensuse/compare/master...lemon-suse:select_filesystem_for_test?expand=1</a><br>
I think currently this is the suitable solution for us for now. Please help to have a look. Thanks.</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4452602021-09-13T09:17:59Zlelileli@suse.com
<ul><li><strong>% Done</strong> changed from <i>30</i> to <i>40</i></li></ul><p>Wait <a href="https://openqa.nue.suse.com/tests/7088780" class="external">https://openqa.nue.suse.com/tests/7088780</a> to verify.</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4455032021-09-14T03:52:13Zlelileli@suse.com
<ul><li><strong>% Done</strong> changed from <i>40</i> to <i>50</i></li></ul><p>We will use FILESYSTEM=xxx to select expected filesystem for test.</p>
<p>Verified for s390x:<br>
<a href="https://openqa.nue.suse.com/tests/7097767#" class="external">https://openqa.nue.suse.com/tests/7097767#</a></p>
<p>Wait for the verification logs on other three Arches.</p>
<p>lemon@linux-hxjt:~> /usr/share/openqa/script/clone_job.pl --from <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> --host <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> 6059007 --skip-download TEST=create_hdd_SLES-15-SP3-x86_64-GM-SDK-gnome-allpatterns.qcow2 PUBLISH_HDD_1=SLES-15-SP3-x86_64-GM-SDK-gnome-allpatterns-test-FS.qcow2 ISO=SLE-15-SP3-Online-x86_64-GM-Media1.iso SCC_DEREGISTER=1 SCC_URL=<a href="https://scc.suse.com" class="external">https://scc.suse.com</a> BETA=0 _GROUP=0 SCC_ADDONS=sdk PATTERNS=all EXCLUDE_PATTERNS=common-criteria HDDSIZEGB=60 FILESYSTEM=ext4<br>
Created job #7097803: sle-15-SP3-Online-x86_64-Build187.1-create_hdd_gnome@64bit -> <a href="http://openqa.nue.suse.com/t7097803" class="external">http://openqa.nue.suse.com/t7097803</a><br>
lemon@linux-hxjt:~> /usr/share/openqa/script/clone_job.pl --from <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> --host <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> 5991382 --skip-download TEST=create_hdd_SLES-15-SP3-aarch64-GM-gnome-allpatterns.qcow2 PUBLISH_HDD_1=SLES-15-SP3-aarch64-GM-gnome-allpatterns-test-FS.qcow2 ISO=SLE-15-SP3-Online-aarch64-GM-Media1.iso SCC_DEREGISTER=1 SCC_URL=<a href="https://scc.suse.com" class="external">https://scc.suse.com</a> BETA=0 _GROUP=0 HDDSIZEGB=60 PATTERNS=all EXCLUDE_PATTERNS=common-criteria FILESYSTEM=ext4<br>
Created job #7097808: sle-15-SP3-Online-aarch64-Build187.1-create_hdd_gnome@aarch64 -> <a href="http://openqa.nue.suse.com/t7097808" class="external">http://openqa.nue.suse.com/t7097808</a><br>
lemon@linux-hxjt:~> /usr/share/openqa/script/clone_job.pl --from <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> --host <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> 5989568 --skip-download TEST=create_hdd_SLES-15-SP3-ppc64le-GM-gnome-allpatterns.qcow2 PUBLISH_HDD_1=SLES-15-SP3-ppc64le-GM-gnome-allpatterns-test-FS.qcow2 ISO=SLE-15-SP3-Online-ppc64le-GM-Media1.iso SCC_DEREGISTER=1 SCC_URL=<a href="https://scc.suse.com" class="external">https://scc.suse.com</a> BETA=0 _GROUP=0 HDDSIZEGB=60 PATTERNS=all EXCLUDE_PATTERNS=common-criteria FILESYSTEM=ext4<br>
Created job #7097811: sle-15-SP3-Online-ppc64le-Build187.1-create_hdd_gnome@ppc64le-2g -> <a href="http://openqa.nue.suse.com/t7097811" class="external">http://openqa.nue.suse.com/t7097811</a></p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4455632021-09-14T07:15:49Zlelileli@suse.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>Verified on OSD, so we will set the expected filesystem by setting the FILESYSTEM.</p>
<p><a href="https://openqa.nue.suse.com/tests/7098432#" class="external">https://openqa.nue.suse.com/tests/7098432#</a> x86_64<br>
<a href="http://openqa.nue.suse.com/tests/7098433#step/partitioning_filesystem/8" class="external">http://openqa.nue.suse.com/tests/7098433#step/partitioning_filesystem/8</a> aarch64<br>
<a href="https://openqa.nue.suse.com/tests/7098445#step/partitioning_filesystem/9" class="external">https://openqa.nue.suse.com/tests/7098445#step/partitioning_filesystem/9</a> ppc64le</p>
openQA Tests - action #93600: [sle][migration][sle15sp4] Automation - set file system besides the default file systemhttps://progress.opensuse.org/issues/93600?journal_id=4458062021-09-14T19:40:57Zokurzokurz@suse.com
<ul></ul><p>leli wrote:</p>
<blockquote>
<p>[…]<br>
lemon@linux-hxjt:~> /usr/share/openqa/script/clone_job.pl --from <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> --host <a href="http://openqa.nue.suse.com" class="external">http://openqa.nue.suse.com</a> 6059007 --skip-download …</p>
</blockquote>
<p>Please use <code>openqa-clone-job</code> from PATH instead of /usr/share/openqa/script/clone_job.pl which we plan to deprecate in the future.</p>
<p>Also I suggest instead of </p>
<pre><code>openqa-clone-job --from http://openqa.nue.suse.com --host http://openqa.nue.suse.com 6059007 --skip-download …
</code></pre>
<p>to use the shorter equivalent form</p>
<pre><code>openqa-clone-job --within-instance http://openqa.nue.suse.com 6059007 …
</code></pre>