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

Add load balancer virtual server CRUD #215

Merged
merged 17 commits into from
Jul 22, 2019
Merged

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Jul 12, 2019

Work continues on introducing edge gateway load balancers https://github.com/terraform-providers/terraform-provider-vcd/issues/223

NOTE Until a next PR being submitted one must manually enable load balancing (and advanced load balancing). This can be done in Edge Gateway -> Load balancer -> Global configuration. Enable both Enabled and Acceleration Enabled as it will not work otherwise until we have this configuration in govcd code (my next PR after this is merged as it has a dependency).

Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like baking cake :) LGTM

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes required. Will test again after discussion on how to reach remote IPs

Media string `yaml:"mediaName,omitempty"`
MediaPath string `yaml:"mediaPath,omitempty"`
Media string `yaml:"mediaName,omitempty"`
PhotonOsOvaPath string `yaml:"photonOsOvaPath,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this item should go under OVA

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way we could avoid adding one more parameter to the test config? Why does LB test explicitly need Photon? Wouldn't other OVAs with VMware Tools (setup correctly) work?

I'm thinking that either way most of us should be using a capable OVA for the tests, so I suggest we skip or fail LB test if the OVA is not capable enough as opposed to adding one more parameter.

@dataclouder @vbauzysvmware ?

Copy link
Collaborator Author

@Didainius Didainius Jul 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as the OVA capability - inside the test there is a script which relies on guest customization, python3, specific firewall disable script and being able to set IPs properly. Not all OSes do it in exactly the same way. It would be overkill to identify if an OS supports all that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to catalogItem as agreed. Now it checks if catalogItem is Photon OS. If it's not - just skips the test.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

"mediaName": "uploadedMediaName",
"//": "Relative path for Photon OS image or existing image name (as it appears in the Catalog UI).",
"//": "the Catalog UI). This is required for load balancer integration test. If the image ",
"//": "already exists in your environment just set it's name here to reuse it",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"it's" -> "its"


# Relative path for Photon OS image or existing image name (as it appears in the Catalog UI).
# This is required for load balancer integration test. If the image already exists in your
# environment just set it's name here to reuse it (e.g. photon-hw11-3.0-26156e2.ova, photon-os)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"it's", "its"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates!

@Didainius
Copy link
Collaborator Author

NP.
There is still an issue that the tests not always work fine under 9.7 (9.5 works fine). I'm to investigate if I can make this work for 9.7.

Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Didainius
Copy link
Collaborator Author

Fix/workaround added for #218

@Didainius Didainius merged commit 828dbc8 into vmware:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants