Bug 1230997

Summary: use new Anaconda reqpart command in kickstart snippet for custom partitioning
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: generalAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Anwesha Chatterjee <achatter>
Severity: unspecified Docs Contact:
Priority: high    
Version: 20CC: achatter, dcallagh, ebaak, rjoost
Target Milestone: 25.0Keywords: FutureFeature, Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-19 04:19:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2015-06-12 01:24:11 UTC
In bug 1164660 Anaconda gained a new command "reqpart" which acts like autopart but only creates any platform-specific required partitions. Additionally "reqpart --boot" does the same but also creates a suitable /boot partition.

We can use this to simplify Beaker's rhts_partitions snippet when the distro supports it. The existing pile of platform-specific partition stuff in that snippet can be replaced by "reqpart --boot".

Need to check where exactly this landed but I think it will be F23+, RHEL8+, RHEL7.2+.

Comment 1 Dan Callaghan 2015-10-12 04:44:38 UTC
According to bug 1164660 the necessary Anaconda patch has been in RHEL 7.2 nightlies since August, and will be therefore be in RHEL 7.2 final as well. Therefore we should be safe to start using this in Beaker for any distros identifying themselves as RHEL7.2 or newer.

Comment 2 Dan Callaghan 2017-11-07 04:15:56 UTC
https://gerrit.beaker-project.org/5917

Comment 4 Anwesha Chatterjee 2018-01-09 05:01:34 UTC
Verified with the following steps:

* submitted a job XML as follows:
```
<job retention_tag="scratch">
  <whiteboard>test for BZ1230997</whiteboard>
  <recipeSet priority="Normal">
    <recipe whiteboard="RHEL-7.2-20151030.0 Server ppc64 STANDALONE" role="None" ks_meta="" kernel_options="" kernel_options_post="">
      <autopick random="false"/>
      <watchdog panic="None"/>
      <packages/>
      <ks_appends/>
      <repos/>
      <distroRequires>
        <and>
          <distro_name op="=" value="RHEL-7.2-20151030.0"/>
          <distro_variant op="=" value="Server"/>
          <distro_arch op="=" value="ppc64"/>
        </and>
      </distroRequires>
      <hostRequires>
        <system_type value="Machine"/>
      </hostRequires>
      <partitions>
          <partition name="lol" fs="xfs" size="100"/>
       </partitions>
      <task name="/distribution/install" role="STANDALONE"/>
      <task name="/distribution/beaker/Sanity/Skip-result" role="STANDALONE"/>
      <task name="/distribution/beaker/Sanity/reboot-tests" role="STANDALONE"/>
    </recipe>
  </recipeSet>
</job>
```

* kickstart contains the following line:
`reqpart --add-boot`

Comment 5 Roman Joost 2018-03-19 04:19:07 UTC
Beaker 25.0 has been released.

Release notes are available upstream: https://beaker-project.org/docs/whats-new/release-25.html