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

[docs] Guide to creating/editing SMF services in omicron #5061

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

karencfv
Copy link
Contributor

This is probably incomplete, we can add more stuff down the track.

Just wanted to add some information while it's fresh in my mind

Copy link
Collaborator

@smklein smklein left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!


== Sled agent services

To make sure all of the service properties are populated, you'll have to edit the `sled-agent/src/services.rs` file. This is where all of the omicron zones are built.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth noting -- these are valuable for properties that "can only be known at run-time"


Each directory can contain a myriad of files depending on the service, but only a `manifest.xml` file is necessary. This file contains the complete set of properties associated with the service instance.

== Packaging
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for documenting these short-comings. These are default decisions that were made ("rust package" comes from "package name", and "service_name" means "zone name" for zones) but this also serves as good data points for "how the manifest could be made more clear + explicit in the future".

@karencfv
Copy link
Contributor Author

Thanks for the review @smklein 🙇‍♀️

@karencfv karencfv enabled auto-merge (squash) February 14, 2024 23:27
@karencfv karencfv merged commit b2cd53d into oxidecomputer:main Feb 15, 2024
15 checks passed
@karencfv karencfv deleted the smf-docs branch February 15, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants