Astmetad¶
Astmetad is responsible for:
Waiting for metadata drive information from Astdiskd
Resolving metadata from metadata sources
See Distribution metadata for more information on this state manager.
Metadata Disk Lifecycle¶
When a metadata drive is inserted, it follows a lifecycle.
There can only be one metadata drive at any given time. Additional drives are ignored.
Once the drive has had its data loaded and validated, it will be added as a high priority Metadata Source.
Astmetad Data Structures and Classes¶
- class astoria.common.ipc.MetadataManagerMessage(**data)[source]¶
Status message for Metadata Manager.
Published to /astoria/astmetad
- class astoria.common.metadata.Metadata(**data)[source]¶
Astoria Metadata.
As the metadata is passed into a templating engine for initial log lines, please do not add nested fields to this schema.
- classmethod get_os_release_info(os_release_path=None)[source]¶
Reads OS version information from /etc/os-release.
See man page os-release(5) for more information. :rtype:
Dict
[str
,str
] :returns: dict OS release values