]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
6 years agopublic_facing: Support overriding fail2ban bantime per service 421/head
David Galloway [Thu, 15 Nov 2018 15:38:52 +0000 (10:38 -0500)]
public_facing: Support overriding fail2ban bantime per service

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agopublic_facing: Support multiline regex fail2ban filters
David Galloway [Thu, 15 Nov 2018 15:30:42 +0000 (10:30 -0500)]
public_facing: Support multiline regex fail2ban filters

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #420 from ceph/wip-lockfile
David Galloway [Wed, 7 Nov 2018 21:16:05 +0000 (16:16 -0500)]
Merge pull request #420 from ceph/wip-lockfile

tools: Clean up /ceph-qa-ready lockfile

6 years agotools: Clean up /ceph-qa-ready lockfile 420/head
David Galloway [Wed, 7 Nov 2018 20:40:35 +0000 (15:40 -0500)]
tools: Clean up /ceph-qa-ready lockfile

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #419 from ceph/wip-jwt
David Galloway [Thu, 1 Nov 2018 20:18:09 +0000 (16:18 -0400)]
Merge pull request #419 from ceph/wip-jwt

cobbler: Install python-jwt on RPM-based testnodes

6 years agocobbler: Install python-jwt on RPM-based testnodes 419/head
David Galloway [Thu, 1 Nov 2018 20:08:13 +0000 (16:08 -0400)]
cobbler: Install python-jwt on RPM-based testnodes

This package is needed for ceph-mgr but is not available in the
base/default repos.  Therefore, we need to install it during kickstart
and bake it into our RHEL FOG images.

Fixes: https://tracker.ceph.com/issues/36653
Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #415 from ceph/wip-suse
Zack Cerza [Mon, 29 Oct 2018 21:52:36 +0000 (15:52 -0600)]
Merge pull request #415 from ceph/wip-suse

Add support for OpenSUSE Leap 15.0

6 years agoMerge pull request #418 from kshtsk/wip-zypper-for-teuthology
David Galloway [Thu, 4 Oct 2018 19:49:23 +0000 (15:49 -0400)]
Merge pull request #418 from kshtsk/wip-zypper-for-teuthology

Add zypper support for teuthology role

6 years agoMerge pull request #417 from kshtsk/wip-zypper-for-paddles
David Galloway [Thu, 4 Oct 2018 19:41:34 +0000 (15:41 -0400)]
Merge pull request #417 from kshtsk/wip-zypper-for-paddles

Add zypper support for paddles role

6 years agoMerge pull request #416 from kshtsk/wip-zypper-for-pulpito
David Galloway [Thu, 4 Oct 2018 19:41:10 +0000 (15:41 -0400)]
Merge pull request #416 from kshtsk/wip-zypper-for-pulpito

Add zypper support for pulpito role

6 years agoAdd zypper support for teuthology role 418/head
Kyr Shatskyy [Wed, 3 Oct 2018 14:29:36 +0000 (16:29 +0200)]
Add zypper support for teuthology role

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoAdd zypper support for paddles role 417/head
Kyr Shatskyy [Wed, 3 Oct 2018 14:25:26 +0000 (16:25 +0200)]
Add zypper support for paddles role

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
6 years agoAdd zypper support for pulpito role 416/head
Kyr Shatskyy [Wed, 3 Oct 2018 14:21:26 +0000 (16:21 +0200)]
Add zypper support for pulpito role

Signed-off-by: Kyr Shatskyy<kyrylo.shatskyy@suse.com>
6 years agotools: Support OpenSUSE Leap 15.0 in prep-fog-capture playbook 415/head
David Galloway [Tue, 2 Oct 2018 18:57:48 +0000 (14:57 -0400)]
tools: Support OpenSUSE Leap 15.0 in prep-fog-capture playbook

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agotestnode: Add support to configure chronyd instead of ntpd
David Galloway [Tue, 2 Oct 2018 18:57:19 +0000 (14:57 -0400)]
testnode: Add support to configure chronyd instead of ntpd

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agotestnode: Add support for OpenSUSE Leap 15.0
David Galloway [Tue, 2 Oct 2018 18:42:51 +0000 (14:42 -0400)]
testnode: Add support for OpenSUSE Leap 15.0

