[ovs-dev] [ovs-bugtool 4/4] ovs-bugtool: Dump dpkg-related information as well as RPM-related info.

Ethan Jackson ethan at nicira.com
Tue Jul 12 01:32:41 UTC 2011


Seems fine assuming you tried it.

Ethan

On Thu, Jun 30, 2011 at 14:57, Ben Pfaff <blp at nicira.com> wrote:
> ---
>  utilities/ovs-bugtool |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/utilities/ovs-bugtool b/utilities/ovs-bugtool
> index f5fdb00..40dbb6c 100755
> --- a/utilities/ovs-bugtool
> +++ b/utilities/ovs-bugtool
> @@ -67,6 +67,8 @@ OS_RELEASE = platform.release()
>  # Files & directories
>  #
>
> +APT_SOURCES_LIST = "/etc/apt/sources.list"
> +APT_SOURCES_LIST_D = "/etc/apt/sources.list.d"
>  BUG_DIR = "/var/log/ovs-bugtool"
>  PLUGIN_DIR = "/etc/openvswitch/bugtool"
>  GRUB_CONFIG = '/boot/grub/menu.lst'
> @@ -143,6 +145,7 @@ DF = 'df'
>  DMESG = 'dmesg'
>  DMIDECODE = 'dmidecode'
>  DMSETUP = 'dmsetup'
> +DPKG_QUERY = 'dpkg-query'
>  ETHTOOL = 'ethtool'
>  FDISK = 'fdisk'
>  FIND = 'find'
> @@ -633,6 +636,9 @@ exclude those logs from the archive.
>     file_output(CAP_YUM, [YUM_LOG])
>     tree_output(CAP_YUM, YUM_REPOS_DIR)
>     cmd_output(CAP_YUM, [RPM, '-qa'])
> +    file_output(CAP_YUM, [APT_SOURCES_LIST])
> +    tree_output(CAP_YUM, APT_SOURCES_LIST_D)
> +    cmd_output(CAP_YUM, [DPKG_QUERY, '-W', '-f=${Package} ${Version} ${Status}\n'], 'dpkg-packages')
>
>     try:
>         load_plugins()
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list