Skip to content

timezone.system is not available for mac #31345

Closed

Description

@dvcrn

Executing with salt-ssh

State:

Asia/Tokyo:
  timezone.system:
    - utc: True

Error:

----------
          ID: Asia/Tokyo
    Function: timezone.system
      Result: False
     Comment: State 'timezone.system' was not found in SLS 'timezone'
              Reason: 'timezone.system' is not available.
     Started:
    Duration:
     Changes:

Salt version: 2015.8.5

Running this on a cluster with mostly debian machines, but also 1 mac. The debians work fine, the mac fails

Activity

  1. ssgward commented on Feb 19, 2016

    @ssgward

    @dvcrn - thanks for reporting. We are in the process of improving our Mac support.

    Also, feel free to submit pull requests for any functionality you'd like to see added.

  2. added this to the Approved milestone on Feb 19, 2016
  3. added
    Feature
    Platform
    MacOS
    on Feb 19, 2016
  4. dvcrn commented on Feb 20, 2016

    @dvcrn
    Author

    Is there a list with what is available on which platform?

  5. ssgward commented on Feb 22, 2016

    @ssgward

    @dvcrn - no list, currently.

  6. sdemura commented on Sep 14, 2016

    @sdemura

    Still an issue in 2016.3.3

    The error isn't nearly as pretty anymore:

    tc-mac-builder-01:
    ----------
              ID: set_timezone
        Function: timezone.system
            Name: America/Los_Angeles
          Result: False
         Comment: An exception occurred in this state: Traceback (most recent call last):
                    File "/usr/local/Cellar/saltstack/2016.3.3/libexec/lib/python2.7/site-packages/salt/state.py", line 1733, in call
                      **cdata['kwargs'])
                    File "/usr/local/Cellar/saltstack/2016.3.3/libexec/lib/python2.7/site-packages/salt/loader.py", line 1652, in wrapper
                      return f(*args, **kwargs)
                    File "/usr/local/Cellar/saltstack/2016.3.3/libexec/lib/python2.7/site-packages/salt/states/timezone.py", line 73, in system
                      if __salt__['timezone.get_hwclock']() == 'localtime':
                    File "/usr/local/Cellar/saltstack/2016.3.3/libexec/lib/python2.7/site-packages/salt/loader.py", line 1055, in __getitem__
                      func = super(LazyLoader, self).__getitem__(item)
                    File "/usr/local/Cellar/saltstack/2016.3.3/libexec/lib/python2.7/site-packages/salt/utils/lazy.py", line 90, in __getitem__
                      return self._dict[key]
                  KeyError: 'timezone.get_hwclock'
         Started: 06:03:09.980560
        Duration: 25.342 ms
         Changes:
    
  7. stale commented on Jul 1, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

    If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureMacOSPlatformstale

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions