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
3122e615
Commit
3122e615
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "manila share container name variable"
parents
fa65e040
fa161909
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/manila/tasks/fix_cephfs_owner.yml
+10
-10
10 additions, 10 deletions
ansible/roles/manila/tasks/fix_cephfs_owner.yml
with
10 additions
and
10 deletions
ansible/roles/manila/tasks/fix_cephfs_owner.yml
+
10
−
10
View file @
3122e615
---
-
name
:
Check /tmp/cephfs path
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
ls
/tmp/cephfs/"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
ls
/tmp/cephfs/"
register
:
check_cephfs
changed_when
:
False
failed_when
:
check_cephfs.rc != 0 and check_cephfs.stderr.find('No such file or directory') == -1
...
...
@@ -9,13 +9,13 @@
-
name
:
Create /tmp/cephfs path
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
mkdir
-p
/tmp/cephfs"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
mkdir
-p
/tmp/cephfs"
run_once
:
True
when
:
check_cephfs.rc !=
0
-
name
:
Get monitor dump
become
:
true
command
:
docker exec manila_s
hare
ceph mon dump -c /etc/ceph/ceph.conf --name client.manila -f json
command
:
docker exec
"{{
manila_s
ervices['manila-share']['container_name'] }}"
ceph mon dump -c /etc/ceph/ceph.conf --name client.manila -f json
register
:
ceph_monitor_dump
changed_when
:
False
run_once
:
True
...
...
@@ -32,14 +32,14 @@
-
name
:
Get cephfs secret
become
:
true
command
:
docker exec manila_s
hare
ceph-authtool -p /etc/ceph/ceph.client.manila.keyring -n client.manila
command
:
docker exec
"{{
manila_s
ervices['manila-share']['container_name'] }}"
ceph-authtool -p /etc/ceph/ceph.client.manila.keyring -n client.manila
register
:
manila_keyring
changed_when
:
False
run_once
:
True
-
name
:
Umount cephfs
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
umount
/tmp/cephfs/"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
umount
/tmp/cephfs/"
register
:
umount_cephfs
changed_when
:
False
failed_when
:
False
...
...
@@ -47,14 +47,14 @@
-
name
:
Mount cephfs
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
mount
-t
ceph
{{
cephfs_addr
}}
/tmp/cephfs
-o
name=manila,secret={{
manila_keyring.stdout
}}"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
mount
-t
ceph
{{
cephfs_addr
}}
/tmp/cephfs
-o
name=manila,secret={{
manila_keyring.stdout
}}"
register
:
mount_cephfs
changed_when
:
False
run_once
:
True
-
name
:
Check volumes path
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
ls
/tmp/cephfs/volumes"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
ls
/tmp/cephfs/volumes"
register
:
check_volume
changed_when
:
False
failed_when
:
False
...
...
@@ -62,21 +62,21 @@
-
name
:
Create /tmp/cephfs/volumes path
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
mkdir
/tmp/cephfs/volumes"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
mkdir
/tmp/cephfs/volumes"
register
:
create_volume
run_once
:
True
when
:
check_volume.rc !=
0
-
name
:
Change the owner and group of /tmp/cephfs/volumes
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
chown
manila:manila
/tmp/cephfs/volumes"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
chown
manila:manila
/tmp/cephfs/volumes"
register
:
chown_volume
run_once
:
True
when
:
check_volume.rc != 0 and create_volume.rc ==
0
-
name
:
Umount cephfs
become
:
true
command
:
"
docker
exec
-u
0
manila_s
hare
umount
/tmp/cephfs"
command
:
"
docker
exec
-u
0
{{
manila_s
ervices['manila-share']['container_name']
}}
umount
/tmp/cephfs"
changed_when
:
False
register
:
umount_cephfs
run_once
:
True
...
...
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