Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Simulator not respecting docker status of stopped #600

Open
chull434 opened this issue Nov 26, 2022 · 2 comments
Open

[BUG] Simulator not respecting docker status of stopped #600

chull434 opened this issue Nov 26, 2022 · 2 comments

Comments

@chull434
Copy link

Description

Simulator is not respecting docker status of stopped and is creating and starting containers for modules that have status set as stopped "status": "stopped",

"modules": {
  "MyModule": {
    "version": "1.0.0",
    "type": "docker",
    "status": "stopped",
    "restartPolicy": "never",
    "settings": {
      "image": "imagename",
      "createOptions": {}
    }
  }
}

Expected behavior

Simulator start should only create but not start containers for modules that have status set as stopped "status": "stopped",

Actual behavior

Simulator start is creating and starting containers for modules that have status set as stopped "status": "stopped",

Steps to Reproduce

A deployment manifest with a stopped module

"modules": {
  "MyModule": {
    "version": "1.0.0",
    "type": "docker",
    "status": "stopped",
    "restartPolicy": "never",
    "settings": {
      "image": "imagename",
      "createOptions": {}
    }
  }
}

sudo iotedgedev simulator start

Environment

iotedgedev, version 3.3.7
Python 3.7.15
pip 22.3.1 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
WSL2 Ubuntu 22.04

@chull434 chull434 added bug triage Issues that need to be looked at labels Nov 26, 2022
@konichi3
Copy link
Collaborator

Thanks for reporting. What is the impacted scenario that caused the module to be stopped?

@konichi3 konichi3 added InBacklog and removed triage Issues that need to be looked at labels Apr 21, 2023
@chull434
Copy link
Author

Simply that I want the module to be stopped, disabled, not running. Mainly for development and testing purposes where you just need the module to be stopped with out deleting the entire module from the deployment manifest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants