Skip to content

Specify host parameter to datastore download command#6875

Merged
mhagen-vmware merged 3 commits intomasterfrom
feature/longevity-govc
Nov 30, 2017
Merged

Specify host parameter to datastore download command#6875
mhagen-vmware merged 3 commits intomasterfrom
feature/longevity-govc

Conversation

@mhagen-vmware
Copy link
Contributor

If we combine the jenkins logs from both 6.0 longevity with 6.5 longevity, we see that the the problem began on Nov 20th between 9:50AM and 1:27PM and affects both systems seemingly equally. Which leads me to believe that something changed in our software at the same time as that is the common denominator. I went back to the VIC 1.2.1 build and continue to see the problem, which narrows it down to something outside of the engine code itself and we find this commit which happened on Nov 20th 1:10PM:
#6788
Reverting to govc 0.15 immediately seemed to fix the problem on longevity 6.5, the upgrade from govc 0.15 to 0.16 included what looks like close to 100 commits over the course of almost 6 months.

@dougm
Copy link
Member

dougm commented Nov 30, 2017

Feel free to revert to the older version of govc, but that isn't the problem. You need to specify the -host param to datastore.download, regardless. This problem is why the -host flag was added to datastore.download in the first place. Along with changing vic-admin to use the VM's host when it downloads VM log files.

@mhagen-vmware mhagen-vmware changed the title [skip ci]Revert back to govc 15 for longevity to resolve vsan failures Specify host parameter to datastore download command Nov 30, 2017
Log ${out}
Remove File vic-admin-cookies
${out}= Run govc datastore.download %{VCH-NAME}/vmware.log %{VCH-NAME}-vmware${name-suffix}.log
${out}= Run govc datastore.download -host $(govc vm.info %{VCH-NAME} | grep Host: | awk '{print $2}') %{VCH-NAME}/vmware.log %{VCH-NAME}-vmware${name-suffix}.log
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a Get VM Host Name keyword.

Copy link
Contributor

Choose a reason for hiding this comment

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

And if not keyword then awk '/Host:/{print$2}' is more concise.

@mhagen-vmware mhagen-vmware merged commit 08c6391 into master Nov 30, 2017
@mhagen-vmware mhagen-vmware deleted the feature/longevity-govc branch November 30, 2017 19:21
mdharamadas1 pushed a commit to mdharamadas1/vic that referenced this pull request Dec 1, 2017
mdharamadas1 pushed a commit to mdharamadas1/vic that referenced this pull request Dec 2, 2017
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.

6 participants