When 'recycling' a client for usage with OPSI, I ran into an error. The computer previously had Fedora 18 installed, but this would not start correctly.
Anyway, the harddisk was used with LVM and ext4, and when installing a netboot product (winxppro-x64) the installation fails early in the bootimage.
This behaviour may be correct, to prevent accidental installations to a linux server.
Workaround is to first run wipedisk, then install normally.
Included is the partial bootimage.log, from a virtual machine. I used the virtual machine to reproduce the problem.
OPSI installation is up to date, but using winxppro-x64_4.0.2-2.opsi from experimental. Problem is the same with stable bootimage and with bootimage from experimental.
(edit: sent the entire bootimage.log to info(at)uib(dot)de)
Code: Alles auswählen
[7] [Feb 10 15:49:35] Found disk =>>> dev: '/dev/sda', size: 8.00 GB (Posix.py|777)
[7] [Feb 10 15:49:35] Command 'modprobe' found at: '/sbin/modprobe' (Posix.py|640)
[6] [Feb 10 15:49:35] Executing: /sbin/modprobe edd (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'UTF-8' (Posix.py|691)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Using geo_override.so for all disks. (Posix.py|1092)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk -s -uB /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> 8388608 (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Size of disk '/dev/sda': 8589934592 Byte / 8192 MB (Posix.py|1193)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk -l /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Disk /dev/sda: 1044 cylinders, 255 heads, 63 sectors/track (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 (Posix.py|741)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Device Boot Start End #cyls #blocks Id System (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda1 * 0+ 63- 64- 512000 83 Linux (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda2 63+ 1044- 981- 7875584 8e Linux LVM (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda3 0 - 0 0 0 Empty (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda4 0 - 0 0 0 Empty (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Total cylinders of disk '/dev/sda': 1044, 8225280 bytes per cylinder (Posix.py|1220)
[7] [Feb 10 15:49:35] Partition found =>>> number: 1, start: 0 MB (0 cyl), end: 502 MB (63 cyl), size: 502 MB (64 cyl), type: 83, fs: unknown, boot: True (Posix.py|1256)
[7] [Feb 10 15:49:35] Waiting for device '/dev/sda1' to appear (Posix.py|1259)
[7] [Feb 10 15:49:35] Device '/dev/sda1' found (Posix.py|1267)
[7] [Feb 10 15:49:35] Partition found =>>> number: 2, start: 494 MB (63 cyl), end: 8197 MB (1044 cyl), size: 7695 MB (981 cyl), type: 8e, fs: unknown, boot: False (Posix.py|1256)
[7] [Feb 10 15:49:35] Waiting for device '/dev/sda2' to appear (Posix.py|1259)
[7] [Feb 10 15:49:35] Device '/dev/sda2' found (Posix.py|1267)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk -uS -l /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Disk /dev/sda: 1044 cylinders, 255 heads, 63 sectors/track (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Units = sectors of 512 bytes, counting from 0 (Posix.py|741)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Device Boot Start End #sectors Id System (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda1 * 2048 1026047 1024000 83 Linux (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda2 1026048 16777215 15751168 8e Linux LVM (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda3 0 - 0 0 Empty (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda4 0 - 0 0 Empty (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Total sectors of disk '/dev/sda': 16777216, 512 bytes per cylinder (Posix.py|1296)
[7] [Feb 10 15:49:35] Partition sector values =>>> number: 1, start: 2048 sec, end: 1026047 sec, size: 1024000 sec (Posix.py|1288)
[7] [Feb 10 15:49:35] Partition sector values =>>> number: 2, start: 1026048 sec, end: 16777215 sec, size: 15751168 sec (Posix.py|1288)
[6] [Feb 10 15:49:35] Deleting partition table on '/dev/sda' (Posix.py|1376)
[6] [Feb 10 15:49:35] Forcing kernel to reread partition table of '/dev/sda'. (Posix.py|1370)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk --re-read /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> BLKRRPART: Device or resource busy (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk -s -uB /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> 8388608 (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[6] [Feb 10 15:49:35] Size of disk '/dev/sda': 8589934592 Byte / 8192 MB (Posix.py|1193)
[6] [Feb 10 15:49:35] Executing: /sbin/sfdisk -l /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Disk /dev/sda: 1044 cylinders, 255 heads, 63 sectors/track (Posix.py|741)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> sfdisk: ERROR: sector 0 does not have an msdos signature (Posix.py|741)
[7] [Feb 10 15:49:35] >>> /dev/sda: unrecognized partition table type (Posix.py|741)
[7] [Feb 10 15:49:35] >>> No partitions found (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 0 (Posix.py|748)
[7] [Feb 10 15:49:35] Command 'echo' found at: '/bin/echo' (Posix.py|640)
[6] [Feb 10 15:49:35] Executing: /bin/echo -e "0,0
" | /sbin/sfdisk -D /dev/sda (Posix.py|660)
[6] [Feb 10 15:49:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|691)
[7] [Feb 10 15:49:35] >>> Checking that no-one is using this disk right now ... (Posix.py|741)
[7] [Feb 10 15:49:35] >>> BLKRRPART: Device or resource busy (Posix.py|741)
[7] [Feb 10 15:49:35] >>> (Posix.py|741)
[7] [Feb 10 15:49:35] >>> This disk is currently in use - repartitioning is probably a bad idea. (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Umount all file systems, and swapoff all swap partitions on this disk. (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Use the --no-reread flag to suppress this check. (Posix.py|741)
[7] [Feb 10 15:49:35] >>> Use the --force flag to overrule all checks. (Posix.py|741)
[7] [Feb 10 15:49:35] Exit code: 1 (Posix.py|748)
[2] [Feb 10 15:49:36] Traceback: (Logger.py|742)
[2] [Feb 10 15:49:36] line 1387 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|742)
[2] [Feb 10 15:49:36] line 54 in '<module>' in file '/tmp/setup.py' (Logger.py|742)
[2] [Feb 10 15:49:36] line 1387 in 'deletePartitionTable' in file '/usr/lib/pymodules/python2.6/OPSI/System/Posix.py' (Logger.py|742)
[2] [Feb 10 15:49:36] line 1198 in 'readPartitionTable' in file '/usr/lib/pymodules/python2.6/OPSI/System/Posix.py' (Logger.py|742)
[2] [Feb 10 15:49:36] line 755 in 'execute' in file '/usr/lib/pymodules/python2.6/OPSI/System/Posix.py' (Logger.py|742)
[2] [Feb 10 15:49:36] ==>>> Command '/bin/echo -e "0,0
" | /sbin/sfdisk -D /dev/sda' failed (1):
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Use the --force flag to overrule all checks. (master.py|1435)
[7] [Feb 10 15:49:36] Backend: <OPSI.Backend.JSONRPC.JSONRPCBackend instance at 0x89c65cc> (master.py|1438)
[7] [Feb 10 15:49:36] ProductId: winxppro-x64 (master.py|1439)
[7] [Feb 10 15:49:36] ClientId: linuxtest.anarchy.lan (master.py|1440)
[7] [Feb 10 15:49:36] ProductOnClient: <ProductOnClient clientId 'linuxtest.anarchy.lan', productId 'winxppro-x64', installationStatus 'unknown', actionRequest 'none'> (master.py|1441)
[6] [Feb 10 15:49:36] Updating productOnClient: {'actionProgress': u'', 'actionResult': u'failed', 'clientId': u'linuxtest.anarchy.lan', 'modificationTime': None, 'actionRequest': u'none', 'targetConfiguration': None, 'productVersion': None, 'productType': u'NetbootProduct', 'type': u'ProductOnClient', 'lastAction': None, 'packageVersion': None, 'actionSequence': None, 'installationStatus': u'unknown', 'productId': u'winxppro-x64'} (master.py|1452)
[7] [Feb 10 15:49:36] Executing jsonrpc method 'productOnClient_updateObjects' on host 10.0.0.97 (JSONRPC.py|104)
[7] [Feb 10 15:49:36] Starting new HTTPS connection (0) to 10.0.0.97:4447 (HTTP.py|574)
[7] [Feb 10 15:49:36] Connection established to: 10.0.0.97 (HTTP.py|587)
[7] [Feb 10 15:49:36] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|164)
[7] [Feb 10 15:49:36] Closing connection: <httplib.HTTPSConnection instance at 0x8c5396c> (HTTP.py|502)
[7] [Feb 10 15:49:36] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: gzip (JSONRPC.py|659)
[7] [Feb 10 15:49:36] Expecting compressed data from server (JSONRPC.py|663)
[5] [Feb 10 15:51:23] Writing log to service (master.py|1466)