Skip to content

[TASK] Implement of statemanager and connect between nodeagent and statemanager. #142

@daeyoung-jeong-lge

Description

@daeyoung-jeong-lge

📝 Task Description
Add statemanager with asynchronous operation ready.
Implement background task in NodeAgentManager to periodically gather container info using inspect().
Send current container list to the monitoring server via gRPC.
Detect changes in container list and, if changed, send updated list to the state manager via gRPC.
Log container list changes and errors during gRPC communication.

📋 Checklist
validating full build error.
testing statemanger, monitoringserver, nodeagent

🔗 Related Requirements
Related to #195

📐 Implementation Guidelines
Use existing test frameworks for Rust (e.g., tokio::test, cargo test)
Create reusable utilities for common testing scenarios

🧪 Testing Method
Make sure podman.socket service to be run
Run statemanager and monitoringserver first, and run nodeagent second.
Look at the statemanager's log and monitoringserver's log and find the current container info.
Check whether the container info is sent only when the container info is changed.

Metadata

Metadata

Labels

enhancementNew feature or requestrustPull requests that update rust code

Type

No fields configured for Task.

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions