Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
e9fda866
Commit
e9fda866
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add Kolla Ceph filestore CI jobs"
parents
d55129d1
6786bc5b
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/run.yml
+2
-2
2 additions, 2 deletions
tests/run.yml
tests/setup_ceph_disks.sh
+31
-16
31 additions, 16 deletions
tests/setup_ceph_disks.sh
tests/templates/inventory.j2
+1
-1
1 addition, 1 deletion
tests/templates/inventory.j2
zuul.d/jobs.yaml
+21
-0
21 additions, 0 deletions
zuul.d/jobs.yaml
with
55 additions
and
19 deletions
tests/run.yml
+
2
−
2
View file @
e9fda866
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
kolla_ansible_src_dir
:
"
src/{{
zuul.project.canonical_hostname
}}/openstack/kolla-ansible"
kolla_ansible_src_dir
:
"
src/{{
zuul.project.canonical_hostname
}}/openstack/kolla-ansible"
kolla_ansible_full_src_dir
:
"
{{
zuul.executor.work_root
}}/{{
kolla_ansible_src_dir
}}"
kolla_ansible_full_src_dir
:
"
{{
zuul.executor.work_root
}}/{{
kolla_ansible_src_dir
}}"
tasks
:
tasks
:
-
name
:
Prepare ceph disks
-
name
:
Prepare ceph disks
for bluestore and filestore OSD
script
:
"
{{
kolla_ansible_full_src_dir
}}/tests/setup_ceph_disks.sh"
script
:
"
{{
kolla_ansible_full_src_dir
}}/tests/setup_ceph_disks.sh
{{
hostvars[inventory_hostname]['ceph_osd_storetype']
}}
"
when
:
scenario == "ceph"
when
:
scenario == "ceph"
become
:
true
become
:
true
...
...
This diff is collapsed.
Click to expand it.
tests/setup_ceph_disks.sh
+
31
−
16
View file @
e9fda866
mkdir
-p
/opt/data/kolla
mkdir
-p
/opt/data/kolla
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0.img
bs
=
5M
count
=
128
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1 1
-1
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-b.img
bs
=
5M
count
=
2048
if
[
$1
=
'filestore'
]
;
then
LOOP
=
$(
losetup
-f
)
#setup devices for Kolla Ceph filestore OSD
losetup
$LOOP
/opt/data/kolla/ceph-osd0-b.img
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd1.img
bs
=
5M
count
=
1000
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_B 1
-1
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd1.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_OSD1 1
-1
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-w.img
bs
=
5M
count
=
256
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-journal1.img
bs
=
5M
count
=
512
LOOP
=
$(
losetup
-f
)
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0-w.img
losetup
$LOOP
/opt/data/kolla/ceph-journal1.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_W 1
-1
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_OSD1_J 1
-1
else
# Setup devices for Kolla Ceph bluestore OSD
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0.img
bs
=
5M
count
=
100
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD0 1
-1
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-d.img
bs
=
5M
count
=
256
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-b.img
bs
=
5M
count
=
1000
LOOP
=
$(
losetup
-f
)
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0-d.img
losetup
$LOOP
/opt/data/kolla/ceph-osd0-b.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD1_D 1
-1
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD0_B 1
-1
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-w.img
bs
=
5M
count
=
200
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0-w.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD0_W 1
-1
dd
if
=
/dev/zero
of
=
/opt/data/kolla/ceph-osd0-d.img
bs
=
5M
count
=
200
LOOP
=
$(
losetup
-f
)
losetup
$LOOP
/opt/data/kolla/ceph-osd0-d.img
parted
$LOOP
-s
--
mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP_BS_OSD0_D 1
-1
fi
partprobe
partprobe
This diff is collapsed.
Click to expand it.
tests/templates/inventory.j2
+
1
−
1
View file @
e9fda866
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
[storage]
[storage]
{% for host in hostvars %}
{% for host in hostvars %}
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_user=kolla ansible_ssh_private_key_file={{ ansible_env.HOME ~ '/.ssh/id_rsa_kolla' }}
ceph_osd_store_type={{ 'filestore' if host == 'primary' else 'bluestore' }}
{% endfor %}
{% endfor %}
[monitoring]
[monitoring]
...
...
This diff is collapsed.
Click to expand it.
zuul.d/jobs.yaml
+
21
−
0
View file @
e9fda866
...
@@ -60,6 +60,13 @@
...
@@ -60,6 +60,13 @@
base_distro
:
ubuntu
base_distro
:
ubuntu
install_type
:
source
install_type
:
source
scenario
:
ceph
scenario
:
ceph
host-vars
:
primary
:
ceph_osd_storetype
:
filestore
secondary1
:
ceph_osd_storetype
:
bluestore
secondary2
:
ceph_osd_storetype
:
bluestore
-
job
:
-
job
:
name
:
kolla-ansible-centos-source-ceph
name
:
kolla-ansible-centos-source-ceph
...
@@ -70,6 +77,13 @@
...
@@ -70,6 +77,13 @@
base_distro
:
centos
base_distro
:
centos
install_type
:
source
install_type
:
source
scenario
:
ceph
scenario
:
ceph
host-vars
:
primary
:
ceph_osd_storetype
:
filestore
secondary1
:
ceph_osd_storetype
:
bluestore
secondary2
:
ceph_osd_storetype
:
bluestore
-
job
:
-
job
:
name
:
kolla-ansible-oraclelinux-source-ceph
name
:
kolla-ansible-oraclelinux-source-ceph
...
@@ -80,6 +94,13 @@
...
@@ -80,6 +94,13 @@
base_distro
:
oraclelinux
base_distro
:
oraclelinux
install_type
:
source
install_type
:
source
scenario
:
ceph
scenario
:
ceph
host-vars
:
primary
:
ceph_osd_storetype
:
filestore
secondary1
:
ceph_osd_storetype
:
bluestore
secondary2
:
ceph_osd_storetype
:
bluestore
-
job
:
-
job
:
name
:
kolla-ansible-bifrost-centos-source
name
:
kolla-ansible-bifrost-centos-source
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment