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
9f97d61d
Unverified
Commit
9f97d61d
authored
Dec 20, 2017
by
Sean McGinnis
Committed by
GitHub
Dec 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed space/tab indentation
Some lines had spaces for indentation instead of tabs.
parent
69a2deea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
iscsi_util.go
pkg/volume/iscsi/iscsi_util.go
+2
-2
No files found.
pkg/volume/iscsi/iscsi_util.go
View file @
9f97d61d
...
@@ -279,8 +279,8 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) {
...
@@ -279,8 +279,8 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) {
lastErr
=
fmt
.
Errorf
(
"iscsi: failed to attach disk: Error: %s (%v)"
,
string
(
out
),
err
)
lastErr
=
fmt
.
Errorf
(
"iscsi: failed to attach disk: Error: %s (%v)"
,
string
(
out
),
err
)
continue
continue
}
}
// in case of node failure/restart, explicitly set to manual login so it doesn't hang on boot
// in case of node failure/restart, explicitly set to manual login so it doesn't hang on boot
out
,
err
=
b
.
exec
.
Run
(
"iscsiadm"
,
"-m"
,
"node"
,
"-p"
,
tp
,
"-T"
,
b
.
Iqn
,
"-o"
,
"update"
,
"node.startup"
,
"-v"
,
"manual"
)
out
,
err
=
b
.
exec
.
Run
(
"iscsiadm"
,
"-m"
,
"node"
,
"-p"
,
tp
,
"-T"
,
b
.
Iqn
,
"-o"
,
"update"
,
"node.startup"
,
"-v"
,
"manual"
)
if
err
!=
nil
{
if
err
!=
nil
{
// don't fail if we can't set startup mode, but log warning so there is a clue
// don't fail if we can't set startup mode, but log warning so there is a clue
glog
.
Warningf
(
"Warning: Failed to set iSCSI login mode to manual. Error: %v"
,
err
)
glog
.
Warningf
(
"Warning: Failed to set iSCSI login mode to manual. Error: %v"
,
err
)
...
...
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