Skip to content

virt: adding kernel boot parameters to libvirt xml#55245

Merged
dwoz merged 2 commits into
saltstack:masterfrom
larrydewey:kernel_params
Jan 1, 2020
Merged

virt: adding kernel boot parameters to libvirt xml#55245
dwoz merged 2 commits into
saltstack:masterfrom
larrydewey:kernel_params

Conversation

@larrydewey
Copy link
Copy Markdown

What does this PR do?

This PR adds the kernel path, initrd path, and kernel boot command line parameters to libvirt xml for use with SUSE's autoyast and Red Hat's kickstart.

What issues does this PR fix or reference?

N/A

New Behavior

Adds an additional parameter 'boot=None' to a number of functions, allowing the kernel path, the initrd path, and the kernel boot command line string to be parse and added to the xml.

Tests written?

[NOTICE] Bug fixes or features added to Salt require tests.
Please review the test documentation for details on how to implement tests into Salt's test suite.

Yes

Commits signed with GPG?

Yes

@larrydewey larrydewey requested a review from a team as a code owner November 8, 2019 19:50
@ghost ghost requested a review from garethgreenaway November 8, 2019 19:51
Copy link
Copy Markdown
Contributor

@cbosdo cbosdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me, but I would add remote kernel/initrd download.

Comment thread salt/modules/virt.py Outdated
@bryceml
Copy link
Copy Markdown
Contributor

bryceml commented Nov 21, 2019

re-run full all

@larrydewey larrydewey changed the title virt: adding kernel boot parameters to libvirt xml WIP: virt: adding kernel boot parameters to libvirt xml Nov 27, 2019
Copy link
Copy Markdown
Contributor

@cbosdo cbosdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments

Comment thread salt/modules/virt.py Outdated
Comment thread salt/utils/virt.py Outdated
Comment thread tests/unit/modules/test_virt.py Outdated
Comment thread tests/unit/modules/test_virt.py Outdated
@larrydewey
Copy link
Copy Markdown
Author

larrydewey commented Dec 20, 2019

Not entirely sure if the ci/lint issue is something I caused. @cbosdo have you run into this before?
Fixed...

@larrydewey larrydewey changed the title WIP: virt: adding kernel boot parameters to libvirt xml virt: adding kernel boot parameters to libvirt xml Dec 23, 2019
Copy link
Copy Markdown
Contributor

@cbosdo cbosdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 26, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@7ed2696). Click here to learn what that means.
The diff coverage is 12.07%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #55245   +/-   ##
=========================================
  Coverage          ?   18.79%           
=========================================
  Files             ?      822           
  Lines             ?   175254           
  Branches          ?    37710           
=========================================
  Hits              ?    32930           
  Misses            ?   139680           
  Partials          ?     2644
Flag Coverage Δ
#archlts 18.07% <12.07%> (?)
#centos7 23.74% <ø> (?)
#proxy 23.77% <ø> (?)
#py2 18.59% <12.07%> (?)
#py3 18.42% <12.07%> (?)
#runtests 18.79% <12.07%> (?)
#ubuntu1604 23.71% <ø> (?)
#zeromq 18.79% <12.07%> (?)
Impacted Files Coverage Δ
salt/utils/virt.py 26.99% <26.32%> (ø)
salt/modules/virt.py 9.75% <5.13%> (ø)

1 similar comment
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 26, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@7ed2696). Click here to learn what that means.
The diff coverage is 12.07%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #55245   +/-   ##
=========================================
  Coverage          ?   18.79%           
=========================================
  Files             ?      822           
  Lines             ?   175254           
  Branches          ?    37710           
=========================================
  Hits              ?    32930           
  Misses            ?   139680           
  Partials          ?     2644
Flag Coverage Δ
#archlts 18.07% <12.07%> (?)
#centos7 23.74% <ø> (?)
#proxy 23.77% <ø> (?)
#py2 18.59% <12.07%> (?)
#py3 18.42% <12.07%> (?)
#runtests 18.79% <12.07%> (?)
#ubuntu1604 23.71% <ø> (?)
#zeromq 18.79% <12.07%> (?)
Impacted Files Coverage Δ
salt/utils/virt.py 26.99% <26.32%> (ø)
salt/modules/virt.py 9.75% <5.13%> (ø)

Larry Dewey added 2 commits December 27, 2019 09:42
SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>
Signed-off-by: Larry Dewey <ldewey@suse.com>
@larrydewey
Copy link
Copy Markdown
Author

larrydewey commented Dec 30, 2019

The tests which failed were a result of issues with the test (one with a Java memory issue, the other with being unable to reach a required resource) and not with the code. Should be ready to merge in.

@waynew
Copy link
Copy Markdown
Contributor

waynew commented Dec 30, 2019

I've re-started the two failing builds, let's see how they run.

@dwoz dwoz merged commit 3730c20 into saltstack:master Jan 1, 2020
admd pushed a commit to admd/salt-1 that referenced this pull request Jan 27, 2020
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
meaksh pushed a commit to meaksh/salt that referenced this pull request Mar 10, 2020
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
agraul pushed a commit to agraul/salt that referenced this pull request Apr 22, 2020
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
meaksh pushed a commit to meaksh/salt that referenced this pull request Apr 22, 2020
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
agraul pushed a commit to agraul/salt that referenced this pull request Apr 27, 2020
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
meaksh pushed a commit to meaksh/salt that referenced this pull request Apr 13, 2021
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
agraul pushed a commit to agraul/salt that referenced this pull request Jun 25, 2021
…altstack#197)

* virt: adding kernel boot parameters to libvirt xml

SUSE's autoyast and Red Hat's kickstart take advantage of kernel paths,
initrd paths, and kernel boot command line parameters. These changes
provide the option of using these, and will allow salt and
autoyast/kickstart to work together.

Signed-off-by: Larry Dewey <ldewey@suse.com>

* virt: Download linux and initrd

Signed-off-by: Larry Dewey <ldewey@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants