vshpere: download ova into cache#2922
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.
What is the effect of doing this? Is this value saved or used later?
There was a problem hiding this comment.
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.
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.
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