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

[2018.3] Merge forward from 2017.7 to 2018.3 #48297

Merged
merged 30 commits into from Jun 30, 2018

Conversation

rallytime
Copy link
Contributor

Conflicts:

  • salt/modules/x509.py
  • salt/runners/cloud.py
  • tests/unit/modules/test_state.py

terminalmage and others added 29 commits June 8, 2018 09:33
This allows for custom types to be synced before executing states, when
not running a highstate.
This mocking was added to setup_loader_modules and is no longer needed
in individual tests.
A quick bugfix release was added after 2018.3.1, so this code will not
make it in until 2018.3.3.
I was looking at the
[SDB cache module](https://docs.saltstack.com/en/latest/ref/sdb/all/salt.sdb.cache.html#module-salt.sdb.cache)
and it appears that there's a little bug (probably caused by some recent changes
in the caching system):

```bash
Exception occurred in runner sdb.set: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/client/mixins.py", line 382, in _low
    data['return'] = self.functions[fun](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/runners/sdb.py", line 42, in set_
    return salt.utils.sdb.sdb_set(uri, value, __opts__, __utils__)
  File "/usr/lib/python2.7/dist-packages/salt/utils/sdb.py", line 77, in sdb_set
    return loaded_db[fun](query, value, profile=profile)
  File "/usr/lib/python2.7/dist-packages/salt/sdb/cache.py", line 72, in set_
    cache.set(profile['bank'], key=key, value=value)
AttributeError: 'Cache' object has no attribute 'set'
```

The `set` method doesn't exist: https://github.com/saltstack/salt/blob/2017.7.7/salt/sdb/cache.py#L72

This change is enough to fix the issue:

```bash
bar
```

Moreover it seems to fix both the Execution Module and the Runner, as the Runner
simply invokes the same code, via ``salt.utils.sdb``.
Add sample list data via command line pillar
…tes-update

Update release notes for 2017.7.7
…-sync-docs

Add "sync_mods" argument to state.apply/state.sls
SDB cache module: AttributeError: 'Cache' object has no attribute 'set'
do not expand kwargs for cloud.action
Fix: LXC legacy configuration key warnings falsely report errors during state change
Conflicts:
  - salt/modules/x509.py
  - salt/runners/cloud.py
  - tests/unit/modules/test_state.py
@rallytime
Copy link
Contributor Author

re-run py

@rallytime rallytime merged commit 89857ea into saltstack:2018.3 Jun 30, 2018
@rallytime rallytime deleted the merge-2018.3 branch June 30, 2018 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants