Problems with archive.extracted

177 views
Skip to first unread message

Anna Berruezo

unread,
Sep 25, 2014, 5:55:45 AM9/25/14
to salt-...@googlegroups.com
Hi,
I'm trying to have some tar.gz extracted but it doesn't work.
I've looked into it and there was a similar bug a few months ago (but I think it was fixed).

Salt version: salt 2014.1.11 (Hydrogen) running on OpenSuse 13.1

My state:

super-3.30.0:
  archive:
    - extracted
    - name: /home/soft/mgr/
    - source: salt://super/files/super-3.30.0-tar.gz
    - archive_format: tar
    - if_missing: /home/soft/mgr/super-3.30.0/
    - tar_options: zxvf

What I get when I run the state:

----------
    ID: super-3.30.0
    Function: archive.extracted
    Name: /home/soft/mgr/
    Result: False
    Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py", line 1380, in call
                  self.verify_ret(ret)
                File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py", line 661, in verify_ret
                  ).format(','.join(bad)))
              SaltException: The following keys were not present in the state return: name,result,changes,comment
     Changes:
----------

I think it's a problem with my code or my Salt, but I've tried everything and I want to make sure it's not a bug before spending more time with this.

Anyone with the same issue?

Colton Myers

unread,
Oct 31, 2014, 3:42:48 PM10/31/14
to salt-...@googlegroups.com
Hey Anna,

This certainly looks like a bug. Is the module still behaving this way? If so could you please open an issue on Github?

Sorry for the late reply.

--
Colton Myers (basepi)
Platform Engineer, SaltStack

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anna Berruezo

unread,
Nov 3, 2014, 6:43:29 AM11/3/14
to salt-...@googlegroups.com
Hey, just saw the reply by chance. (don't know why, but I didn't receive an e-mail notification).

I just tried this again with Open Suse 12.2 and still got the same problem.


----------
          ID: super-3.30.0
    Function: archive.extracted
        Name: /home/soft/mgr/
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py", line 1380, in call
                  self.verify_ret(ret)
                File "/home/soft/python-2.7.8/lib/python2.7/site-packages/salt/state.py", line 661, in verify_ret
                  ).format(','.join(bad)))
              SaltException: The following keys were not present in the state return: name,result,changes,comment


Also, I tried with the module thing (I don't know if I'm using it correctly, I haven't done much work with modules yet.)
I don't know if it's the same error.

salt minionName archive.tar zxvf salt://base/super/files/super-3.30.0-tar.gz dest=/home/soft/mgr/super-3.30.0
melisa:
    - tar (child): Cannot connect to salt: resolve failed
    -
    - gzip: stdin: unexpected end of file
    - tar: Child returned status 128
    - tar: Error is not recoverable: exiting now


Thanks for the support! I can open an issue on Github but first I want to make sure it's not my fault. :)

Colton Myers

unread,
Nov 3, 2014, 3:06:04 PM11/3/14
to salt-...@googlegroups.com
Hrm, I'm not sure on the module, that's some strange output. But it certainly appears to be a bug in the state, so go ahead an open that issue.

--
Colton Myers

Anna Berruezo

unread,
Nov 4, 2014, 3:59:02 AM11/4/14
to salt-...@googlegroups.com
I looked into it and I think someone already opened an issue about this! I guess it's the same problem.
https://github.com/saltstack/salt/issues/16658

Colton Myers

unread,
Nov 4, 2014, 6:26:32 PM11/4/14
to salt-...@googlegroups.com
Awesome, thanks for searching instead of opening a duplicate, that's very helpful. =)

--
Colton Myers
Reply all
Reply to author
Forward
0 new messages