{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/dice/issues/12","repository_url":"https://api.github.com/repos/SUSE/dice","labels_url":"https://api.github.com/repos/SUSE/dice/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/dice/issues/12/comments","events_url":"https://api.github.com/repos/SUSE/dice/issues/12/events","html_url":"https://github.com/SUSE/dice/issues/12","id":193102382,"number":12,"title":"lvcreate: Failed to wipe start of new LV","user":{"login":"abalage","id":6349914,"avatar_url":"https://avatars.githubusercontent.com/u/6349914?v=3","gravatar_id":"","url":"https://api.github.com/users/abalage","html_url":"https://github.com/abalage","followers_url":"https://api.github.com/users/abalage/followers","following_url":"https://api.github.com/users/abalage/following{/other_user}","gists_url":"https://api.github.com/users/abalage/gists{/gist_id}","starred_url":"https://api.github.com/users/abalage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abalage/subscriptions","organizations_url":"https://api.github.com/users/abalage/orgs","repos_url":"https://api.github.com/users/abalage/repos","events_url":"https://api.github.com/users/abalage/events{/privacy}","received_events_url":"https://api.github.com/users/abalage/received_events","type":"User","site_admin":false},"labels":[{"id":124332766,"url":"https://api.github.com/repos/SUSE/dice/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":{"login":"schaefi","id":912234,"avatar_url":"https://avatars.githubusercontent.com/u/912234?v=3","gravatar_id":"","url":"https://api.github.com/users/schaefi","html_url":"https://github.com/schaefi","followers_url":"https://api.github.com/users/schaefi/followers","following_url":"https://api.github.com/users/schaefi/following{/other_user}","gists_url":"https://api.github.com/users/schaefi/gists{/gist_id}","starred_url":"https://api.github.com/users/schaefi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaefi/subscriptions","organizations_url":"https://api.github.com/users/schaefi/orgs","repos_url":"https://api.github.com/users/schaefi/repos","events_url":"https://api.github.com/users/schaefi/events{/privacy}","received_events_url":"https://api.github.com/users/schaefi/received_events","type":"User","site_admin":false},"assignees":[{"login":"schaefi","id":912234,"avatar_url":"https://avatars.githubusercontent.com/u/912234?v=3","gravatar_id":"","url":"https://api.github.com/users/schaefi","html_url":"https://github.com/schaefi","followers_url":"https://api.github.com/users/schaefi/followers","following_url":"https://api.github.com/users/schaefi/following{/other_user}","gists_url":"https://api.github.com/users/schaefi/gists{/gist_id}","starred_url":"https://api.github.com/users/schaefi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaefi/subscriptions","organizations_url":"https://api.github.com/users/schaefi/orgs","repos_url":"https://api.github.com/users/schaefi/repos","events_url":"https://api.github.com/users/schaefi/events{/privacy}","received_events_url":"https://api.github.com/users/schaefi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-12-02T12:12:05Z","updated_at":"2016-12-05T10:03:46Z","closed_at":null,"body":"I decided to rather open a new issue for this.\r\n\r\n```\r\n[ DEBUG   ]: 11:17:37 | potential fdisk errors were ignored\r\n[ DEBUG   ]: 11:17:37 | EXEC: [sfdisk -c /dev/loop1 2 8e]\r\n[ INFO    ]: 11:17:37 | --> setting active flag to primary boot partition\r\n[ DEBUG   ]: 11:17:37 | EXEC: [parted /dev/loop1 set 1 boot on]\r\n[ DEBUG   ]: 11:17:37 | EXEC: [kpartx -s -a /dev/loop1]\r\n[ INFO    ]: 11:17:37 | Creating boot(ext4) filesystem on /dev/mapper/loop1p1\r\n[ DEBUG   ]: 11:17:37 | EXEC: [mkfs.ext4 -L BOOT /dev/mapper/loop1p1]\r\n[ DEBUG   ]: 11:17:37 | EXEC: [vgs --noheadings -o vg_name]\r\n[ INFO    ]: 11:17:38 | Creating volume group systemVG\r\n[ DEBUG   ]: 11:17:38 | EXEC: [vgremove --force systemVG]\r\n[ DEBUG   ]: 11:17:38 | EXEC: [pvcreate /dev/mapper/loop1p2]\r\n[ DEBUG   ]: 11:17:38 | EXEC: [vgcreate systemVG /dev/mapper/loop1p2]\r\n[ INFO    ]: 11:17:38 | Creating volumes(ext4)\r\n[ INFO    ]: 11:17:38 | --> volume root with 10240 MB\r\n[ DEBUG   ]: 11:17:38 | EXEC: [lvcreate -L 10240 -n root systemVG]\r\n[ DEBUG   ]: 11:17:39 | EXEC: Failed with stderr:   /dev/systemVG/root: not found: device not cleared\r\n  Aborting. Failed to wipe start of new LV.\r\n, stdout: (no output on stdout)\r\n[ ERROR   ]: 11:17:39 | KiwiCommandError: lvcreate: stderr:   /dev/systemVG/root: not found: device not cleared\r\n  Aborting. Failed to wipe start of new LV.\r\n, stdout: (no output on stdout)\r\n[ INFO    ]: 11:17:39 | Cleaning up VolumeManagerLVM instance\r\n[ DEBUG   ]: 11:17:39 | EXEC: [rm -r -f /tmp/kiwi_volumes.rpfb2p3e]\r\n[ DEBUG   ]: 11:17:39 | EXEC: [vgchange -an systemVG]\r\n```\r\n\r\nI decided to follow the commands step-by-step from the build.log in a container started manually the same way as the Vagrantfile expects to do.\r\n\r\n```\r\ndocker run --rm --privileged=true -ti -v /home/bigdiskspace/temp:/tmp opensuse/dice bash\r\n```\r\n\r\nThis is what I got.\r\nPlease note that I already have a VG on my host system called 'titkositott'.\r\n\r\n```\r\nbash-4.4# vgs --noheadings -o vg_name\r\n  titkositott\r\nbash-4.4# pvcreate /dev/mapper/loop1p2\r\n  allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support.\r\n  Falling back to native LVM signature detection.\r\n  Physical volume \"/dev/mapper/loop1p2\" successfully created.\r\nbash-4.4# vgcreate systemVG /dev/mapper/loop1p2\r\n  allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support.\r\n  Falling back to native LVM signature detection.\r\n  Volume group \"systemVG\" successfully created\r\nbash-4.4# lvcreate -L 10240 -n root systemVG\r\n  /dev/systemVG/root: not found: device not cleared\r\n  Aborting. Failed to wipe start of new LV.\r\nbash-4.4# vgs\r\n  VG          #PV #LV #SN Attr   VSize   VFree \r\n  systemVG      1   0   0 wz--n-  31.30g 31.30g\r\n  titkositott   1   3   0 wz--n- 465.11g  4.00m\r\nbash-4.4# lvcreate -v -L 10240 -n root systemVG\r\n    Archiving volume group \"systemVG\" metadata (seqno 3).\r\n    Creating logical volume root\r\n    Creating volume group backup \"/etc/lvm/backup/systemVG\" (seqno 4).\r\n    Activating logical volume systemVG/root.\r\n    activation/volume_list configuration setting not defined: Checking only host tags for systemVG/root.\r\n    Creating systemVG-root\r\n    Loading systemVG-root table (254:6)\r\n    Resuming systemVG-root (254:6)\r\n  /dev/systemVG/root: not found: device not cleared\r\n  Aborting. Failed to wipe start of new LV.\r\n    Removing systemVG-root (254:6)\r\n    Creating volume group backup \"/etc/lvm/backup/systemVG\" (seqno 5).\r\nbash-4.4# ls -l /dev/systemVG/*\r\nls: cannot access '/dev/systemVG/*': No such file or directory                                              \r\nbash-4.4#\r\n```\r\nSomehow the device does not get created.\r\n\r\nI am attaching the relevant part of config.xml\r\n```\r\n 17     <preferences>                                                                                                                                                        \r\n 18         <version>1.2.0</version>                                                                                                                                         \r\n 19         <packagemanager>yum</packagemanager>                                                                                                                             \r\n 20         <bootsplash-theme>charge</bootsplash-theme>                                                                                                                      \r\n 21         <locale>hu_HU</locale>                                                                                                                                           \r\n 22         <keytable>hu.map.gz</keytable>                                                                                                                                   \r\n 23         <timezone>UTC</timezone>                                                                                                                                         \r\n 24         <hwclock>utc</hwclock>                                                                                                                                           \r\n 25         <rpm-check-signatures>false</rpm-check-signatures>                                                                                                               \r\n 26         <type image=\"vmx\" primary=\"true\" boot=\"vmxboot/rhel-07.0\" format=\"vmdk\" filesystem=\"ext4\" kernelcmdline=\"rhgb\" bootloader=\"grub2\">                               \r\n 27             <systemdisk name=\"systemVG\">                                                                                                                                 \r\n 28                 <volume name=\"root\" size=\"10G\" mountpoint=\"/\"/>                                                                                                          \r\n 29                 <volume name=\"var\" size=\"30G\" mountpoint=\"/var\"/>                                                                                                        \r\n 30             </systemdisk>                                                                                                                                                \r\n 31             <machine arch=\"x86_64\" memory=\"4096\" ncpus=\"1\" guestOS=\"centos-64\" HWversion=\"4\">                                                                            \r\n 32                <vmnic driver=\"e1000\" interface=\"0\" mode=\"bridged\"/>                                                                                                      \r\n 33                <vmdisk controller=\"buslogic\" id=\"0\"/>                                                                                                                    \r\n 34                <vmdvd  controller=\"ide\" id=\"1\"/>                                                                                                                         \r\n 35             </machine>                                                                                                                                                   \r\n 36         </type>                                                                                                                                                          \r\n 37         <type image=\"oem\" primary=\"false\" boot=\"oemboot/rhel-07.0\" filesystem=\"ext4\" installiso=\"true\" bootloader=\"grub2\" initrd_system=\"dracut\">                        \r\n 38             <oemconfig>                                                                                                                                                  \r\n 39                 <oem-boot-title>Blindspotter Appliance by Balabit</oem-boot-title>                                                                                       \r\n 40                 <oem-systemsize>40480</oem-systemsize>                                                                                                                   \r\n 41                 <oem-swap>true</oem-swap>                                                                                                                                \r\n 42                 <oem-swapsize>200</oem-swapsize>                                                                                                                         \r\n 43             </oemconfig>                                                                                                                                                 \r\n 44         </type>                                                                                                                                                          \r\n 45     </preferences> \r\n```"},"comment":{"url":"https://api.github.com/repos/SUSE/dice/issues/comments/264813268","html_url":"https://github.com/SUSE/dice/issues/12#issuecomment-264813268","issue_url":"https://api.github.com/repos/SUSE/dice/issues/12","id":264813268,"user":{"login":"abalage","id":6349914,"avatar_url":"https://avatars.githubusercontent.com/u/6349914?v=3","gravatar_id":"","url":"https://api.github.com/users/abalage","html_url":"https://github.com/abalage","followers_url":"https://api.github.com/users/abalage/followers","following_url":"https://api.github.com/users/abalage/following{/other_user}","gists_url":"https://api.github.com/users/abalage/gists{/gist_id}","starred_url":"https://api.github.com/users/abalage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abalage/subscriptions","organizations_url":"https://api.github.com/users/abalage/orgs","repos_url":"https://api.github.com/users/abalage/repos","events_url":"https://api.github.com/users/abalage/events{/privacy}","received_events_url":"https://api.github.com/users/abalage/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T10:03:46Z","updated_at":"2016-12-05T10:03:46Z","body":"I understand the situation and thank you for your help.\r\nIs there a way to explicitly disable LVM usage, so I could move on with testing?"}}
{"actor":{"display_login":"abalage"}}