From Fedora Project Wiki
 
(5 intermediate revisions by 2 users not shown)
Line 6: Line 6:


= How to test =
= How to test =
List available branches
List available branches(note, Fedora 29 and 30 may be listed but not supported):
<pre>
<pre>
$ sudo ostree remote refs fedora-iot
$ sudo ostree remote refs fedora-iot


fedora-iot:fedora/29/aarch64/iot
fedora-iot:fedora/29/armhfp/iot
fedora-iot:fedora/29/x86_64/iot
fedora-iot:fedora/30/aarch64/iot
fedora-iot:fedora/30/armhfp/iot
fedora-iot:fedora/30/x86_64/iot
fedora-iot:fedora/devel/aarch64/iot
fedora-iot:fedora/devel/aarch64/iot
fedora-iot:fedora/devel/armhfp/iot
fedora-iot:fedora/devel/armhfp/iot
Line 26: Line 20:
fedora-iot:fedora/stable/x86_64/iot
fedora-iot:fedora/stable/x86_64/iot
</pre>
</pre>
Rebase to another branch
Rebase to the stable branch (if testing stable rebase to rawhide):
<pre>
<pre>
$ sudo rpm-ostree rebase fedora/stable/x86_64/iot
$ sudo rpm-ostree rebase fedora/stable/$(uname -m)/iot
</pre>
</pre>
Once completed, reboot into the branch
Once completed, reboot into the branch:
<pre>
<pre>
$ sudo rpm-ostree reboot
$ sudo systemctl reboot
</pre>
</pre>
Verify that the rebase was successful
Verify that the rebase was successful:
<pre>
<pre>
$ rpm-ostree status
$ rpm-ostree status
Line 50: Line 44:
               GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
               GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
</pre>
</pre>
Rollback to the previous branch
Rollback to the previous branch:
<pre>
<pre>
$ sudo rpm-ostree rollback
$ sudo rpm-ostree rollback
Line 57: Line 51:
systemctl reboot
systemctl reboot
</pre>
</pre>
Verify rollback was successful
Verify rollback was successful:
<pre>
<pre>
$ sudo rpm-ostree status
$ sudo rpm-ostree status

Latest revision as of 18:58, 12 May 2020

Description

A simple validation test case for rebasing to other versions of Fedora IoT.

Setup

This testcase can be run on either an image or installation, on hardware or in virtualization.

How to test

List available branches(note, Fedora 29 and 30 may be listed but not supported):

$ sudo ostree remote refs fedora-iot

fedora-iot:fedora/devel/aarch64/iot
fedora-iot:fedora/devel/armhfp/iot
fedora-iot:fedora/devel/x86_64/iot
fedora-iot:fedora/rawhide/aarch64/iot
fedora-iot:fedora/rawhide/armhfp/iot
fedora-iot:fedora/rawhide/x86_64/iot
fedora-iot:fedora/stable/aarch64/iot
fedora-iot:fedora/stable/armhfp/iot
fedora-iot:fedora/stable/x86_64/iot

Rebase to the stable branch (if testing stable rebase to rawhide):

$ sudo rpm-ostree rebase fedora/stable/$(uname -m)/iot

Once completed, reboot into the branch:

$ sudo systemctl reboot

Verify that the rebase was successful:

$ rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-iot:fedora/stable/x86_64/iot
                   Version: 30.20190921.0 (2019-09-21T18:44:54Z)
                    Commit: ff81204a37c34999f9e19c05e29a23c076fb3c1dc394cc2b6a3a3f0f32af158e
              GPGSignature: Valid signature by C2A3FA9DC67F68B98BB543F47BB90722DBBDCF7C

  ostree://fedora-iot:fedora/devel/x86_64/iot
                   Version: 31.20190925.0 (2019-09-25T14:30:38Z)
                    Commit: 8f28d65fa990add14ccf56c00c458e9d6a4af478bbeb4cc566903ad0c14a443f
              GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4

Rollback to the previous branch:

$ sudo rpm-ostree rollback
Moving '8f28d65fa990add14ccf56c00c458e9d6a4af478bbeb4cc566903ad0c14a443f.0' to be first deployment
...
systemctl reboot

Verify rollback was successful:

$ sudo rpm-ostree status
...
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-iot:fedora/devel/x86_64/iot
                   Version: 31.20190925.0 (2019-09-25T14:30:38Z)
                    Commit: 8f28d65fa990add14ccf56c00c458e9d6a4af478bbeb4cc566903ad0c14a443f
              GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4

  ostree://fedora-iot:fedora/stable/x86_64/iot
                   Version: 30.20190921.0 (2019-09-21T18:44:54Z)
                    Commit: ff81204a37c34999f9e19c05e29a23c076fb3c1dc394cc2b6a3a3f0f32af158e
              GPGSignature: Valid signature by C2A3FA9DC67F68B98BB543F47BB90722DBBDCF7C

Results

  1. Rebase to stable branch successful.
  2. Rollback to devel branch successful.