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
dfe8e606
Commit
dfe8e606
authored
Jun 22, 2016
by
saadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix device path used by volume WaitForAttach
parent
b7ac841e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
node_status_updater.go
pkg/controller/volume/statusupdater/node_status_updater.go
+1
-0
operation_executor.go
pkg/volume/util/operationexecutor/operation_executor.go
+7
-5
No files found.
pkg/controller/volume/statusupdater/node_status_updater.go
View file @
dfe8e606
...
...
@@ -121,6 +121,7 @@ func (nsu *nodeStatusUpdater) UpdateNodeStatuses() error {
glog
.
V
(
3
)
.
Infof
(
"Updating status for node %q succeeded. patchBytes: %q"
,
nodeName
,
string
(
patchBytes
))
}
return
nil
...
...
pkg/volume/util/operationexecutor/operation_executor.go
View file @
dfe8e606
...
...
@@ -575,11 +575,12 @@ func (oe *operationExecutor) generateMountVolumeFunc(
if
volumeAttacher
!=
nil
{
// Wait for attachable volumes to finish attaching
glog
.
Infof
(
"Entering MountVolume.WaitForAttach for volume %q (spec.Name: %q) pod %q (UID: %q)
.
"
,
"Entering MountVolume.WaitForAttach for volume %q (spec.Name: %q) pod %q (UID: %q)
DevicePath: %q
"
,
volumeToMount
.
VolumeName
,
volumeToMount
.
VolumeSpec
.
Name
(),
volumeToMount
.
PodName
,
volumeToMount
.
Pod
.
UID
)
volumeToMount
.
Pod
.
UID
,
volumeToMount
.
DevicePath
)
devicePath
,
err
:=
volumeAttacher
.
WaitForAttach
(
volumeToMount
.
VolumeSpec
,
volumeToMount
.
DevicePath
,
waitForAttachTimeout
)
...
...
@@ -889,12 +890,13 @@ func (oe *operationExecutor) generateVerifyControllerAttachedVolumeFunc(
for
_
,
attachedVolume
:=
range
node
.
Status
.
VolumesAttached
{
if
attachedVolume
.
Name
==
volumeToMount
.
VolumeName
{
addVolumeNodeErr
:=
actualStateOfWorld
.
MarkVolumeAsAttached
(
volumeToMount
.
VolumeSpec
,
nodeName
,
volumeToMount
.
DevicePath
)
glog
.
Infof
(
"Controller successfully attached volume %q (spec.Name: %q) pod %q (UID: %q)"
,
volumeToMount
.
VolumeSpec
,
nodeName
,
attachedVolume
.
DevicePath
)
glog
.
Infof
(
"Controller successfully attached volume %q (spec.Name: %q) pod %q (UID: %q)
devicePath: %q
"
,
volumeToMount
.
VolumeName
,
volumeToMount
.
VolumeSpec
.
Name
(),
volumeToMount
.
PodName
,
volumeToMount
.
Pod
.
UID
)
volumeToMount
.
Pod
.
UID
,
attachedVolume
.
DevicePath
)
if
addVolumeNodeErr
!=
nil
{
// On failure, return error. Caller will log and retry.
...
...
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