Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Agent to teardown sessions on signals #2077

Merged
merged 2 commits into from
Jul 16, 2020
Merged

Agent to teardown sessions on signals #2077

merged 2 commits into from
Jul 16, 2020

Conversation

ip1981
Copy link
Member

@ip1981 ip1981 commented Jul 15, 2020

Closes #1476.

jul 15 15:24:10 c1.local iml-agent-daemon[663]: Jul 15 15:24:10.810 DEBUG iml_agent::http_comms::crypto_client: resp headers: {"server": "nginx/1.16.1", "date": "Wed, 15 Jul 2020 15:24:10 GMT", "content-length": "0", "connection": "keep-alive"}
jul 15 15:24:13 c1.local systemd[1]: Stopping Rust IML Agent Daemon...
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.191  INFO iml_agent_daemon: Terminating...
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.191  INFO iml_agent::http_comms::session: Terminating all sessions
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.191  INFO iml_agent::http_comms::session: Terminating session PluginName("stats")/Id("40cf2205-aaee-44ef-9601-f6a38b306851")
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.192  INFO iml_agent::http_comms::session: Terminating session PluginName("ntp")/Id("928ba107-9443-4df2-9e86-da141bd958f2")
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.192  INFO iml_agent::http_comms::session: Terminating session PluginName("postoffice")/Id("8162b9b7-3fda-47a2-bc55-9fa3b12c860b")
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.192 DEBUG iml_agent::daemon_plugins::postoffice: Ending Inotify Listen for /etc/iml/postman.conf
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.192  INFO iml_agent::http_comms::session: Terminating session PluginName("device")/Id("13a704ce-f772-4caa-9233-649f27a1c85a")
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.193  INFO iml_agent::http_comms::session: Terminating session PluginName("ostpool")/Id("370515a3-0986-4b04-8b2a-db1dda484d3e")
jul 15 15:24:13 c1.local iml-agent-daemon[663]: Jul 15 15:24:13.193  INFO iml_agent::http_comms::session: Terminating session PluginName("action_runner")/Id("d64d353c-30ed-45c3-bb4e-a7163d580783")
jul 15 15:24:13 c1.local systemd[1]: Stopped Rust IML Agent Daemon.
jul 15 15:24:13 c1.local systemd[1]: Started Rust IML Agent Daemon.
jul 15 15:24:13 c1.local iml-agent-daemon[1828]: Jul 15 15:24:13.280  INFO iml_agent_daemon: Starting Rust agent_daemon
jul 15 15:24:13 c1.local iml-agent-daemon[1828]: unable to write 'random state'
jul 15 15:24:13 c1.local iml-agent-daemon[1828]: Jul 15 15:24:13.312  INFO iml_agent::daemon_plugins::daemon_plugin: Loaded the following DaemonPlugins:

Signed-off-by: Igor Pashev pashev.igor@gmail.com


This change is Reviewable

@ip1981 ip1981 requested review from utopiabound and a team July 15, 2020 16:07
@ip1981 ip1981 self-assigned this Jul 15, 2020
@jgrund jgrund closed this Jul 15, 2020
@jgrund jgrund reopened this Jul 15, 2020
mkpankov
mkpankov previously approved these changes Jul 16, 2020
Copy link
Contributor

@mkpankov mkpankov left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ip1981 and @utopiabound)


iml-agent/src/main.rs, line 48 at r1 (raw file):

pooler, pooler_reg

Typos: poller

futures::select! {
() = sigterm.recv().fuse().map(drop) => (),
() = sigint.recv().fuse().map(drop) => ()
}
Copy link
Member Author

@ip1981 ip1981 Jul 16, 2020

Choose a reason for hiding this comment

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

Probably we could make a utility function:

async fn main () {
  // spawn
  signals().await;
  // clean up
}

iml-agent/src/main.rs Outdated Show resolved Hide resolved
@jgrund
Copy link
Member

jgrund commented Jul 16, 2020

Has a conflict on latest master

Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
Copy link
Contributor

@mkpankov mkpankov left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ip1981, @jgrund, and @utopiabound)

@jgrund jgrund merged commit 1ed25ea into master Jul 16, 2020
@jgrund jgrund deleted the ip1981/1476-stopit branch July 16, 2020 18:53
beevans pushed a commit to beevans/integrated-manager-for-lustre that referenced this pull request Aug 6, 2020
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>

Co-authored-by: Joe Grund <jgrund@whamcloud.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

systemctl stop rust-iml-agent doesn't call daemon teardown
3 participants