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
762b24cc
Commit
762b24cc
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove quotes from subshell call in bash script"
parents
1b43c2b3
c62ddbfa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/ceph/ceph-mon/start.sh
+1
-1
1 addition, 1 deletion
docker/ceph/ceph-mon/start.sh
docker/ceph/ceph-osd/start.sh
+3
-3
3 additions, 3 deletions
docker/ceph/ceph-osd/start.sh
with
4 additions
and
4 deletions
docker/ceph/ceph-mon/start.sh
+
1
−
1
View file @
762b24cc
...
@@ -21,7 +21,7 @@ set_configs
...
@@ -21,7 +21,7 @@ set_configs
# of the KOLLA_BOOTSTRAP variable being set, including empty.
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if
[[
"
${
!KOLLA_BOOTSTRAP[@]
}
"
]]
;
then
if
[[
"
${
!KOLLA_BOOTSTRAP[@]
}
"
]]
;
then
# Lookup our fsid from the ceph.conf
# Lookup our fsid from the ceph.conf
FSID
=
"
$(
awk
'/^fsid/ {print $3; exit}'
/etc/ceph/ceph.conf
)
"
FSID
=
$(
awk
'/^fsid/ {print $3; exit}'
/etc/ceph/ceph.conf
)
# Generating initial keyrings and monmap
# Generating initial keyrings and monmap
ceph-authtool
--create-keyring
"
${
KEYRING_MON
}
"
--gen-key
-n
mon.
--cap
mon
'allow *'
ceph-authtool
--create-keyring
"
${
KEYRING_MON
}
"
--gen-key
-n
mon.
--cap
mon
'allow *'
...
...
This diff is collapsed.
Click to expand it.
docker/ceph/ceph-osd/start.sh
+
3
−
3
View file @
762b24cc
...
@@ -21,10 +21,10 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
...
@@ -21,10 +21,10 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
partprobe
||
true
partprobe
||
true
# We look up the appropriate device path with partition.
# We look up the appropriate device path with partition.
OSD_PARTITION
=
"
$(
ls
${
OSD_DEV
}*
| egrep
${
OSD_DEV
}
p?1
)
"
OSD_PARTITION
=
$(
ls
"
${
OSD_DEV
}
"
*
| egrep
"
${
OSD_DEV
}
p?1"
)
JOURNAL_PARTITION
=
"
${
OSD_PARTITION
%?
}
2"
JOURNAL_PARTITION
=
"
${
OSD_PARTITION
%?
}
2"
OSD_ID
=
"
$(
ceph osd create
)
"
OSD_ID
=
$(
ceph osd create
)
OSD_DIR
=
"/var/lib/ceph/osd/ceph-
${
OSD_ID
}
"
OSD_DIR
=
"/var/lib/ceph/osd/ceph-
${
OSD_ID
}
"
mkdir
-p
"
${
OSD_DIR
}
"
mkdir
-p
"
${
OSD_DIR
}
"
mkfs.xfs
-f
"
${
OSD_PARTITION
}
"
mkfs.xfs
-f
"
${
OSD_PARTITION
}
"
...
@@ -47,7 +47,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
...
@@ -47,7 +47,7 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
fi
fi
# We look up the appropriate journal since we cannot rely on symlinks
# We look up the appropriate journal since we cannot rely on symlinks
JOURNAL_PARTITION
=
"
$(
ls
${
OSD_DEV
}*
| egrep
${
OSD_DEV
}
p?2
)
"
JOURNAL_PARTITION
=
$(
ls
"
${
OSD_DEV
}
"
*
| egrep
"
${
OSD_DEV
}
p?2"
)
OSD_DIR
=
"/var/lib/ceph/osd/ceph-
${
OSD_ID
}
"
OSD_DIR
=
"/var/lib/ceph/osd/ceph-
${
OSD_ID
}
"
CMD
=
"/usr/bin/ceph-osd"
CMD
=
"/usr/bin/ceph-osd"
ARGS
=
"-f -d -i
${
OSD_ID
}
--osd-journal
${
JOURNAL_PARTITION
}
-k
${
OSD_DIR
}
/keyring"
ARGS
=
"-f -d -i
${
OSD_ID
}
--osd-journal
${
JOURNAL_PARTITION
}
-k
${
OSD_DIR
}
/keyring"
...
...
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