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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
Ganeti ext storage provider for RBD
Commits
a3101706
Commit
a3101706
authored
3 years ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Use VOL_NAME instead of CNAME
The latter is “pretty” and not necessarily unique.
parent
f14ae02e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ext_scripts/ext_rbd.py
+4
-4
4 additions, 4 deletions
ext_scripts/ext_rbd.py
with
4 additions
and
4 deletions
ext_scripts/ext_rbd.py
+
4
−
4
View file @
a3101706
...
...
@@ -23,7 +23,7 @@ RBD storage provider wrapper-script for ganeti extstorage disk template
The script takes it
'
s input from environment variables. Specifically the
following variables should be present:
- VOL_
C
NAME: The name of the new Image file
- VOL_NAME: The name of the new Image file
- VOL_SIZE: The size of the new Image (in megabytes)
The following variables are optional:
...
...
@@ -199,9 +199,9 @@ class RBD(object):
def
read_env
():
"""
Read the enviromental variables
"""
name
=
os
.
getenv
(
"
VOL_
C
NAME
"
)
name
=
os
.
getenv
(
"
VOL_NAME
"
)
if
name
is
None
:
sys
.
stderr
.
write
(
'
The environment variable VOL_
C
NAME is missing.
\n
'
)
sys
.
stderr
.
write
(
'
The environment variable VOL_NAME is missing.
\n
'
)
return
None
extp_params
=
{}
...
...
@@ -236,7 +236,7 @@ def read_env():
userspace_params
[
p
[
len
(
PREFIX_USP
):]]
=
v
extp_params
.
pop
(
p
)
env
=
{
"
name
"
:
os
.
getenv
(
"
VOL_
C
NAME
"
),
env
=
{
"
name
"
:
os
.
getenv
(
"
VOL_NAME
"
),
"
size
"
:
os
.
getenv
(
"
VOL_SIZE
"
),
"
snapshot_name
"
:
os
.
getenv
(
"
VOL_SNAPSHOT_NAME
"
),
"
cephx
"
:
cephx
,
...
...
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