Skip to content
Snippets Groups Projects
  1. Oct 26, 2012
  2. Oct 25, 2012
  3. Oct 24, 2012
  4. Oct 23, 2012
    • Iustin Pop's avatar
      Improve devel/upload command line handling · 68e2ed87
      Iustin Pop authored
      
      To people not used to it, it was completely non-obvious why
      "./devel/upload" didn't do anything.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      68e2ed87
    • Iustin Pop's avatar
      Improve logging of AssertionErrors · b183c4a8
      Iustin Pop authored
      
      Currently, when we have an assertion error raised from cmdlib, it looks like this:
      
        [cluster] root@node4:~# gnt-instance grow-disk instance1 0 1G
        Failure: command execution error:
      
      This is very very confusing. This patch adds a bit of traceback
      formatting to improve this as follows:
      
        [cluster] root@node4:~# gnt-instance grow-disk instance1 0 1G
        Failure: command execution error:
        Internal assertion error: please report this as a bug.
        Error message: ''; location:
          File "/usr/lib/python2.6/dist-packages/ganeti/cmdlib.py", line 11954, in CheckPrereq
            assert False
      
      This is not perfect, but at least it shows better what the problem is.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      b183c4a8
Loading