Last active
August 29, 2015 14:15
-
-
Save Symmetric/c2a7dde89470a9679558 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@kubernetes-minion-1 ~]$ sudo salt-call -l debug state.sls calico | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/grains.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/grains.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/log-level-debug.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/log-level-debug.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: kubernetes-minion-1 | |
[DEBUG ] Configuration file path: /etc/salt/minion | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/grains.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/grains.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/log-level-debug.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/log-level-debug.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf | |
[DEBUG ] The `dmidecode` binary is not available on the system. GPU grains will not be available. | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Mako not available | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/grains.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/grains.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/log-level-debug.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/log-level-debug.conf | |
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf' | |
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf | |
[DEBUG ] The `dmidecode` binary is not available on the system. GPU grains will not be available. | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[INFO ] Loading fresh modules for state activity | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://calico.sls' | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://calico/init.sls' | |
[INFO ] Fetching file from saltenv 'base', ** done ** 'calico/init.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/calico/init.sls: | |
calico: | |
network.managed: | |
- enabled: True | |
- type: bridge | |
- name: calcio1 | |
- ipaddr: 1.1.1.1 | |
- netmask: 255.255.255.0 | |
#cmd.wait: | |
# - name: /kubernetes-vagrant/network_closure.sh | |
# - watch: | |
# - pkg: docker-io | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('calico', OrderedDict([('network.managed', [OrderedDict([('enabled', True)]), OrderedDict([('type', 'bridge')]), OrderedDict([('name', 'calcio1')]), OrderedDict([('ipaddr', '1.1.1.1')]), OrderedDict([('netmask', '255.255.255.0')])])]))]) | |
[INFO ] Running state [calcio1] at time 20:46:20.431787 | |
[INFO ] Executing state network.managed for calcio1 | |
[INFO ] Executing command "repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}' --all --pkgnarrow=installed" in directory '/root' | |
[INFO ] Executing command 'yum -y install bridge-utils' in directory '/root' | |
[INFO ] Executing command "repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}' --all --pkgnarrow=installed" in directory '/root' | |
[INFO ] Executing command 'systemctl --version' in directory '/root' | |
[DEBUG ] stdout: systemd 208 | |
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ | |
[INFO ] Executing command 'sysctl -a' in directory '/root' | |
[ERROR ] An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1529, in call | |
**cdata['kwargs']) | |
File "/usr/lib/python2.7/site-packages/salt/states/network.py", line 219, in managed | |
new = __salt__['ip.build_interface'](name, type, enabled, **kwargs) | |
File "/usr/lib/python2.7/site-packages/salt/modules/rh_ip.py", line 885, in build_interface | |
opts = _parse_settings_eth(settings, iface_type, enabled, iface) | |
File "/usr/lib/python2.7/site-packages/salt/modules/rh_ip.py", line 604, in _parse_settings_eth | |
__salt__['sysctl.persist']('net.bridge.bridge-nf-call-ip6tables', '0') | |
File "/usr/lib/python2.7/site-packages/salt/modules/linux_sysctl.py", line 246, in persist | |
assign(name, value) | |
File "/usr/lib/python2.7/site-packages/salt/modules/linux_sysctl.py", line 137, in assign | |
raise CommandExecutionError('sysctl {0} does not exist'.format(name)) | |
CommandExecutionError: sysctl net.bridge.bridge-nf-call-ip6tables does not exist | |
[INFO ] Completed state [calcio1] at time 20:46:28.653899 | |
[DEBUG ] LazyLoaded .returner | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
local: | |
---------- | |
ID: calico | |
Function: network.managed | |
Name: calcio1 | |
Result: False | |
Comment: An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/salt/state.py", line 1529, in call | |
**cdata['kwargs']) | |
File "/usr/lib/python2.7/site-packages/salt/states/network.py", line 219, in managed | |
new = __salt__['ip.build_interface'](name, type, enabled, **kwargs) | |
File "/usr/lib/python2.7/site-packages/salt/modules/rh_ip.py", line 885, in build_interface | |
opts = _parse_settings_eth(settings, iface_type, enabled, iface) | |
File "/usr/lib/python2.7/site-packages/salt/modules/rh_ip.py", line 604, in _parse_settings_eth | |
__salt__['sysctl.persist']('net.bridge.bridge-nf-call-ip6tables', '0') | |
File "/usr/lib/python2.7/site-packages/salt/modules/linux_sysctl.py", line 246, in persist | |
assign(name, value) | |
File "/usr/lib/python2.7/site-packages/salt/modules/linux_sysctl.py", line 137, in assign | |
raise CommandExecutionError('sysctl {0} does not exist'.format(name)) | |
CommandExecutionError: sysctl net.bridge.bridge-nf-call-ip6tables does not exist | |
Started: 20:46:20.431787 | |
Duration: 8222.112 ms | |
Changes: | |
Summary | |
------------ | |
Succeeded: 0 | |
Failed: 1 | |
------------ | |
Total states run: 1 | |
[vagrant@kubernetes-minion-1 ~]$ modprobe --dump-modversions bridge | |
modprobe: FATAL: Module bridge not found. | |
[vagrant@kubernetes-minion-1 ~]$ ls /proc/sys/net | |
core ipv4 ipv6 netfilter unix | |
[vagrant@kubernetes-minion-1 ~]$ sudo modprobe bridge | |
[vagrant@kubernetes-minion-1 ~]$ ls /proc/sys/net | |
bridge core ipv4 ipv6 netfilter unix | |
[vagrant@kubernetes-minion-1 ~]$ sudo salt-call -l info state.sls calico | |
[INFO ] Loading fresh modules for state activity | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://calico/init.sls' | |
[INFO ] Running state [calcio1] at time 20:48:13.683313 | |
[INFO ] Executing state network.managed for calcio1 | |
[INFO ] Executing command "repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}' --all --pkgnarrow=installed" in directory '/root' | |
[INFO ] Executing command 'yum -y install bridge-utils' in directory '/root' | |
[INFO ] Executing command "repoquery --plugins --queryformat '%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}' --all --pkgnarrow=installed" in directory '/root' | |
[INFO ] Executing command 'systemctl --version' in directory '/root' | |
[INFO ] Executing command 'sysctl -a' in directory '/root' | |
[INFO ] Executing command 'sysctl -w net.bridge.bridge-nf-call-ip6tables="0"' in directory '/root' | |
[INFO ] Executing command 'systemctl --version' in directory '/root' | |
[INFO ] Executing command 'sysctl -a' in directory '/root' | |
[INFO ] Executing command 'sysctl -w net.bridge.bridge-nf-call-iptables="0"' in directory '/root' | |
[INFO ] Executing command 'systemctl --version' in directory '/root' | |
[INFO ] Executing command 'sysctl -a' in directory '/root' | |
[INFO ] Executing command 'sysctl -w net.bridge.bridge-nf-call-arptables="0"' in directory '/root' | |
[INFO ] Executing command 'ifup calcio1' in directory '/root' | |
[INFO ] {'interface': 'Added network interface.', 'status': 'Interface calcio1 is up'} | |
[INFO ] Completed state [calcio1] at time 20:48:18.039733 | |
local: | |
---------- | |
ID: calico | |
Function: network.managed | |
Name: calcio1 | |
Result: True | |
Comment: Interface calcio1 added. | |
Started: 20:48:13.683313 | |
Duration: 4356.42 ms | |
Changes: | |
---------- | |
interface: | |
Added network interface. | |
status: | |
Interface calcio1 is up | |
Summary | |
------------ | |
Succeeded: 1 (changed=1) | |
Failed: 0 | |
------------ | |
Total states run: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment