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

RFE: Add GetUnitFileState API #934

Closed
5 tasks
mwperina opened this issue Sep 3, 2024 · 0 comments · Fixed by #953
Closed
5 tasks

RFE: Add GetUnitFileState API #934

mwperina opened this issue Sep 3, 2024 · 0 comments · Fixed by #953
Assignees
Labels
enhancement New feature or request jira Issues that are synced to Jira
Milestone

Comments

@mwperina
Copy link
Member

mwperina commented Sep 3, 2024

Please describe what you would like to see

Is order to be able to get status of a single systemd unit file it's necessary to extend BlueChi with GetUnitFileState API provided in the systemd Manager API (see the freedesktop systemd documentation.

Please describe the solution you'd like

  • bluechi-controller: Add new API method GetUnitFileState on public DBus for interface org.eclipse.bluechi.Node and delegate to bluechi-agent
  • bluechi-agent: Add new API method GetUnitFileState on internal DBus and delegate to systemd bus
  • bluechictl: Add new command bluechictl is-enabled, which should call GetUnitFileState to return status of a unit on a node
  • Implement integration tests
  • Extend documentation (man pages, examples, etc.)

Please describe your use case

bluechictl is-enabled <NODE> <UNIT FILE> would be able to return status of <UNIT FILE> on <NODE> equal to status returned by systemctl is-enabled <UNIT FILE> directly on <NODE>

@mwperina mwperina added the enhancement New feature or request label Sep 3, 2024
@mwperina mwperina added this to the v0.9 milestone Sep 3, 2024
@mwperina mwperina self-assigned this Sep 3, 2024
@mwperina mwperina added the jira Issues that are synced to Jira label Sep 3, 2024
mwperina added a commit to mwperina/bluechi that referenced this issue Sep 27, 2024
- Adds support for GetUnitFileState API on controller and node
- Adds is-enabled command to bluechictl
- Adds integration test

Fixes: eclipse-bluechi#934
Signed-off-by: Martin Perina <[email protected]>
mwperina added a commit to mwperina/bluechi that referenced this issue Sep 27, 2024
- Adds support for GetUnitFileState API on controller and node
- Adds is-enabled command to bluechictl
- Adds integration test

Fixes: eclipse-bluechi#934
Signed-off-by: Martin Perina <[email protected]>
mwperina added a commit to mwperina/bluechi that referenced this issue Sep 30, 2024
- Adds support for GetUnitFileState API on controller and node
- Adds is-enabled command to bluechictl
- Adds integration test

Fixes: eclipse-bluechi#934
Signed-off-by: Martin Perina <[email protected]>
mwperina added a commit to mwperina/bluechi that referenced this issue Sep 30, 2024
- Adds support for GetUnitFileState API on controller and node
- Adds is-enabled command to bluechictl
- Adds integration test

Fixes: eclipse-bluechi#934
Signed-off-by: Martin Perina <[email protected]>
mwperina added a commit to mwperina/bluechi that referenced this issue Oct 1, 2024
- Adds support for GetUnitFileState API on controller and node
- Adds is-enabled command to bluechictl
- Adds integration test

Fixes: eclipse-bluechi#934
Signed-off-by: Martin Perina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jira Issues that are synced to Jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant