Rename files on disk needed for systemd and service start.#302
Rename files on disk needed for systemd and service start.#302mihirsoni merged 1 commit intoopensearch-project:mainfrom shdubsh:fix_deb
Conversation
The Debian packages build ok with fpm, but installing it fails due to an invalid username and group name (see useradd(8): CAVEATS). Once this was fixed, the service failed to start due to parts of the startup configuration wanting files that did not exist on disk. Files renamed to where systemd expects and runtime username and group name changed to a supported form. Tested on Debian 10. Signed-off-by: Cole White <cwhite@wikimedia.org>
|
✅ DCO Check Passed 6f2b817 |
A few reasons to consider: Underscores for system configuration files makes the compiled package inconsistent.Prior to this patch, these files and folders are created by fpm:
In addition After this patch, these files and folders are created by fpm:
All files and directories captured in the package after this patch are consistent. (Except Renaming these files to be hyphenated also fixes systemd unable to start due to not being able to locate configuration files at Underscores here may be contrary to Debian policyAlthough it may be possible to coerce fpm to rename the Package so that opensearch-dashboards takes the underscore in SimplicityRenaming these files is a simple way to resolve the problems in the built Debian artifact. |
kavilla
left a comment
There was a problem hiding this comment.
Thank you for the explanation!
The Debian packages build ok with fpm, but installing it fails due to an invalid username and group name (see useradd(8): CAVEATS). Once this was fixed, the service failed to start due to parts of the startup configuration wanting files that did not exist on disk. Files renamed to where systemd expects and runtime username and group name changed to a supported form. Tested on Debian 10. Signed-off-by: Cole White <cwhite@wikimedia.org>
…figurations (opensearch-project#5855) (opensearch-project#302) * Add support for dynamic application configurations (opensearch-project#5855) * Add application configuration service Signed-off-by: Tianle Huang <tianleh@amazon.com> * update API path name Signed-off-by: Tianle Huang <tianleh@amazon.com> * implement two APIs/interfaces Signed-off-by: Tianle Huang <tianleh@amazon.com> * expose get function for other plugins to use Signed-off-by: Tianle Huang <tianleh@amazon.com> * update interfaces Signed-off-by: Tianle Huang <tianleh@amazon.com> * implement the APIs and interfaces Signed-off-by: Tianle Huang <tianleh@amazon.com> * add license and jsdoc Signed-off-by: Tianle Huang <tianleh@amazon.com> * update docs Signed-off-by: Tianle Huang <tianleh@amazon.com> * add more docs Signed-off-by: Tianle Huang <tianleh@amazon.com> * update variable name Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove unnecessary dependency Signed-off-by: Tianle Huang <tianleh@amazon.com> * format readme Signed-off-by: Tianle Huang <tianleh@amazon.com> * use osd version Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove debugging info Signed-off-by: Tianle Huang <tianleh@amazon.com> * update logging Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove lint js Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove logs Signed-off-by: Tianle Huang <tianleh@amazon.com> * update name style Signed-off-by: Tianle Huang <tianleh@amazon.com> * update Signed-off-by: Tianle Huang <tianleh@amazon.com> * update function visibility and error function Signed-off-by: Tianle Huang <tianleh@amazon.com> * fix unit test failures Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit test Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove lint file Signed-off-by: Tianle Huang <tianleh@amazon.com> * add more tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit tests for routes Signed-off-by: Tianle Huang <tianleh@amazon.com> * add remaining unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * add enabled to this plugin Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme to mention experimental Signed-off-by: Tianle Huang <tianleh@amazon.com> * update change log Signed-off-by: Tianle Huang <tianleh@amazon.com> * dummy commit to trigger workflow rerun Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove experimental Signed-off-by: Tianle Huang <tianleh@amazon.com> * add key to yml file Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove i18n Signed-off-by: Tianle Huang <tianleh@amazon.com> * remove lint rc Signed-off-by: Tianle Huang <tianleh@amazon.com> * update comment style Signed-off-by: Tianle Huang <tianleh@amazon.com> * add input validation Signed-off-by: Tianle Huang <tianleh@amazon.com> * update unit tests Signed-off-by: Tianle Huang <tianleh@amazon.com> * prevent multiple registration Signed-off-by: Tianle Huang <tianleh@amazon.com> * add return types Signed-off-by: Tianle Huang <tianleh@amazon.com> * update readme wording Signed-off-by: Tianle Huang <tianleh@amazon.com> * add unit test to the plugin class about double register Signed-off-by: Tianle Huang <tianleh@amazon.com> * move related ymls Signed-off-by: Tianle Huang <tianleh@amazon.com> * move validation to a function Signed-off-by: Tianle Huang <tianleh@amazon.com> * use trimmed versions Signed-off-by: Tianle Huang <tianleh@amazon.com> * reword changelog entry Signed-off-by: Tianle Huang <tianleh@amazon.com> * readability Signed-off-by: Tianle Huang <tianleh@amazon.com> * add back yml change Signed-off-by: Tianle Huang <tianleh@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> * feat: remove useless code Signed-off-by: SuZhou-Joe <suzhou@amazon.com> --------- Signed-off-by: Tianle Huang <tianleh@amazon.com> Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Co-authored-by: Tianle Huang <60111637+tianleh@users.noreply.github.com>
Description
Files renamed to where systemd expects and runtime username
and group name changed to a supported form.
Issues Resolved
The Debian packages build ok with fpm, but installing it fails due
to an invalid username and group name (see useradd(8): CAVEATS).
Once this was fixed, the service failed to start due to parts of the startup
configuration wanting files that did not exist on disk.
Check List