Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7755286f
Commit
7755286f
authored
Aug 22, 2017
by
Humble Chirammal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct error strings in glusterfs
Signed-off-by:
Humble Chirammal
<
hchiramm@redhat.com
>
parent
07dea6b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
glusterfs.go
pkg/volume/glusterfs/glusterfs.go
+4
-4
No files found.
pkg/volume/glusterfs/glusterfs.go
View file @
7755286f
...
@@ -261,7 +261,7 @@ func (b *glusterfsMounter) SetUp(fsGroup *int64) error {
...
@@ -261,7 +261,7 @@ func (b *glusterfsMounter) SetUp(fsGroup *int64) error {
func
(
b
*
glusterfsMounter
)
SetUpAt
(
dir
string
,
fsGroup
*
int64
)
error
{
func
(
b
*
glusterfsMounter
)
SetUpAt
(
dir
string
,
fsGroup
*
int64
)
error
{
notMnt
,
err
:=
b
.
mounter
.
IsLikelyNotMountPoint
(
dir
)
notMnt
,
err
:=
b
.
mounter
.
IsLikelyNotMountPoint
(
dir
)
glog
.
V
(
4
)
.
Infof
(
"glusterfs: mount set
up: %s %v %v"
,
dir
,
!
notMnt
,
err
)
glog
.
V
(
4
)
.
Infof
(
"glusterfs: mount setup: %s %v %v"
,
dir
,
!
notMnt
,
err
)
if
err
!=
nil
&&
!
os
.
IsNotExist
(
err
)
{
if
err
!=
nil
&&
!
os
.
IsNotExist
(
err
)
{
return
err
return
err
}
}
...
@@ -309,7 +309,7 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
...
@@ -309,7 +309,7 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
p
:=
path
.
Join
(
b
.
glusterfs
.
plugin
.
host
.
GetPluginDir
(
glusterfsPluginName
),
b
.
glusterfs
.
volName
)
p
:=
path
.
Join
(
b
.
glusterfs
.
plugin
.
host
.
GetPluginDir
(
glusterfsPluginName
),
b
.
glusterfs
.
volName
)
if
err
:=
os
.
MkdirAll
(
p
,
0750
);
err
!=
nil
{
if
err
:=
os
.
MkdirAll
(
p
,
0750
);
err
!=
nil
{
return
fmt
.
Errorf
(
"glusterfs:
mkdir failed: %v"
,
err
)
return
fmt
.
Errorf
(
"glusterfs:
Error creating directory %v: %v"
,
p
,
err
)
}
}
// adding log-level ERROR to remove noise
// adding log-level ERROR to remove noise
...
@@ -681,7 +681,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
...
@@ -681,7 +681,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
glog
.
V
(
4
)
.
Infof
(
"glusterfs: not able to parse your claim Selector"
)
glog
.
V
(
4
)
.
Infof
(
"glusterfs: not able to parse your claim Selector"
)
return
nil
,
fmt
.
Errorf
(
"glusterfs: not able to parse your claim Selector"
)
return
nil
,
fmt
.
Errorf
(
"glusterfs: not able to parse your claim Selector"
)
}
}
glog
.
V
(
4
)
.
Infof
(
"glusterfs: Provison VolumeOptions %v"
,
p
.
options
)
glog
.
V
(
4
)
.
Infof
(
"glusterfs: Provis
i
on VolumeOptions %v"
,
p
.
options
)
scName
:=
v1helper
.
GetPersistentVolumeClaimClass
(
p
.
options
.
PVC
)
scName
:=
v1helper
.
GetPersistentVolumeClaimClass
(
p
.
options
.
PVC
)
cfg
,
err
:=
parseClassParameters
(
p
.
options
.
Parameters
,
p
.
plugin
.
host
.
GetKubeClient
())
cfg
,
err
:=
parseClassParameters
(
p
.
options
.
Parameters
,
p
.
plugin
.
host
.
GetKubeClient
())
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -711,7 +711,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
...
@@ -711,7 +711,7 @@ func (p *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
}
}
glog
.
Errorf
(
"glusterfs: create volume err: %v."
,
err
)
glog
.
Errorf
(
"glusterfs: create volume err: %v."
,
err
)
return
nil
,
fmt
.
Errorf
(
"glusterfs: create volume err: %v"
,
err
)
return
nil
,
fmt
.
Errorf
(
"glusterfs: create volume err
or
: %v"
,
err
)
}
}
pv
:=
new
(
v1
.
PersistentVolume
)
pv
:=
new
(
v1
.
PersistentVolume
)
pv
.
Spec
.
PersistentVolumeSource
.
Glusterfs
=
glusterfs
pv
.
Spec
.
PersistentVolumeSource
.
Glusterfs
=
glusterfs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment