Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
sosreport /
sos /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
71.25
KB
-rw-r--r--
2020-03-24 16:33
abrt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
acpid.py
900
B
-rw-r--r--
2020-03-24 16:33
activemq.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
alternatives.py
1.21
KB
-rw-r--r--
2020-03-24 16:33
anaconda.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
anacron.py
811
B
-rw-r--r--
2020-03-24 16:33
ansible.py
834
B
-rw-r--r--
2020-03-24 16:33
apache.py
3.6
KB
-rw-r--r--
2020-03-24 16:33
apparmor.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
apport.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
apt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
ata.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
atomichost.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
auditd.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
autofs.py
2.1
KB
-rw-r--r--
2020-03-24 16:33
azure.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
block.py
2.15
KB
-rw-r--r--
2020-03-24 16:33
boom.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
boot.py
1.48
KB
-rw-r--r--
2020-03-24 16:33
btrfs.py
773
B
-rw-r--r--
2020-03-24 16:33
buildah.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
candlepin.py
4.25
KB
-rw-r--r--
2020-03-24 16:33
canonical_livepatch.py
946
B
-rw-r--r--
2020-03-24 16:33
ceph.py
3.61
KB
-rw-r--r--
2020-03-24 16:33
ceph_ansible.py
937
B
-rw-r--r--
2020-03-24 16:33
cgroups.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
chrony.py
1.45
KB
-rw-r--r--
2020-03-24 16:33
cifs.py
1012
B
-rw-r--r--
2020-03-24 16:33
clear_containers.py
2.59
KB
-rw-r--r--
2020-03-24 16:33
cloud_init.py
943
B
-rw-r--r--
2020-03-24 16:33
cman.py
1.89
KB
-rw-r--r--
2020-03-24 16:33
cobbler.py
1.12
KB
-rw-r--r--
2020-03-24 16:33
cockpit.py
926
B
-rw-r--r--
2020-03-24 16:33
collectd.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
composer.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
conntrackd.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
console.py
859
B
-rw-r--r--
2020-03-24 16:33
container_log.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
convert2rhel.py
787
B
-rw-r--r--
2020-03-24 16:33
corosync.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
crio.py
3.01
KB
-rw-r--r--
2020-03-24 16:33
cron.py
1022
B
-rw-r--r--
2020-03-24 16:33
crypto.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
cs.py
4.36
KB
-rw-r--r--
2020-03-24 16:33
ctdb.py
1.42
KB
-rw-r--r--
2020-03-24 16:33
cups.py
1.23
KB
-rw-r--r--
2020-03-24 16:33
date.py
813
B
-rw-r--r--
2020-03-24 16:33
dbus.py
906
B
-rw-r--r--
2020-03-24 16:33
devicemapper.py
937
B
-rw-r--r--
2020-03-24 16:33
devices.py
764
B
-rw-r--r--
2020-03-24 16:33
dhcp.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
distupgrade.py
1.51
KB
-rw-r--r--
2020-03-24 16:33
dlm.py
1.49
KB
-rw-r--r--
2020-03-24 16:33
dmraid.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
dnf.py
2.69
KB
-rw-r--r--
2020-03-24 16:33
docker.py
4.86
KB
-rw-r--r--
2020-03-24 16:33
docker_distribution.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
dovecot.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
dpkg.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
dracut.py
887
B
-rw-r--r--
2020-03-24 16:33
ds.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
ebpf.py
3.13
KB
-rw-r--r--
2020-03-24 16:33
elastic.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
etcd.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
fcoe.py
1006
B
-rw-r--r--
2020-03-24 16:33
fibrechannel.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
filesys.py
2.52
KB
-rw-r--r--
2020-03-24 16:33
firewalld.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
foreman.py
12.77
KB
-rw-r--r--
2020-03-24 16:33
frr.py
665
B
-rw-r--r--
2020-03-24 16:33
fwupd.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
gdm.py
822
B
-rw-r--r--
2020-03-24 16:33
gfs2.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
gluster.py
4.67
KB
-rw-r--r--
2020-03-24 16:33
gluster_block.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
gnocchi.py
3.46
KB
-rw-r--r--
2020-03-24 16:33
grafana.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
grub.py
1022
B
-rw-r--r--
2020-03-24 16:33
grub2.py
2.58
KB
-rw-r--r--
2020-03-24 16:33
gssproxy.py
857
B
-rw-r--r--
2020-03-24 16:33
haproxy.py
2.17
KB
-rw-r--r--
2020-03-24 16:33
hardware.py
1.01
KB
-rw-r--r--
2021-04-22 18:49
host.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
hpasm.py
932
B
-rw-r--r--
2020-03-24 16:33
hts.py
688
B
-rw-r--r--
2020-03-24 16:33
i18n.py
793
B
-rw-r--r--
2020-03-24 16:33
infiniband.py
2.57
KB
-rw-r--r--
2020-03-24 16:33
insights.py
1.39
KB
-rw-r--r--
2020-03-24 16:33
ipa.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
ipmitool.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
iprconfig.py
4.47
KB
-rw-r--r--
2020-03-24 16:33
ipvs.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
iscsi.py
1.4
KB
-rw-r--r--
2020-03-24 16:33
iscsitarget.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
jars.py
5.03
KB
-rw-r--r--
2020-03-24 16:33
java.py
1007
B
-rw-r--r--
2020-03-24 16:33
juju.py
2.35
KB
-rw-r--r--
2020-03-24 16:33
kata_containers.py
1.8
KB
-rw-r--r--
2020-03-24 16:33
kdump.py
2.66
KB
-rw-r--r--
2020-03-24 16:33
keepalived.py
833
B
-rw-r--r--
2020-03-24 16:33
kernel.py
4.17
KB
-rw-r--r--
2020-03-24 16:33
kernelrt.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
keyutils.py
882
B
-rw-r--r--
2020-03-24 16:33
kimchi.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
kpatch.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
krb5.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
kubernetes.py
7.13
KB
-rw-r--r--
2020-03-24 16:33
kvm.py
998
B
-rw-r--r--
2021-04-22 18:49
landscape.py
3.28
KB
-rw-r--r--
2021-04-22 18:49
ldap.py
3.11
KB
-rw-r--r--
2020-03-24 16:33
leapp.py
1006
B
-rw-r--r--
2020-03-24 16:33
libraries.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
libreswan.py
2.23
KB
-rw-r--r--
2020-03-24 16:33
libvirt.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
lightdm.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
lilo.py
704
B
-rw-r--r--
2020-03-24 16:33
login.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
logrotate.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
logs.py
3.21
KB
-rw-r--r--
2020-03-24 16:33
lstopo.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
lustre.py
1.9
KB
-rw-r--r--
2020-03-24 16:33
lvm2.py
3.02
KB
-rw-r--r--
2020-03-24 16:33
lxd.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
maas.py
4.01
KB
-rw-r--r--
2021-04-22 18:49
manageiq.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
md.py
870
B
-rw-r--r--
2020-03-24 16:33
megacli.py
1.01
KB
-rw-r--r--
2020-03-24 16:33
memcached.py
1.16
KB
-rw-r--r--
2020-03-24 16:33
memory.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
mongodb.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
monit.py
2.39
KB
-rw-r--r--
2020-03-24 16:33
mpt.py
767
B
-rw-r--r--
2020-03-24 16:33
mssql.py
3.19
KB
-rw-r--r--
2020-03-24 16:33
multipath.py
936
B
-rw-r--r--
2020-03-24 16:33
mysql.py
3.17
KB
-rw-r--r--
2020-03-24 16:33
named.py
2.56
KB
-rw-r--r--
2020-03-24 16:33
navicli.py
3.33
KB
-rw-r--r--
2020-03-24 16:33
networking.py
12.92
KB
-rw-r--r--
2021-04-22 18:49
networkmanager.py
4.71
KB
-rw-r--r--
2020-03-24 16:33
nfs.py
943
B
-rw-r--r--
2020-03-24 16:33
nfsganesha.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
nfsserver.py
1.47
KB
-rw-r--r--
2020-03-24 16:33
nginx.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
nis.py
847
B
-rw-r--r--
2020-03-24 16:33
nodejs.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
npm.py
3.86
KB
-rw-r--r--
2020-03-24 16:33
nscd.py
1000
B
-rw-r--r--
2020-03-24 16:33
nss.py
919
B
-rw-r--r--
2020-03-24 16:33
ntb.py
926
B
-rw-r--r--
2020-03-24 16:33
ntp.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
numa.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
nvidia.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
nvme.py
1.53
KB
-rw-r--r--
2020-03-24 16:33
oddjob.py
859
B
-rw-r--r--
2020-03-24 16:33
omnipath_client.py
1.77
KB
-rw-r--r--
2020-03-24 16:33
omnipath_manager.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
omsa.py
1.76
KB
-rw-r--r--
2020-03-24 16:33
opencl.py
726
B
-rw-r--r--
2020-03-24 16:33
opendaylight.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
opengl.py
728
B
-rw-r--r--
2020-03-24 16:33
openhpi.py
869
B
-rw-r--r--
2020-03-24 16:33
openshift.py
6.5
KB
-rw-r--r--
2020-03-24 16:33
openssl.py
1.54
KB
-rw-r--r--
2020-03-24 16:33
openstack_ansible.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
openstack_aodh.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
openstack_ceilometer.py
3.04
KB
-rw-r--r--
2020-03-24 16:33
openstack_cinder.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_glance.py
4.16
KB
-rw-r--r--
2020-03-24 16:33
openstack_heat.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_horizon.py
3.52
KB
-rw-r--r--
2020-03-24 16:33
openstack_instack.py
5.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_ironic.py
6.23
KB
-rw-r--r--
2020-03-24 16:33
openstack_keystone.py
4.42
KB
-rw-r--r--
2020-03-24 16:33
openstack_manila.py
3.25
KB
-rw-r--r--
2020-03-24 16:33
openstack_neutron.py
4.56
KB
-rw-r--r--
2020-03-24 16:33
openstack_nova.py
8.57
KB
-rw-r--r--
2020-03-24 16:33
openstack_novajoin.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
openstack_octavia.py
3.5
KB
-rw-r--r--
2020-03-24 16:33
openstack_placement.py
3.75
KB
-rw-r--r--
2020-03-24 16:33
openstack_sahara.py
2.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_swift.py
2.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_tripleo.py
1.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_trove.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
openvswitch.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
origin.py
9.24
KB
-rw-r--r--
2020-03-24 16:33
os_net_config.py
771
B
-rw-r--r--
2020-03-24 16:33
ovirt.py
7.98
KB
-rw-r--r--
2020-03-24 16:33
ovirt_engine_backup.py
1.72
KB
-rw-r--r--
2020-03-24 16:33
ovirt_hosted_engine.py
2.09
KB
-rw-r--r--
2020-03-24 16:33
ovirt_imageio.py
1.33
KB
-rw-r--r--
2020-03-24 16:33
ovirt_node.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
ovirt_provider_ovn.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
ovn_central.py
5.2
KB
-rw-r--r--
2020-03-24 16:33
ovn_host.py
1.58
KB
-rw-r--r--
2020-03-24 16:33
pacemaker.py
5
KB
-rw-r--r--
2020-03-24 16:33
pam.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
pci.py
916
B
-rw-r--r--
2020-03-24 16:33
pcp.py
6.12
KB
-rw-r--r--
2020-03-24 16:33
peripety.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
perl.py
691
B
-rw-r--r--
2020-03-24 16:33
podman.py
4.28
KB
-rw-r--r--
2020-03-24 16:33
postfix.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
postgresql.py
5.17
KB
-rw-r--r--
2020-03-24 16:33
powerpath.py
1.81
KB
-rw-r--r--
2020-03-24 16:33
powerpc.py
2.85
KB
-rw-r--r--
2020-03-24 16:33
ppp.py
882
B
-rw-r--r--
2020-03-24 16:33
procenv.py
698
B
-rw-r--r--
2020-03-24 16:33
process.py
1.86
KB
-rw-r--r--
2020-03-24 16:33
processor.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
psacct.py
1.29
KB
-rw-r--r--
2020-03-24 16:33
ptp.py
851
B
-rw-r--r--
2020-03-24 16:33
pulp.py
6.38
KB
-rw-r--r--
2020-03-24 16:33
puppet.py
1.83
KB
-rw-r--r--
2020-03-24 16:33
pxe.py
1.34
KB
-rw-r--r--
2020-03-24 16:33
python.py
3.06
KB
-rw-r--r--
2020-03-24 16:33
qpid.py
3.41
KB
-rw-r--r--
2020-03-24 16:33
qpid_dispatch.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
qt.py
792
B
-rw-r--r--
2020-03-24 16:33
quagga.py
743
B
-rw-r--r--
2020-03-24 16:33
rabbitmq.py
2.05
KB
-rw-r--r--
2020-03-24 16:33
radius.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
rasdaemon.py
1022
B
-rw-r--r--
2020-03-24 16:33
rear.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
redis.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
release.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
rhcos.py
921
B
-rw-r--r--
2020-03-24 16:33
rhui.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
rhv_analyzer.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
rpm.py
2.37
KB
-rw-r--r--
2020-03-24 16:33
rpmostree.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
ruby.py
842
B
-rw-r--r--
2020-03-24 16:33
runc.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
s390.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
salt.py
892
B
-rw-r--r--
2020-03-24 16:33
saltmaster.py
732
B
-rw-r--r--
2020-03-24 16:33
samba.py
1.6
KB
-rw-r--r--
2020-03-24 16:33
sanlock.py
1020
B
-rw-r--r--
2020-03-24 16:33
saphana.py
2.82
KB
-rw-r--r--
2020-03-24 16:33
sapnw.py
5.33
KB
-rw-r--r--
2020-03-24 16:33
sar.py
2.2
KB
-rw-r--r--
2020-03-24 16:33
sas3ircu.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
scsi.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
selinux.py
1.74
KB
-rw-r--r--
2020-03-24 16:33
sendmail.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
services.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
skydive.py
2.12
KB
-rw-r--r--
2020-03-24 16:33
smartcard.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
snappy.py
1014
B
-rw-r--r--
2020-03-24 16:33
snmp.py
1014
B
-rw-r--r--
2020-03-24 16:33
sos_extras.py
3.72
KB
-rw-r--r--
2020-03-24 16:33
soundcard.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
squid.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
ssh.py
830
B
-rw-r--r--
2020-03-24 16:33
ssmtp.py
968
B
-rw-r--r--
2020-03-24 16:33
sssd.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
storageconsole.py
1.64
KB
-rw-r--r--
2020-03-24 16:33
stratis.py
975
B
-rw-r--r--
2020-03-24 16:33
subscription_manager.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
sudo.py
906
B
-rw-r--r--
2020-03-24 16:33
sunrpc.py
852
B
-rw-r--r--
2020-03-24 16:33
symcli.py
3.45
KB
-rw-r--r--
2020-03-24 16:33
system.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
systemd.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
systemtap.py
912
B
-rw-r--r--
2020-03-24 16:33
sysvipc.py
920
B
-rw-r--r--
2020-03-24 16:33
targetcli.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
teamd.py
1.55
KB
-rw-r--r--
2020-03-24 16:33
tftpserver.py
863
B
-rw-r--r--
2020-03-24 16:33
tomcat.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
tuned.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
ubuntu.py
721
B
-rw-r--r--
2020-03-24 16:33
udev.py
792
B
-rw-r--r--
2020-03-24 16:33
unity.py
691
B
-rw-r--r--
2020-03-24 16:33
unpackaged.py
2.75
KB
-rw-r--r--
2020-03-24 16:33
upstart.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
usb.py
765
B
-rw-r--r--
2020-03-24 16:33
validation_framework.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
vdo.py
964
B
-rw-r--r--
2020-03-24 16:33
vdsm.py
4.74
KB
-rw-r--r--
2020-03-24 16:33
veritas.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
vhostmd.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
virsh.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
virtwho.py
975
B
-rw-r--r--
2020-03-24 16:33
vmware.py
805
B
-rw-r--r--
2020-03-24 16:33
vsftpd.py
712
B
-rw-r--r--
2020-03-24 16:33
vulkan.py
734
B
-rw-r--r--
2020-03-24 16:33
watchdog.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
wireless.py
969
B
-rw-r--r--
2020-03-24 16:33
x11.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
xen.py
3.48
KB
-rw-r--r--
2020-03-24 16:33
xfs.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
xinetd.py
871
B
-rw-r--r--
2020-03-24 16:33
yum.py
3.91
KB
-rw-r--r--
2020-03-24 16:33
zfs.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
Save
Rename
# Copyright (C) 2016 Red Hat, Inc., Pep Turro Mauri <pep@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public License. # # See the LICENSE file in the source distribution for further information. from sos.plugins import Plugin, RedHatPlugin import os.path # This plugin collects static configuration and runtime information # about OpenShift Origin based environments, like OpenShift Enterprise 3 # Some clarification on naming: # OpenShift Origin is the upstream project for OpenShift Enterprise, # OpenShift Container Platflorm, and Atomic Platform. # # However, the name "OpenShift Origin" refers to two different code bases: # * Origin M5 and later (https://github.com/openshift/origin) # which is upstream for OpenShift 3.x and later. # This is what this plugin handles # * Origin M4 and earlier (https://github.com/openshift/origin-server) # which is upstream for OpenShift 1.x and 2.x. # This is handled by the plugin in openshift.py # Note that this plugin should be used in conjunction with other plugins # in order to capture relevant data: the Kubernetes plugin for the # masters, the Docker plugin for the nodes, and also generic # plugins (e.g. for /etc/sysconfig entries, network setup etc) class OpenShiftOrigin(Plugin): """ OpenShift Origin """ plugin_name = "origin" files = None # file lists assigned after path setup below profiles = ('openshift',) option_list = [ ("diag", "run 'oc adm diagnostics' to collect its output", 'fast', True), ("diag-prevent", "set --prevent-modification on 'oc adm diagnostics'", 'fast', True), ("all-namespaces", "collect dc output for all namespaces", "fast", False) ] master_base_dir = "/etc/origin/master" node_base_dir = "/etc/origin/node" master_cfg = os.path.join(master_base_dir, "master-config.yaml") master_env = os.path.join(master_base_dir, "master.env") node_cfg_file = "node-config.yaml" node_cfg = os.path.join(node_base_dir, node_cfg_file) node_kubeconfig = os.path.join(node_base_dir, "node.kubeconfig") static_pod_dir = os.path.join(node_base_dir, "pods") files = (master_cfg, node_cfg) # Master vs. node # # OpenShift Origin/3.x cluster members can be a master, a node, or both at # the same time: in most deployments masters are also nodes in order to get # access to the pod network, which some functionality (e.g. the API proxy) # requires. Therefore the following methods may all evaluate True on a # single instance (at least one must evaluate True if this is an OpenShift # installation) def is_master(self): """Determine if we are on a master""" return os.path.exists(self.master_cfg) def is_node(self): """Determine if we are on a node""" return os.path.exists(self.node_cfg) def is_static_etcd(self): """Determine if we are on a node running etcd""" return os.path.exists(os.path.join(self.static_pod_dir, "etcd.yaml")) def is_static_pod_compatible(self): """Determine if a node is running static pods""" return os.path.exists(self.static_pod_dir) def setup(self): bstrap_node_cfg = os.path.join(self.node_base_dir, "bootstrap-" + self.node_cfg_file) bstrap_kubeconfig = os.path.join(self.node_base_dir, "bootstrap.kubeconfig") node_certs = os.path.join(self.node_base_dir, "certs", "*") node_client_ca = os.path.join(self.node_base_dir, "client-ca.crt") admin_cfg = os.path.join(self.master_base_dir, "admin.kubeconfig") oc_cmd_admin = "%s --config=%s" % ("oc", admin_cfg) static_pod_logs_cmd = "master-logs" # Note that a system can run both a master and a node. # See "Master vs. node" above. if self.is_master(): self.add_copy_spec([ self.master_cfg, self.master_env, os.path.join(self.master_base_dir, "*.crt"), ]) if self.is_static_pod_compatible(): self.add_copy_spec(os.path.join(self.static_pod_dir, "*.yaml")) self.add_cmd_output([ "%s api api" % static_pod_logs_cmd, "%s controllers controllers" % static_pod_logs_cmd, ]) # TODO: some thoughts about information that might also be useful # to collect. However, these are maybe not needed in general # and/or present some challenges (scale, sensitive, ...) and need # some more thought. For now just leaving this comment here until # we decide if it's worth collecting: # # General project status: # oc status --all-namespaces (introduced in OSE 3.2) # -> deemed as not worthy in BZ#1394527 # Metrics deployment configurations # oc get -o json dc -n openshift-infra # Logging stack deployment configurations # oc get -o json dc -n logging # # Note: Information about nodes, events, pods, and services # is already collected by the Kubernetes plugin subcmds = [ "describe projects", "adm top images", "adm top imagestreams" ] self.add_cmd_output([ '%s %s' % (oc_cmd_admin, subcmd) for subcmd in subcmds ]) jcmds = [ "hostsubnet", "clusternetwork", "netnamespaces" ] self.add_cmd_output([ '%s get -o json %s' % (oc_cmd_admin, jcmd) for jcmd in jcmds ]) if self.get_option('all-namespaces'): ocn = self.exec_cmd('%s get namespaces' % oc_cmd_admin) ns_output = ocn['output'].splitlines()[1:] nmsps = [n.split()[0] for n in ns_output if n] else: nmsps = [ 'default', 'openshift-web-console', 'openshift-ansible-service-broker' ] self.add_cmd_output([ '%s get -o json dc -n %s' % (oc_cmd_admin, n) for n in nmsps ]) if self.get_option('diag'): diag_cmd = "%s adm diagnostics -l 0" % oc_cmd_admin if self.get_option('diag-prevent'): diag_cmd += " --prevent-modification=true" self.add_cmd_output(diag_cmd) self.add_journal(units=["atomic-openshift-master", "atomic-openshift-master-api", "atomic-openshift-master-controllers"]) # get logs from the infrastruture pods running in the default ns pods = self.exec_cmd("%s get pod -o name -n default" % oc_cmd_admin) for pod in pods['output'].splitlines(): self.add_cmd_output("%s logs -n default %s" % (oc_cmd_admin, pod)) # Note that a system can run both a master and a node. # See "Master vs. node" above. if self.is_node(): self.add_copy_spec([ self.node_cfg, self.node_kubeconfig, node_certs, node_client_ca, bstrap_node_cfg, bstrap_kubeconfig, os.path.join(self.node_base_dir, "*.crt"), os.path.join(self.node_base_dir, "resolv.conf"), os.path.join(self.node_base_dir, "node-dnsmasq.conf"), ]) self.add_journal(units="atomic-openshift-node") if self.is_static_etcd(): self.add_cmd_output("%s etcd etcd" % static_pod_logs_cmd) def postproc(self): # Clear env values from objects that can contain sensitive data # Sample JSON content: # { # "name": "MYSQL_PASSWORD", # "value": "mypassword" # }, # This will mask values when the "name" looks susceptible of # values worth obfuscating, i.e. if the name contains strings # like "pass", "pwd", "key" or "token". env_regexp = r'(?P<var>{\s*"name":\s*[^,]*' \ r'(pass|pwd|key|token|cred|secret' \ r'|PASS|PWD|KEY|TOKEN|CRED|SECRET)[^,]*,' \ r'\s*"value":)[^}]*' self.do_cmd_output_sub('oc*json', env_regexp, r'\g<var> "********"') # LDAP identity provider self.do_file_sub(self.master_cfg, r"(bindPassword:\s*)(.*)", r'\1"********"') # github/google/OpenID identity providers self.do_file_sub(self.master_cfg, r"(clientSecret:\s*)(.*)", r'\1"********"') class AtomicOpenShift(OpenShiftOrigin, RedHatPlugin): """ OpenShift Enterprise / OpenShift Container Platform """ packages = ('atomic-openshift',) # vim: set et ts=4 sw=4 :