-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Failure when using the -tz flag or setting tz in containers conf on macos #11895
Comments
@dustymabe are there limited timezones installed on fedora coreos? |
Looks like fcos is missing /etc/localtime, which we're trying to read when setting timezone to "local" [core@localhost ~]$ ls -l /etc/localtime |
Is this something we should add in the ignition file to match the MAC? |
@dustymabe Thoughts? |
A friendly reminder that this issue had no activity for 30 days. |
@rhatdan - all the timezones are there. we just don't set a local timezone by default (i.e. default to UTC). Maybe |
Sounds reasonable to me. |
@ashley-cui PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@ashley-cui Any movement on this? @afbjorklund WDYT? |
Not yet, still mostly working on GUI stuff. l might get a chance to look at it soon |
No idea about CoreOS, on Cloud I see |
For reference, Fedora CoreOS sticks to the default on this and follows the specs for
|
So if someone who understood MAC and ignition, they could have the podman machine init command query the timezone on the MAC and then tell ignition to set it within the VM. Could someone take a stab at this. I can't do it because of lack of access to a MAC. |
@flouthoc Is this something you could do? |
@rhatdan I don't have a mac machine handy to play around with this. |
@baude PTAL |
Podman machine works on Linux, as far as I know ? |
Could you open a PR to add the linux /etc/localtime settings to the ignition file so that the VM matches the localtime of the host? Would this same change work on a MAC? |
@rhatdan i've got this |
Added an option to podman machine init to declare the timezone of the resulting machine. the default is to use the value of the host name or else a given timezone name like America/Chicago. Fixes: containers#11895 Signed-off-by: Brent Baude <[email protected]> [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When using the tz flag or setting something like
tz = "local"
in your containers.conf, I get the following error when starting up a container.Steps to reproduce the issue:
Add
tz = "local"
to containers block in containers.confRun a container - the latest containers I tried to run using a compose file:
You don't have to use a compose file though - this happens with any container I've tried so far.
Describe the results you received:
Describe the results you expected:
Podman to start the container normally and the time to be set in the container accordingly.
Additional information you deem important (e.g. issue happens only occasionally):
When time is off, lots of weird problems occur so even if this isn't deemed a bug the documentation may need to be updated to include information as to how a user can get time to sync appropriately from host to child.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Intel macOS 11.6 (20G165)
The text was updated successfully, but these errors were encountered: