Commit Graph

8694 Commits

Author SHA1 Message Date
Thales Macedo Garitezi
01794c2d2c
fix(ctl): fix formatting when printing messages without arguments
Without passing an empty argument list to `emqx_ctl:print`, formatting
instructions like `~n` are being printed literally.

```
Ignore.~nJoin the cluster successfully.~nCluster status: #{running_nodes =>
                      ['emqx@emqx-0.int.thalesmg','emqx@emqx-1.int.thalesmg',
                       'emqx@emqx-2.int.thalesmg','emqx@emqx-3.int.thalesmg',
                       'emqx@emqx-4.int.thalesmg'],
                  stopped_nodes => []}
```
2022-02-08 17:48:19 -03:00
k32
2605eac4b1
Merge pull request #6945 from k32/sysmon302
chore(system_monitor): Bump version to 3.0.2
2022-02-08 19:45:58 +01:00
Zaiming (Stone) Shi
11200b161d
Merge pull request #6943 from zmstone/fix-slog-for-license-app
fix: slog for license app
2022-02-08 19:20:27 +01:00
k32
8d5241b1d0 chore(system_monitor): Bump version to 3.0.2
This version optimizes inserts into the postgres database
2022-02-08 18:23:27 +01:00
Zaiming (Stone) Shi
4cee12614b fix: mark license key sensitive
so it's not logged to console when environment variable is used
2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
ae9c8098ba test: ensure coverage for the no_license case 2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
c936706a1f refactor(emqx_license): log a different msg when license is not loaded 2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
319d08678e chore: update license year 2022-02-08 17:28:40 +01:00
k32
72dc7276ed
Merge pull request #6940 from k32/fix-sysmon-start
fix(system_monitor): Fix conditional start
2022-02-08 13:33:37 +01:00
Thales Macedo Garitezi
4a93b22cc1
Merge pull request #6934 from thalesmg/mix-node-dump
fix(mix): include `node_dump` in tgz and packages
2022-02-08 09:16:09 -03:00
k32
5a1b18ae86 fix(system_monitor): Fix conditional start 2022-02-08 12:46:27 +01:00
zhongwencool
3b4eade1ad
Merge pull request #6900 from zhongwencool/restricted-shell
feat(shell): add restricted shell and user_default
2022-02-08 17:25:28 +08:00
zhongwencool
f3fa302d84 chore: print only the port number when bound on all interfaces. 2022-02-08 15:25:22 +08:00
zhongwencool
5f2618912f chore(format): format port by ts 2022-02-08 11:03:54 +08:00
zhongwencool
00fe866392 chore(test): add restricted_shell CT test. 2022-02-08 10:49:11 +08:00
zhongwencool
b50ceac9bb chore(listener): change the listener binding format 0.0.0.0:port to :port. 2022-02-08 10:28:10 +08:00
Thales Macedo Garitezi
eea217093b
fix(mix): include node_dump in tgz and packages 2022-02-07 18:15:17 -03:00
k32
58b69f97fd
Merge pull request #6933 from k32/sysmon301
chore(system_monitor): Bump version to 3.0.1
2022-02-07 21:33:00 +01:00
Ilya Averyanov
ab2e4c80ba
Merge pull request #6807 from savonarola/emqx-license
feat(license): add license application
2022-02-07 23:30:24 +03:00
k32
490278ccb7 chore(system_monitor): Bump version to 3.0.1 2022-02-07 20:49:28 +01:00
Ilya Averyanov
17599432d1 feat(license): add license application 2022-02-07 19:05:47 +03:00
k32
bede3443a3
Merge pull request #6931 from k32/mria-dirty-shards
feat(router): Mark router shards as dirty
2022-02-07 15:41:57 +01:00
k32
9c5d35e0db chore(ekka): Bump version to 0.12.0 2022-02-07 14:39:43 +01:00
Thales Macedo Garitezi
17c10e5677
Merge pull request #6921 from thalesmg/mix-erl-eval
feat: add eval-erl command to `bin/emqx`

This allows Erlang expressions to be evaluated easily even on nodes
running Elixir.
2022-02-07 10:20:00 -03:00
k32
78c762479f feat(router): Mark CM_SHARD and ROUTE_SHARD as dirty 2022-02-07 12:38:59 +01:00
k32
dbe1282d32 chore(mria): Bump version to 0.2.0 2022-02-07 12:37:13 +01:00
k32
342eed9702
Merge pull request #6923 from k32/sysmon3
feat(system_monitor): Bump version to 3.0.0
2022-02-07 10:04:42 +01:00
zhongwencool
f24c05b1bd chore(shell): make restricted_shell prompt more friendly. 2022-02-07 15:33:59 +08:00
zhongwencool
b189d594c3 chore: fix dialyzer warning. 2022-02-07 15:33:59 +08:00
zhongwencool
3efa583830 feat(shell): add emqx version to prompt. 2022-02-07 15:33:59 +08:00
zhongwencool
6a701e098f feat(shell): add restricted shell and user_default 2022-02-07 15:33:59 +08:00
k32
f699de9773 feat(system_monitor): Bump version to 3.0.0 2022-02-07 02:22:11 +01:00
Thales Macedo Garitezi
1b3b2c0d03
feat: add eval-erl command to bin/emqx
This allows Erlang expressions to be evaluated easily even on nodes
running Elixir.
2022-02-04 16:53:27 -03:00
Thales Macedo Garitezi
e4b14a34b2
Merge pull request #6918 from thalesmg/fix-mix-vsn
Currently, emqx_release.erl depends on the erl_opts option
compile_info being set by Rebar3 to include {emqx_vsn, $PKG_VSN}
to report the version, for instance, in emqx ctl status.

Since Mix does not provide a simple way to pass erl_opts to Rebar3
dependencies without creating a mix.exs file, the workaround is to
set the environment variable ERL_COMPILER_OPTIONS to include that
value before invoking the Erlang compiler on the Rebar3 dependencies.

Also, we set the `EMQX_ENTERPRISE` macro in the same way.
2022-02-04 16:12:26 -03:00
Zaiming (Stone) Shi
add2f62824
Merge pull request #6920 from thalesmg/ci-pin-pytest
ci(pytest): pin pytest version at 6.2.5
2022-02-04 20:09:57 +01:00
Thales Macedo Garitezi
9021b7e9b8
fix(mix): set enterprise compile flag 2022-02-04 14:17:53 -03:00
Thales Macedo Garitezi
6d557bc0ca
ci(pytest): pin pytest version at 6.2.5
After a major version release (7.0.0), our current FVT tests all
failed due to some change in the lib.  Our pytest version in CI was
not pinned, and picked this update up.
2022-02-04 10:19:29 -03:00
Thales Macedo Garitezi
69e7e40d5f
Merge pull request #6915 from thalesmg/cleanup-mix-release-file
chore: delete unused file
2022-02-04 09:03:08 -03:00
Thales Macedo Garitezi
88ae489219
fix(mix): set emqx_vsn compile info
Currently, `emqx_release.erl` depends on the `erl_opts` option
`compile_info` being set by Rebar3 to include `{emqx_vsn, $PKG_VSN}`
to report the version, for instance, in `emqx ctl status`.

Since Mix does not provide a simple way to pass `erl_opts` to Rebar3
dependencies without creating a `mix.exs` file, the workaround is to
set the environment variable `ERL_COMPILER_OPTIONS` to include that
value before invoking the Erlang compiler on the Rebar3 dependencies.
2022-02-03 17:31:47 -03:00
Thales Macedo Garitezi
c681ee433e
chore: delete unused file
Now that Elixir 1.13.2 is released, we no longer need the "vendored"
version of `Mix.Release`.
2022-02-03 14:09:26 -03:00
Thales Macedo Garitezi
ac1b1b800d
Merge pull request #6786 from emqx/flaky-fvt-ci
fix(flaky_test): improve helm test preparation check
2022-02-03 12:28:05 -03:00
Thales Macedo Garitezi
a37ee6aa05
fix(flaky_test): improve helm test preparation check 2022-02-03 09:44:10 -03:00
k32
ff1589c837
Merge pull request #6912 from k32/gen-rpc-client-driver
fix(emqx_schema): Set gen_rpc_client_driver automatically
2022-02-02 14:52:24 +01:00
William Yang
dfdadbd124
Merge pull request #6909 from qzhuyan/ci/william/elixir-build-cache
ci(build-cache): elixir build cache
2022-02-02 14:17:16 +01:00
k32
a54b4ddfd0 fix(emqx_schema): Set gen_rpc_client_driver automatically 2022-02-02 13:58:27 +01:00
William Yang
c9561478ac ci(build-cache): elixir build cache 2022-02-02 12:33:35 +01:00
Zaiming (Stone) Shi
621d5a2efd
Merge pull request #6910 from zmstone/chore-stale-bot-exclude-enhancement-label
chore(stale_bot): exempt 'Enhancement' label
2022-02-01 18:20:36 +01:00
Zaiming (Stone) Shi
8f5f58500c chore(stale_bot): exempt 'Enhancement' label 2022-02-01 16:55:11 +01:00
William Yang
a2223836b9
Merge pull request #6908 from qzhuyan/ci/william/remove-centos8-support
ci: remove centos8 support
2022-02-01 16:11:25 +01:00
William Yang
5c36143186 ci: remove centos8 support
due to centos8 EOL
2022-02-01 15:22:41 +01:00