Commit Graph

51 Commits (1b7d5f31562cae4c37a07c5be7d9f2d52dcb7a69)

Author SHA1 Message Date
J. Emrys Landivar 5df737cbc7
fix(cmd/influx): log error details when `influxd upgrade` fails to migrate databases ()
Co-authored-by: Dan Moran <dmoran@influxdata.com>
2021-03-15 14:32:50 -04:00
Daniel Moran 49b83b58ee
refactor: remove panics from CLI kit code and influxd CLI setup () 2021-03-04 17:18:21 -05:00
Daniel Moran 25738db42c
feat(http): allow for disabling pprof ()
And translate pprof-enabled config during upgrade
2021-03-04 09:28:03 -05:00
Daniel Moran d4a0c34c39
fix(onboarding): deprecate misleading `retentionPeriodHrs` key () 2021-03-01 09:55:39 -05:00
Daniel Moran 1e50418535
refactor: reduce duplication in setup logic () 2021-02-22 17:01:26 -05:00
Sam Arnold 781fa0e846 chore: add goimports 2021-01-29 14:06:52 -05:00
Daniel Moran 552646d81c
fix(cmd/influx): improve logging consistency in `influxd upgrade` () 2021-01-28 10:42:07 -08:00
Daniel Moran c62d3f2d8d
fix(cmd/influxd): prevent panic on upgrade with V1 users and no V1 conf () 2021-01-19 13:26:44 -08:00
Daniel Moran fdc0fdb92b
feat(cmd/influxd): add --overwrite-existing-v2 flag to influxd upgrade () 2021-01-15 08:20:48 -08:00
Daniel Moran 78af2e7317
fix(kit/cli): don't ignore failures to mark CLI options as required () 2021-01-13 07:25:16 -08:00
Daniel Moran 30306e5b10
fix(cmd/influxd): improve `influxd upgrade` logging, and require manual confirmation of data copy () 2021-01-07 07:34:48 -08:00
Daniel Moran 9aefa6f868
fix(tsdb): never use an inmem index ()
And fix the logging setup for the TSDB storage engine
2020-12-23 07:46:57 -08:00
Daniel Moran afdcb18655
refactor: simplify how we set the top-level influxd logger () 2020-12-21 11:15:08 -08:00
Daniel Moran b5bbc503a0
fix(onboarding): don't ignore failures to set initial password () 2020-12-16 06:43:43 -08:00
Daniel Moran 1058a8e3f1
fix(upgrade): add DB URL to log message at end up upgrade () 2020-12-08 11:12:31 -05:00
Daniel Moran 4235c12d64
refactor(cmd/influxd): parse log-level CLI opts directly to correct type () 2020-11-30 13:59:06 -05:00
Daniel Moran 89764adabd
feat(cmd/influxd): use a better default for upgraded V2 config, and allow users to override it () 2020-11-23 13:05:48 -05:00
Daniel Moran 1e324b6a63
fix(cmd/influxd): remove internal subcommands of `upgrade` from help text () 2020-11-17 15:37:43 -05:00
Daniel Moran 632e8f11ed
fix(cmd/influxd): don't validate unused paths in `upgrade` () 2020-11-17 00:38:53 -05:00
Daniel Moran b732f3663c
feat(cmd/influxd): export 1.x continuous queries as part of upgrade () 2020-11-16 16:37:47 -05:00
Daniel Moran 693d153195
feat(cmd/influxd): warn if auth wasn't enabled and users were upgraded () 2020-11-16 09:05:40 -05:00
George MacRorie 16d916a952 refactor(kv): delete deprecated kv service code
This includes removal of a lot of kv.Service responsibilities. However,
it does not finish the re-wiring. It removes documents, telegrafs,
notification rules + endpoints, checks, orgs, users, buckets, passwords,
urms, labels and authorizations. There are some oustanding pieces that
are needed to get kv service compiling (dashboard service urm
dependency). Then all the call sites for kv service need updating and
the new implementations of telegraf and notification rules + endpoints
needed installing (along with any necessary migrations).
2020-11-16 12:41:26 +00:00
Daniel Moran 4efb8515b8
fix(cmd/influxd): validate all input paths to `upgrade` up-front () 2020-11-13 09:25:57 -05:00
Stuart Carnie 42aabb28fc chore: Do not use global viper APIs, which breaks testing 2020-11-13 08:47:52 +11:00
Daniel Moran 518098e4f3
fix(cmd/influxd): suggest running with -h on error instead of printing usage () 2020-11-11 16:37:36 -05:00
alespour 2982701d01
fix(upgrade): add log-level CLI option ()
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2020-11-10 17:23:29 -05:00
alespour c4eb6290f0
fix(upgrade): check for existing 2.x CLI configs file during upgrade ()
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2020-11-10 16:42:51 -05:00
alespour 63974e8fe7
fix(upgrade): remove obsolete unused option (influx-command-path) () 2020-11-10 15:37:38 -05:00
Daniel Moran b643482c45
fix(upgrade): use 10 instead of MaxInt when rewriting query-concurrency () 2020-11-09 19:00:30 -05:00
Russ Savage cae539055f
fix: updating v1 auth description ()
* fix: updating v1 auth description

