vmware / vic

vSphere Integrated Containers Engine is a container runtime for vSphere.
http://vmware.github.io/vic
Other
639 stars 173 forks source link

Automate NSX test for nightlies #3653

Open rajanashok opened 7 years ago

rajanashok commented 7 years ago

As a VIC engineer, I'd like to have automation support for running the NSX test, so it can be included as part of the nightly test run.

Acceptance criteria:

  1. Implement the NSX test automation.
  2. Add the test to the nightlies.
mhagen-vmware commented 7 years ago

This is more involved that just a simple pull in an existing test into nightlies:

  1. 6.5 does not support NSX at all currently according to, so this is only a 6.0 exercise at the moment: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2147548

  2. The existing test that uses a test bed has never been successful, after several months of work I could not get it to successfully deploy.

  3. I met with some minimal success at the end of last year by manually installing the nsx ova into a vcenter deployment following these instructions: http://pubs.vmware.com/NSX-62/index.jsp?topic=%2Fcom.vmware.ICbase%2FWelcome%2Fwelcome.html

But that requires at least use of the ovftool, which theoretically should be possible as we already have that tool available for harbor installs, but it will also then likely require implementation of a wrapper library around their REST library in order to try and set it up.

mhagen-vmware commented 7 years ago

Ok, spoke with @mlh78750 more about this. It is going to be a nightmare for us to get through, but I think it is doable. We need to start with the official install docs above and work through getting the ovftool install working. If we can get to that point, we should be in decent shape. Then we either need to try and utilize their REST api or we need to work on a headless selenium process within the drone worker. Both of which are valuable approaches that we will eventually need to do for other testing purposes anyways.

rajanashok commented 7 years ago

Thanks for the detailed description on the effort needed here. I will take a stab on ovftool install, should be a good learning exercise :)

mhagen-vmware commented 7 years ago

yw, take a look at what I did with the harbor install keyword as a potential starting point.

https://github.com/vmware/vic/blob/master/tests/resources/Harbor-Util.robot

rajanashok commented 7 years ago

Working on manually setting up the NSX manager on the nimbus cluster deployment, so to pass the appropriate settings via OVFTool.