Some notes:

  - Setting hostname with ansible fails.  It's a known issue.  Bug is in
the yaml.  teuthology sets the hostname after FOG provisioning anyway so
NBD.
  - Leap mounts all of the root subdirs as separate mountpoints so the `zap`
tasks had to be modified to not wipe those out
  - The sshd config is named `sshd_config_opensuse_leap_NA` because the
task that installs the SSHD config uses {{
ansible_distribution_major_version }} which isn't set to 15.0 in Leap
apparently.

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agocommon: Add default repos on OpenSUSE Leap
David Galloway [Tue, 2 Oct 2018 18:40:54 +0000 (14:40 -0400)]
common: Add default repos on OpenSUSE Leap

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agocobbler: Modify snippets to work with OpenSUSE Leap 15.0
David Galloway [Tue, 2 Oct 2018 18:39:21 +0000 (14:39 -0400)]
cobbler: Modify snippets to work with OpenSUSE Leap 15.0

The usermod command is a little different in OpenSUSE.

Also, in Leap, the /etc/rc.local equivalent is /etc/init.d/boot.local.

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agocobbler: Add OpenSUSE Leap 15.0
David Galloway [Tue, 2 Oct 2018 18:38:40 +0000 (14:38 -0400)]
cobbler: Add OpenSUSE Leap 15.0

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #413 from ceph/wip-35989
Zack Cerza [Mon, 17 Sep 2018 18:39:17 +0000 (12:39 -0600)]
Merge pull request #413 from ceph/wip-35989

testnode: install gcc-c++ on RPM-based systems

6 years agotestnode: install gcc-c++ on RPM-based systems 413/head
David Galloway [Mon, 17 Sep 2018 14:04:58 +0000 (10:04 -0400)]
testnode: install gcc-c++ on RPM-based systems

Fixes: https://tracker.ceph.com/issues/35989
Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #412 from ceph/wip-curl
Zack Cerza [Wed, 12 Sep 2018 17:36:16 +0000 (11:36 -0600)]
Merge pull request #412 from ceph/wip-curl

cobbler: Install curl during Ubuntu kickstart

6 years agocobbler: Install curl during Ubuntu kickstart 412/head
David Galloway [Wed, 12 Sep 2018 14:45:38 +0000 (10:45 -0400)]
cobbler: Install curl during Ubuntu kickstart

I replaced wget with curl in rc.local because curl is installed by
default in RPM-based distros while wget isn't even available for RHEL8
(yet?).  It apparently is not installed by default in Ubuntu though so
we'll install it during kickstart.

Fixes: http://tracker.ceph.com/issues/35952
Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #407 from ceph/wip-f2b-ufw
Zack Cerza [Tue, 11 Sep 2018 18:34:26 +0000 (12:34 -0600)]
Merge pull request #407 from ceph/wip-f2b-ufw

public_facing: Support blocking multiple ports in ufw fail2ban action

6 years agoMerge pull request #411 from ceph/wip-prep-fog
vasukulkarni [Fri, 7 Sep 2018 17:33:23 +0000 (10:33 -0700)]
Merge pull request #411 from ceph/wip-prep-fog

prep-fog-capture: Modify to work with RHEL8

6 years agoprep-fog-capture: Modify to work with RHEL8 411/head
David Galloway [Fri, 7 Sep 2018 17:32:10 +0000 (13:32 -0400)]
prep-fog-capture: Modify to work with RHEL8

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #408 from ceph/wip-rclocal2
vasukulkarni [Fri, 7 Sep 2018 16:50:37 +0000 (09:50 -0700)]
Merge pull request #408 from ceph/wip-rclocal2

cobbler: break at the appropriate location in rc.local

6 years agoMerge pull request #410 from ceph/wip-rhsm-disable
vasukulkarni [Fri, 7 Sep 2018 16:05:39 +0000 (09:05 -0700)]
Merge pull request #410 from ceph/wip-rhsm-disable

cobbler: Disable all repos before subscribing during kickstart

