]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
upstart: handle upper case in cluster name and id 338/head
authorAlexandre Marangone <alexandre.marangone@inktank.com>
Fri, 31 May 2013 19:33:11 +0000 (12:33 -0700)
committerAlexandre Marangone <alexandre.marangone@inktank.com>
Fri, 31 May 2013 19:33:11 +0000 (12:33 -0700)
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
src/upstart/ceph-mds-all-starter.conf
src/upstart/ceph-mon-all-starter.conf
src/upstart/ceph-osd-all-starter.conf
src/upstart/radosgw-all-starter.conf

index 8e7540331ba57142f99bb6ad433b7d64bdc2b4f5..f1243e208f07f742db1d593520c0b92e39868e72 100644 (file)
@@ -8,7 +8,7 @@ task
 script
   set -e
   # TODO what's the valid charset for cluster names and mds ids?
-  find /var/lib/ceph/mds/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[a-z0-9]+-[a-z0-9._-]+' -printf '%P\n' \
+  find /var/lib/ceph/mds/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
   | while read f; do
     if [ -e "/var/lib/ceph/mds/$f/done" ] && [ -e "/var/lib/ceph/mds/$f/upstart" ]; then
         cluster="${f%%-*}"
index 723d41278467b141f6a5f53c14a6f3c7fbc1ec50..1a69d676aa26fc56ba51b6cf8e0478b7e6918ad2 100644 (file)
@@ -8,7 +8,7 @@ task
 script
   set -e
   # TODO what's the valid charset for cluster names and mon ids?
-  find /var/lib/ceph/mon/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[a-z0-9]+-[a-z0-9._-]+' -printf '%P\n' \
+  find /var/lib/ceph/mon/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
   | while read f; do
     if [ -e "/var/lib/ceph/mon/$f/done" ] && [ -e "/var/lib/ceph/mon/$f/upstart" ]; then
         cluster="${f%%-*}"
index 616f02ada6edc7e531e77186904a254bbbb0295f..42ec80c2ffa24afac9c26d010b4f5dad0c17b8fb 100644 (file)
@@ -8,7 +8,7 @@ task
 script
   set -e
   # TODO what's the valid charset for cluster names and osd ids?
-  find /var/lib/ceph/osd/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[a-z0-9]+-[a-z0-9._-]+' -printf '%P\n' \
+  find /var/lib/ceph/osd/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
   | while read f; do
     if [ -e "/var/lib/ceph/osd/$f/ready" ] && [ -e "/var/lib/ceph/osd/$f/upstart" ]; then
         cluster="${f%%-*}"
index b9357a38fdf270d5c00e3346b7a7a2ca288827d0..89cff479c5241864b8b07aa888ff5e6049b2ff05 100644 (file)
@@ -8,7 +8,7 @@ task
 script
   set -e
   # TODO what's the valid charset for cluster names and daemon ids?
-  find /var/lib/ceph/radosgw/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[a-z0-9]+-[a-z0-9._-]+' -printf '%P\n' \
+  find /var/lib/ceph/radosgw/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
   | while read f; do
     if [ -e "/var/lib/ceph/radosgw/$f/done" ]; then
         cluster="${f%%-*}"