-
Notifications
You must be signed in to change notification settings - Fork 30
Cannot add user to systemd-journal in ignition #1920
Comments
This is a duplicate of #1267 but is formatted nicer. I'm closing out the original in favor of this. |
I responded to you over email, copy/pasting my reply here in case others find this in the future: I think your issue is that the systemd unit needs to have an I was able to test this container linux config successfully: https://gist.github.com/dgonyeo/55803e0526707c00571c9a0a5f8369cf Can you see if adding that section to your unit fixes the problem? |
Thanks so much @dgonyeo this is proven to be working after I added the
All good! |
Two PRs were just merged that changes the OS to allow ignition to easily modify things like groups: You should now be able to add
|
Thanks @dgonyeo ! |
We're dropping this from the upcoming alpha while we dig into some problems. Reopening. |
Thank you for reporting this issue. Unfortunately, we don't think we'll end up addressing it in Container Linux. We're now working on Fedora CoreOS, the successor to Container Linux, and we expect most major development to occur there instead. Meanwhile, Container Linux will be fully maintained into 2020 but won't see many new features. We appreciate your taking the time to report this issue and we're sorry that we won't be able to address it. |
Issue Report
Bug
Container Linux Version
Environment
ec2 AMI: ami-d1de49b1
Expected Behavior
I am trying to use a unit file as a way to add a user
test
to systemd-journal inignition
as follows:Shown below the ignition JSON generated by
CT
from the above configuration:I am expecting to see the content of the
/etc/group
to include the groupsystemd-journal:x:248:core,systemd-journal-upload
. See below for expected behavior:**Note1: this is to use the technique recommended in this Google Group https://groups.google.com/forum/#!topic/coreos-user/i6hqzqmlaSc (but as in cloud config)
**Note2: I am already passing this config to
CT
tool so I can use the generated JSON as user-data to launch the ec2 instanceActual Behavior
After ec2 instance launched:
Reproduction Steps
ami-d1de49b1
and the user-data JSON in this bug report/etc/group
and not find the groupsystemd-journal:x:248:core,systemd-journal-upload
in the file.Other Information
This workaround of adding a user to systemd-journal was proven to be working using the cloud config in the following format:
Environment
This is an ec2 t2.micro HVM machine
The text was updated successfully, but these errors were encountered: