welcome: please sign in

Diff for "ServerBusted"

Differences between revisions 6 and 7
Revision 6 as of 2020-03-07 04:37:26
Size: 3268
Editor: ClintonEbadi
Comment:
Revision 7 as of 2020-03-07 04:46:50
Size: 4115
Editor: ClintonEbadi
Comment: more broken bits
Deletions are marked like this. Additions are marked like this.
Line 52: Line 52:

=== libnss_afs installs to non-multiarch location ===
=== libnss-afs installs to non-multiarch location ===
Line 61: Line 60:
=== ssmtp is gone ===

We need to switch to msmtp

=== firewall seems a bit broken ===

nftables is the default in buster, getting a lot of things like


{{{
Warning: Puppet::Type::Firewall::ProviderIp6tables: Skipping unparsable iptables rule: keys (1) and values (2) count mismatch on line: ables" -j ACCEPT
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (3) and values (13) count mismatch on line: -A OUTPUT -p udp -m multiport --dports 123 -# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (3) and values (13) count mismatch on line: -A OUTPUT -p udp -m multiport --dports 123 -# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
}}}

Server busted.hcoop.net is a virtual machine at DigitalOcean that was created to work on the Debian Stretch to Buster upgrade.

It's name is just an allusion to it being broken by design.

1. Setup Notes

1.1. Need to upgrade system first

Newer kernel and some other base packages are available right out of the bat, need to upgrade so we can have working kernel headers for the afs build and whatnot. Added to general setup notes.

1.2. resolv.conf / initial puppet cert request

We can't really get around manually opening the firewall for the agent on the puppetmaster... at our scale this isn't a big deal anyway.

Like others, had to set domain hcoop.net manually in /etc/resolv.conf. It looks like the only reason we need this is for the initial puppet connection. So I tried setting the agent config at /etc/puppetlabs/puppet/puppet.conf to:

[main]
server = puppet.hcoop.net

But the cert for the master only has the fqdn of its concrete hostname, and the alias puppet with no domain

Error: Server hostname 'puppet.hcoop.net' did not match server certificate; expected one of gibran.hcoop.net, DNS:puppet, DNS:gibran.hcoop.net
Error: Could not run: Server hostname 'puppet.hcoop.net' did not match server certificate; expected one of gibran.hcoop.net, DNS:puppet, DNS:gibran.hcoop.net

If we could regenerate this to also include CN:puppet.hcoop.net, the manual edit that needed to be done would at least be more related to the limitation in our infrastructure that mandates it...

2. Puppet porting notes

2.1. ntp tcp rule failure

We were setting our ntp out rule using tcp and udp, but /etc/services only had the udp alias now (which is correct). Pushed out a fix, but for some reason runs still failed with the same error afterward. Hacked around it by adding the ntp/tcp alias to /etc/services. Need to look into further (I think this might have been the manually added firewall on the puppetmaster expiring and the cached catalog being used).

Error: Failed to apply catalog: Parameter dport failed on Firewall[010 ntp output protocol tcp using provider iptables]: Munging failed for value "ntp" in class dport: no such service ntp/tcp (file: /etc/puppetlabs/code/environments/production/modules/firewall_multi/manifests/init.pp, line: 126)

2.2. afs client not immediately available

Loading new openafs-1.8.2 DKMS files...
Building for 4.19.0-6-cloud-amd64
Module build for kernel 4.19.0-6-cloud-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.

Issue seems to be that digitalocean is now using a the amd64-cloud variant of the kernel, so we're pulling in the wrong headers. Need to check into this more, it looks like a standard part of Debian.

2.3. libnss-afs installs to non-multiarch location

minor issue, but might want to address. We're still installing to just /usr/lib instead of /usr/lib/x86_64-linux-gnu/ (need to update package to comply with multiarch)

2.4. HCoop Debian Package Repo

We don't trigger an apt update after we install our key and repo, so package installs fail until we manually apt-get update

2.5. ssmtp is gone

We need to switch to msmtp

2.6. firewall seems a bit broken

nftables is the default in buster, getting a lot of things like

Warning: Puppet::Type::Firewall::ProviderIp6tables: Skipping unparsable iptables rule: keys (1) and values (2) count mismatch on line: ables" -j ACCEPT
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (3) and values (13) count mismatch on line: -A OUTPUT -p udp -m multiport --dports 123 -# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
Warning: Puppet::Type::Firewall::ProviderIptables: Skipping unparsable iptables rule: keys (3) and values (13) count mismatch on line: -A OUTPUT -p udp -m multiport --dports 123 -# Warning: iptables-legacy tables present, use iptables-legacy-save to see them

3. TODO


CategorySystemAdministration

ServerBusted (last edited 2020-07-19 22:32:49 by ClintonEbadi)