Added new snpguest CI PR test for SNP guest#77
Conversation
…ithout network port conflict Added a new tool to assign network ports to multiple SNP guest without network port conflict and cleanup inactive guest network port inthe inventory file tracked by GH Action workflow Signed-off-by: Harika Nittala <lnittala@amd.com>
…ted runner. Added a new helper script having function definition for SNP related tasks(verify if SNP is enabled for the SNP host kernel, run a command on an active guest) and host dependencies(check rust dependency) on the self-hosted runner. Signed-off-by: Harika Nittala <lnittala@amd.com>
Added snpguest CI PR test workflow to run snpguest cargo tests(without flags) on the SNP guest Signed-off-by: Harika Nittala <lnittala@amd.com>
c45ff4e to
d39ee5a
Compare
|
Hi Reviewers, I re-request for the code review for snpguest CI PR test as I made major changes to address the following features:
|
|
|
||
| #!/bin/bash | ||
|
|
||
| verify_snp_host() { |
There was a problem hiding this comment.
Can I add this as a separate command in snp.sh or
use this as it is in the workflow
| } | ||
|
|
||
| # verify_snp_guest_msr CLI use: verify_snp_guest_msr "${guest_name}" "${guest_port_number}" | ||
| verify_snp_guest_msr(){ |
There was a problem hiding this comment.
Can remove this function if we can integrate this functionality in the snp.sh
| run: | | ||
| set -e | ||
|
|
||
| wget https://raw.githubusercontent.com/LakshmiSaiHarika/sev-utils/Fedora-Latest-SNP-kernel-Upstream/tools/snp.sh |
There was a problem hiding this comment.
| export GUEST_NAME=${{ env.guest_name }} | ||
| export HOST_SSH_PORT=${{ env.guest_port_in_use }} | ||
|
|
||
| ./snp.sh launch-guest |
There was a problem hiding this comment.
./snp.sh launch-guest --guest-name "${{ env.guest_name }}" --guest-port "${{ env.guest_port_in_use }}"
| source ./.github/workflows/snp_function_declarations.sh | ||
| ssh_guest_command "uname -r" ${{ env.guest_name }} ${{ env.guest_port_in_use }} | ||
|
|
||
| - name: Verify SNP on the guest via MSR |
There was a problem hiding this comment.
Can remove this once this functionality is added in the snp.sh
|
|
||
| export GUEST_NAME=${{ env.guest_name }} | ||
| export HOST_SSH_PORT=${{ env.guest_port_in_use }} | ||
| ./snp.sh stop-guests |
There was a problem hiding this comment.
./snp.sh stop-guests --guest-name "${{ env.guest_name }}"
Perform snpguest cargo tests on the SNP guest