diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-24 09:12:20 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-24 09:12:20 -0700 |
commit | 8c0697b5b5c1c666f84622f632936c96b78d0efe (patch) | |
tree | d24346350b44032f4685805faec9d1ab6cd72577 | |
parent | 6bca3f1426f611e4bf5ac439129498664f672eb1 (diff) | |
parent | 2f8257eb1c58f04874ee8f85c6ae1c88d7a9a549 (diff) | |
download | vyatta-cfg-8c0697b5b5c1c666f84622f632936c96b78d0efe.tar.gz vyatta-cfg-8c0697b5b5c1c666f84622f632936c96b78d0efe.zip |
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg into jenner
-rw-r--r-- | debian/changelog | 11 | ||||
-rwxr-xr-x | scripts/vyatta-cfg-cmd-wrapper | 5 | ||||
-rwxr-xr-x | scripts/vyatta-config-loader.pl | 11 |
3 files changed, 20 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog index f099b5e..ee2b201 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +vyatta-cfg (0.14.67) unstable; urgency=low + + [ Stephen Hemminger ] + * Fix vyatta-interfaces + + [ Stig Thormodsrud ] + * Add some debug files to help diagnose boot issue with new cli + ordering. + + -- Stig Thormodsrud <stig@vyatta.com> Tue, 21 Apr 2009 17:30:22 -0700 + vyatta-cfg (0.14.66) unstable; urgency=low * Move disable-link-detect from vytta-cfg-quagga to here diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper index e994742..144fc2a 100755 --- a/scripts/vyatta-cfg-cmd-wrapper +++ b/scripts/vyatta-cfg-cmd-wrapper @@ -80,7 +80,10 @@ case "$1" in RET_STATUS=$? ;; commit) - /opt/vyatta/sbin/my_commit + # debug file /tmp/bar should be deleted before release + /opt/vyatta/sbin/my_commit -a >> /tmp/bar + /opt/vyatta/sbin/my_commit -s >> /tmp/bar + /opt/vyatta/sbin/my_commit -e -d >> /tmp/bar RET_STATUS=$? ;; save) diff --git a/scripts/vyatta-config-loader.pl b/scripts/vyatta-config-loader.pl index 35ca145..a32d1fc 100755 --- a/scripts/vyatta-config-loader.pl +++ b/scripts/vyatta-config-loader.pl @@ -66,8 +66,6 @@ if ($? >> 8) { } #cmd below is added to debug last set of command ordering -my $commit_cmd_debug_noop = "$CWRAPPER commit -a > /tmp/bar"; -my $commit_cmd_debug = "$CWRAPPER commit -d"; my $commit_cmd = "$CWRAPPER commit"; my $cleanup_cmd = "$CWRAPPER cleanup"; my $ret = 0; @@ -86,6 +84,8 @@ foreach (@all_nodes) { $cur_rank = $rank; } my $cmd = "$CWRAPPER set " . (join ' ', @$path_ref); + # this debug file should be deleted before release + system("echo [$cmd] >> /tmp/foo"); $ret = system("$cmd"); if ($ret >> 8) { $cmd =~ s/^.*?set /set /; @@ -94,11 +94,10 @@ foreach (@all_nodes) { # continue after set failure (or should we abort?) } } -system("$commit_cmd_debug_noop"); -$ret = system("$commit_cmd_debug"); +$ret = system("$commit_cmd"); if ($ret >> 8) { - print OLDOUT "Commit failed at rank $cur_rank\n"; - print WARN "Commit failed at rank $cur_rank\n"; + print OLDOUT "Commit failed at boot\n"; + print WARN "Commit failed at boot\n"; system("$cleanup_cmd"); # exit normally after cleanup (or should we exit with error?) } |