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

11-01-Upgrade: Fail to vic-machine ls VCH that was upgraded and rolled back #7800

Closed
mhagen-vmware opened this issue Apr 20, 2018 · 5 comments
Assignees
Labels
kind/defect Behavior that is inconsistent with what's intended priority/p0 team/foundation

Comments

@mhagen-vmware
Copy link
Contributor

Test steps:

  1. Start with 1.2.1 VCH
  2. Upgrade to latest master
  3. Roll back to 1.2.1
  4. vic-machine ls <---- at this point no VCH is listed, but vic-machine inspect by name still works

Seen here:
https://ci-vic.vmware.com/vmware/vic/18592/7
https://ci-vic.vmware.com/vmware/vic/18590/7
https://ci-vic.vmware.com/vmware/vic/18561/7
https://ci-vic.vmware.com/vmware/vic/18564/7

It does seem to pass sometimes, so maybe a race/eventual consistency?

@cgtexmex
Copy link
Contributor

cgtexmex commented Apr 20, 2018

Also to be noted -- the Install VIC with version to Test Server is NOT installing the specified version. If you look at the output from the first test (Upgrade Present in vic-machine) you'll see the following version: v1.4.0-dev-18592-f1c9787 -- the test passes because our versioning is a bit screwed up so it shows an available upgrade even thought it's the current version...

Also it appears that the keyword Check Original Version has a few issues:

  • It's running ./bin/vic-machine -- the specified installed version is in ./vic/vic-machine
  • It's comparing the version returned against the %INITIAL_VERSION var...which is (as far as I can tell) just the string passed to the Install keyword...I don't think it's ever set via vic-machine version after install...basically I'd expect us to verify that what we said we wanted to install we actually install...it would at least help avoid the first issue of not using the correct version.

@mhagen-vmware
Copy link
Contributor Author

Not sure where you are getting that from, I am looking at build 18592 ( the first in the list above ):
image

I am seeing it wget the correct version, 1.2.1, untar it to vic and run /vic/vic-machine-linux to install it. And the later Check Original Version:
image

Also appears correct to me, it is just expecting that initial version (was set to 1.2.1 in the install) is present in the output, which it is.

@cgtexmex
Copy link
Contributor

@mhagen-vmware I'm looking at log.html from integration_logs_18592_f1c9787f7a03a79612c2ff8a3e16ed4513551f79

screen shot 2018-04-23 at 12 10 26 pm

@anchal-agrawal anchal-agrawal self-assigned this Apr 23, 2018
@anchal-agrawal anchal-agrawal added this to the Sprint 30 Foundation milestone Apr 23, 2018
@mhagen-vmware
Copy link
Contributor Author

mhagen-vmware commented Apr 23, 2018

That is correct though as well, Upgrade Present in vic-machine doesn't look like the purpose is really documented at all within the md but it looks like to me the purpose is just verifying that the current vic-machine which should be the built one (1.4... in this build) not the 1.2.1 one has upgrade present as an option. We don't really need to verify that the old vic-machine has that option or not.

@cgtexmex
Copy link
Contributor

This is happening because the there is only a vApp installed (default install of 1.2.1) -- as such the cluster only has one resource pool so ls doesn't look for a vApp since it assumes DRS is disabled.

cgtexmex pushed a commit to cgtexmex/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
cgtexmex pushed a commit to cgtexmex/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
cgtexmex pushed a commit to cgtexmex/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
cgtexmex pushed a commit to cgtexmex/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
cgtexmex pushed a commit that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes #7800
anchal-agrawal pushed a commit to anchal-agrawal/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
anchal-agrawal pushed a commit to anchal-agrawal/vic that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes vmware#7800
anchal-agrawal pushed a commit that referenced this issue Apr 24, 2018
If a cluster only has vApp(s) installed then there will only be
a single resource pool -- since there is only one pool vic-machine
ls assumes that DRS is disabled and doesn't look for a vApp.

This change will now search all resource pools for a vic
vApp.

Fixes #7800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/defect Behavior that is inconsistent with what's intended priority/p0 team/foundation
Projects
None yet
Development

No branches or pull requests

5 participants