[Bug 1356850] Comment bridged from LTC Bugzilla
bugproxy
bugproxy at us.ibm.com
Mon Nov 3 06:19:28 UTC 2014
------- Comment From hegdevasant at in.ibm.com 2014-11-03 06:14 EDT-------
Upstream commit:
commit 95596ab7764f294d5755756ba097159774f5a7bb
Author: Nathan Fontenot <nfont at linux.vnet.ibm.com>
Date: Mon Oct 20 09:35:51 2014 -0400
snap: Display message for Ubuntu platform
snap is not supported on the Ubuntu platform hence display
a suitable messsage. Ubuntu users can use log collection tool (apport-collect)
provided by distro.
Signed-off-by: Aruna Balakrishnaiah <aruna at linux.vnet.ibm.com>
Acked-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
diff --git a/scripts/snap b/scripts/snap
index 8f7d9e5..3e547e6 100755
--- a/scripts/snap
+++ b/scripts/snap
@@ -34,6 +34,7 @@ my $outfile = "snap.tar.gz"; # in the working dir.
my $cmddir = "snap_commands"; # cmd output dir.
my $cmdoutdir = "$outdir/$cmddir"; # in outdir dir.
my $rsxx_exists = 0; # Does an IBM Flash Adapter exist?
+my $distro_file = "/etc/issue"
...which is available in powerpc-utils 1.2.23
-Vasant
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to powerpc-ibm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1356850
Title:
using snap with atv option data is not able to collect
Status in “powerpc-ibm-utils” package in Ubuntu:
New
Bug description:
Problem Description
========================
I have installed On PowerKVM Host and top of that host I Install Ubuntu 14.10 LE Guest VM I ran snap command with athv but data is not collected
Reproducible Step:
==================
1-Install a guest as Ubuntu 14.10
2-In Ubuntu 14.10 LE VM try to run snap -athv (as man says)
Actual Result :
not able to collect any data only print help
Expected Results :
it should collect the data and also print help as well
LOG:
praveen at ubuntu:~$ sudo snap -athv
Usage: /usr/sbin/snap [-athv] [-d dir] [-o file]
Command-line parameters:
a: all data; collect detailed information (more files and output)
d dir: specify the directory where files and output will be collected
(default: /tmp/ibmsupt)
o file: specify the output file (.tar required, .tar.gz optional)
(default: snap.tar.gz)
t: add hostname and timestamp to output filename
v: verbose output
h: print this help message
Exit codes (view with "echo $?" immediately after running):
0: snap data was successfully captured
1: invalid command line
2: other fatal error
praveen at ubuntu:~$ echo $?
0
praveen at ubuntu:~$
praveen at ubuntu:~$ ls | grep snap
praveen at ubuntu:~$
== Comment: # - VASANT HEGDE <hegdevasant at in.ibm.com> - ==
We don't support snap on Ubuntu.. and it will be deprecated soon on other platform also..
Instead you should use apport-config (?) from Ubuntu to collect debug info..
But we should display a message saying this command is not supported..
Patch has been posted to powerpc-utils mailing list.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/powerpc-ibm-utils/+bug/1356850/+subscriptions
More information about the foundations-bugs
mailing list