{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20852","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20852/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20852/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20852/events","html_url":"https://github.com/saltstack/salt/issues/20852","id":58316616,"number":20852,"title":"Not able to extract archive in 2014.7.1","user":{"login":"yourmailmyid","id":10269376,"avatar_url":"https://avatars.githubusercontent.com/u/10269376?v=3","gravatar_id":"","url":"https://api.github.com/users/yourmailmyid","html_url":"https://github.com/yourmailmyid","followers_url":"https://api.github.com/users/yourmailmyid/followers","following_url":"https://api.github.com/users/yourmailmyid/following{/other_user}","gists_url":"https://api.github.com/users/yourmailmyid/gists{/gist_id}","starred_url":"https://api.github.com/users/yourmailmyid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yourmailmyid/subscriptions","organizations_url":"https://api.github.com/users/yourmailmyid/orgs","repos_url":"https://api.github.com/users/yourmailmyid/repos","events_url":"https://api.github.com/users/yourmailmyid/events{/privacy}","received_events_url":"https://api.github.com/users/yourmailmyid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Fixed%20Pending%20Verification","name":"Fixed Pending Verification","color":"d4c5f9"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Medium%20Severity","name":"Medium Severity","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":1990,"closed_issues":1606,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-03-02T22:50:07Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-02-20T06:51:32Z","updated_at":"2015-03-03T04:39:24Z","closed_at":"2015-02-24T18:03:19Z","body":"I have following SLS file to extract a tar.gz file.\r\n```\r\nsensu-untar:\r\n  archive:\r\n    - extracted\r\n    - order: 4\r\n    - name: /home/user/sensu/\r\n    - source: salt://default/sensu-conf.tar.gz\r\n    - archive_format: tar\r\n    - tar_options: zxv\r\n    - keep: True\r\n```\r\nAbove code fails on a salt-minion of version 2014.7.1 and passes on 2014.7.0 when executed from the same salt-master. The salt-master is on the 2014.7.1 version.\r\n\r\nAnd when I replace the /usr/lib/python2.7/dist-packages/salt/states/archive.py of minion 7.1 with that of the minion 7.1 , the state file works fine on both minions.\r\nSo my conclusion is the archive.py in salt-minion 2014.7.1 has some problem.\r\n\r\nThe result for version 2014.7.1 is:\r\n```\r\ncompute:\r\n----------\r\n          ID: sensu-untar\r\n    Function: archive.extracted\r\n        Name: /home/user/sensu/\r\n      Result: False\r\n     Comment:\r\n     Started: 12:18:31.162696\r\n    Duration: 677.619 ms\r\n     Changes:\r\n              ----------\r\n              pid:\r\n                  23995\r\n              retcode:\r\n                  2\r\n              stderr:\r\n                  tar (child): '/var/cache/salt/minion/files/base/_home_user_sensu_.tar': Cannot open: No such file or directory\r\n                  tar (child): Error is not recoverable: exiting now\r\n                  tar: Child returned status 2\r\n                  tar: Error is not recoverable: exiting now\r\n              stdout:\r\n\r\nSummary\r\n------------\r\nSucceeded: 0 (changed=1)\r\nFailed:    1\r\n------------\r\nTotal states run:     1\r\n```\r\nThe result for version 2014.7.0 is:\r\n```\r\nnetwork:\r\n----------\r\n          ID: sensu-untar\r\n    Function: archive.extracted\r\n        Name: /home/user/sensu/\r\n      Result: True\r\n     Comment: salt://default/sensu-client/sensu-conf.tar.gz extracted in /home/user/sensu/\r\n     Started: 12:19:51.828931\r\n    Duration: 11.506 ms\r\n     Changes:\r\n              ----------\r\n              directories_created:\r\n                  - /home/user/sensu/\r\n              extracted_files:\r\n                  sensu/conf.d/\r\n                  sensu/extensions/\r\n                  sensu/handlers/\r\n                  \r\nSummary\r\n------------\r\nSucceeded: 1 (changed=1)\r\nFailed:    0\r\n------------\r\nTotal states run:     1\r\n```\r\n \r\n\r\n\t"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/76886069","html_url":"https://github.com/saltstack/salt/issues/20852#issuecomment-76886069","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20852","id":76886069,"user":{"login":"garthk","id":15906,"avatar_url":"https://avatars.githubusercontent.com/u/15906?v=3","gravatar_id":"","url":"https://api.github.com/users/garthk","html_url":"https://github.com/garthk","followers_url":"https://api.github.com/users/garthk/followers","following_url":"https://api.github.com/users/garthk/following{/other_user}","gists_url":"https://api.github.com/users/garthk/gists{/gist_id}","starred_url":"https://api.github.com/users/garthk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garthk/subscriptions","organizations_url":"https://api.github.com/users/garthk/orgs","repos_url":"https://api.github.com/users/garthk/repos","events_url":"https://api.github.com/users/garthk/events{/privacy}","received_events_url":"https://api.github.com/users/garthk/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T04:39:24Z","updated_at":"2015-03-03T04:39:24Z","body":"Any workaround for 2014.7.1? When is 2014.7.2 shipping on the APT feed? "}}