6 years agocobbler: Disable all repos before subscribing during kickstart 410/head
David Galloway [Fri, 7 Sep 2018 13:30:20 +0000 (09:30 -0400)]
cobbler: Disable all repos before subscribing during kickstart

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #409 from ceph/wip-rhel8
David Galloway [Thu, 6 Sep 2018 19:48:43 +0000 (15:48 -0400)]
Merge pull request #409 from ceph/wip-rhel8

Add RHEL8

6 years agoAdd RHEL8 409/head
David Galloway [Thu, 6 Sep 2018 19:48:01 +0000 (15:48 -0400)]
Add RHEL8

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agocobbler: break at the appropriate location in rc.local 408/head
David Galloway [Wed, 5 Sep 2018 18:09:31 +0000 (14:09 -0400)]
cobbler: break at the appropriate location in rc.local

Before this change, if the first NIC on a machine had a link but wasn't
the uplinked NIC, the break would still get called and no NICs would be
left up.

Now we'll break only after we can ping the Cobbler host.

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agopublic_facing: Support blocking multiple ports in ufw fail2ban action 407/head
David Galloway [Wed, 5 Sep 2018 14:29:20 +0000 (10:29 -0400)]
public_facing: Support blocking multiple ports in ufw fail2ban action

UFW requires the protocol be specified when multiple ports are given for
a deny rule.

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #406 from ceph/wip-mero-disk
Zack Cerza [Tue, 4 Sep 2018 17:46:33 +0000 (10:46 -0700)]
Merge pull request #406 from ceph/wip-mero-disk

cobbler: Add kickstarts that will install to /dev/sdm

6 years agocobbler: Add kickstarts that will install to /dev/sdm 406/head
David Galloway [Tue, 4 Sep 2018 16:44:04 +0000 (12:44 -0400)]
cobbler: Add kickstarts that will install to /dev/sdm

The root drive on mero nodes is /dev/sdm.  Since Cobbler is only used to
provision testnodes prior to a FOG image capture, I didn't think it'd be
worth the time/effort to automate this further.

The kickstart will have to be manually selected if the Cobbler Web UI is
used.  I'll automate setting the kickstart when the octo-fog-images
Jenkins job runs.

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoMerge pull request #405 from ceph/wip-rhel76
David Galloway [Fri, 10 Aug 2018 21:55:01 +0000 (17:55 -0400)]
Merge pull request #405 from ceph/wip-rhel76

Add RHEL 7.6

6 years agolibev-devel isn't available in RHEL7.6 405/head
David Galloway [Fri, 10 Aug 2018 20:39:14 +0000 (16:39 -0400)]
libev-devel isn't available in RHEL7.6

Signed-off-by: David Galloway <dgallowa@redhat.com>
6 years agoAdd RHEL 7.6
David Galloway [Fri, 10 Aug 2018 19:51:30 +0000 (15:51 -0400)]
Add RHEL 7.6

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #404 from ceph/wip-ovh-rhel
Zack Cerza [Mon, 30 Jul 2018 18:37:11 +0000 (12:37 -0600)]
Merge pull request #404 from ceph/wip-ovh-rhel

common/testnode: Support skipping entitlements & packages

7 years agoMerge pull request #403 from ceph/wip-centos75
Zack Cerza [Mon, 30 Jul 2018 18:36:41 +0000 (12:36 -0600)]
Merge pull request #403 from ceph/wip-centos75

Add CentOS 7.5

7 years agocommon/testnode: Support skipping entitlements & packages 404/head
David Galloway [Mon, 30 Jul 2018 16:40:01 +0000 (12:40 -0400)]
common/testnode: Support skipping entitlements & packages

`skip_entitlements` and `skip_packaging` will be set to true in the
Ansible inventory for OVH nodes

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoAdd CentOS 7.5 403/head
David Galloway [Mon, 30 Jul 2018 14:02:40 +0000 (10:02 -0400)]
Add CentOS 7.5

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #402 from ceph/wip-dhcp-ns
Zack Cerza [Mon, 23 Jul 2018 15:14:46 +0000 (09:14 -0600)]
Merge pull request #402 from ceph/wip-dhcp-ns

dhcp-server: Support defining nameservers by host or group var

