Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt: adding kernel boot parameters to libvirt xml #55245

Merged
merged 2 commits into from Jan 1, 2020
Merged

virt: adding kernel boot parameters to libvirt xml #55245

merged 2 commits into from Jan 1, 2020

Conversation

larrydewey
Copy link
Contributor

@larrydewey larrydewey commented Nov 8, 2019

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 as a code owner Nov 8, 2019
@ghost ghost requested a review from garethgreenaway Nov 8, 2019
Copy link
Collaborator

@cbosdo cbosdo left a comment

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

salt/modules/virt.py Show resolved Hide resolved
@bryceml
Copy link
Contributor

@bryceml 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
Collaborator

@cbosdo cbosdo left a comment

See inline comments

salt/modules/virt.py Outdated Show resolved Hide resolved
salt/utils/virt.py Show resolved Hide resolved
tests/unit/modules/test_virt.py Show resolved Hide resolved
@larrydewey
Copy link
Contributor Author

@larrydewey 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
cbosdo
cbosdo approved these changes Dec 23, 2019
Copy link
Collaborator

@cbosdo cbosdo left a comment

👍

@codecov
Copy link

@codecov 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

@codecov 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 Dec 27, 2019
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
Contributor Author

@larrydewey 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
Contributor

@waynew waynew commented Dec 30, 2019

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

dwoz
dwoz approved these changes Jan 1, 2020
@dwoz dwoz merged commit 3730c20 into saltstack:master Jan 1, 2020
49 checks passed
admd pushed a commit to admd/salt-1 that referenced this issue 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 issue 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>
cbosdo pushed a commit to cbosdo/salt that referenced this issue Mar 13, 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 issue 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 issue 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 issue 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>
cbosdo pushed a commit to cbosdo/salt that referenced this issue May 12, 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 issue 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 issue 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.

None yet

5 participants