Bug 1009283

Summary: [RFE] [plugins] install based on ks template
Product: [Fedora] Fedora Reporter: Jóhann B. Guðmundsson <johannbg>
Component: dnf-plugins-coreAssignee: Radek Holy <rholy>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 20CC: akozumpl, jzeleny, packaging-team-maint, pnemade, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-0.0.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-13 09:43:20 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:

Description Jóhann B. Guðmundsson 2013-09-18 06:35:33 UTC
Description of problem:

It would be extremly handy if it was possible for DNF to install based ks file as in something like dnf install foo.ks and it would read and install based on the ks file.

The usecase for this for administrator to re-use existing ks file in their infrastructure and install directly into OS container which then could be started.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ales Kozumplik 2013-09-18 07:23:38 UTC
Hello, this is a good idea and we'll keep it in the backlog.

Closely related bug (perhaps to generate the ks): bug 884615.

Comment 2 Jóhann B. Guðmundsson 2013-09-18 09:57:54 UTC
For OS containers the %post sections probably be needed to be wrapped into something like ( if doable/supportable )

# chroot /containers/container01.example.com/ su - root -c ". ~/.bash_profile; <%post command>"

Comment 3 Ales Kozumplik 2013-09-18 10:29:59 UTC
that's up to the containers. DNF will only use the %packages section I think.

We also need to make this accessible from the API so Anaconda might consider switching to it later.

Comment 4 Ales Kozumplik 2013-11-27 14:27:09 UTC
This will have to be a plugin as it's going to depend on kickstart and we don't want that dep in the core.

Comment 5 Ales Kozumplik 2013-12-04 13:20:49 UTC
Radek, please take care of this one (building a plugin that does just that). Ask the #anaconda guys about how to use python-kickstart to parse out what is needed. 

Then in DNF just register a new 'dnf kickstart' Command.

Comment 6 Ales Kozumplik 2013-12-05 10:04:55 UTC
Here's an example of how to register a new command from a plugin:

https://github.com/akozumpl/dnf-plugins/blob/master/plugins/download.py

Documentation is coming. The plugin should use the existing API where at all possible.

Comment 7 Radek Holy 2013-12-20 09:32:24 UTC
The plugin have been implemented. Now it is waiting for the package to be released.

Comment 8 Jóhann B. Guðmundsson 2013-12-20 11:08:24 UTC
Fantastic great work thanks

Comment 9 Fedora End Of Life 2013-12-21 15:36:57 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.