-
Notifications
You must be signed in to change notification settings - Fork 168
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
guest os booting: add new modular case for direct kernel boot #5073
Conversation
|
74fd151
to
e5f3fc3
Compare
0b87733
to
734de75
Compare
direct_kernel_dict = eval(params.get("direct_kernel_dict", "{}") | ||
% (boot_initrd, boot_vmlinuz)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will fail if direct_kernel_dict is {}, can you try format()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't work with an error. So here I only removed {} in it.
:param dest_file: The dest file path | ||
:param test: Avocado test object | ||
""" | ||
if utils_package.package_install("wget"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we recommend installing packages for host in ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can configure it in jobs.yaml. But for wget package I'm just curious that if we use avocado.utils.download, don't we need to configure it in jobs.yaml, is that right?
if utils_package.package_install("wget"): | ||
if url.count("URL"): | ||
test.cancel("Please provide the url %s" % url) | ||
download_cmd = "wget %s -O %s" % (url, dest_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please reuse avocado.utils.download
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the function download_url in guest_os_booting_base.py and directly use url_download in avocado.utils.download.
734de75
to
fd51613
Compare
vmxml.set_memory(memory_value) | ||
vmxml.set_current_mem(memory_value) | ||
vmxml.sync() | ||
test.log.info("The final guest xml is %s", vmxml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test.log.info("The final guest xml is %s", vmxml) | |
test.log.debug("The final guest xml is %s", vmxml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM
Signed-off-by: Meina Li <[email protected]>
fd51613
to
3f6c46c
Compare
This PR mainly automates:
VIRT-297126 - Boot vm with direct kernel