Commit Graph

13 Commits

Author SHA1 Message Date
Michal Nasiadka d79c07effb CI: Add codespell for spell checking
Fix existing spell checking

Change-Id: Ief7b8f2d427b2557c84fda9b3774ed85ceb105f4
2024-04-15 14:56:34 +00:00
zhufl 4dc412a23b [Trivial fix]Remove unnecessary slash
This is to remove the unncessary slash when the line doesn't
exceed the length of 79, to make the code more readable.

Change-Id: I53fdb56f001837e833df46cb86cdaab9c710ac99
2019-05-06 17:47:15 +08:00
confi-surya 8acba6ff56 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ia3d1166a2746a46591e4e5a04ea91e03ddc28d93
2018-12-27 12:02:17 +00:00
wangwei 0f14b3d7e0 Fix bluestore disk naming format in kolla
The current bluestore disk label naming is inconsistent with the
filestore. The filestore naming format is that the disk prefixes
belonging to the same osd are the same and the suffixes are
different.

This patch keeps the bluestore's disk naming as well.

Change-Id: I090cf055ebedc555b5ada35e140b7a7bb2a4cf8f
2018-08-27 16:11:08 +09:00
tone.zhang 7a93e1451a Allow Kolla Ceph to deploy bluestore OSD with 4 partitions
Enhance the deployment of Kolla-Ceph bluestore OSD.

Deploy bluestore OSD including up to 4 partitions:
* one partition is for bluestore OSD information
* one partition is for bluestore block
* one partition is for bluestore block.wal
* one partition is for bluestore block.db

Deploy bluestore OSD deployment with LOOP devices.

Partially-Implements: blueprint kolla-ceph-bluestore

Change-Id: I00eaa600a5e9ad4c1ebca2eeb523bca3d7a25128
Signed-off-by: tone.zhang <tone.zhang@arm.com>
2018-06-20 14:16:30 +08:00
Tone Zhang 291ba252a5 Allow Kolla Ceph to deploy bluestore OSDs in Kolla
Support Kolla Ceph to deploy blustore OSDs. With the patch, Kolla
Ceph can deploy bluestore OSDs on ONE, TWO or THREE storage
devices.

Before deploy bluestore OSD, please prepare devices. The detailed
Please refer to [1] for devices initialization.

extend_start.sh: initialize and start bluestore OSD

find_disk.py: search the devices for bluestore OSD

[1]: specs/kolla-ceph-bluestore.rst

Partially-Implements: blueprint kolla-ceph-bluestore

Change-Id: I832f490de63e1aeb68814697cda610a51b622c1f
Signed-off-by: Tone Zhang <tone.zhang@arm.com>
2018-06-07 13:35:46 +08:00
Jeffrey Zhang 2b01b05444 Use immutable journal path rather than device name
Device name is mutable when removed or added disks. Use uuid path or
lable is more robust.

Change-Id: I95cae6a9bf185d6f81126c42ac72d51b5ed659c2
Closes-Bug: #1710058
2017-08-14 10:18:45 +08:00
Paul Bourke dc0c07e0bf Add a 'fallback mode' to disable udev in find_disks
As part of change I362b3f8e91de79687fc84e256996fbcaf303b6af a check was
added to use udev to read GPT labels only if the version of udev
installed supports that, otherwise fallback to sgdisk.

Unfortunately the check for udev version is unreliable, as it is
returning the version of the udev userspace tools installed within the
container rather than on the host.

As well as this, we're seeing the find_disks.py having trouble reading
the UUID of a partition via udev. The test system is Oracle VM 3.4.2
which was released earlier this year, but has an old udev (derivative of
RHEL 6).

Even if we use Ansible to query the host's version of udev and pass that
through to the container, querying the above disk attributes is a
lottery on older systems without a reliable reference of which versions
of udev support which operations. Hence we should give operators a
reliable way to toggle it's usage.

Partial-Bug: 1631949
Change-Id: I6ad7825cdb164498f3d02f2ae064c7c1c38e10d5
2016-11-16 14:15:57 +00:00
Paul Bourke fc30d583f9 Fix bandit gate jobs
* Inspected each error and fixed / added nosec where appropriate.
* build-swift-ring.py which was throwing sec errors is no longer used so
  removed it.
* Removed the dev/ directory from being checked.

Closes-Bug: #1617713
Change-Id: I25664cabca4137e5c9f499c1af3f5ce78b86fb56
2016-08-28 08:52:44 +00:00
Stephen Hindle cadf8afdcf Read GPT label using sgdisk rather than udev
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-07 10:26:34 +01:00
Jeffrey Zhang d2ad5f290a Remove meaningless char in regexp of find_disks.py file
the $ char is useless and not needed.

TrivialFix

Change-Id: I18df48ca86badadf6ec18757c17ed32222ead30a
2016-03-25 22:25:41 +08:00
SamYaple 5250a00781 Allow external ceph journals and fix bootstrap
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-19 22:36:30 +00:00
SamYaple 80b7266ed1 Rename kolla_ansible to kolla_toolbox
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-02-02 18:12:15 +00:00