Skip to content

Use 1.3.1 in ops user upgrade test#7874

Merged
jzt merged 1 commit intovmware:masterfrom
jzt:ops/7796
May 1, 2018
Merged

Use 1.3.1 in ops user upgrade test#7874
jzt merged 1 commit intovmware:masterfrom
jzt:ops/7796

Conversation

@jzt
Copy link
Contributor

@jzt jzt commented May 1, 2018

This change uses 1.3.1 as the base VCH version from which to upgrade in the 5-25-OPS-User-Grant granted ops-user perms work after upgrade test. 1.3.0 would fail to create a VCH because of a bug that was fixed in 1.3.1.

Fixes #7796.

[skip ci]

@jzt jzt changed the title Use 1.3.1 in ops user upgrade test Use 1.3.1 in ops user upgrade test [skip ci] May 1, 2018
@jzt jzt requested review from AngieCris, mhagen-vmware and zjs May 1, 2018 18:32

Run privilege-dependent docker operations

Cleanup VIC Appliance On Test Server
Copy link
Contributor

@AngieCris AngieCris May 1, 2018

Choose a reason for hiding this comment

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

do we want to make Cleanup VIC Appliance On Test Server a teardown or run if test failed? I noticed when it failed before cleaning up, no container logs were collected because collecting logs is part of the cleanup process

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it not covered at the top by Test Teardown Run Keyword If Test Failed Gather vSphere Logs

Copy link
Contributor

Choose a reason for hiding this comment

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

that only gathers vSphere logs but not container logs and appliance tether debug log i think

Copy link
Contributor

@AngieCris AngieCris May 1, 2018

Choose a reason for hiding this comment

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

in recent nightlies we saw failures in step Run privilege-dependent docker operations too, portlayer cannot wait for process launch status
but since cleanup keyword is never run, we don't have any container logs collected and it's hard to diagnose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I added [Teardown] for all Cleanup VIC Appliance On Test Server calls in this suite.

Run privilege-dependent docker operations

Cleanup VIC Appliance On Test Server
[Teardown] Cleanup VIC Appliance On Test Server
Copy link
Contributor

@AngieCris AngieCris May 1, 2018

Choose a reason for hiding this comment

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

one thing I'm not very sure about: does this teardown overwrite the global teardown Run Keyword If Test Failed Gather vSphere Logs?
For example if the test failed, does it run Cleanup VIC Appliance On Test Server first and then Gather vSphere Logs? Or it only runs Cleanup VIC Appliance On Test Server because that's how we defined it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would override, but since we don't really need the vsphere logs from these tests, we can get rid of the global teardown.

@jzt jzt force-pushed the ops/7796 branch 2 times, most recently from b850b49 to 00bc3b9 Compare May 1, 2018 19:07
Copy link
Contributor

@mhagen-vmware mhagen-vmware left a comment

Choose a reason for hiding this comment

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

lgtm

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.

Nightly 6.0 - 2018-04-18 - 5-25-OPS-User-Grant: Cannot init ops-user permissions

5 participants