Skip to content

Instantly share code, notes, and snippets.

@rasathus
Last active April 26, 2017 18:10
Show Gist options
  • Save rasathus/6b63f12bdf4f8d90b1e5 to your computer and use it in GitHub Desktop.
Save rasathus/6b63f12bdf4f8d90b1e5 to your computer and use it in GitHub Desktop.
saltstack/salt #18302 Test Output
Using salt package 2014.7.0+ds-2trusty1
vagrant@vagrant-ubuntu-trusty-64:~$ sudo salt-call --local grains.items
local:
----------
SSDs:
biosreleasedate:
12/01/2006
biosversion:
VirtualBox
cpu_flags:
- fpu
- vme
- de
- pse
- tsc
- msr
- pae
- mce
- cx8
- apic
- sep
- mtrr
- pge
- mca
- cmov
- pat
- pse36
- clflush
- mmx
- fxsr
- sse
- sse2
- syscall
- nx
- rdtscp
- lm
- constant_tsc
- rep_good
- nopl
- pni
- monitor
- ssse3
- lahf_lm
cpu_model:
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
cpuarch:
x86_64
domain:
fqdn:
vagrant-ubuntu-trusty-64
fqdn_ip4:
- 172.28.128.8
- 10.0.2.15
fqdn_ip6:
- ::1
gpus:
|_
----------
model:
VirtualBox Graphics Adapter
vendor:
unknown
host:
vagrant-ubuntu-trusty-64
hwaddr_interfaces:
----------
eth0:
08:00:27:2b:3d:ee
eth1:
08:00:27:87:83:49
lo:
00:00:00:00:00:00
id:
vagrant-ubuntu-trusty-64
ip4_interfaces:
----------
eth0:
- 10.0.2.15
eth1:
- 172.28.128.8
lo:
- 127.0.0.1
ip6_interfaces:
----------
eth0:
- fe80::a00:27ff:fe2b:3dee
eth1:
- fe80::a00:27ff:fe87:8349
lo:
- ::1
ip_interfaces:
----------
eth0:
- 10.0.2.15
eth1:
- 172.28.128.8
lo:
- 127.0.0.1
ipv4:
- 10.0.2.15
- 127.0.0.1
- 172.28.128.8
ipv6:
- ::1
- fe80::a00:27ff:fe2b:3dee
- fe80::a00:27ff:fe87:8349
kernel:
Linux
kernelrelease:
3.13.0-40-generic
locale_info:
----------
defaultencoding:
UTF-8
defaultlanguage:
en_US
localhost:
vagrant-ubuntu-trusty-64
lsb_distrib_codename:
trusty
lsb_distrib_description:
Ubuntu 14.04.1 LTS
lsb_distrib_id:
Ubuntu
lsb_distrib_release:
14.04
machine_id:
4954b56f1d0753cf9fe17c4154754eda
manufacturer:
innotek GmbH
master:
salt
mem_total:
2001
nodename:
vagrant-ubuntu-trusty-64
num_cpus:
1
num_gpus:
1
os:
Ubuntu
os_family:
Debian
osarch:
amd64
oscodename:
trusty
osfinger:
Ubuntu-14.04
osfullname:
Ubuntu
osrelease:
14.04
osrelease_info:
- 14
- 4
path:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
productname:
VirtualBox
ps:
ps -efHww
pythonexecutable:
/usr/bin/python
pythonpath:
- /usr/bin
- /usr/lib/python2.7
- /usr/lib/python2.7/plat-x86_64-linux-gnu
- /usr/lib/python2.7/lib-tk
- /usr/lib/python2.7/lib-old
- /usr/lib/python2.7/lib-dynload
- /usr/local/lib/python2.7/dist-packages
- /usr/lib/python2.7/dist-packages
pythonversion:
- 2
- 7
- 6
- final
- 0
saltpath:
/usr/lib/python2.7/dist-packages/salt
saltversion:
2014.7.0
saltversioninfo:
- 2014
- 7
- 0
- 0
serialnumber:
0
server_id:
1580313412
shell:
/bin/bash
virtual:
VirtualBox
zmqversion:
4.0.4
vagrant@vagrant-ubuntu-trusty-64:~$ sudo salt-call --local state.highstate
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://top.sls'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO ] Syncing modules for environment 'base'
[INFO ] Loading cache from salt://_modules, for base)
[INFO ] Caching directory '_modules/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO ] Syncing states for environment 'base'
[INFO ] Loading cache from salt://_states, for base)
[INFO ] Caching directory '_states/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO ] Syncing grains for environment 'base'
[INFO ] Loading cache from salt://_grains, for base)
[INFO ] Caching directory '_grains/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO ] Syncing renderers for environment 'base'
[INFO ] Loading cache from salt://_renderers, for base)
[INFO ] Caching directory '_renderers/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO ] Syncing returners for environment 'base'
[INFO ] Loading cache from salt://_returners, for base)
[INFO ] Caching directory '_returners/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/outputters'
[INFO ] Syncing outputters for environment 'base'
[INFO ] Loading cache from salt://_outputters, for base)
[INFO ] Caching directory '_outputters/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils'
[INFO ] Syncing utils for environment 'base'
[INFO ] Loading cache from salt://_utils, for base)
[INFO ] Caching directory '_utils/' for environment 'base'
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://system/packages.sls'
[INFO ] Running state [python-software-properties] at time 10:46:10.445700
[INFO ] Executing state pkg.installed for python-software-properties
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/home/vagrant'
[INFO ] Package python-software-properties is already installed.
[INFO ] Completed state [python-software-properties] at time 10:46:10.695104
[INFO ] Running state [oracle-java8-installer] at time 10:46:10.695622
[INFO ] Executing state pkgrepo.managed for oracle-java8-installer
[INFO ] {'repo': 'ppa:webupd8team/java'}
[INFO ] Completed state [oracle-java8-installer] at time 10:46:10.747877
[INFO ] Running state [oracle-java8-installer] at time 10:46:10.748817
[INFO ] Executing state debconf.set for oracle-java8-installer
[INFO ] Executing command 'debconf-get-selections' in directory '/home/vagrant'
[INFO ] All specified answers are already set
[INFO ] Completed state [oracle-java8-installer] at time 10:46:10.855796
[INFO ] Running state [oracle-java8-installer] at time 10:46:10.856381
[INFO ] Executing state pkg.installed for oracle-java8-installer
[INFO ] Executing command 'apt-get -q update' in directory '/home/vagrant'
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-installer'] in directory '/home/vagrant'
[ERROR ] Command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-installer'] failed with return code: 100
[ERROR ] output: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package oracle-java8-installer
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/home/vagrant'
[ERROR ] The following packages failed to install/update: oracle-java8-installer.
[INFO ] Completed state [oracle-java8-installer] at time 10:46:18.437655
[INFO ] Running state [oracle-java8-set-default] at time 10:46:18.438207
[INFO ] Executing state pkg.installed for oracle-java8-set-default
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-set-default'] in directory '/home/vagrant'
[ERROR ] Command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-set-default'] failed with return code: 100
[ERROR ] output: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package oracle-java8-set-default
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/home/vagrant'
[ERROR ] The following packages failed to install/update: oracle-java8-set-default.
[INFO ] Completed state [oracle-java8-set-default] at time 10:46:18.616716
[INFO ] Running state [ubuntu_specific_installed_packages] at time 10:46:18.617337
[INFO ] Executing state pkg.installed for ubuntu_specific_installed_packages
[INFO ] All specified packages are already installed.
[INFO ] Completed state [ubuntu_specific_installed_packages] at time 10:46:18.618669
local:
----------
ID: python-software-properties
Function: pkg.installed
Result: True
Comment: Package python-software-properties is already installed.
Started: 10:46:10.445700
Duration: 249.404 ms
Changes:
----------
ID: oracle-java8-installer
Function: pkgrepo.managed
Result: True
Comment: Configured package repo 'oracle-java8-installer'
Started: 10:46:10.695622
Duration: 52.255 ms
Changes:
----------
repo:
ppa:webupd8team/java
----------
ID: oracle-java8-installer
Function: debconf.set
Result: True
Comment: All specified answers are already set
Started: 10:46:10.748817
Duration: 106.979 ms
Changes:
----------
ID: oracle-java8-installer
Function: pkg.installed
Result: False
Comment: The following packages failed to install/update: oracle-java8-installer.
Started: 10:46:10.856381
Duration: 7581.274 ms
Changes:
----------
ID: oracle-java8-set-default
Function: pkg.installed
Result: False
Comment: The following packages failed to install/update: oracle-java8-set-default.
Started: 10:46:18.438207
Duration: 178.509 ms
Changes:
----------
ID: ubuntu_specific_installed_packages
Function: pkg.installed
Result: True
Comment: All specified packages are already installed.
Started: 10:46:18.617337
Duration: 1.332 ms
Changes:
Summary
------------
Succeeded: 4 (changed=1)
Failed: 2
------------
Total states run: 6
Using Salt develop checkout as of 10:45 12-DEC-14
vagrant@vagrant-ubuntu-trusty-64:~$ sudo salt-call --local grains.items
local:
----------
SSDs:
biosreleasedate:
12/01/2006
biosversion:
VirtualBox
cpu_flags:
- fpu
- vme
- de
- pse
- tsc
- msr
- pae
- mce
- cx8
- apic
- sep
- mtrr
- pge
- mca
- cmov
- pat
- pse36
- clflush
- mmx
- fxsr
- sse
- sse2
- syscall
- nx
- rdtscp
- lm
- constant_tsc
- rep_good
- nopl
- pni
- monitor
- ssse3
- lahf_lm
cpu_model:
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
cpuarch:
x86_64
domain:
fqdn:
vagrant-ubuntu-trusty-64
fqdn_ip4:
- 172.28.128.8
- 10.0.2.15
fqdn_ip6:
- ::1
gpus:
|_
----------
model:
VirtualBox Graphics Adapter
vendor:
unknown
host:
vagrant-ubuntu-trusty-64
hwaddr_interfaces:
----------
eth0:
08:00:27:2b:3d:ee
eth1:
08:00:27:87:83:49
lo:
00:00:00:00:00:00
id:
vagrant-ubuntu-trusty-64
ip4_interfaces:
----------
eth0:
- 10.0.2.15
eth1:
- 172.28.128.8
lo:
- 127.0.0.1
ip6_interfaces:
----------
eth0:
- fe80::a00:27ff:fe2b:3dee
eth1:
- fe80::a00:27ff:fe87:8349
lo:
- ::1
ip_interfaces:
----------
eth0:
- 10.0.2.15
- fe80::a00:27ff:fe2b:3dee
eth1:
- 172.28.128.8
- fe80::a00:27ff:fe87:8349
lo:
- 127.0.0.1
- ::1
ipv4:
- 10.0.2.15
- 127.0.0.1
- 172.28.128.8
ipv6:
- ::1
- fe80::a00:27ff:fe2b:3dee
- fe80::a00:27ff:fe87:8349
kernel:
Linux
kernelrelease:
3.13.0-40-generic
locale_info:
----------
defaultencoding:
UTF-8
defaultlanguage:
en_US
localhost:
vagrant-ubuntu-trusty-64
lsb_distrib_codename:
trusty
lsb_distrib_description:
Ubuntu 14.04.1 LTS
lsb_distrib_id:
Ubuntu
lsb_distrib_release:
14.04
machine_id:
4954b56f1d0753cf9fe17c4154754eda
manufacturer:
innotek GmbH
master:
salt
mdadm:
mem_total:
2001
nodename:
vagrant-ubuntu-trusty-64
num_cpus:
1
num_gpus:
1
os:
Ubuntu
os_family:
Debian
osarch:
amd64
oscodename:
trusty
osfinger:
Ubuntu-14.04
osfullname:
Ubuntu
osrelease:
14.04
osrelease_info:
- 14
- 4
path:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
productname:
VirtualBox
ps:
ps -efHww
pythonexecutable:
/usr/bin/python
pythonpath:
- /usr/bin
- /usr/lib/python2.7
- /usr/lib/python2.7/plat-x86_64-linux-gnu
- /usr/lib/python2.7/lib-tk
- /usr/lib/python2.7/lib-old
- /usr/lib/python2.7/lib-dynload
- /usr/local/lib/python2.7/dist-packages
- /usr/lib/python2.7/dist-packages
pythonversion:
- 2
- 7
- 6
- final
- 0
saltpath:
/usr/lib/python2.7/dist-packages/salt
saltversion:
2014.7.0
saltversioninfo:
- 2014
- 7
- 0
- 0
serialnumber:
0
server_id:
1580313412
shell:
/bin/bash
virtual:
VirtualBox
zmqversion:
4.0.4
vagrant@vagrant-ubuntu-trusty-64:/usr/lib/python2.7/dist-packages/salt$ sudo salt-call --local state.highstate
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[INFO ] Loading fresh modules for state activity
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[INFO ] Fetching file from saltenv 'base', ** done ** 'top.sls'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO ] Syncing modules for environment 'base'
[INFO ] Loading cache from salt://_modules, for base)
[INFO ] Caching directory '_modules/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO ] Syncing states for environment 'base'
[INFO ] Loading cache from salt://_states, for base)
[INFO ] Caching directory '_states/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO ] Syncing grains for environment 'base'
[INFO ] Loading cache from salt://_grains, for base)
[INFO ] Caching directory '_grains/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO ] Syncing renderers for environment 'base'
[INFO ] Loading cache from salt://_renderers, for base)
[INFO ] Caching directory '_renderers/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO ] Syncing returners for environment 'base'
[INFO ] Loading cache from salt://_returners, for base)
[INFO ] Caching directory '_returners/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/outputters'
[INFO ] Syncing outputters for environment 'base'
[INFO ] Loading cache from salt://_outputters, for base)
[INFO ] Caching directory '_outputters/' for environment 'base'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils'
[INFO ] Syncing utils for environment 'base'
[INFO ] Loading cache from salt://_utils, for base)
[INFO ] Caching directory '_utils/' for environment 'base'
[INFO ] Loading fresh modules for state activity
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[INFO ] Fetching file from saltenv 'base', ** done ** 'system/packages.sls'
[INFO ] Running state [python-software-properties] at time 11:13:17.470461
[INFO ] Executing state pkg.installed for python-software-properties
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/home/vagrant'
[INFO ] Package python-software-properties is already installed.
[INFO ] Completed state [python-software-properties] at time 11:13:17.712541
[INFO ] Running state [oracle-java8-installer] at time 11:13:17.712993
[INFO ] Executing state pkgrepo.managed for oracle-java8-installer
[INFO ] Executing command 'apt-add-repository -y ppa:webupd8team/java' in directory '/home/vagrant'
[INFO ] Executing command 'apt-get -q update' in directory '/home/vagrant'
[INFO ] {'repo': 'ppa:webupd8team/java'}
[INFO ] Completed state [oracle-java8-installer] at time 11:14:04.588019
[INFO ] Running state [oracle-java8-installer] at time 11:14:04.588861
[INFO ] Executing state debconf.set for oracle-java8-installer
[INFO ] Executing command 'debconf-get-selections' in directory '/home/vagrant'
[INFO ] All specified answers are already set
[INFO ] Completed state [oracle-java8-installer] at time 11:14:04.705900
[INFO ] Running state [oracle-java8-installer] at time 11:14:04.706695
[INFO ] Executing state pkg.installed for oracle-java8-installer
[INFO ] Executing command 'apt-get -q update' in directory '/home/vagrant'
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-installer'] in directory '/home/vagrant'
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/home/vagrant'
[INFO ] Installed Packages:
java-common changed from absent to 0.51
oracle-java8-installer changed from absent to 8u25+8u6arm-1~webupd8~1
gsfonts-x11 changed from absent to 0.22
gsfonts changed from absent to 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1
[INFO ] Loading fresh modules for state activity
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[INFO ] Completed state [oracle-java8-installer] at time 11:14:54.189455
[INFO ] Running state [oracle-java8-set-default] at time 11:14:54.190138
[INFO ] Executing state pkg.installed for oracle-java8-set-default
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'oracle-java8-set-default'] in directory '/home/vagrant'
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/home/vagrant'
[INFO ] Installed Packages:
oracle-java8-set-default changed from absent to 8u25+8u6arm-1~webupd8~1
[INFO ] Loading fresh modules for state activity
[WARNING ] salt.loaded.int.module.sysrc.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'sysrc', please fix this.
[INFO ] Completed state [oracle-java8-set-default] at time 11:15:00.034608
[INFO ] Running state [ubuntu_specific_installed_packages] at time 11:15:00.035300
[INFO ] Executing state pkg.installed for ubuntu_specific_installed_packages
[INFO ] All specified packages are already installed.
[INFO ] Completed state [ubuntu_specific_installed_packages] at time 11:15:00.036704
local:
----------
ID: python-software-properties
Function: pkg.installed
Result: True
Comment: Package python-software-properties is already installed.
Started: 11:13:17.470461
Duration: 242.08 ms
Changes:
----------
ID: oracle-java8-installer
Function: pkgrepo.managed
Result: True
Comment: Configured package repo 'oracle-java8-installer'
Started: 11:13:17.712993
Duration: 46875.026 ms
Changes:
----------
repo:
ppa:webupd8team/java
----------
ID: oracle-java8-installer
Function: debconf.set
Result: True
Comment: All specified answers are already set
Started: 11:14:04.588861
Duration: 117.039 ms
Changes:
----------
ID: oracle-java8-installer
Function: pkg.installed
Result: True
Comment: 1 targeted package was installed/updated.
Started: 11:14:04.706695
Duration: 49482.76 ms
Changes:
----------
gsfonts:
----------
new:
1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1
old:
gsfonts-x11:
----------
new:
0.22
old:
java-common:
----------
new:
0.51
old:
oracle-java8-installer:
----------
new:
8u25+8u6arm-1~webupd8~1
old:
----------
ID: oracle-java8-set-default
Function: pkg.installed
Result: True
Comment: 1 targeted package was installed/updated.
Started: 11:14:54.190138
Duration: 5844.47 ms
Changes:
----------
oracle-java8-set-default:
----------
new:
8u25+8u6arm-1~webupd8~1
old:
----------
ID: ubuntu_specific_installed_packages
Function: pkg.installed
Result: True
Comment: All specified packages are already installed.
Started: 11:15:00.035300
Duration: 1.404 ms
Changes:
Summary
------------
Succeeded: 6 (changed=3)
Failed: 0
------------
Total states run: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment