Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-3351

When creating output file for collect_info, create a directory first and then zip the data

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.5
    • Fix Version/s: 1.8.1-release-candidate
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      Description

      Currently, the collect_info creates a zip file of the individual files (membase.log, ns_server.log, stats.log) and when unzipping it, those files are extracted individually which makes it hard to track multiple collect_info files. Please put those into a directory first, and then zip them up so that the expansion will create a separate directory for each collect_info output.

      i.e., A customer runs collect_info on three servers and then sends the 3 different output files (info1.zip, info2.zip, info3.zip) to support. Support then expands each of these files and there is no way to determine which infox.zip the files came from since they are all expanded into the same directory

      Let me know if this makes sense...

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-3351=message:MB-3351

        Activity

        Hide
        perry Perry Krug added a comment -

        command being run: /opt/membase/bin/ns_server/collect_info collect_info
        Create a zip file called: collect_info.zip
        Inside zip file have a directory called collect_info<timestamp>
        Inside directory has membase.log, stats.log, ns_server.log

        Show
        perry Perry Krug added a comment - command being run: /opt/membase/bin/ns_server/collect_info collect_info Create a zip file called: collect_info.zip Inside zip file have a directory called collect_info<timestamp> Inside directory has membase.log, stats.log, ns_server.log
        Hide
        perry Perry Krug added a comment - - edited

        Could we also take the membase.log file, create a directory called 'system_logs' and put the output of each command in a separate file so it's easier to look for something specifically?

        i.e. there would be a file called directory_structure and would contain the output from that command. There would be another file called process_list_snapshot, etc.

        Show
        perry Perry Krug added a comment - - edited Could we also take the membase.log file, create a directory called 'system_logs' and put the output of each command in a separate file so it's easier to look for something specifically? i.e. there would be a file called directory_structure and would contain the output from that command. There would be another file called process_list_snapshot, etc.
        Hide
        perry Perry Krug added a comment -

        A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/9309529

        Show
        perry Perry Krug added a comment - A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/9309529
        Hide
        steve Steve Yen added a comment -
        Show
        steve Steve Yen added a comment - http://review.couchbase.org/16071
        Hide
        steve Steve Yen added a comment -

        The subdir looks has a GMT timestamp'ed name, like...

        root@ubuntu1104-64:/tmp# unzip -l out.zip
        Archive: out.zip
        Length Date Time Name
        --------- ---------- ----- ----
        836279 2012-05-16 05:45 cbcollect_info_20120516-124441/couchbase.log
        23574056 2012-05-16 05:45 cbcollect_info_20120516-124441/ns_server.log
        631249 2012-05-16 05:45 cbcollect_info_20120516-124441/stats.log
        --------- -------
        25041584 3 files

        root@ubuntu1104-64:/tmp# unzip out.zip
        Archive: out.zip
        inflating: cbcollect_info_20120516-124441/couchbase.log
        inflating: cbcollect_info_20120516-124441/ns_server.log
        inflating: cbcollect_info_20120516-124441/stats.log

        Show
        steve Steve Yen added a comment - The subdir looks has a GMT timestamp'ed name, like... root@ubuntu1104-64:/tmp# unzip -l out.zip Archive: out.zip Length Date Time Name --------- ---------- ----- ---- 836279 2012-05-16 05:45 cbcollect_info_20120516-124441/couchbase.log 23574056 2012-05-16 05:45 cbcollect_info_20120516-124441/ns_server.log 631249 2012-05-16 05:45 cbcollect_info_20120516-124441/stats.log --------- ------- 25041584 3 files root@ubuntu1104-64:/tmp# unzip out.zip Archive: out.zip inflating: cbcollect_info_20120516-124441/couchbase.log inflating: cbcollect_info_20120516-124441/ns_server.log inflating: cbcollect_info_20120516-124441/stats.log
        Hide
        steve Steve Yen added a comment -

        Need to double-check that the '/' char zips and unzips correctly on windows.

        Show
        steve Steve Yen added a comment - Need to double-check that the '/' char zips and unzips correctly on windows.
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-ns-server-2-0 #354 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/354/)
        MB-3351: Added subdirectory to cbcollect_info out.zip file (Revision 2d919d5fd5dfc420cbb810d4fd6698ea1f845cdd)

        Result = SUCCESS
        Steve Yen :
        Files :

        • cbcollect_info
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-ns-server-2-0 #354 (See http://qa.hq.northscale.net/job/github-ns-server-2-0/354/ ) MB-3351 : Added subdirectory to cbcollect_info out.zip file (Revision 2d919d5fd5dfc420cbb810d4fd6698ea1f845cdd) Result = SUCCESS Steve Yen : Files : cbcollect_info
        Hide
        wen01 zheng zheng (Inactive) added a comment -

        Lu provided by the 09 series in a warm summer morning coastline, <strong><a href="http://www.replicawatchesale1.com/">Replica Rolex</a></strong> think. Surprisingly, the temperature, one mile one mile natural sand, <strong><a href="http://www.popreplicabags.com/">Replica Handbags</a></strong> part of the vast expanse of water, heat the coast of the pie, Ipanema beach on the beautiful landscape diversity. We will conduct our bathing suits, sunglasses, bags, bracelets, links ... <strong><a href="http://www.popreplicabags.com/">Louis Vuitton Handbags</a></strong> whatever you bring you to enjoy your glorious period. Of course, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-speedy-c-1_2_33.html">Louis Vuitton Speedy</a></strong> the most important commodity on the beach, so the need for frequent bag, we can easily invest in those clothes, as well as with spicy each of us demonstrators, Cabas the same time.Your of Ipanema Beach is the main function. very suitable for people who are looking for an exciting beach holiday. The popular and stylish, and definitely should never be a magnificent coastline. As the hot visual appeal, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-neverfull-c-1_2_34.html">Louis Vuitton Neverfull</a></strong> my wife and I almost Tahitienne series supervision concept! <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-alma-c-1_2_35.html">Louis Vuitton Alma</a></strong> Seriously with these people may be very similar, while the spherical design.Take Beach Cabas Ipanema, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-artsy-c-1_2_36.html">Louis Vuitton Artsy</a></strong> a good form of advertising on the Internet. It's just an elegant open-air use of organic cotton bag material, logo, excellent color, fine pleated, tapered basic structure of the management of every detail, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-keepall-c-1_2_37.html">Louis Vuitton Keepall</a></strong> in full compliance with the occasion of your beach.

        Show
        wen01 zheng zheng (Inactive) added a comment - Lu provided by the 09 series in a warm summer morning coastline, <strong><a href="http://www.replicawatchesale1.com/">Replica Rolex</a></strong> think. Surprisingly, the temperature, one mile one mile natural sand, <strong><a href="http://www.popreplicabags.com/">Replica Handbags</a></strong> part of the vast expanse of water, heat the coast of the pie, Ipanema beach on the beautiful landscape diversity. We will conduct our bathing suits, sunglasses, bags, bracelets, links ... <strong><a href="http://www.popreplicabags.com/">Louis Vuitton Handbags</a></strong> whatever you bring you to enjoy your glorious period. Of course, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-speedy-c-1_2_33.html">Louis Vuitton Speedy</a></strong> the most important commodity on the beach, so the need for frequent bag, we can easily invest in those clothes, as well as with spicy each of us demonstrators, Cabas the same time.Your of Ipanema Beach is the main function. very suitable for people who are looking for an exciting beach holiday. The popular and stylish, and definitely should never be a magnificent coastline. As the hot visual appeal, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-neverfull-c-1_2_34.html">Louis Vuitton Neverfull</a></strong> my wife and I almost Tahitienne series supervision concept! <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-alma-c-1_2_35.html">Louis Vuitton Alma</a></strong> Seriously with these people may be very similar, while the spherical design.Take Beach Cabas Ipanema, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-artsy-c-1_2_36.html">Louis Vuitton Artsy</a></strong> a good form of advertising on the Internet. It's just an elegant open-air use of organic cotton bag material, logo, excellent color, fine pleated, tapered basic structure of the management of every detail, <strong><a href="http://www.popreplicabags.com/louis-vuitton-handbags-louis-vuitton-keepall-c-1_2_37.html">Louis Vuitton Keepall</a></strong> in full compliance with the occasion of your beach.

          People

          • Assignee:
            steve Steve Yen
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes