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

cloud.clouds.ec2: cache each named node #33164

Merged
merged 1 commit into from May 12, 2016

Conversation

jfindlay
Copy link
Contributor

What does this PR do?

fix node caching for EC2, ping @techhat

What issues does this PR fix or reference?

#33162

Previous Behavior

stack trace (see issue)

New Behavior

# salt-call --local cloud.has_instance jmoney-git-ec2-amazon-6
[INFO    ] Determining pillar cache
[INFO    ] Starting new HTTPS connection (1): api.digitalocean.com
[INFO    ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[INFO    ] Starting new HTTPS connection (1): identity.api.rackspacecloud.com
[INFO    ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
local:
    True

Tests written?

No

@techhat
Copy link
Contributor

techhat commented May 12, 2016

LGTM

@cachedout cachedout merged commit b3805d8 into saltstack:2015.8 May 12, 2016
gitebra pushed a commit to gitebra/salt that referenced this pull request May 16, 2016
* upstream/develop: (60 commits)
  allow top cfg to be YAML for consistency and flexibility (current syntax does not allow blank lines or comments) (saltstack#33189)
  allow user to revert vm to the specific snapshot for vmware (saltstack#33234)
  Support for Advanced Policy Firewall (APF) (saltstack#33134)
  Fix list_values, add test (saltstack#33264)
  Gentoo/OpenRC service management enhancements (saltstack#33260)
  Don't send passwords after shim delimiter is found (saltstack#33170)
  Properly report on invalid gitfs/git_pillar/winrepo repos (saltstack#33244)
  Windows: salt fails to start when running in system account (saltstack#33220)
  add nodegroups ext_pillar (saltstack#33179)
  Fix boto_vpc_test to work with saltstack#32677 (saltstack#33214)
  Expose CherryPy option to write access and error logs (saltstack#33226)
  [2015.8] Merge forward from 2015.5 to 2015.8 (saltstack#33207)
  Don't try to kill a parent proc if we can't
  Add a fetch when compiling git_pillar for masterless minions (saltstack#33204)
  Resolve issue with pkg module on Mint Linux (saltstack#33205)
  cloud.clouds.ec2: cache each named node (saltstack#33164)
  Properly handle failed git commands when redirect_stderr=True (saltstack#33203)
  Add pip installed and removed test (saltstack#33178)
  Don't force use of global ssh_config when git identity file is specified (saltstack#33152)
  update 2015.8.9 release notes (saltstack#33198)
  ...
@jfindlay jfindlay deleted the ec2_cache_node branch May 19, 2016 22:39
sergeizv added a commit to sergeizv/salt that referenced this pull request Mar 2, 2017
This reverts commit b3805d8 ("cloud.clouds.ec2: cache each named
node (saltstack#33164)").

Commit 25771fc ("_get_node return instance info directly, not a
dict of instances") from 2016.3 feature release changed how the result
of _get_node should be interpreted. Before it was like

  res = _get_node(...)
  node = res[name]

and after the commit it became

  node = _get_node(...)

Commit b3805d8 ("cloud.clouds.ec2: cache each named node (saltstack#33164)")
submitted into 2015.8 as a bugfix for saltstack#33162 added loops over the keys
of a dictionary returned by _get_node, fixing
salt.utils.cloud.cache_node calls in queue_instances() and
show_instance().

But after being merged into 2016.3 with merge commit 679200a
("Merge branch '2015.8' into '2016.3'"), the commit in question
reintroduced the bug on 2016.3 because of changed return value of
_get_node.

Fixes saltstack#39782
@sergeizv sergeizv mentioned this pull request Mar 2, 2017
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

3 participants