Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Ganeti ext storage provider for RBD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
Ganeti ext storage provider for RBD
Commits
f574093c
Commit
f574093c
authored
7 years ago
by
Filippos Giannakos
Browse files
Options
Downloads
Patches
Plain Diff
Rename 'image_features' to 'image_feature'
parent
340019d7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ext_scripts/ext_rbd.py
+7
-7
7 additions, 7 deletions
ext_scripts/ext_rbd.py
ext_scripts/parameters.list
+1
-1
1 addition, 1 deletion
ext_scripts/parameters.list
with
8 additions
and
8 deletions
ext_scripts/ext_rbd.py
+
7
−
7
View file @
f574093c
...
...
@@ -39,7 +39,7 @@ The following variables are optional:
- EXTP_CEPHX_KEYFILE Specifies a file containing the secret key of --id user
to use with the map command
- EXTP_IMAGE_FORMAT: The image format of the new RBD volume
- EXTP_IMAGE_FEATURE
S
: The enabled features of the new RBD volume
- EXTP_IMAGE_FEATURE: The enabled features of the new RBD volume
- EXTP_STRIPE_UNIT Size (in bytes) of a block of data
- EXTP_STRIPE_COUNT Number of consecutive objects in a stripe
- EXTP_USERSPACE_ONLY Number of consecutive objects in a stripe
...
...
@@ -151,7 +151,7 @@ class RBD(object):
return
None
@staticmethod
def
create
(
image
,
size
,
pool
=
None
,
image_format
=
None
,
image_feature
s
=
None
,
def
create
(
image
,
size
,
pool
=
None
,
image_format
=
None
,
image_feature
=
None
,
stripe_unit
=
None
,
stripe_count
=
None
,
cephx
=
None
):
"""
Map an image to an RBD device
"""
...
...
@@ -161,9 +161,9 @@ class RBD(object):
if
image_format
is
not
None
:
args
.
append
(
'
--image-format
'
)
args
.
append
(
str
(
image_format
))
if
image_feature
s
is
not
None
:
args
.
append
(
'
--image-feature
s
'
)
args
.
append
(
str
(
image_feature
s
))
if
image_feature
is
not
None
:
args
.
append
(
'
--image-feature
'
)
args
.
append
(
str
(
image_feature
))
if
stripe_unit
is
not
None
:
args
.
append
(
'
--stripe-unit
'
)
args
.
append
(
str
(
stripe_unit
))
...
...
@@ -256,7 +256,7 @@ def create(env):
reuse_data
=
env
.
get
(
"
reuse_data
"
)
pool
=
env
.
get
(
"
rbd_pool
"
)
image_format
=
env
.
get
(
"
image_format
"
)
image_feature
s
=
env
.
get
(
"
image_feature
s
"
)
image_feature
=
env
.
get
(
"
image_feature
"
)
stripe_unit
=
env
.
get
(
"
stripe_unit
"
)
stripe_count
=
env
.
get
(
"
stripe_count
"
)
cephx
=
env
.
get
(
"
cephx
"
)
...
...
@@ -273,7 +273,7 @@ def create(env):
sys
.
stderr
.
write
(
"
Creating volume
'
%s
'
of size
'
%s
'
\n
"
%
(
RBD
.
format_name
(
name
,
pool
=
pool
),
size
))
RBD
.
create
(
name
,
size
,
pool
=
pool
,
image_format
=
image_format
,
image_feature
s
=
image_feature
s
,
stripe_unit
=
stripe_unit
,
image_feature
=
image_feature
,
stripe_unit
=
stripe_unit
,
stripe_count
=
stripe_count
,
cephx
=
cephx
)
return
0
...
...
This diff is collapsed.
Click to expand it.
ext_scripts/parameters.list
+
1
−
1
View file @
f574093c
...
...
@@ -2,7 +2,7 @@ origin Snapshot to create the image from
reuse_data Whether or not to create a new RBD volume on create
rbd_pool RBD pool to use for the RBD volumes
image_format The image format of the new RBD volume
image_feature
s
The enabled features of the new RBD volume
image_feature The enabled features of the new RBD volume
stripe_unit Size (in bytes) of a block of data
stripe_count Number of consecutive objects in a stripe
cephx_id Specifies the username (without the client. prefix) to use with the map command
...
...
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