Systemd is the default init systemd for Debian jessie+,
we are ready to make it default for NGCP as well.
Change-Id: Iabac381fc97e0ad4d6925783c9fcc158253beb13
Due to using "sed -ie", the "e" in this case means a suffix for
backup, so it leaves the old version of the file in /etc/default/grube
after modifying /etc/default/grub, and this was not the intention, so
simply dropping the "e".
Change-Id: I81184e80db0b3327d09f23f769f74ea55f4376de
- Bump Standards-Version to 3.9.8.
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Canonicalize Homepage URL.
- Wrap and sort dependency fields.
- New debian/.gitignore file.
Change-Id: I1c6d2131d57ce3ee9cdb76fda2a00ba2c3a5e18f
We are using puppet instead of PC1 since stretch so let's change it here
as well. It will work for jessie also.
Change-Id: Ied85ee1e8e36d1fc6b27ef1133721ec689084d6d
It looks like public GPG keyservers are not really highly available,
and randomly there are some issues have happens, like:
> gpg: requesting key EF8D349F from hkp server pool.sks-keyservers.net
> ?: [fd 4]: read error: Connection reset by peer
> gpgkeys: HTTP fetch error 7: couldn't connect: eof
> gpg: no valid OpenPGP data found.
Lets add reconnect here, to retry within one minute to hide such kind of issues
which are out of our control..
Change-Id: Ia31488bf0318656fadde1ca8bd43c6c48d5cb5a6
* Move the common code to the function 'check_puppet_rerun',
also extrect time check into the function 'check_puppetserver_time'.
* While we are here improve human interface to prevent wrong letter typing.
* Switch to the local variables.
* Allow time offset recheck
Change-Id: I02ac77a0d0c125105d6aa05fc5463813bdd33c1e
Facter fails if /etc/mtab is absent:
Info: Loading facts
Error: Facter: setmntent failed: No such file or directory (2): mountpoints are unavailable.
Info: Caching catalog for provisioning43.mgm.sipwise.com
Change-Id: Ibade947caf13fdb027478050d31b5f774cf0112d
Otherwise:
>> apt-key adv --recv-keys --keyserver pool.sks-keyservers.net 6F6B15509CF8E59E6E469F327F438280EF8D349F
> Executing: /tmp/apt-key-gpghome.Enz9Bpg23h/gpg.1.sh --recv-keys --keyserver pool.sks-keyservers.net 6F6B15509CF8E59E6E469F327F438280EF8D349F
> gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
> gpg: connecting dirmngr at '/tmp/apt-key-gpghome.Enz9Bpg23h/S.dirmngr' failed: No such file or directory
> gpg: keyserver receive failed: No dirmngr
It looks like 'dirmngr' should be an dependency for the package 'apt'
in Debian Stretch, while it is not there.
Change-Id: I8753caddcccfc8e3287936c92706ba5e2148d31d
checkBootParam triggers on boot option 'debianrepo' if boot
option 'debianrepotransport' is set, same applies to 'sipwiserepo'
vs 'sipwiserepotransport'.
So be more specific about those checkBootParam checks,
without having to modify the existing behavior of
checkBootParam internals.
Change-Id: I5622f8e96790fd19f0b0e7a0f97668c4b9b1d9f7
The mirror:
deb https://debian-security.sipwise.com/debian-security/ stretch-security main contrib non-free
is available nowadays.
Noticed during review of debian-debug situation.
Change-Id: I7497744afe2430c6848c2b8b39e68bcfba009dc2
Starting with lvm2 v2.02.111 it includes a udev rules file named
/lib/udev/rules.d/69-dm-lvm-metad.rules (see
http://sources.debian.net/src/lvm2/2.02.111-2.2%2Bdeb8u1/udev/69-dm-lvm-metad.rules.in/
wheras its "(PVSCAN_RULE)" corresponds to
RUN+="/sbin/lvm pvscan --cache --activate ay --major $major --minor $minor", ENV{LVM_SCANNED}="1"
in the installed /lib/udev/rules.d/69-dm-lvm-metad.rules).
The udev rule gets triggered during disk changes and
automatically invokes `lvm pvscan [...]`, triggering the
following behavior if a LV is already present on a disk:
| # dmsetup ls # it's empty
| # parted -s /dev/sda mklabel msdos
| # parted -s /dev/sda mkpart primary 1048576B 8589934591B
| # dmsetup ls # this will list already existing LVs, like:
| vg0-swap ....
| vg0-root ...
| # blockdev --rereadpt /dev/sda # this will fail now with "Device or resource busy"
This causes deployments to fail if it's reinstalled on
a system that already had any LVs on the target disks.
Change-Id: I35cdd437e2c8de0ca956adce9891bb0b23f70d3b
When we install puppet from git repo there will be r10k run
executed by puppuet itself and latest code fetched. We shouldn't
delete the code because after reboot puppet catalog will be empty
until someone runs r10k again. But we need catalog present because
we do another puppet run after reboot to finalize steps not executed
in chroot phase.
Change-Id: I6f28ee26bc7a3404e4fd6affb430f05ca7d96b92
Also fix an error when "repeat?" is being asked second time
after the successful re-run (we forgot to reset deploy status).
Change-Id: I621ed48d9eaeb620720d2d1ae4008485adfd346e
We need to disable consistent network device naming to get our
"eth0" back, otherwise we have "random" interface names (which
are stable across reboots in the same environment, but aren't
really predictable by their names).
See
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
for more information.
Until we've full support for the new interface names let's
disable this feature in our Vagrant environments.
Change-Id: I0f141e585456d64ee7eba7b7e78af938be26bfc2
Shellcheck v.0.3.4-3 is default for jessie and installed
on jenkins CI. It produces fake alarm here, while shellcheck
v.0.3.7-5+ reports no issues here. Fixing warning to make it happy:
In deployment.sh line 1753:
find "${TARGET}/var/log" -type f -size +0 -not -name \*.ini -exec sh -c ':> ${1}' sh {} \;
^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.
Change-Id: I75cd28dacacc65dfdb6b7fd134b8f3c727b1b48d
Debian/stretch no longer provides virtualbox-guest-additions-iso,
retrieve the ISO from http://download.virtualbox.org/virtualbox/ instead.
Change-Id: If257ec3760ec096dd11a4cb8bde4b178fcf9a77a
It is impossible to install puppet node on plain SSD drive:
> Error: /dev/sdc does not look like a VirtIO, ServeRAID, LSILOGIC or PowerEdge disk/controller. Exiting to avoid possible data damage.
Lets ask the user confirmation here, as restart installation
is very slow way in case of manual bonding configuration and
slow IBM hardware POST.
The boot option TARGET_DISK can be used to bypass any checks here.
Change-Id: I6ace2c0225b7e66896a00459594901d06ae7bf0c