Skip to content

Cherry-pick: Changes to allow us to run nightly tests for 1.4.3#8151

Merged
zjs merged 31 commits intovmware:releases/1.4.3from
zjs:cherry/nightly-fixes
Jul 27, 2018
Merged

Cherry-pick: Changes to allow us to run nightly tests for 1.4.3#8151
zjs merged 31 commits intovmware:releases/1.4.3from
zjs:cherry/nightly-fixes

Conversation

@zjs
Copy link
Member

@zjs zjs commented Jul 19, 2018

Cherry-pick a variety of changes related to nightly testing to allow us to run nightly tests on the 1.4.3 release branch:

@zjs zjs self-assigned this Jul 19, 2018
@zjs zjs requested review from DanielXiao and hickeng July 19, 2018 08:41
Copy link
Contributor

@hickeng hickeng left a comment

Choose a reason for hiding this comment

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

Running this via the test base job passed with a limited set of tests. For me that's enough to determine that the core of the changes are correct. We may need some specific test cherry picks as well, but this is the necessary core.

@zjs
Copy link
Member Author

zjs commented Jul 27, 2018

Before this is rebased and merged, it should be rebased to include this PR number on the first line of each commit message.

mhagen-vmware and others added 23 commits July 26, 2018 18:05
* Add retry on vSAN DOM objects in DS check

(cherry picked from commit f1c9787)
…8151)

* Add vSAN DOM check retry for vSAN complex

(cherry picked from commit 760046b)
…8151)

Adds a nightly test that verifies vicadmin functions properly without a
wan connection. Fixes vmware#7102.

(cherry picked from commit d5135e4)
…re#8151)

Disable the "granted ops-user perms work after upgrade" test in the
5-25-OPS-User-Grant nightly suite.

(cherry picked from commit 7b6cde7)
Updated the NFS Volume nightlies to build a full NFS test bed instead of relying on the unsupported pod placement calls.

Fixes vmware#7642

(cherry picked from commit ff6baa9)
…are#8151)

This commit adds test scripts for running a nightly Jenkins job to
run tests in a non-DRS environment. This change runs the
Group19-DRS-Disabled suite against a pre-deployed, static vCenter
ELM testbed. The corresponding secrets file will be committed to
the internal repo.

Future changes will include adding more tests and using a testbed
deployed with a service account.

Fixes vmware#7662

(cherry picked from commit fe040e0)
…mware#8151)

Increases timeout from default 3m to 30m

Toward vmware#7718

(cherry picked from commit 0e43ea6)
* fix 21-1-Whitelist test

(cherry picked from commit ef61c13)
This parameterizes the nightly job runner script so that we can pass in
the configuration elements that were previously hard coded. The primary
difference is it's possible to run a user specified subset of the test
cases.

Also removes references in the test definitions to specific user
directories.

There is a mostly duplicated version of the job runner files called
jenkins-drs-disabled-run.sh - as best I can determine these files are not
unified only because some of the nightly tests have not been confirmed to
work when the test executor is in a container.

(cherry picked from commit 3b269fa)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
* Add retry on vSAN DOM objects in DS check

(cherry picked from commit f1c9787)
zjs pushed a commit that referenced this pull request Jul 27, 2018
* Add vSAN DOM check retry for vSAN complex

(cherry picked from commit 760046b)
zjs pushed a commit that referenced this pull request Jul 27, 2018
Adds a nightly test that verifies vicadmin functions properly without a
wan connection. Fixes #7102.

(cherry picked from commit d5135e4)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs added a commit that referenced this pull request Jul 27, 2018
Disable the "granted ops-user perms work after upgrade" test in the
5-25-OPS-User-Grant nightly suite.

(cherry picked from commit 7b6cde7)
zjs pushed a commit that referenced this pull request Jul 27, 2018
Updated the NFS Volume nightlies to build a full NFS test bed instead of relying on the unsupported pod placement calls.

Fixes #7642

(cherry picked from commit ff6baa9)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
This commit adds test scripts for running a nightly Jenkins job to
run tests in a non-DRS environment. This change runs the
Group19-DRS-Disabled suite against a pre-deployed, static vCenter
ELM testbed. The corresponding secrets file will be committed to
the internal repo.

Future changes will include adding more tests and using a testbed
deployed with a service account.

Fixes #7662

(cherry picked from commit fe040e0)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
This change fixes the VIC tar extraction path in the
jenkins-drs-disabled-run.sh script. We were erroneously
extracting the binaries outside the vic/ directory, causing the
'Install VIC Appliance To Test Server' keyword to fail because it
couldn't locate the vic-machine binary in vic/bin.

Towards #7662

(cherry picked from commit 0cf0634)
zjs pushed a commit that referenced this pull request Jul 27, 2018
This commit adds an integration test in Group19-DRS-Disabled to
verify that during a VCH create, vic-machine checks for the DRS
setting in the targeted cluster and also warns if any command
options specific to resource pools are supplied, since they will
be ignored as they are not applicable in a DRS-disabled env.

Towards #7275

(cherry picked from commit e3991c1)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
Increases timeout from default 3m to 30m

Toward #7718

(cherry picked from commit 0e43ea6)
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
zjs pushed a commit that referenced this pull request Jul 27, 2018
* fix 21-1-Whitelist test

(cherry picked from commit ef61c13)
zjs pushed a commit that referenced this pull request Jul 27, 2018
(cherry picked from commit 2c5ded5)
zjs pushed a commit that referenced this pull request Jul 27, 2018
This parameterizes the nightly job runner script so that we can pass in
the configuration elements that were previously hard coded. The primary
difference is it's possible to run a user specified subset of the test
cases.

Also removes references in the test definitions to specific user
directories.

There is a mostly duplicated version of the job runner files called
jenkins-drs-disabled-run.sh - as best I can determine these files are not
unified only because some of the nightly tests have not been confirmed to
work when the test executor is in a container.

(cherry picked from commit 3b269fa)
zjs pushed a commit that referenced this pull request Jul 27, 2018
This is a follow on from #8047 and corrects the variable
quoting when passing though one script to another.

This has been tested via a branch build with multiple
test suites specified.

(cherry picked from commit 88d047f)
zjs pushed a commit that referenced this pull request Jul 27, 2018
1. correct link construction for download of log bundles
2. correct custom test bed specified case in nimbus utils
3. clean generated log file name

The spec arg has been moved to the end to reduce the changes
necessary in calls to the Nimbus Deploy Testbed keyword that do
not specify a custom testbed file.

(cherry picked from commit 0f68789)
zjs pushed a commit that referenced this pull request Jul 27, 2018
This builds on #8047 and #8063 to address some outstanding issues left by
that work. In the case of the hetrogeneous and NFS tests, it is test
updates necessitated by the prior Nimbus-Util.robot updates.

In the case of the VSAN tests it switches to using a testbed descriptor
based off the vic-simple-cluster spec instead of what appeared to be a
library spec, testng/testbeds/vsan.rb.

This disables the complex vSAN testsuite at this time as I could not infer
what the complex case was testing, and it is not in the test doc. It's
possible that it's testing multiple vSAN datastores and our ability to use
either but that's pure speculation.

(cherry picked from commit d533414)
zjs pushed a commit that referenced this pull request Jul 27, 2018
…8151)

This commit attempts to improve predictability by normalizing error
checking, retry approaches, pxe boot directory, and parameterizing
previously hard-coded build config. The latter is included because it
allows the caller to make reasonable estimates about how the build will
run rather than having to dig through test code.

Previously there were retries of different durations wrapped around the
outside of the Add Host To Distributed Switch keyword. If it may need
retrying then the operation should do so to avoid this cluster, and those
cases where a retry was not present.

Reduce sleep in inner retry loops to fail faster and adds a check for exit
code in addition to output parsing for faster fail. The inner loops should
be parameterized or removed completely in favour of the outer retry
logic unless there's significant improvement in success probability from
retrying at that level however this commit does not embark on that
work.

(cherry picked from commit 1387ab1)
zjs pushed a commit that referenced this pull request Jul 27, 2018
This updates the build numbers used for scenario test setup to the latest
update relases of the respective vSphere versions for 6.0, 6.5, and 6.7
Adds perma-links to the version/build mappings for future convenience.

(cherry picked from commit 3af7fa6)
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.

9 participants