Last change
on this file since 2658 was
1984,
checked in by broder, 16 years ago
|
Shorten the timeout for when queued requests get punted to the next
level up (i.e. multipath)
|
-
Property svn:executable set to
*
|
File size:
834 bytes
|
Rev | Line | |
---|
[1496] | 1 | #!/usr/bin/perl -n |
---|
| 2 | BEGIN { |
---|
| 3 | print <<'EOF'; |
---|
| 4 | <% |
---|
| 5 | from invirt.config import structs as cfg |
---|
| 6 | %> |
---|
| 7 | EOF |
---|
| 8 | } |
---|
| 9 | |
---|
[1984] | 10 | s/^node\.startup = manual/node.startup = automatic/m; |
---|
[1496] | 11 | # mako just generally doesn't deal well with lines that start with |
---|
| 12 | # hashes, so we'll strip them |
---|
| 13 | # |
---|
| 14 | # And empty lines too, just for cleanliness |
---|
| 15 | s/^#.*$//m; |
---|
[1984] | 16 | |
---|
| 17 | # This is how long requests will sit in the queue before being failed |
---|
| 18 | # up to the next layer (i.e. multipath) |
---|
| 19 | s/^#?(node\.session\.timeo\.replacement_timeout).*$/\1 = 15/m; |
---|
[1496] | 20 | print unless /^$/; |
---|
| 21 | |
---|
| 22 | END { |
---|
| 23 | print <<'EOF'; |
---|
| 24 | node.session.auth.authmethod = CHAP |
---|
| 25 | node.session.auth.username = ${cfg.iscsi.username} |
---|
| 26 | node.session.auth.password = ${cfg.iscsi.password} |
---|
| 27 | |
---|
| 28 | discovery.sendtargets.auth.authmethod = CHAP |
---|
| 29 | discovery.sendtargets.auth.username = ${cfg.iscsi.username} |
---|
| 30 | discovery.sendtargets.auth.password = ${cfg.iscsi.password} |
---|
| 31 | EOF |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.