juju-solutions / bundle-elk-stack

5 stars 3 forks source link

groupadd failing if kibana exists #3

Closed adam-stokes closed 6 years ago

adam-stokes commented 8 years ago

When deploying the elk-stack from charm store I'm running into the following error:

unit-kibana-0: 2016-08-15 18:51:54 INFO unit.kibana/0.install logger.go:40 + [[ ! -f files/kibana.tgz ]]
unit-kibana-0: 2016-08-15 18:51:54 INFO unit.kibana/0.install logger.go:40 + juju-log 'download kibana from elasticsearch.org'
unit-kibana-0: 2016-08-15 18:51:54 INFO unit.kibana/0.juju-log server.go:270 download kibana from elasticsearch.org
unit-kibana-0: 2016-08-15 18:51:54 INFO unit.kibana/0.install logger.go:40 + wget -q -O /tmp/kibana.tgz https://download.elastic.co/kibana/kibana/kibana-4.2.0-linux-x64.tar.gz
unit-kibana-0: 2016-08-15 18:51:58 INFO unit.kibana/0.install logger.go:40 + echo '094e197c687012211ae0e291faf3111d47e714d9  /tmp/kibana.tgz'
unit-kibana-0: 2016-08-15 18:51:58 INFO unit.kibana/0.install logger.go:40 + sha1sum -c /tmp/kibana.tgz.sha1
unit-kibana-0: 2016-08-15 18:51:58 INFO unit.kibana/0.install logger.go:40 /tmp/kibana.tgz: OK
unit-kibana-0: 2016-08-15 18:51:58 INFO unit.kibana/0.install logger.go:40 + groupadd kibana
unit-kibana-0: 2016-08-15 18:51:58 INFO unit.kibana/0.install logger.go:40 groupadd: group 'kibana' already exists
unit-kibana-0: 2016-08-15 18:51:58 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 9
lazypower commented 8 years ago

I'm not sure how this ever worked. There's been some bumps to the kibana charm that address this. I'll take a look now and see what can be updated and kick off another test, then get this added to our CWR runs.

kwmonroe commented 6 years ago

Not sure when this was fixed, but groupadd has been guarded for a while now:

https://git.launchpad.net/kibana-charm/tree/hooks/install#n27

Closing out.