Skip to content

Instantly share code, notes, and snippets.

View cjac's full-sized avatar

C.J. Collier cjac

View GitHub Profile
NAME READY STATUS RESTARTS AGE
csi-cephfsplugin-2ln4z 3/3 Running 0 8m37s
csi-cephfsplugin-cg7wh 3/3 Running 0 8m37s
csi-cephfsplugin-p49nl 3/3 Running 0 8m37s
csi-cephfsplugin-ph6ck 3/3 Running 0 8m37s
csi-cephfsplugin-provisioner-8658f67749-dtwtd 6/6 Running 0 8m37s
csi-cephfsplugin-provisioner-8658f67749-ndrfc 6/6 Running 0 8m37s
csi-cephfsplugin-z6wgz 3/3 Running 0 8m37s
csi-cephfsplugin-zm9gd 3/3 Running 0 8m37s
csi-rbdplugin-77bg5 3/3 Running 0 8m38s
cjac@cloop:~$ sudo ethtool -m ens3f0
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x07 (LC)
Transceiver codes : 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Transceiver type : 10G Ethernet: 10G Base-SR
Encoding : 0x06 (64B/66B)
BR, Nominal : 10300MBd
Rate identifier : 0x00 (unspecified)
Length (SMF,km) : 0km
cjac@sh0:~/ansible$ cat apt-upgrade.yml ; ansible-playbook apt-upgrade.yml
---
- hosts: all
tasks:
- apt:
name: *
upgrade: dist
update_cache: True
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
cjac@sh0:~/ansible$ cat apt-upgrade.yml
---
- name: apt upgrade
apt:
hosts: all
upgrade: dist
update_cache: True
cjac@sh0:~/ansible$ ansible-playbook apt-upgrade.yml
ERROR! 'apt' is not a valid attribute for a Play
cjac@sh0:~/ansible$ cat apt-upgrade.yml
- apt: name=* upgrade=dist update_cache=True
cjac@sh0:~/ansible$ ansible-playbook apt-upgrade.yml
ERROR! 'apt' is not a valid attribute for a Play
The error appears to be in '/home/cjac/ansible/apt-upgrade.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
cjac@sh0:~$ sudo fdisk -l /dev/vda
[sudo] password for cjac:
Disk /dev/vda: 4.3 GiB, 4617928704 bytes, 9019392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4401fcaa
Device Boot Start End Sectors Size Id Type
root@mini:~# nft list table ip filter
table ip filter {
chain INPUT {
type filter hook input priority 0; policy accept;
}
chain FORWARD {
type filter hook forward priority 0; policy accept;
}
mini:
root@mini:~# iptables-legacy-save
root@mini:~# nft list tables
table ip filter
table ip6 filter
table bridge filter
tiny:
root@tiny:~# iptables-legacy-save
root@tiny:~# nft list tables
mini:
2020-08-02 09:45:20.110 7f70f6c99700 -1 mon.1@-1(probing) e0 get_health_metrics reporting 2 slow ops, oldest is log(1 entries from seq 1 at 2020-08-02 09:34:52.775194)
2020-08-02 09:45:20.370 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:21.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of hints
2020-08-02 09:45:22.373 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:23.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of hints
2020-08-02 09:45:24.373 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.64:6789/0 to list of hints
2020-08-02 09:45:25.109 7f70f6c99700 -1 mon.1@-1(probing) e0 get_health_metrics reporting 2 slow ops, oldest is log(1 entries from seq 1 at 2020-08-02 09:34:52.775194)
2020-08-02 09:45:25.293 7f70f4494700 1 mon.1@-1(probing) e0 adding peer v1:100.64.79.123:6789/0 to list of h
# Generated by xtables-save v1.8.3 on Sun Aug 2 09:40:13 2020
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A FORWARD -d 192.168.122.0/24 -o virbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT