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

Beta 3602.1.0: missing /var/log/sssd directory #1096

Closed
tuannd-nguyen-ext-star opened this issue Jun 26, 2023 · 3 comments
Closed

Beta 3602.1.0: missing /var/log/sssd directory #1096

tuannd-nguyen-ext-star opened this issue Jun 26, 2023 · 3 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@tuannd-nguyen-ext-star
Copy link

Description

Our test servers are running on AWS with the AMI image (Flatcar-beta-3602.1.0-hvm).
They are unable to start sssd.service with the error message:
sssd[5968]: Could not open file [/var/log/sssd/sssd.log]. Error: [2][No such file or directory]

Impact

We integrate the EC2 machine with our authentication server.
Work around: mkdir -p /var/log/sssd before starting sssd.service

Environment and steps to reproduce

  1. Set-up: EC2 Beta 3602.1.0 (Flatcar-beta-3602.1.0-hvm)
  2. Task:
  3. Action(s):
    a. systemctl start sssd.service
  4. Error: sssd[5968]: Could not open file [/var/log/sssd/sssd.log]. Error: [2][No such file or directory]
@tuannd-nguyen-ext-star tuannd-nguyen-ext-star added the kind/bug Something isn't working label Jun 26, 2023
@pothos
Copy link
Member

pothos commented Jun 26, 2023

The downstream patch we apply uses tmpfiles instead of the keepdir ebuild directive:
flatcar/scripts@3e25e23
However, it forgot this very folder.
I think we might just use keepdir because we have some logic to generate tmpfile directives from the created folders, what do you think, @krnowak?

Edit: This package has some legacy mechanisms, I hope upstream/Gentoo has improvements with newer versions.
Also, with the /etc overlay we probably can use insinto /etc/sssd again and drop this downstream change.

@krnowak
Copy link
Member

krnowak commented Jun 26, 2023

The downstream patch we apply uses tmpfiles instead of the keepdir ebuild directive: flatcar/scripts@3e25e23 However, it forgot this very folder. I think we might just use keepdir because we have some logic to generate tmpfile directives from the created folders, what do you think, @krnowak?

Yeah, I'd agree in general, but I suppose that the quickest fix right now is to add the missing entry to the sssd tmpfiles config file.

Edit: This package has some legacy mechanisms, I hope upstream/Gentoo has improvements with newer versions. Also, with the /etc overlay we probably can use insinto /etc/sssd again and drop this downstream change.

That's something I'd do when trying to move this package to portage-stable. Or at least minimize the amount of Flatcar modifications that we make in this ebuild. It's a material for a separate PR, I'd say.

@pothos pothos self-assigned this Jun 28, 2023
@pothos
Copy link
Member

pothos commented Jun 29, 2023

Merged for the next Alpha/Beta releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants