Re: Attempt in extending Salt pkg not available

37 views
Skip to first unread message

Thomas S Hatch

unread,
Apr 5, 2012, 4:22:17 PM4/5/12
to salt-...@googlegroups.com
Please don't double post.

what happens when you run the minion in the foreground with debug turned on? There may be a load error.

On Thu, Apr 5, 2012 at 2:12 PM, Duane Crouch <duane....@mnxsolutions.com> wrote:
After a few times of getting package not available error, I renamed yumpkg.py file to yumpkg.py, reloaded salt, restarted minion master, renamed salt modules directory and restored files.  Tried to uninstall and then install from rpm.  And from git.  No matter what I get the same ouput as mentioned here.  Not sure where to go from here.

http://thunked.org/p/view/pri/m21fchxct

Duane Crouch

unread,
Apr 5, 2012, 4:29:58 PM4/5/12
to salt-...@googlegroups.com
I removed my response in hope to not double post, realized this was related to the other post, thought it would be better there.  Sorry for the confusion.  

[root@manage cache]# salt 'server.hostname.masked.com' pkg.list
16:28:24,396 [salt.minion    ][INFO    ] User root Executing command pkg.list with jid 20120405162824391347
16:28:24,396 [salt.minion    ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20120405162824391347', 'tgt': 'server.hostname.masked.com', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'pkg.list'}
16:28:24,400 [salt.minion    ][INFO    ] Returning information for job: 20120405162824391347
{'server.hostname.masked.com': '"pkg.list" is not available.'}

Thomas S Hatch

unread,
Apr 5, 2012, 4:32:54 PM4/5/12
to salt-...@googlegroups.com
No worries :)

and yes, this looks right, pkg.list is not a pkg function

Duane Crouch

unread,
Apr 5, 2012, 4:47:59 PM4/5/12
to salt-...@googlegroups.com
Yes, that was overlooked, thank you.  

[root@manage modules]# salt 'server.hostname.masked.com' pkg.list_upgrades
16:44:25,194 [salt.minion    ][INFO    ] User root Executing command pkg.list_upgrades with jid 20120405164425176062
16:44:25,194 [salt.minion    ][DEBUG   ] Command details {'tgt_type': 'glob', 'jid': '20120405164425176062', 'tgt': 'server.hostname.masked.com', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'pkg.list_upgrades'}
16:44:25,196 [salt.minion    ][INFO    ] Returning information for job: 20120405164425176062
{'server.hostname.masked.com': '"pkg.list_upgrades" is not available.'}

pkg.list_pkgs works fine.  :)

Thomas S Hatch

unread,
Apr 5, 2012, 4:53:41 PM4/5/12
to salt-...@googlegroups.com
Is the right virtual module being loaded? Does sys.doc show apt specific data?

Duane Crouch

unread,
Apr 5, 2012, 5:10:00 PM4/5/12
to salt-...@googlegroups.com
Not running in a virtualenv.  Most mention of virtual in there was mentioning virtualenv and from pip installation.  I like that return though didn't know about the sys.doc. 
Reply all
Reply to author
Forward
0 new messages