* fix: fixing tests

* chore: renaming to legacy
2020-11-09 15:10:46 -08:00
alespour 07e009c616
fix(upgrade): create CLI configs ()
Co-authored-by: docmerlin (j. Emrys Landivar) <landivar@gmail.com>
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2020-11-09 17:43:28 -05:00
Daniel Moran b4aa582750
fix(upgrade): use db/rp naming convention when upgrading DBs () 2020-11-09 17:19:04 -05:00
Daniel Moran 040f5b208a
fix: replace 0 with MaxInt when upgrading query-concurrency () 2020-11-09 12:01:09 -05:00
Daniel Moran ee390ddfd3
fix: parsing of retention policy CLI args in `influx setup` and `influxd upgrade` () 2020-11-06 17:50:32 -05:00
Daniel Moran a89041b182
fix(cmd/influxd/upgrade): delete references to 'security script' in upgrade command () 2020-11-06 15:32:38 -05:00
Adrian Thurston 37ef9d2791
fix: use fluxinit package to init flux library instead of builtin ()
* fix: use fluxinit package to init flux library instead of builtin

The builtin package performs costly initialization work in the go init()
function, which causes the work to be performed for all paths of the main
executables that need it, including help screens. This patch uses the fluxinit
package, which requires a call to do the costly work. It allows help screens
and other code paths to execute quickly.

* fix: need to draw in the influxdb-specific standard library in fluxinit
2020-11-03 13:07:41 -08:00
Dan Moran 428a46b75e fix: remove division of RP in upgrade command
DB-side services no longer multiply requested RPs by time.Hour, so
the upgrade command shouldn't divide by that factor.
2020-11-03 12:37:50 -05:00
Stuart Carnie a0958e6603 fix: Add Logger to constructor function to ensure it is initialized 2020-11-02 18:00:22 -07:00
Ales Pour 0853370cda refactor: use v1 auth service to create tokens 2020-11-02 09:06:34 -07:00
Christopher M. Wolff 5a60488729
fix: make tagKeys and tagValues work for edge cases involving _field () 2020-10-30 10:37:08 -07:00
Gershon Shif ce00f0d226
fix(build): building arm 6 () 2020-10-21 16:29:48 -07:00
vlastahajek 7947a7fffd fix(upgrade): improving upgrade help 2020-10-21 07:58:32 -07:00
Ales Pour 6a43939546 fix: proper default 2.x config filename 2020-10-20 08:03:34 -07:00
Ales Pour 2b828c5b8c fix: fallback to user's home 2020-10-19 12:35:58 -07:00
Ales Pour 8a0068546f style: better option descrition 2020-10-14 08:02:30 -07:00
Ales Pour 548eec197d refactor: influx 2.x path is a commamnd line option 2020-10-14 08:02:30 -07:00
Ales Pour 2308e6c50e feat(upgrade): upgrade security 2020-10-14 08:02:30 -07:00
vlastahajek 8763bb1af9 feat(upgrade): upgrade databases 2020-10-08 09:39:30 -07:00
Ales Pour 1e4650913d feat(upgrade): upgrade config file 2020-10-02 12:01:35 -07:00
vlastahajek 999660ae2e feat(upgrade): upgrade command basic skeleton 2020-10-01 08:06:42 -07:00