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

Migrate GCE to Google API. #242

Merged
merged 6 commits into from
Apr 21, 2020
Merged

Migrate GCE to Google API. #242

merged 6 commits into from
Apr 21, 2020

Conversation

smarlowucf
Copy link
Collaborator

Google API supports guest os features which is required to test UEFI firmware and secure boot functionality in instances.

@smarlowucf
Copy link
Collaborator Author

I will follow up with a PR to integrate the boot firmware and secure boot options.

Also, I dropped the GCERetryableError as it seemed unnecessary because it was caught internally and re-raised as the IPARetryableError. Simplifies the code to just raise the base IPA error directly.

Google API supports guest os features which is required to test
UEFI firmware and secure boot functionality in instances.
Error content when running in python3.5 is bytes not string.
@smarlowucf
Copy link
Collaborator Author

Added image_project option to allow testing images not in service_account project. And appended a commit to add enable secure boot and enable UEFI options. If secure boot is enabled UEFI will be enabled by default.

This is not available when using google-auth and causes a failed
code path. Explicitly disabling prevents cruft in log files.
@smarlowucf
Copy link
Collaborator Author

I pushed another quick fix to disable cache_discovery as it's not available anyway when using google-auth.

img_proof/ipa_gce.py Outdated Show resolved Hide resolved
img_proof/ipa_gce.py Show resolved Hide resolved
TERMINATED state for a stopped instance can be confusing.
Fix malformed docstring in get_message_from_http_error method.
@smarlowucf
Copy link
Collaborator Author

Fixed the comments and added a link to the GCE instance lifecycle docs.

@smarlowucf smarlowucf merged commit 133a4ed into master Apr 21, 2020
@smarlowucf smarlowucf deleted the gce-sdk branch April 21, 2020 16:29
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.

3 participants