[PATCH] v2v: rhv-upload-plugin: Use BrokenPipeError
by Nir Soffer
With python 3, we have a nicer way to handle socket.error with errno set
to EPIPE (or ESHUTDOWN).
This is also more correct since in some cases (that I could not
reproduce yet with v2v), using e[0] with BrokenPipeError will fail with:
>>> OSError(errno.EPIPE, "Broken pipe")[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'BrokenPipeError' object is not subscriptable
For python 2 e[0] seems to work, but is leftover from historic python
version that used to raise a tuple instead of socket.error instance.
In python 2.7 library code e.args[0] is used. If we ever port this to
python 2 this is the best form.
---
v2v/rhv-upload-plugin.py | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index b5dd5521d..5cd6d5cab 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -17,7 +17,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import builtins
-import errno
import json
import logging
import socket
@@ -361,9 +360,8 @@ def pwrite(h, buf, offset):
try:
http.send(buf)
- except socket.error as e:
- if e[0] != errno.EPIPE:
- raise
+ except BrokenPipeError:
+ pass
r = http.getresponse()
if r.status != 200:
@@ -425,9 +423,8 @@ def emulate_zero(h, count, offset):
http.send(buf)
count -= len(buf)
http.send(buffer(buf, 0, count))
- except socket.error as e:
- if e[0] != errno.EPIPE:
- raise
+ except BrokenPipeError:
+ pass
r = http.getresponse()
if r.status != 200:
--
2.17.1
6 years, 1 month
ANNOUNCE: nbdkit 1.6 - an NBD server toolkit with stable plugin API and permissive license
by Richard W.M. Jones
NBD — Network Block Device — is a protocol for accessing Block Devices
(hard disks and disk-like things) over a Network. nbdkit is a toolkit
for creating NBD servers.
The key features are:
* Multithreaded NBD server written in C with good performance.
* Minimal dependencies for the basic server.
* Liberal license (BSD) allows nbdkit to be linked to proprietary
libraries or included in proprietary code.
* Well-documented, simple plugin API with a stable ABI guarantee.
Lets you export “unconventional” block devices easily.
* You can write plugins in C, [new!] Lua, Perl, Python, OCaml, Ruby or Tcl.
* Filters can be stacked in front of plugins to transform the output.
https://github.com/libguestfs/nbdkit
http://download.libguestfs.org/nbdkit/1.6-stable/
(other downloads: http://download.libguestfs.org/nbdkit/ )
New in the 1.6 release:
* You can now write plugins in the Lua scripting language.
* nbdkit and common plugins are now "63 bit clean": the maximum disk
size supported is 2^63-1 bytes, and the core server and plugins now
have additional tests to check this works, even on 32 bit machines.
* Multiple improvements to the ‘file’ plugin to make zeroing and
trimming perform better, work correctly with block devices, and
work on older Linux kernels [Nir Soffer, Eric Blake].
* New ‘pattern’ plugin generates a simple, fixed test pattern for
testing nbdkit filters and NBD clients.
* New ‘truncate’ filter can: truncate or extend the size of plugins,
or round up or down the size to next multiple of a power of 2.
Useful for NBD clients like qemu which can only handle NBD sizes
which are a multiple of 512 bytes.
* New ‘error’ filter which can be used to inject errors into the
protocol for testing how clients can handle and recover from
errors.
* New ‘data’ plugin allows you to specify (small) disk images
directly on the command line.
* Enhanced error reporting in the Python plugin so full tracebacks
from errors are now displayed instead of being lost as before.
* NBD_OPT_GO now supported, so we can return errors when negotiating
the export name.
* Support for logging error messages to syslog.
* nbdkit can now be compiled with Clang (as well as GCC).
* nbdkit can now be compiled on FreeBSD.
* The VDDK plugin is compiled unconditionally. You no longer need to
install the proprietary VDDK to compile it.
* Debug messages now include the name of the filter when invoked from
a filter context.
* Debug flags (-D option) provides lightweight debugging for plugin
authors.
Thanks to all who contributed, especially Nir Soffer and Eric Blake.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
6 years, 1 month
[PATCH] ppc64le: Don't use -cpu parameter under any circumstances (RHBZ#1605071).
by Richard W.M. Jones
---
lib/appliance-cpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c
index a6c1b0faf..fa1bae3f9 100644
--- a/lib/appliance-cpu.c
+++ b/lib/appliance-cpu.c
@@ -76,6 +76,9 @@ guestfs_int_get_cpu_model (int kvm)
return "host";
else
return "cortex-a57";
+#elif defined(__powerpc64__)
+ /* See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1605071 */
+ return NULL;
#else
/* On most architectures, it is faster to pass the CPU host model to
* the appliance, allowing maximum speed for things like checksums
--
2.18.0
6 years, 1 month
libguestfs:error
by 梦之痕
[BEGIN] 2018/8/24 16:57:41
[root@localhost puduct]# guestmount -v --rw -a /home/kvmsystem/VSOS_2G.qcow2 -m /dev/sda1 /mnt/ids/
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x7f243deb9920, program = guestmount
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_recovery_proc false
libguestfs: trace: set_recovery_proc = 0
libguestfs: trace: add_drive "/home/kvmsystem/VSOS_2G.qcow2"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 10, extra: rhel=7,release=6.el7_5.2,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=guestmount
libguestfs: launch: version=1.36.10rhel=7,release=6.el7_5.2,libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=libvirt
libguestfs: launch: tmpdir=/tmp/libguestfsLSYo6J
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 3009000 (3.9.0)
libguestfs: guest random name = guestfs-hkjc4dvtvsnpu93p
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x7f243deba2d0
libguestfs: qemu version (reported by libvirt) = 2003000 (2.3.0)
libguestfs: get libvirt capabilities
libguestfs: parsing capabilities XML
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_label"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_imagelabel"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_norelabel_disks"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: build appliance
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin5
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.1.16
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfsLSYo6J/overlay1.qcow2" "qcow2" -1 "backingfile:/var/tmp/.guestfs-0/appliance.d/root" "backingformat:raw"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/var/tmp/.guestfs-0/appliance.d/root,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfsLSYo6J/overlay1.qcow2
Formatting '/tmp/libguestfsLSYo6J/overlay1.qcow2', fmt=qcow2 size=4294967296 backing_file='/var/tmp/.guestfs-0/appliance.d/root' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: set_socket_create_context: getcon failed: (none): Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: create libvirt XML
libguestfs: trace: disk_format "/home/kvmsystem/VSOS_2G.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /dev/fd/9
libguestfs: parse_json: qemu-img info JSON output:\n{\n "snapshots": [\n {\n "vm-clock-nsec": 0, \n "name": "ids", \n "date-sec": 1535096846, \n "date-nsec": 634008000, \n "vm-clock-sec": 0, \n "id": "1", \n "vm-state-size": 0\n }\n ], \n "virtual-size": 2012774400, \n "filename": "/dev/fd/9", \n "cluster-size": 65536, \n "format": "qcow2", \n "actual-size": 1858080768, \n "format-specific": {\n "type": "qcow2", \n "data": {\n "compat": "1.1", \n "lazy-refcounts": false\n }\n }, \n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: libvirt XML:\n<?xml version="1.0"?>\n<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">\n <name>guestfs-hkjc4dvtvsnpu93p</name>\n <memory unit="MiB">500</memory>\n <currentMemory unit="MiB">500</currentMemory>\n <cpu mode="host-passthrough">\n <model fallback="allow"/>\n </cpu>\n <vcpu>1</vcpu>\n <clock offset="utc">\n <timer name="rtc" tickpolicy="catchup"/>\n <timer name="pit" tickpolicy="delay"/>\n <timer name="hpet" present="no"/>\n </clock>\n <os>\n <type>hvm</type>\n <kernel>/var/tmp/.guestfs-0/appliance.d/kernel</kernel>\n <initrd>/var/tmp/.guestfs-0/appliance.d/initrd</initrd>\n <cmdline>panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm</cmdline>\n <bios useserial="yes"/>\n </os>\n <on_reboot>destroy</on_reboot>\n <devices>\n <rng model="virtio">\n <backend model="random">/dev/urandom</backend>\n </rng>\n <controller type="scsi" index="0" model="virtio-scsi"/>\n <disk device="disk" type="file">\n <source file="/home/kvmsystem/VSOS_2G.qcow2"/>\n <target dev="sda" bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="writeback"/>\n <address type="drive" controller="0" bus="0" target="0" unit="0"/>\n </disk>\n <disk type="file" device="disk">\n <source file="/tmp/libguestfsLSYo6J/overlay1.qcow2"/>\n <target dev="sdb" bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="unsafe"/>\n <address type="drive" controller="0" bus="0" target="1" unit="0"/>\n </disk>\n <serial type="unix">\n <source mode="connect" path="/tmp/libguestfsBnJov1/console.sock"/>\n <target port="0"/>\n </serial>\n <channel type="unix">\n <source mode="connect" path="/tmp/libguestfsBnJov1/guestfsd.sock"/>\n <target type="virtio" name="org.libguestfs.channel.0"/>\n </channel>\n <controller type="usb" model="none"/>\n <memballoon model="none"/>\n </devices>\n <qemu:commandline>\n <qemu:env name="TMPDIR" value="/var/tmp"/>\n </qemu:commandline>\n</domain>\n
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -R
libguestfs: command: run: \ -Z /var/tmp/.guestfs-0
libguestfs: /var/tmp/.guestfs-0:
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxrwxrwt. root root system_u:object_r:unlabeled_t:s0 ..
libguestfs: drwxr-xr-x root root ? appliance.d
libguestfs: -rw-r--r-- root root ? lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxr-xr-x root root ? ..
libguestfs: -rw-r--r-- qemu qemu ? initrd
libguestfs: -rw-r--r-- qemu qemu ? kernel
libguestfs: -rw-r--r-- qemu qemu ? root
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -Z /tmp/libguestfsBnJov1
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxrwxrwx. root root system_u:object_r:-R:s0 ..
libguestfs: srw-rw---- root qemu ? console.sock
libguestfs: srw-rw---- root qemu ? guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: responding to serial console Device Status Report
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 06/09/14
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild@) Mon Jun 9 21:33:48 UTC 2014
Term: 80x24
4 0
SeaBIOS (version seabios-1.7.5-11.el7)
Machine UUID 5a43225b-ff97-459a-893d-5eab43fa358f
Booting from ROM...
\x1b[2J[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.24 (root(a)apt2050build.localdomain) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #6 SMP Mon Jan 9 23:44:35 CST 2017
[ 0.000000] Command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001f3fffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.4 present.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] e820: last_pfn = 0x1f400 max_arch_pfn = 0x400000000
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] found SMP MP-table at [mem 0x000f2000-0x000f200f] mapped at [ffff8800000f2000]
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[ 0.000000] init_memory_mapping: [mem 0x1d600000-0x1d7fffff]
[ 0.000000] init_memory_mapping: [mem 0x1c000000-0x1d5fffff]
[ 0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff]
[ 0.000000] init_memory_mapping: [mem 0x1d800000-0x1f3fffff]
[ 0.000000] RAMDISK: [mem 0x1d9b1000-0x1f3effff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI BIOS Error (bug): A valid RSDP was not found (20140926/tbxfroot-243)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3fffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x1d99d000-0x1d9b0fff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:1f3fe001, primary cpu clock
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00001000-0x00ffffff]
[ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00001000-0x0009efff]
[ 0.000000] node 0: [mem 0x00100000-0x1f3fffff]
[ 0.000000] Initmem setup node 0 [mem 0x00001000-0x1f3fffff]
[ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[ 0.000000] Intel MultiProcessor Specification v1.4
[ 0.000000] MPTABLE: OEM ID: BOCHSCPU
[ 0.000000] MPTABLE: Product ID: 0.1
[ 0.000000] MPTABLE: APIC at: 0xFEE00000
[ 0.000000] Processor #0 (Bootup-CPU)
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] Processors: 1
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x1f400000-0xfeffbfff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 29 pages/cpu @ffff88001d600000 s81600 r8192 d28992 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 1d60d080
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 125881
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
[ 0.000000] Disabling memory control group subsystem
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340 using standard form
[ 0.000000] Memory: 460908K/511608K available (8477K kernel code, 1183K rwdata, 2812K rodata, 1496K init, 1068K bss, 50700K reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] \tRCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] \tRCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:8448 nr_irqs:256 0
[ 0.000000] \tOffload RCU callbacks from all CPUs
[ 0.000000] \tOffload RCU callbacks from CPUs: 0.
[ 0.000000] Console: colour *CGA 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] tsc: Detected 2599.996 MHz processor
[ 0.002000] Calibrating delay loop (skipped) preset value.. 5199.99 BogoMIPS (lpj=2599996)
[ 0.002000] pid_max: default: 32768 minimum: 301
[ 0.002022] Security Framework initialized
[ 0.002304] SELinux: Disabled at boot.
[ 0.002591] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.003082] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.003587] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.004539] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.005116] Initializing cgroup subsys memory
[ 0.005500] Initializing cgroup subsys devices
[ 0.005793] Initializing cgroup subsys freezer
[ 0.006004] Initializing cgroup subsys net_cls
[ 0.006350] Initializing cgroup subsys blkio
[ 0.006677] Initializing cgroup subsys perf_event
[ 0.007004] Initializing cgroup subsys net_prio
[ 0.007352] Initializing cgroup subsys hugetlb
[ 0.008756] mce: CPU supports 10 MCE banks
[ 0.009040] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.009040] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.019201] Freeing SMP alternatives memory: 28K (ffffffff81da8000 - ffffffff81daf000)
[ 0.022173] ftrace: allocating 30044 entries in 118 pages
[ 0.029166] Enabling x2apic
[ 0.029371] Enabled x2apic
[ 0.030003] Switched APIC routing to physical x2apic.
[ 0.031416] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.031814] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz (fam: 06, model: 3f, stepping: 02)
[ 0.032531] Performance Events: 16-deep LBR, Haswell events, Intel PMU driver.
[ 0.033000] ... version: 2
[ 0.033000] ... bit width: 48
[ 0.033003] ... generic registers: 4
[ 0.033286] ... value mask: 0000ffffffffffff
[ 0.033633] ... max period: 000000007fffffff
[ 0.033975] ... fixed-purpose events: 3
[ 0.034004] ... event mask: 000000070000000f
[ 0.035430] x86: Booted up 1 node, 1 CPUs
[ 0.035698] smpboot: Total of 1 processors activated (5199.99 BogoMIPS)
[ 0.036212] devtmpfs: initialized
[ 0.038490] xor: automatically using best checksumming function:
[ 0.048002] avx : 29472.000 MB/sec
[ 0.048291] atomic64_test: passed for x86-64 platform with CX8 and with SSE
[ 0.048729] pinctrl core: initialized pinctrl subsystem
[ 0.049100] RTC time: 8:57:50, date: 08/24/18
[ 0.049527] NET: Registered protocol family 16
[ 0.049928] cpuidle: using governor menu
[ 0.050217] PCI: Using configuration type 1 for base access
[ 0.068002] raid6: sse2x1 9531 MB/s
[ 0.085004] raid6: sse2x2 11812 MB/s
[ 0.102006] raid6: sse2x4 13945 MB/s
[ 0.119004] raid6: avx2x1 18343 MB/s
[ 0.136004] raid6: avx2x2 21230 MB/s
[ 0.153002] raid6: avx2x4 24988 MB/s
[ 0.153250] raid6: using algorithm avx2x4 (24988 MB/s)
[ 0.153571] raid6: using avx2x2 recovery algorithm
[ 0.153902] ACPI: Interpreter disabled.
[ 0.154070] vgaarb: loaded
[ 0.154348] SCSI subsystem initialized
[ 0.154649] usbcore: registered new interface driver usbfs
[ 0.155005] usbcore: registered new interface driver hub
[ 0.155482] usbcore: registered new device driver usb
[ 0.155905] PCI: Probing PCI hardware
[ 0.156029] PCI host bridge to bus 0000:00
[ 0.156382] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.156842] pci_bus 0000:00: root bus resource [mem 0x00000000-0x3fffffffffff]
[ 0.157004] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.161655] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.162003] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.162386] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.162942] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.180713] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.181148] NetLabel: Initializing
[ 0.181360] NetLabel: domain hash size = 128
[ 0.181645] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.182012] NetLabel: unlabeled traffic allowed by default
[ 0.182433] Switched to clocksource kvm-clock
[ 0.186095] pnp: PnP ACPI: disabled
[ 0.187142] NET: Registered protocol family 2
[ 0.187614] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.188116] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.188597] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.188991] TCP: reno registered
[ 0.189194] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.189630] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.190075] NET: Registered protocol family 1
[ 0.190368] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.190799] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.191158] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.192010] Unpacking initramfs...
[ 0.208367] Freeing initrd memory: 26876K (ffff88001d9b1000 - ffff88001f3f0000)
[ 0.208955] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.209492] microcode: CPU0 sig=0x306f2, pf=0x1, revision=0x1
[ 0.210013] microcode: Microcode Update Driver: v2.00 <tigran(a)aivazian.fsnet.co.uk>, Peter Oruba
[ 0.210651] AVX2 version of gcm_enc/dec engaged.
[ 0.211007] AES CTR mode by8 optimization enabled
[ 0.211484] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[ 0.212214] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.212608] Initialise system trusted keyring
[ 0.212885] audit: initializing netlink subsys (disabled)
[ 0.213316] audit: type=2000 audit(1535101070.868:1): initialized
[ 0.213900] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.215411] zpool: loaded
[ 0.215584] zbud: loaded
[ 0.215875] VFS: Disk quotas dquot_6.5.2
[ 0.216156] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.216849] msgmni has been set to 952
[ 0.217139] Key type big_key registered
[ 0.217723] alg: No test for stdrng (krng)
[ 0.218068] NET: Registered protocol family 38
[ 0.218384] async_tx: api initialized (async)
[ 0.218660] Key type asymmetric registered
[ 0.218949] Asymmetric key parser 'x509' registered
[ 0.219366] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.219822] io scheduler noop registered
[ 0.220263] io scheduler deadline registered
[ 0.220553] io scheduler cfq registered (default)
[ 0.220900] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.221339] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.221914] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 25
[ 0.223388] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 25
[ 0.224372] virtio-pci 0000:00:05.0: PCI->APIC IRQ transform: INT A -> IRQ 24
[ 0.225430] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.247029] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.247749] Non-volatile memory driver v1.3
[ 0.248017] Linux agpgart interface v0.103
[ 0.248375] [drm] Initialized drm 1.1.0 20060810
[ 0.248743] Guest personality initialized and is inactive
[ 0.249105] VMCI host device registered (name=vmci, major=10, minor=62)
[ 0.249569] Initialized host personality
[ 0.249843] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
[ 0.250305] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
[ 0.250850] megasas: 06.805.06.00-rc1 Thu. Sep. 4 17:00:00 PDT 2014
[ 0.251242] mpt2sas version 18.100.00.00 loaded
[ 0.251553] mpt3sas version 04.100.00.00 loaded
[ 0.252408] scsi host0: Virtio SCSI HBA
[ 0.254329] VMware PVSCSI driver - version 1.0.5.0-k
[ 0.254704] scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 1.5. PQ: 0 ANSI: 5
[ 0.256172] scsi 0:0:1:0: Direct-Access QEMU QEMU HARDDISK 1.5. PQ: 0 ANSI: 5
[ 0.256915] scsi host1: ata_piix
[ 0.257262] scsi host2: ata_piix
[ 0.257600] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc080 irq 14
[ 0.258048] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc088 irq 15
[ 0.258566] libphy: Fixed MDIO Bus: probed
[ 0.258988] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.259458] ehci-pci: EHCI PCI platform driver
[ 0.259921] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.260380] ohci-pci: OHCI PCI platform driver
[ 0.260776] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.261327] usbcore: registered new interface driver usbserial
[ 0.262065] usbcore: registered new interface driver usbserial_generic
[ 0.262555] usbserial: USB Serial support registered for generic
[ 0.263020] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.264679] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.265040] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.265522] mousedev: PS/2 mouse device common for all mice
[ 0.266140] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.268107] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.268596] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 0.269092] md: raid0 personality registered for level 0
[ 0.269584] md: raid1 personality registered for level 1
[ 0.269988] md: raid10 personality registered for level 10
[ 0.270478] md: raid6 personality registered for level 6
[ 0.270884] md: raid5 personality registered for level 5
[ 0.271203] md: raid4 personality registered for level 4
[ 0.271659] device-mapper: uevent: version 1.0.3
[ 0.272070] device-mapper: ioctl: 4.28.0-ioctl (2014-09-17) initialised: dm-devel(a)redhat.com
[ 0.272860] device-mapper: raid: Loading target version 1.6.0
[ 0.273374] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.274063] usbcore: registered new interface driver usbhid
[ 0.274430] usbhid: USB HID core driver
[ 0.274791] drop_monitor: Initializing network drop monitor service
[ 0.275430] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.275948] TCP: cubic registered
[ 0.276208] Initializing XFRM netlink socket
[ 0.276789] NET: Registered protocol family 10
[ 0.277534] mip6: Mobile IPv6
[ 0.277725] NET: Registered protocol family 17
[ 0.278531] Loading compiled-in X.509 certificates
[ 0.279646] Loaded X.509 cert 'Magrathea: Glacier signing key: 3eebbbadc3f26af1e0e934f81a18bf4c578bd268'
[ 0.280317] registered taskstats version 1
[ 0.281101] Magic number: 14:106:979
[ 0.281406] rtc_cmos rtc_cmos: setting system clock to 2018-08-24 08:57:50 UTC (1535101070)
[ 0.281982] Warning: unable to open an initial console.
[ 0.286872] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 0.287321] sd 0:0:1:0: Attached scsi generic sg1 type 0
[ 0.287736] sd 0:0:0:0: [sda] 3931200 512-byte logical blocks: (2.01 GB/1.87 GiB)
[ 0.288298] sd 0:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[ 0.288906] sd 0:0:0:0: [sda] Write Protect is off
[ 0.289446] sd 0:0:1:0: [sdb] Write Protect is off
[ 0.289841] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.290548] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.291919] sda: sda1
[ 0.292216] sdb: unknown partition table
[ 0.292755] sd 0:0:0:0: [sda] Attached SCSI disk
[ 0.293160] sd 0:0:1:0: [sdb] Attached SCSI disk
[ 0.416235] Freeing unused kernel memory: 1496K (ffffffff81c32000 - ffffffff81da8000)
[ 0.417975] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.419062] crc32_pclmul: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.420284] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.421374] crc32c_intel: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.422537] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.423615] crct10dif_pclmul: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.424732] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.425829] crc32: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.428623] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.429493] libata: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.430592] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.431584] ata_piix: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.432437] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.433352] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.434162] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.435045] virtio_ring: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.435940] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.436815] virtio_blk: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.437643] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.438525] virtio_rng: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.439451] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.440336] virtio_console: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.444258] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.445133] ide_core: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.446292] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.447147] piix: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.448059] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.449452] virtio_net: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.450466] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.451237] sd_mod: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.451955] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.452711] virtio_scsi: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.453518] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.454221] virtio_balloon: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.455018] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.455794] virtio_mmio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.456498] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.457283] virtio_pci: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.458615] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.459434] jbd2: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.460163] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.460883] mbcache: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.467732] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.468488] ext4: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.469610] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.470337] crc_ccitt: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.470981] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.471754] crc_itu_t: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.472617] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.473300] crc8: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.474002] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.474711] libcrc32c: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.475687] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[ 0.479910] EXT4-fs (sdb): mounted filesystem without journal. Opts:
[ 0.527778] random: dd urandom read with 42 bits of entropy available
[ 0.546325] systemd-udevd[97]: starting version 219
[ 0.550735] systemd-udevd[97]: specified group 'input' unknown
[ 0.634120] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.635130] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.641692] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.642618] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.643884] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.644791] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.688688] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.689457] pcspkr: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.693845] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.694626] cryptd: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.705484] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.706253] serio_raw: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.708378] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.709142] serio_raw: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.712614] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.713378] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.714885] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.715669] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.717467] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.718228] virtio: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.743949] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.744721] cryptd: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.775963] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.776730] crc32c_intel: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.780268] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.781038] sd_mod: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.784113] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.784869] sd_mod: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.795384] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.796160] crc32_pclmul: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.815841] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.816616] crct10dif_pclmul: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.833484] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.834255] intel_powerclamp: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.844734] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.845509] intel_rapl: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.895302] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.896081] ide_core: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.986385] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 0.991963] ide_core: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 0.997410] random: nonblocking pool is initialized
[ 1.056313] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 1.057079] libata: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 1.097567] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
[ 1.113583] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 1.114335] libata: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 1.168391] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 1.169139] libata: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 1.222872] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 1.223588] libata: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 1.286620] Request for unknown module key 'Magrathea: Glacier signing key: 80d55ddb6dbcf79c20809495e07585d5fa97cbc7' err -11
[ 1.287360] dm_mod: version magic '3.18.24 SMP mod_unload modversions ' should be '3.18.24 SMP mod_unload '
[ 1.339461] Unregister pv shared memory for cpu 0
[ 1.340183] sd 0:0:1:0: [sdb] Synchronizing SCSI cache
[ 1.340945] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1.342250] reboot: Restarting system
[ 1.342753] reboot: machine restart
libguestfs: error: error reading console messages from the appliance: Connection reset by peer
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x7f243deb9920 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsLSYo6J
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsBnJov1
[END] 2018/8/24 16:57:50
6 years, 1 month
[PATCH 1/2] mltools: JSON: add json_parser_tree_parse_file
by Pino Toscano
Easy way to parse JSON from a file, without reading it all to string
first.
---
common/mltools/JSON_parser-c.c | 25 +++++++++++++++++++++++++
common/mltools/JSON_parser.ml | 1 +
common/mltools/JSON_parser.mli | 3 +++
common/mltools/JSON_parser_tests.ml | 23 +++++++++++++++++++++++
4 files changed, 52 insertions(+)
diff --git a/common/mltools/JSON_parser-c.c b/common/mltools/JSON_parser-c.c
index e10a2b69d..be1f011d1 100644
--- a/common/mltools/JSON_parser-c.c
+++ b/common/mltools/JSON_parser-c.c
@@ -37,6 +37,7 @@
#define JSON_DICT_TAG 5
value virt_builder_json_parser_tree_parse (value stringv);
+value virt_builder_json_parser_tree_parse_file (value stringv);
static value
convert_json_t (json_t *val, int level)
@@ -142,3 +143,27 @@ virt_builder_json_parser_tree_parse (value stringv)
CAMLreturn (rv);
}
+
+value
+virt_builder_json_parser_tree_parse_file (value filev)
+{
+ CAMLparam1 (filev);
+ CAMLlocal1 (rv);
+ json_t *tree;
+ json_error_t err;
+
+ tree = json_load_file (String_val (filev), JSON_DECODE_ANY, &err);
+ if (tree == NULL) {
+ char buf[1024 + JSON_ERROR_TEXT_LENGTH];
+ if (strlen (err.text) > 0)
+ snprintf (buf, sizeof buf, "%s: JSON parse error: %s", String_val (filev), err.text);
+ else
+ snprintf (buf, sizeof buf, "%s: unknown JSON parse error", String_val (filev));
+ caml_invalid_argument (buf);
+ }
+
+ rv = convert_json_t (tree, 1);
+ json_decref (tree);
+
+ CAMLreturn (rv);
+}
diff --git a/common/mltools/JSON_parser.ml b/common/mltools/JSON_parser.ml
index 642e24d65..7c01ddf04 100644
--- a/common/mltools/JSON_parser.ml
+++ b/common/mltools/JSON_parser.ml
@@ -21,6 +21,7 @@ open Tools_utils
open Common_gettext.Gettext
external json_parser_tree_parse : string -> JSON.json_t = "virt_builder_json_parser_tree_parse"
+external json_parser_tree_parse_file : string -> JSON.json_t = "virt_builder_json_parser_tree_parse_file"
let object_find_optional key = function
| JSON.Dict fields ->
diff --git a/common/mltools/JSON_parser.mli b/common/mltools/JSON_parser.mli
index 5ad0ef017..a62d387cd 100644
--- a/common/mltools/JSON_parser.mli
+++ b/common/mltools/JSON_parser.mli
@@ -19,6 +19,9 @@
val json_parser_tree_parse : string -> JSON.json_t
(** Parse the JSON string. *)
+val json_parser_tree_parse_file : string -> JSON.json_t
+(** Parse the JSON in the specified file. *)
+
val object_get_string : string -> JSON.json_t -> string
(** [object_get_string key yv] gets the value of the [key] field as a string
in the [yv] structure *)
diff --git a/common/mltools/JSON_parser_tests.ml b/common/mltools/JSON_parser_tests.ml
index 024817711..286724616 100644
--- a/common/mltools/JSON_parser_tests.ml
+++ b/common/mltools/JSON_parser_tests.ml
@@ -122,6 +122,28 @@ let test_tree_parse_inspect ctx =
assert_is_number 10_L (List.nth a 2);
assert_is_number 2_L (List.assoc "second" l)
+let test_tree_parse_file_basic ctx =
+ begin
+ let tmpfile, chan = bracket_tmpfile ctx in
+ output_string chan "{}\n";
+ flush chan;
+ close_out chan;
+ let value = json_parser_tree_parse_file tmpfile in
+ assert_is_object value
+ end;
+ begin
+ let tmpfile, chan = bracket_tmpfile ctx in
+ output_string chan "{\"foo\":5}\n";
+ flush chan;
+ close_out chan;
+ let value = json_parser_tree_parse_file tmpfile in
+ let l = get_dict value in
+ assert_equal_int 1 (List.length l);
+ assert_equal_string "foo" (fst (List.hd l));
+ assert_is_number 5_L (snd (List.hd l));
+ end;
+ ()
+
(* Suites declaration. *)
let suite =
"mltools JSON_parser" >:::
@@ -129,6 +151,7 @@ let suite =
"tree_parse.invalid" >:: test_tree_parse_invalid;
"tree_parse.basic" >:: test_tree_parse_basic;
"tree_parse.inspect" >:: test_tree_parse_inspect;
+ "tree_parse_file.basic" >:: test_tree_parse_file_basic;
]
let () =
--
2.17.1
6 years, 1 month
[PATCH] Fix error with --uninstall option on SUSE
by Sebastian Meyer
The `-l` option for some `zypper` subcommands is short for
`--auto-agree-with-licenses` and not available on the `zypper rm` command.
---
customize/customize_run.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
index f92e9a199..3eacdaca0 100644
--- a/customize/customize_run.ml
+++ b/customize/customize_run.ml
@@ -181,7 +181,7 @@ exec >>%s 2>&1
| "urpmi" -> sprintf "urpme %s" quoted_args
| "xbps" -> sprintf "xbps-remove -Sy %s" quoted_args
| "yum" -> sprintf "yum -y remove %s" quoted_args
- | "zypper" -> sprintf "zypper -n rm -l %s" quoted_args
+ | "zypper" -> sprintf "zypper -n rm %s" quoted_args
| "unknown" ->
error_unknown_package_manager (s_"--uninstall")
--
6 years, 1 month
[PATCH v2 0/2] add output selection for --machine-readable
by Pino Toscano
Hi,
this adds the possibility to select the output for --machine-readable
in OCaml tools.
The possible choices are:
* --machine-readable: to stdout, like before
* --machine-readable=file:name-of-file: to the specified file
* --machine-readable=stream:stdout: explicitly to stdout
* --machine-readable=stream:stderr: explicitly to stderr
This makes it possible to add additional output for machine-readable in
the tools, with the possibility for users to get it separately from the
rest of the output/errors of the tool used.
For example, the proposed --print-estimate for virt-v2v [1] could print
human output (just like the --print-source), while printing e.g. JSON to
the machine-readable stream.
[1] https://www.redhat.com/archives/libguestfs/2018-August/msg00158.html
Changes from v1:
- adjusted the formatting for help text in patch #1
- moved all the machine_readable machinery in Tools_utils
- expose all in a single machine_readable () function
- add a test
- add the documentation bits
Thanks,
Pino Toscano (2):
common/mltools: getopt: add Getopt.OptString
OCaml tools: add output selection for --machine-readable
.gitignore | 1 +
builder/cmdline.ml | 16 +++---
builder/repository_main.ml | 6 ++-
builder/virt-builder-repository.pod | 5 ++
builder/virt-builder.pod | 5 ++
common/mlstdutils/std_utils.ml | 4 --
common/mlstdutils/std_utils.mli | 7 +--
common/mltools/Makefile.am | 35 ++++++++++++-
common/mltools/getopt-c.c | 20 ++++++-
common/mltools/getopt.ml | 26 +++++++--
common/mltools/getopt.mli | 4 ++
common/mltools/getopt_tests.ml | 18 ++++++-
common/mltools/machine_readable_tests.ml | 41 +++++++++++++++
common/mltools/test-getopt.sh | 11 ++++
common/mltools/test-machine-readable.sh | 67 ++++++++++++++++++++++++
common/mltools/tools_utils.ml | 53 ++++++++++++++++++-
common/mltools/tools_utils.mli | 10 ++++
dib/cmdline.ml | 8 +--
dib/virt-dib.pod | 5 ++
get-kernel/get_kernel.ml | 6 ++-
get-kernel/virt-get-kernel.pod | 5 ++
lib/guestfs.pod | 30 +++++++++++
resize/resize.ml | 36 ++++++++-----
resize/virt-resize.pod | 5 ++
sparsify/cmdline.ml | 20 +++----
sparsify/copying.ml | 5 +-
sparsify/in_place.ml | 5 +-
sparsify/virt-sparsify.pod | 5 ++
v2v/cmdline.ml | 32 +++++------
v2v/virt-v2v.pod | 5 ++
30 files changed, 424 insertions(+), 72 deletions(-)
create mode 100644 common/mltools/machine_readable_tests.ml
create mode 100755 common/mltools/test-machine-readable.sh
--
2.17.1
6 years, 1 month