-
Notifications
You must be signed in to change notification settings - Fork 1.5k
vshpere: download ova into cache #2922
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/uncc @jhixson74 |
9201d19 to
7a14ed3
Compare
7120267 to
d85bfa0
Compare
30edba5 to
533209b
Compare
This change caches a copy of the vmware ova specified in rhcos.json in preperation to upload the OVA into a Template.
|
/retest |
1 similar comment
|
/retest |
| if err != nil { | ||
| return errors.Wrapf(err, "failed to get %s Terraform variables", platform) | ||
| } | ||
| installConfig.Config.VSphere.ClusterOSImage = cachedImage |
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.
What is the effect of doing this? Is this value saved or used later?
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.
The goal here is to stuff the cached location back into the installConfig so we can pass it to the preterraform func. https://github.com/openshift/installer/pull/2922/files#diff-661643e1b9745123649391076bfa5a01R22. I don't believe it's ever written out to disk, though.
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 don't think you can assume writeback to your dependency assets, the asset store could easily be providing you the ready only copies.
dependency loops are not great.
|
One question https://github.com/openshift/installer/pull/2922/files#r372164571 but |
|
/retest |
1 similar comment
|
/retest |
|
@jstuever: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/unassign @patrickdillon |
| // PreTerraform performs any infrastructure initialization which must | ||
| // happen before Terraform creates the remaining infrastructure. | ||
| func PreTerraform(ctx context.Context, infraID string, installConfig *installconfig.InstallConfig) error { | ||
| // TODO: create VM Template using cachedImage | ||
| return nil | ||
| } |
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.
the goal for pre terraform was to put in code that was not easily done by terraform itself, like tagging subnets for AWS.
my preference would be keep any cloud creation into terraform, we can easily keep local terraform providers for the custom objects/operations like the uploading ova.
|
I think there is a serious issue with |
|
Going to be solved a different way. |
This change caches a copy of the vmware ova specified in rhcos.json in
preperation to upload the OVA into a Template.
Depends on: #2889 #2893