7 years agodhcp-server: Support defining nameservers by host or group var 402/head
David Galloway [Mon, 23 Jul 2018 13:47:25 +0000 (09:47 -0400)]
dhcp-server: Support defining nameservers by host or group var

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #401 from tchaikov/libev
Kefu Chai [Mon, 21 May 2018 12:13:07 +0000 (20:13 +0800)]
Merge pull request #401 from tchaikov/libev

testnodes: s/libevent-dev/libev-dev/

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotestnodes: s/libevent-dev/libev-dev/ 401/head
Kefu Chai [Sat, 19 May 2018 11:46:18 +0000 (19:46 +0800)]
testnodes: s/libevent-dev/libev-dev/

see https://github.com/ceph/swift/pull/7 and
    https://github.com/ceph/s3-tests/pull/104

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #399 from ceph/wip-retry-rhsm
vasukulkarni [Fri, 11 May 2018 19:03:23 +0000 (12:03 -0700)]
Merge pull request #399 from ceph/wip-retry-rhsm

common: Retry rhsm command due to CDN or network flakiness

7 years agocommon: Retry rhsm command due to CDN or network flakiness 399/head
David Galloway [Fri, 11 May 2018 18:59:52 +0000 (14:59 -0400)]
common: Retry rhsm command due to CDN or network flakiness

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #398 from ceph/wip-force
Zack Cerza [Tue, 1 May 2018 14:29:11 +0000 (08:29 -0600)]
Merge pull request #398 from ceph/wip-force

common: Force register with RHSM

7 years agocommon: Force register with RHSM 398/head
David Galloway [Tue, 1 May 2018 14:14:23 +0000 (10:14 -0400)]
common: Force register with RHSM

Fixes: https://tracker.ceph.com/issues/23954
See also: https://bugzilla.redhat.com/show_bug.cgi?id=1510658

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #397 from ceph/wip-bionic
Zack Cerza [Mon, 30 Apr 2018 12:01:21 +0000 (06:01 -0600)]
Merge pull request #397 from ceph/wip-bionic

Add support for Ubuntu 18.04

7 years agotestnode: Redo LVM removal 397/head
David Galloway [Fri, 27 Apr 2018 16:37:02 +0000 (12:37 -0400)]
testnode: Redo LVM removal

For whatever reason, `dmsetup remove_all` fails on Bionic.  As long as
there are leftover lvs or vgs, a pv must be linked to them.  We can just
force remove the physical volume which wipes out the rest of the LVM
data.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agotestnode: Create /etc/default/rcS if missing
David Galloway [Fri, 27 Apr 2018 16:14:46 +0000 (12:14 -0400)]
testnode: Create /etc/default/rcS if missing

File does not exist in Bionic

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agotestnode: Create sshd config and set package vars for Bionic
David Galloway [Fri, 27 Apr 2018 16:13:00 +0000 (12:13 -0400)]
testnode: Create sshd config and set package vars for Bionic

Packages missing in Bionic that were in Xenial:
  - libapache2-mod-fastcgi
  - libboost-thread1.58.0
  - libcrypto++9v5

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocobbler: Set packages to install for Bionic
David Galloway [Fri, 27 Apr 2018 15:53:57 +0000 (11:53 -0400)]
cobbler: Set packages to install for Bionic

  - udev-discover is no more
  - net-tools provides ifconfig which is used in rc.local
  - ifupdown provides `ifdown` and `ifup` which are in rc.local
  - python is required for ansible
  - ntp isn't installed by default anymore apparently

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoCobbler: Add Bionic Beaver
David Galloway [Fri, 27 Apr 2018 15:53:29 +0000 (11:53 -0400)]
Cobbler: Add Bionic Beaver

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #396 from ceph/wip-23845
vasukulkarni [Tue, 24 Apr 2018 19:41:50 +0000 (12:41 -0700)]
Merge pull request #396 from ceph/wip-23845

testnode: Exclude dm devices from list of physical volumes

7 years agotestnode: Exclude dm devices from list of physical volumes 396/head
David Galloway [Tue, 24 Apr 2018 19:28:42 +0000 (15:28 -0400)]
testnode: Exclude dm devices from list of physical volumes

This was actually happening because when the playbook first runs, the
setup module is run and sees the device mapper devices.  We zap them
later in the playbook but ansible doesn't know that.  We could just
re-run the setup module but this method will instead guarantee we don't
use dm-* devices.

Fixes: https://tracker.ceph.com/issues/23845
Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #394 from ceph/wip-hwclock
David Galloway [Wed, 11 Apr 2018 18:30:47 +0000 (14:30 -0400)]
Merge pull request #394 from ceph/wip-hwclock

Always set hardware clock

7 years agoMerge pull request #395 from ceph/wip-fog-time
David Galloway [Tue, 10 Apr 2018 13:56:13 +0000 (09:56 -0400)]
Merge pull request #395 from ceph/wip-fog-time

tools: Force time synchronization in FOG images

7 years agotools: Force time synchronization in FOG images wip-fog-time 395/head
David Galloway [Tue, 10 Apr 2018 13:53:37 +0000 (09:53 -0400)]
tools: Force time synchronization in FOG images

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocommon: Always set the hwclock on all systems wip-hwclock 394/head
David Galloway [Mon, 9 Apr 2018 20:36:07 +0000 (16:36 -0400)]
common: Always set the hwclock on all systems

Even if the OS time is correct, the hardware clock could be off.
There's no harm in making sure it is accurate with every job.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-Configuring_the_Date_and_Time-hwclock

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #391 from ceph/wip-crontabs
Zack Cerza [Thu, 5 Apr 2018 22:34:56 +0000 (16:34 -0600)]
Merge pull request #391 from ceph/wip-crontabs

teuthology: Script to keep teuthology user's crontab up to date

7 years agoMerge pull request #386 from ceph/wip-lrc-role
Zack Cerza [Thu, 5 Apr 2018 22:34:13 +0000 (16:34 -0600)]
Merge pull request #386 from ceph/wip-lrc-role

long_running_cluster role

7 years agoMerge pull request #383 from ceph/wip-status
Zack Cerza [Thu, 5 Apr 2018 22:33:47 +0000 (16:33 -0600)]
Merge pull request #383 from ceph/wip-status

public_facing: Updates to OpenVPN check for status portal

7 years agoMerge pull request #379 from ceph/wip-fix-subscribe
Zack Cerza [Thu, 5 Apr 2018 22:33:29 +0000 (16:33 -0600)]
Merge pull request #379 from ceph/wip-fix-subscribe

cobbler: Fix typo in subscription manager snippet command

7 years agoMerge pull request #390 from ceph/wip-console-fix
Zack Cerza [Thu, 5 Apr 2018 22:33:10 +0000 (16:33 -0600)]
Merge pull request #390 from ceph/wip-console-fix

cobbler: Just output to ttyS1

7 years agoMerge pull request #393 from ceph/wip-smart-ssd
Zack Cerza [Wed, 4 Apr 2018 18:02:56 +0000 (12:02 -0600)]
Merge pull request #393 from ceph/wip-smart-ssd

common: Fixes to smart.sh to support multiple attributes

7 years agoMerge pull request #392 from ceph/wip-dhcp-server
Zack Cerza [Wed, 4 Apr 2018 18:01:53 +0000 (12:01 -0600)]
Merge pull request #392 from ceph/wip-dhcp-server

Add dhcp-server role

7 years agocommon: Comment bad nvme error-log check 393/head
David Galloway [Tue, 3 Apr 2018 22:22:08 +0000 (18:22 -0400)]
common: Comment bad nvme error-log check

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocommon: Fixes to smart.sh to support multiple attributes
David Galloway [Tue, 3 Apr 2018 18:42:43 +0000 (14:42 -0400)]
common: Fixes to smart.sh to support multiple attributes

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agodhcp-server: Update set-next-server script to work with role 392/head
David Galloway [Tue, 3 Apr 2018 16:21:29 +0000 (12:21 -0400)]
dhcp-server: Update set-next-server script to work with role

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoAdd dhcp-server role
David Galloway [Thu, 29 Mar 2018 20:01:47 +0000 (16:01 -0400)]
Add dhcp-server role

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoteuthology: Script to keep teuthology user's crontab up to date 391/head
David Galloway [Tue, 27 Mar 2018 18:59:49 +0000 (14:59 -0400)]
teuthology: Script to keep teuthology user's crontab up to date

Fixes: https://tracker.ceph.com/issues/23441
Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agolong_running_cluster: Custom logrotate rules 386/head
David Galloway [Wed, 28 Mar 2018 15:17:41 +0000 (11:17 -0400)]
long_running_cluster: Custom logrotate rules

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agolong_running_cluster: Add check for LRC data pool capacity
David Galloway [Thu, 31 Aug 2017 23:48:23 +0000 (19:48 -0400)]
long_running_cluster: Add check for LRC data pool capacity

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agolong_running_cluster: Create tasks to install ceph-nagios-plugins
David Galloway [Thu, 31 Aug 2017 23:26:51 +0000 (19:26 -0400)]
long_running_cluster: Create tasks to install ceph-nagios-plugins

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoCreate long_running_cluster role
David Galloway [Thu, 31 Aug 2017 23:26:26 +0000 (19:26 -0400)]
Create long_running_cluster role

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocobbler: Just output to ttyS1 390/head
David Galloway [Tue, 27 Mar 2018 15:20:02 +0000 (11:20 -0400)]
cobbler: Just output to ttyS1

This covers all baremetal types except mira.  Cheetah/Cobbler templating
was breaking with commit
https://github.com/ceph/ceph-cm-ansible/pull/389/commits/de871c037f4ae227bed00933eee24f849a4551b0.

The problem is if there is more than one kernel option type (like
console, ksdevice, etc.), $kernel_options gets expanded into a json
dictionary and breaks the templating.

E.g., {'ksdevice': 'bootif', 'lang': ' ', 'console': ['tty0', 'ttyS1,115200'], 'text': None, 'netcfg/choose_interface': 'auto'}

Rather than fight with that, we'll just output to ttyS1.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #389 from ceph/wip-console
Zack Cerza [Wed, 21 Mar 2018 19:32:07 +0000 (13:32 -0600)]
Merge pull request #389 from ceph/wip-console

Serial output fixes for testnodes

7 years agocobbler: Have rc.local output go to console 389/head
David Galloway [Fri, 9 Mar 2018 21:51:25 +0000 (16:51 -0500)]
cobbler: Have rc.local output go to console

Usually if something goes wrong during the rc.local run, the machine
won't be reachable to debug over the network.  Additionally, since we
reimage every machine before each job now, it's impossible to debug why
rc.local failed given a particular job.  This outputs rc.local to the
tty specified in kernel_options so we can see the output in `$hostname_reimage` run logs.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocobbler: Write exact /etc/default/grub
David Galloway [Fri, 9 Mar 2018 19:58:08 +0000 (14:58 -0500)]
cobbler: Write exact /etc/default/grub

This fixes console output during Xenial and later.  Prior to this, the
Plymouth boot screen would get loaded and "[37mUbuntu 16.04[-1;-1f[33m.
[37m.  [37m.  [37m." would get repeated to the console until the login
prompt shows up.

Writing our own file instead of finding and replacing variables makes
sure the settings are exactly what we want.

This snippet is only used on Debian-based distros.  The default Cobbler
snippet is used on RPM-based distros.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #388 from ceph/wip-rc-chill
Zack Cerza [Tue, 20 Mar 2018 21:39:57 +0000 (15:39 -0600)]
Merge pull request #388 from ceph/wip-rc-chill

cobbler: Change method used to ping Cobbler host in rc.local

7 years agocobbler: Change method used to ping Cobbler host in rc.local 388/head
David Galloway [Tue, 20 Mar 2018 15:22:53 +0000 (11:22 -0400)]
cobbler: Change method used to ping Cobbler host in rc.local

I've observed a *very* occasional race condition where dhclient
completes but the host can't ping Cobbler.  Instead of timing out
waiting for one ping packet to return, we'll try pinging X number of
times (based on $attempts number) and then give up.

I'll paste an example of the race condition observed in the PR notes.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #387 from ceph/wip-part-doc
Zack Cerza [Mon, 19 Mar 2018 20:24:55 +0000 (14:24 -0600)]
Merge pull request #387 from ceph/wip-part-doc

testnode: Fix typo and clarify dict for drives_to_partition

7 years agotestnode: Fix typo and clarify dict for drives_to_partition 387/head
David Galloway [Mon, 19 Mar 2018 18:38:40 +0000 (14:38 -0400)]
testnode: Fix typo and clarify dict for drives_to_partition

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #385 from ceph/wip-ovpn-logs
Zack Cerza [Thu, 15 Mar 2018 16:00:59 +0000 (10:00 -0600)]
Merge pull request #385 from ceph/wip-ovpn-logs

gateway: Rotate every day.. not when size is 100MB

7 years agogateway: Rotate every day.. not when size is 100MB 385/head
David Galloway [Mon, 12 Mar 2018 14:56:25 +0000 (10:56 -0400)]
gateway: Rotate every day.. not when size is 100MB

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #384 from ceph/wip-ovpn-logrotate
Zack Cerza [Fri, 9 Mar 2018 17:50:46 +0000 (10:50 -0700)]
Merge pull request #384 from ceph/wip-ovpn-logrotate

gateway: Finally fix openvpn logging

7 years agogateway: Properly configure rotating logs 384/head
David Galloway [Fri, 9 Mar 2018 16:46:31 +0000 (11:46 -0500)]
gateway: Properly configure rotating logs

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agogateway: Add some additional handlers for openvpn and rsyslog
David Galloway [Fri, 9 Mar 2018 16:25:29 +0000 (11:25 -0500)]
gateway: Add some additional handlers for openvpn and rsyslog

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #382 from ceph/wip-relax
Zack Cerza [Tue, 27 Feb 2018 16:18:40 +0000 (09:18 -0700)]
Merge pull request #382 from ceph/wip-relax

cobbler: Allow a little leeway in rc.local when pinging http_server

7 years agocobbler: Allow a little leeway in rc.local when pinging http_server 382/head
David Galloway [Tue, 27 Feb 2018 02:36:55 +0000 (21:36 -0500)]
cobbler: Allow a little leeway in rc.local when pinging http_server

DHCP might not complete within that one second.  We'll relax the timeout
a bit.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #381 from ceph/wip-rhel-beta
vasukulkarni [Mon, 26 Feb 2018 23:42:58 +0000 (15:42 -0800)]
Merge pull request #381 from ceph/wip-rhel-beta

common: Tolerate new subscription-manager behavior

7 years agocommon: Tolerate new subscription-manager behavior 381/head
David Galloway [Mon, 26 Feb 2018 23:29:28 +0000 (18:29 -0500)]
common: Tolerate new subscription-manager behavior

subscription-manager throws an error now if there are no releases to list
for a subscribed Beta distro.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #380 from ceph/wip-satellite
Zack Cerza [Mon, 26 Feb 2018 22:57:06 +0000 (15:57 -0700)]
Merge pull request #380 from ceph/wip-satellite

Add support for Red Hat Satellite

7 years agotools: Clean up katello facts when prepping RHEL image capture 380/head
David Galloway [Mon, 26 Feb 2018 20:04:39 +0000 (15:04 -0500)]
tools: Clean up katello facts when prepping RHEL image capture

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agopcp: Disable role for now
David Galloway [Mon, 26 Feb 2018 18:56:58 +0000 (13:56 -0500)]
pcp: Disable role for now

With the addition of RHEL to Sepia, teuthology will be running
cephlab.yml on unregistered RHEL testnodes.  Since the PCP playbook gets run
before the testnodes playbook, RHEL systems in Sepia won't be registered
to our Satellite yet and PCP installation fails.

We're not currently using PCP so we can disable the role and save some
time and headache.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocobbler: Subscribe to satellite during RHEL kickstart if use_satellite
David Galloway [Mon, 26 Feb 2018 17:50:30 +0000 (12:50 -0500)]
cobbler: Subscribe to satellite during RHEL kickstart if use_satellite

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agocommon: Add support for registering with Red Hat Satellite
David Galloway [Fri, 7 Oct 2016 20:26:22 +0000 (16:26 -0400)]
common: Add support for registering with Red Hat Satellite

Signed-off-by: David Galloway <dgallowa@redhat.com>