aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/ceph/tasks/bootstrap_osds.yml
AgeCommit message (Collapse)AuthorFilesLines
2016-11-15Remove Ansible from KollaSteven Dake1-117/+0
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
2016-08-29Add a check before wiping Ceph disks in bootstrapPaul Bourke1-0/+30
An unwitting user may apply the KOLLA_CEPH_OSD[_CACHE]_BOOTSTRAP label to a partition assuming it will only use that partition for Ceph, and end up wiping out their disk. This change adds a layer of checking to this scenario to try and help avoid a disaster scenario. Closes-Bug: 1599103 DocImpact Change-Id: Ibb9fb42f87a76bc02165ec0b93b60234bad8747a
2016-07-07Read GPT label using sgdisk rather than udevStephen Hindle1-2/+2
The Ceph osd bootstrap/startup logic depends upon reading/writing partition names. Some older versions of udev have trouble reading these (/dev/disk/by-label is missing). To work around this, we shell out to sgdisk and scrape the partition name data directly. Co-authored-by: Paul Bourke <paul.bourke@oracle.com> Closes-Bug: 1585185 Change-Id: I362b3f8e91de79687fc84e256996fbcaf303b6af
2016-07-05Improve task names for CephPaul Bourke1-4/+4
The task names while bootstrapping Ceph OSDs and cache OSDs were identical making them harder to distinguish in the Ansible output. TrivialFix Change-Id: I0228221a09bdaaba46b6280b6e1be9920ad13598
2016-05-27Do not use bare variables in the ceph roleChristian Berendt1-2/+2
This will resolve the following deprecation warning: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax. This feature will be removed in a future release. Partial-bug: #1586404 Change-Id: I9086d3f9e7904836e72e6df2fefaa084e5229f7e
2016-05-05Make Heka collect Ceph logsMauricio Lima1-0/+2
Change-Id: Ibaa5f8ba600afafa111d2ef204ee9192b8babdfc Closes-Bug: #1570529
2016-05-03map the host localtime to the containerJeffrey Zhang1-0/+2
Closes-Bug: #1577148 Change-Id: I636cefc63cf532434a41af3898b63dffa711e280
2016-03-19Allow external ceph journals and fix bootstrapSamYaple1-2/+14
This allows us to specify external journals for osds which can greatly improve performance when the external journals are on the solid-state drives. The new lookup and startup methods fix the previous races we had preventing osds from being created properly. This retains the same functionality as before and is completely compatible with the previous method and labels, however this does set new labels for all new bootstrap OSDs. This was due to a limitation in the length of the name of a GPT partition. Closes-Bug: #1558853 DocImpact Partially-Implements: blueprint ceph-improvements Change-Id: I61fd10cb35c67dabc53bd82270f26909ef51fc38
2016-03-19Allow user to choose filesystem for osdSamYaple1-0/+2
Change-Id: I9c770a08219d2eead5ece8e3462157359cd920cb Partially-Implements: blueprint ceph-improvements
2016-03-09Remove storage_hostnameSamYaple1-0/+2
This was an attempt to get storage_interface to work properly but that work will not be completed and functional this cycle. There are design topics that need to be discussed about it that were brought to light by the RAX gate failing for it. TrivialFix Change-Id: I65579f9e0e0dcf3fa51c0ea031ff474145457c40
2016-02-02Rename kolla_ansible to kolla_toolboxSamYaple1-2/+2
This change is needed for clarity. We have a kolla-ansible script. We have a kolla-mesos repo. We plan to have a kolla-ansible repo. Already we have had far too much confusion about whether we are talking about the container or the project. Naming this kolla-toolbox eliminates all of that confusion and its probably a bit more accurate of a name too. Closes-Bug: #1541053 Change-Id: I8fd1f49d5a22b36ede5b10f46b9fe02ddda9007e
2016-01-28Update all bootstraps to use LabelSamYaple1-0/+4
Add bootstrap label to all bootstrap containers to ensure that when the a new container is launched a difference is seen between it and the bootstrap container since we cannot rely on ENV variables for this. This only affects mariadb at this stage, but it is needed to ensure rabbitmq works when we switch to named volumes. Change-Id: Ia022af26212d2e5445c06149848831037a508407 Closes-Bug: #1538136
2015-12-31Convert Ceph to kolla_dockerSamYaple1-63/+21
Change-Id: Icb1e81dc8acabe51740edc5658957022ddd13cd7 Partially-Implements: blueprint kolla-docker-module
2015-11-20Switch find_disks to use a decent python libSam Yaple1-21/+27
Now /dev/loop devices will work! Change-Id: Icb8efe4f9bc3a21a72eb04bfd03452c26f13fd70 Closes-Bug: #1518438
2015-10-22Automate setting up a cache tierSam Yaple1-0/+50
Introduces a new flag to bootstrap cache devices DocImpact Partially-Implements: blueprint ceph-improvements Change-Id: I09b5a0d5c61b3465237e5f01dc10120725561cd3
2015-10-14Add tty to containersSam Yaple1-0/+2
sudo requires a tty to function by default on centos. Instead of tweaking the sudo conf we can just add a tty. This has the added advantage of making the containers more friendly if you have to `docker exec -i <container> bash` into them. Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-13Bump ansible to 1.9.2Sam Yaple1-1/+0
Ansible 1.9.2 contains the fix needed for docker-py >1.2.0 This is needed for some gate reasons, but it is also a good version bump because it fixes a few issues with delegate_to. Change-Id: Iafbabb3b0232620849d0548c5cd9d8d316c2b0f3 backport: liberty Partially-Implements: blueprint functional-testing-gate
2015-10-06Bring Kolla inline with FHSSam Yaple1-1/+1
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742
2015-09-29Fix ceph after config-external removalSam Yaple1-1/+1
Change-Id: I46dc2f02dda8219878eee3755b0891f4c3450682 Partially-Implements: blueprint replace-config-external
2015-09-24Ceph Ansible supportSam Yaple1-0/+48
Add the initial playbooks for making ceph and ansible play nice together. This does not include all of the openstack changes to make things like nova, glance, and cinder work. This will simply build the ceph cluster and thats it. The next patchset will do the OpenStack integration. DocImpact Change-Id: Ie1697dde5f92e833652933a80f0004f31b641330 Partially-Implements: blueprint ceph-container