Apologies in advance for bad formatting. I’ll do several responses since one would be very long.
From one of the minions:
From minion:
Proxy is set in /etc/sysconfig/proxy
PROXY_ENABLED=“yes”
HTTP_PROXY=“http://web-proxy.corp.xxx.yyy:8080”
HTTPS_PROXY=“http://web-proxy.corp.xxx.yyy:8080”
FTP_PROXY=""
GOPHER_PROXY=""
SOCKS_PROXY=""
NO_PROXY=“localhost, 127.0.0.1”
Until I define http_proxy/https_proxy, SUSEConnect fails:
ses6-osd1:~ # SUSEConnect -s
SUSEConnect error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3/TLS write client hello: tlsv1 alert access denied
ses6-osd1:~ # . /etc/environment
ses6-osd1:~ # SUSEConnect -s
[{“identifier”:“SLES”,“version”:“15.1”,“arch”:“x86_64”,“status”:“Registered”,“regcode”:“6A0E8047A63998”,“starts_at”:“2016-07-28 00:00:00 UTC”,“expires_at”:“2021-07-28 00:00:00 UTC”,“subscription_status”:“ACTIVE”,“type”:“full”},{“identifier”:“sle-module-basesystem”,“version”:“15.1”,“arch”:“x86_64”,“status”:“Registered”},{“identifier”:“sle-module-server-applications”,“version”:“15.1”,“arch”:“x86_64”,“status”:“Registered”},{“identifier”:“ses”,“version”:“6”,“arch”:“x86_64”,“status”:“Registered”,“regcode”:“E7F2A11D207B30”,“starts_at”:“2016-07-28 00:00:00 UTC”,“expires_at”:“2021-07-28 00:00:00 UTC”,“subscription_status”:“ACTIVE”,“type”:“full”}]
Ok, so try patch
ses6-osd1:~ # salt-call -l debug packagemanager.patch
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/_schedule.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/crc_method.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/crc_method.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/master.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/mine_functions.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/mine_functions.conf
[DEBUG ] Guessing ID. The id can be explicitly set in /etc/salt/minion
[DEBUG ] Found minion id from generate_minion_id(): ses6-osd1.ceph
[DEBUG ] Error while parsing IPv4 address: ses6-osd1.ceph
[DEBUG ] Expected 4 octets in ‘ses6-osd1.ceph’
[DEBUG ] Error while parsing IPv6 address: ses6-osd1.ceph
[DEBUG ] At least 3 parts expected in ‘ses6-osd1.ceph’
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/_schedule.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/crc_method.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/crc_method.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/master.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/mine_functions.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/mine_functions.conf
[DEBUG ] Error while parsing IPv4 address: ::1
[DEBUG ] Expected 4 octets in ‘::1’
[DEBUG ] Error while parsing IPv4 address: fe80::5054:ff:feb6:d6bd
[DEBUG ] Expected 4 octets in ‘fe80::5054:ff:feb6:d6bd’
[DEBUG ] Unable to resolve address fe80::5054:ff:feb6:d6bd: [Errno 1] Unknown host
[DEBUG ] Elapsed time getting FQDNs: 0.11042904853820801 seconds
[DEBUG ] Error while parsing IPv4 address: ::1
[DEBUG ] Expected 4 octets in ‘::1’
[DEBUG ] Error while parsing IPv4 address: fe80::5054:ff:feb6:d6bd
[DEBUG ] Expected 4 octets in ‘fe80::5054:ff:feb6:d6bd’
[DEBUG ] Loading static grains from /etc/salt/grains
[DEBUG ] LazyLoaded zfs.is_supported
[DEBUG ] Connecting to master. Attempt 1 of 1
[DEBUG ] Error while parsing IPv4 address: ses6-admin
[DEBUG ] Expected 4 octets in ‘ses6-admin’
[DEBUG ] Error while parsing IPv6 address: ses6-admin
[DEBUG ] At least 3 parts expected in ‘ses6-admin’
[DEBUG ] “ses6-admin” Not an IP address? Assuming it is a hostname.
[DEBUG ] Master URI: tcp://192.168.122.10:4506
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Generated random reconnect delay between ‘1000ms’ and ‘11000ms’ (6846)
[DEBUG ] Setting zmq_reconnect_ivl to ‘6846ms’
[DEBUG ] Setting zmq_reconnect_ivl_max to ‘11000ms’
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘clear’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Decrypting the current master AES key
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://192.168.122.10:4505
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘aes’)
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded packagemanager.patch
[DEBUG ] LazyLoaded direct_call.execute
[INFO ] Found suse. Using Zypper
[DEBUG ] Executing [‘zypper’, ‘–non-interactive’, ‘patch-check’] <<< this is what zypper is trying to do
[INFO ] No Patches Needed
[INFO ] No updates available.
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘aes’)
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded nested.output
local:
None
This seems wrong because if I execute the zypper command that patch was trying to do, I get a different answer:
ses6-osd1:~ # zypper --non-interactive patch-check
Refreshing service ‘Basesystem_Module_15_SP1_x86_64’.
Refreshing service ‘SUSE_Enterprise_Storage_6_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_15_SP1_x86_64’.
Refreshing service ‘Server_Applications_Module_15_SP1_x86_64’.
Loading repository data…
Reading installed packages…
[B]
Found 6 applicable patches:
Category | Patches
------------±-------
security | 5
recommended | 1
6 patches needed (5 security patches)[/B]
Now for the update test:
ses6-osd1:~ # salt-call -l debug packagemanager.up
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/_schedule.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/crc_method.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/crc_method.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/master.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/mine_functions.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/mine_functions.conf
[DEBUG ] Guessing ID. The id can be explicitly set in /etc/salt/minion
[DEBUG ] Found minion id from generate_minion_id(): ses6-osd1.ceph
[DEBUG ] Error while parsing IPv4 address: ses6-osd1.ceph
[DEBUG ] Expected 4 octets in ‘ses6-osd1.ceph’
[DEBUG ] Error while parsing IPv6 address: ses6-osd1.ceph
[DEBUG ] At least 3 parts expected in ‘ses6-osd1.ceph’
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Grains refresh requested. Refreshing grains.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/_schedule.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/crc_method.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/crc_method.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/master.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Including configuration from ‘/etc/salt/minion.d/mine_functions.conf’
[DEBUG ] Reading configuration from /etc/salt/minion.d/mine_functions.conf
[DEBUG ] Error while parsing IPv4 address: ::1
[DEBUG ] Expected 4 octets in ‘::1’
[DEBUG ] Error while parsing IPv4 address: fe80::5054:ff:feb6:d6bd
[DEBUG ] Expected 4 octets in ‘fe80::5054:ff:feb6:d6bd’
[DEBUG ] Unable to resolve address fe80::5054:ff:feb6:d6bd: [Errno 1] Unknown host
[DEBUG ] Elapsed time getting FQDNs: 0.11236405372619629 seconds
[DEBUG ] Error while parsing IPv4 address: ::1
[DEBUG ] Expected 4 octets in ‘::1’
[DEBUG ] Error while parsing IPv4 address: fe80::5054:ff:feb6:d6bd
[DEBUG ] Expected 4 octets in ‘fe80::5054:ff:feb6:d6bd’
[DEBUG ] Loading static grains from /etc/salt/grains
[DEBUG ] LazyLoaded zfs.is_supported
[DEBUG ] Connecting to master. Attempt 1 of 1
[DEBUG ] Error while parsing IPv4 address: ses6-admin
[DEBUG ] Expected 4 octets in ‘ses6-admin’
[DEBUG ] Error while parsing IPv6 address: ses6-admin
[DEBUG ] At least 3 parts expected in ‘ses6-admin’
[DEBUG ] “ses6-admin” Not an IP address? Assuming it is a hostname.
[DEBUG ] Master URI: tcp://192.168.122.10:4506
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Generated random reconnect delay between ‘1000ms’ and ‘11000ms’ (10238)
[DEBUG ] Setting zmq_reconnect_ivl to ‘10238ms’
[DEBUG ] Setting zmq_reconnect_ivl_max to ‘11000ms’
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘clear’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Decrypting the current master AES key
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] salt.crypt._get_key_with_evict: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] salt.crypt.get_rsa_pub_key: Loading public key
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] Connecting the Minion to the Master publish port, using the URI: tcp://192.168.122.10:4505
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘aes’)
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] salt.crypt.get_rsa_key: Loading private key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded packagemanager.up
[DEBUG ] LazyLoaded direct_call.execute
[INFO ] Found suse. Using Zypper
[INFO ] Refreshing Repositories…
[ERROR ] Refreshing failed. There might be an issue resolving the repos
[DEBUG ] Executed [‘zypper’, ‘–non-interactive’, ‘refresh’]
[DEBUG ] Executing zypper lu | grep -sq ‘No updates found’
[INFO ] Update Needed
[DEBUG ] Executing [‘zypper’, ‘–non-interactive’, ‘up’, ‘–replacefiles’, ‘–auto-agree-with-licenses’]
[INFO ] returncode for [‘zypper’, ‘–non-interactive’, ‘up’, ‘–replacefiles’, ‘–auto-agree-with-licenses’] : 0
[DEBUG ] Initializing new AsyncZeroMQReqChannel for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’, ‘aes’)
[DEBUG ] Initializing new AsyncAuth for (’/etc/salt/pki/minion’, ‘ses6-osd1.ceph’, ‘tcp://192.168.122.10:4506’)
[DEBUG ] Connecting the Minion to the Master URI (for the return server): tcp://192.168.122.10:4506
[DEBUG ] Trying to connect to: tcp://192.168.122.10:4506
[DEBUG ] Closing AsyncZeroMQReqChannel instance
[DEBUG ] LazyLoaded nested.output
local:
None
At least here we agree.
ses6-osd1:~ # zypper up
Refreshing service ‘Basesystem_Module_15_SP1_x86_64’.
Refreshing service ‘SUSE_Enterprise_Storage_6_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_15_SP1_x86_64’.
Refreshing service ‘Server_Applications_Module_15_SP1_x86_64’.
Loading repository data…
Reading installed packages…
Nothing to do.