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

Using cloudfoundry.yml operations file leads to version mismatch #146

Closed
hfrenzel opened this issue Aug 12, 2019 · 6 comments
Closed

Using cloudfoundry.yml operations file leads to version mismatch #146

hfrenzel opened this issue Aug 12, 2019 · 6 comments
Assignees

Comments

@hfrenzel
Copy link

Hi,

after the update to v210.3.0, the deployment failed while using deployment/operations/cloudfoundry.yml:

13:54:46 Task 1213153 | 11:54:46 | Compiling packages: cf-kibana/cf185079f40f43c58f0b610fada7776ce5903936c4fd2d224074cb371920f68c (00:01:48)
13:54:46                     L Error: Action Failed get_task: Task 57be191f-615c-4fba-66d6-566445662860 result: Compiling package cf-kibana: Running packaging script: Running packaging script: Command exited with 70; Stdout: Transferring 2142132 bytes....................
13:54:46 Transfer complete
13:54:46 Retrieving metadata from plugin archive
13:54:46 Extracting plugin archive
13:54:46 Extraction complete
13:54:46 , Stderr: + tar xzf cf-kibana/kibana-6.4.3-linux-x86_64.tar.gz --strip 1 -C /var/vcap/packages/cf-kibana
13:54:46 + cd /var/vcap/packages/cf-kibana
13:54:46 + bin/kibana-plugin install file:///var/vcap/packages/kibana-auth-plugin/kibana-auth-plugin.zip
13:55:04 Plugin installation was unsuccessful due to error "Incorrect Kibana version in plugin [authentication]. Expected [6.4.3]; found [6.8.1]"

Please check.

@axelaris
Copy link
Member

@hfrenzel
Copy link
Author

I think it is the right one:

13:52:43	  releases:
#...
13:52:43	  - name: logsearch-for-cloudfoundry
13:52:43	-   sha1: d3adbefc42f30b2aac0c9fc12b610fbc7b5caeea
13:52:43	+   sha1: 6899e383b13f3ba4fbd624129508b089e43f2746
13:52:43	-   url: https://s3.amazonaws.com/logsearch-for-cloudfoundry/logsearch-for-cloudfoundry-210.2.0.tgz
13:52:43	+   url: https://s3.amazonaws.com/logsearch-for-cloudfoundry/logsearch-for-cloudfoundry-210.3.0.tgz
13:52:43	-   version: 210.2.0
13:52:43	+   version: 210.3.0

@axelaris
Copy link
Member

Oh, I just realized that it vice-versa. Your error says that you have authentication plugin v6.8.1 (new) against Kibana v6.4.3 (old).
In logsearch-boshrelease v.210.3.0 we're using Kibana v6.8.1: https://github.com/cloudfoundry-community/logsearch-boshrelease/blob/v210.3.0/packages/kibana/packaging
For some reason, you still have old one. Please double check your manifest.

@hfrenzel
Copy link
Author

hfrenzel commented Aug 12, 2019

Could it be this here:

$ sha1sum logsearch-for-cloudfoundry-210.3.0.tgz
6899e383b13f3ba4fbd624129508b089e43f2746  logsearch-for-cloudfoundry-210.3.0.tgz

$ tar xzvf logsearch-for-cloudfoundry-210.3.0.tgz packages/cf-kibana.tgz
packages/cf-kibana.tgz

$ tar xzvf packages/cf-kibana.tgz ./
./
./cf-kibana/
./packaging
./cf-kibana/kibana-6.4.3-linux-x86_64.tar.gz

$ cat packaging
set -e

tar xzf cf-kibana/kibana-6.4.3-linux-x86_64.tar.gz --strip 1 -C ${BOSH_INSTALL_TARGET}

cd ${BOSH_INSTALL_TARGET}
bin/kibana-plugin install file:///var/vcap/packages/kibana-auth-plugin/kibana-auth-plugin.zip

The error tells, that the expected version is 6.4.3, but as the kibana update was done, it just found the 6.8.1:

13:55:04 Plugin installation was unsuccessful due to error "Incorrect Kibana version in plugin [authentication]. Expected [6.4.3]; found [6.8.1]"

https://github.com/cloudfoundry-community/logsearch-for-cloudfoundry/blob/v210.3.0/packages/cf-kibana/packaging

@axelaris axelaris self-assigned this Aug 13, 2019
@axelaris
Copy link
Member

Hi @hfrenzel,
thank you for heads-up!
The issue should be fixed in new release: https://github.com/cloudfoundry-community/logsearch-boshrelease/releases/tag/v210.3.1

@hfrenzel
Copy link
Author

Works now. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants