Closed liuxuejiao123 closed 6 years ago
@liuxuejiao123 Please look at the following document to generate the image using the code available on github.
https://github.com/opensecuritycontroller/community/blob/master/development/build_osc_image.md
@arvindn05 ,thank you very much ,but when I build osc image I met a question , the bundle is bulid success but build osc image failed, do you know how to solve this problem: [exec] [INFO] org.osc.core:osc-rest-server ....................... SUCCESS [ 15.476 s] [exec] [INFO] org.osc.core:osc-resolver .......................... SUCCESS [ 6.648 s] [exec] [INFO] org.osc.core:osc-installer ......................... SUCCESS [ 8.939 s] [exec] [INFO] org.osc.core:osc-server ............................ SUCCESS [11:06 min] [exec] [INFO] org.osc.core:osc-ui-widgetset ...................... SUCCESS [ 2.859 s] [exec] [INFO] org.osc.core:osc-ui ................................ SUCCESS [01:38 min] [exec] [INFO] org.osc.core:osc-uber .............................. SUCCESS [ 3.144 s] [exec] [INFO] org.osc.core:osc-control ........................... SUCCESS [ 43.241 s] [exec] [INFO] org.osc.core:osc-installer-test .................... SUCCESS [ 17.394 s] [exec] [INFO] org.osc.core:osc-installer-simple .................. SUCCESS [ 4.705 s] [exec] [INFO] org.osc.core:osc-export ............................ SUCCESS [ 21.075 s] [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] BUILD SUCCESS [exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] Total time: 15:34 min [exec] [INFO] Finished at: 2017-10-31T16:40:57+08:00 [exec] [INFO] Final Memory: 125M/1656M [exec] [INFO] ------------------------------------------------------------------------
prodVersion: [echo] Full Version: 1.0.0-SNAPSHOT-128-gabfa924 [echo] Version: 1.0.0-SNAPSHOT
ovfOnly: [touch] Creating /tmp/build_marker [exec] E: /etc/schroot/chroot.d/centos.conf: Unknown chroot type ¡®directory [exec] ¡¯ [exec] Result: 1 [delete] Deleting: /tmp/build_marker
createBuildDir: [mkdir] Created dir: /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-128-gabfa924
copyServerUpgradeBundle: [copy] Copying 1 file to /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-128-gabfa924
copyPlugins:
checkImagesTocopy:
vmdkImageCopy:
qcow2ImageCopy:
BUILD FAILED /root/OpenSecurityController/osc-core/build.xml:124: Warning: Could not find file /root/OpenSecurityController/osc-core/osc-server-bom/OSC_disk-0.qcow2 to copy.
@karimull looks like another question on the build.
To convert vmdk to qcow2 image , install qemu-img command executable. On Ubuntu to install qemu-img run
sudo apt-get install qemu-utils
We will be updating the doc , with above information
when I run create_centos , some file cannot find, I skipped it and build osc image failed , I don't know whether create_centos run success:
warning: group lock does not exist - using root
warning: group mail does not exist - using root
yum centos-6 success
cp resolv.conf success
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23434 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23466 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23483 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23500 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23518 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23535 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
dirname: missing operand
Try dirname --help' for more information. mkdir: missing operand Try
mkdir --help' for more information.
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
/usr/bin/rebuild-gcj-db: line 5: 23568 Aborted (core dumped) /usr/bin/gcj-dbtool -n $dbLocation 64
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
xargs: /usr/bin/gcj-dbtool: terminated by signal 6
GC Warning: Couldn't read /proc/stat
GC Warning: GC_get_nprocs() returned -1
Couldn't read /proc/self/stat
./create-centos: line 49: /mnt/sysimage/etc/rpm/macros: No such file or directory
chroot install success
umount var/www
find operation begin
find operation success
install resolv.conf
umount success
cat success
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
debugedit liblua5.2-0 librpm3 librpmbuild3 librpmio3 librpmsign1 libsqlite0 python-libxml2 python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber rpm-common rpm2cpio
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
rpm yum
0 upgraded, 0 newly installed, 2 to remove and 249 not upgraded.
After this operation, 3,688 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 59423 files and directories currently installed.)
Removing yum (3.4.3-2ubuntu1) ...
Purging configuration files for yum (3.4.3-2ubuntu1) ...
Removing rpm (4.11.1-3ubuntu0.1) ...
Purging configuration files for rpm (4.11.1-3ubuntu0.1) ...
Processing triggers for man-db (2.6.7.1-1) ...
purge success
[exec] [INFO] org.osc.core:osc-ui ................................ SUCCESS [01:22 min]
[exec] [INFO] org.osc.core:osc-uber .............................. SUCCESS [ 2.779 s]
[exec] [INFO] org.osc.core:osc-control ........................... SUCCESS [ 37.539 s]
[exec] [INFO] org.osc.core:osc-installer-test .................... SUCCESS [ 16.745 s]
[exec] [INFO] org.osc.core:osc-installer-simple .................. SUCCESS [ 4.342 s]
[exec] [INFO] org.osc.core:osc-export ............................ SUCCESS [ 20.172 s]
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] BUILD SUCCESS
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Total time: 13:26 min
[exec] [INFO] Finished at: 2017-11-02T16:53:59+08:00
[exec] [INFO] Final Memory: 110M/843M
[exec] [INFO] ------------------------------------------------------------------------
prodVersion: [echo] Full Version: 1.0.0-SNAPSHOT-148-g353071c [echo] Version: 1.0.0-SNAPSHOT
ovfOnly: [touch] Creating /tmp/build_marker [exec] E: Failed to change to directory ‘/root/OpenSecurityController/osc-core/osc-server-bom’: No such file or directory [exec] I: The directory does not exist inside the chroot. Use the --directory option to run the command in a different directory. [exec] Result: 1 [delete] Deleting: /tmp/build_marker
createBuildDir: [mkdir] Created dir: /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-148-g353071c
copyServerUpgradeBundle: [copy] Copying 1 file to /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-148-g353071c
copyPlugins:
checkImagesTocopy:
vmdkImageCopy:
qcow2ImageCopy:
BUILD FAILED /root/OpenSecurityController/osc-core/build.xml:124: Warning: Could not find file /root/OpenSecurityController/osc-core/osc-server-bom/OSC_disk-0.qcow2 to copy.
Total time: 13 minutes 29 seconds root@HGH1000053884:~/OpenSecurityController/osc-core#
"Failed to change to directory ‘/root/OpenSecurityController/osc-core/osc-server-bom’: No such file or directory" ----------what should I do to solve this problem ?
---------------- I want to know If My system is centos , Do I still need to Create CentOS Schroot Environmentos ? or I may met other problems?
Can you please provide us following info
Looks like you are using either RHEL or Centos. I was able to reproduce the issue. Will let you know soon about the fix. thanks
my system is Ubuntu14.4 and I runing ./create-centos as root
hmm...I was only able to see the issue on rhel for now. We are using Ubuntu 14.04 LTS and it works fine. Yet to try centos.
Can you please send me the output of following command on your system.. $ lsb_release -a
Mine is root@buildmc-virtual-machine:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty
how did you solve this problem on rhel ,I can try as a reference
not yet..still looking into it. But we should not have any issue on Ubuntu. So wanted to know the Ubuntu version
root@HGH1000053884:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04 LTS Release: 14.04 Codename: trusty root@HGH1000053884:~#
Can you also cut and paste entire output of the ./create-centos command with prompt. thank you
now I met another question,I cannot visit the url "http://mirrors.kernel.org/centos/6.9/os/x86_64/repodata/repomd.xml" ,so I want to change the url as our business. but I don't which file to modify
[exec] [exec]
[exec] [exec] This filesystem will be automatically checked every 37 mounts or
[exec] [exec] 180 days, whichever comes first. Use tune2fs -c or -i to override.
[exec] [exec] mount -o loop boot.img /root/OpenSecurityController/osc-core/osc-server-bom/build/boot && trap "umount -d /root/OpenSecurityController/osc-core/osc-server-bom/build/boot" EXIT && make --no-print-directory -f makefiles/packages.mk
[exec] [exec] rpmdb --root /root/OpenSecurityController/osc-core/osc-server-bom/build --initdb
[exec] [exec] mkdir -p -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum
[exec] [exec] mount --bind /root/OpenSecurityController/osc-core/osc-server-bom/var/cache/yum /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum && trap "umount /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum" EXIT && make -f makefiles/packages.mk vmidc-doit
[exec] [exec] mkdir -p -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build/etc/rpm
[exec] [exec] echo -e "%_install_langs C:en_US\n%_excludedocs 1\n" > /root/OpenSecurityController/osc-core/osc-server-bom/build/etc/rpm/macros
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build clean all
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Cleaning repos: centos-base centos-extras centos-plus centos-updates
[exec] [exec] Cleaning up Everything
[exec] [exec] Cleaning up list of fastest mirrors
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build clean metadata
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Cleaning repos: centos-base centos-extras centos-plus centos-updates
[exec] [exec] 0 metadata files removed
[exec] [exec] 0 sqlite files removed
[exec] [exec] 0 metadata files removed
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build install grep -v ^# centos-6.packages1
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Setting up Install Process
[exec] [exec] Determining fastest mirrors
[exec] [exec] Result: 2
[exec] [exec] http://mirrors.kernel.org/centos/6.9/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 - "Couldn't resolve proxy 'proxy-chain.intel.com'"
[exec] [exec] Trying other mirror.
[exec] [exec] Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos-base. Please verify its path and try again
[exec] [exec] make[2]: [yum-basic-doit] Error 1
[exec] [exec] make[1]: [vmidc] Error 2
[exec] [exec] make: *** [make-image] Error 2
ok..let me get back to you on this one. Will ping you tomorrow. thanks
Hello ,My problem is like this ,do you know how to solve this problem , even build failed,but in /osc-core/osc-server-bom, I found a file "boot.img" build , what does this file used for
?
ovfBuild:
[exec] [exec] make --no-print-directory -f makefiles/packages.mk clean
[exec] [exec] rm -f RPM-GPG-KEY-CENTOS6.pub
[exec] [exec] make --no-print-directory -f makefiles/mount.mk clean
[exec] [exec] rm -f -r /root/OpenSecurityController/osc-core/osc-server-bom/build
[exec] [exec] rm -f -r Trees
[exec] [exec] rm -f keyfile
[exec] [exec] rm -f sysimage.tar.xz
[exec] [exec] rm -f OSC_disk-0.img
[exec] [exec] rm -f boot.img
[exec] [exec] rm -f OSC_disk-0.vmdk
[exec] [exec] rm -f OSC_disk-0.qcow2
[exec] [exec] rm -f OSC_disk-0.img
[exec] [exec] rm -f OSC_disk-0-raw.img
[exec] [exec] ===================================================================
[exec] [exec] BUILD ENVIORNMENT
[exec] [exec] ===================================================================
[exec] [exec]
[exec] [exec] RPM NAME VERSION
[exec] [exec] ======================================== ==========================
[exec] [exec] rpm -qa --qf "%-40{NAME} %{VERSION}\n" | sort
[exec] [exec] ConsoleKit 0.4.1
[exec] [exec] ConsoleKit-libs 0.4.1
[exec] [exec] GConf2 2.28.0
[exec] [exec] MAKEDEV 3.24
[exec] [exec] ORBit2 2.14.17
[exec] [exec] alsa-lib 1.1.0
[exec] [exec] ant 1.7.1
[exec] [exec] atk 1.30.0
[exec] [exec] audit-libs 2.4.5
[exec] [exec] avahi-libs 0.6.25
[exec] [exec] basesystem 10.0
[exec] [exec] bash 4.1.2
[exec] [exec] binutils 2.20.51.0.2
[exec] [exec] bzip2 1.0.5
[exec] [exec] bzip2-libs 1.0.5
[exec] [exec] ca-certificates 2017.2.14
[exec] [exec] cairo 1.8.8
[exec] [exec] centos-release 6
[exec] [exec] checkpolicy 2.0.22
[exec] [exec] chkconfig 1.3.49.5
[exec] [exec] cloog-ppl 0.15.7
[exec] [exec] coreutils 8.4
[exec] [exec] coreutils-libs 8.4
[exec] [exec] cpio 2.10
[exec] [exec] cpp 4.4.7
[exec] [exec] cracklib 2.8.16
[exec] [exec] cracklib-dicts 2.8.16
[exec] [exec] cryptsetup-luks 1.2.0
[exec] [exec] cryptsetup-luks-libs 1.2.0
[exec] [exec] cups-libs 1.4.2
[exec] [exec] curl 7.19.7
[exec] [exec] cyrus-sasl-lib 2.1.23
[exec] [exec] db4 4.7.25
[exec] [exec] db4-utils 4.7.25
[exec] [exec] dbus 1.2.24
[exec] [exec] dbus-glib 0.86
[exec] [exec] dbus-libs 1.2.24
[exec] [exec] device-mapper 1.02.117
[exec] [exec] device-mapper-libs 1.02.117
[exec] [exec] diffutils 2.8.1
[exec] [exec] e2fsprogs 1.41.12
[exec] [exec] e2fsprogs-libs 1.41.12
[exec] [exec] eggdbus 0.6
[exec] [exec] elfutils-libelf 0.164
[exec] [exec] ethtool 3.5
[exec] [exec] expat 2.0.1
[exec] [exec] file 5.04
[exec] [exec] file-libs 5.04
[exec] [exec] filesystem 2.4.30
[exec] [exec] findutils 4.4.2
[exec] [exec] fipscheck 1.2.0
[exec] [exec] fipscheck-lib 1.2.0
[exec] [exec] flac 1.2.1
[exec] [exec] fontconfig 2.8.0
[exec] [exec] freetype 2.3.11
[exec] [exec] gamin 0.1.10
[exec] [exec] gawk 3.1.7
[exec] [exec] gcc 4.4.7
[exec] [exec] gdbm 1.8.0
[exec] [exec] gdk-pixbuf2 2.24.1
[exec] [exec] giflib 4.1.6
[exec] [exec] glib2 2.28.8
[exec] [exec] glibc 2.12
[exec] [exec] glibc-common 2.12
[exec] [exec] glibc-devel 2.12
[exec] [exec] glibc-headers 2.12
[exec] [exec] gmp 4.3.1
[exec] [exec] gnupg2 2.0.14
[exec] [exec] gnutls 2.12.23
[exec] [exec] gpg-pubkey c105b9de
[exec] [exec] gpgme 1.1.8
[exec] [exec] gpm-libs 1.20.6
[exec] [exec] grep 2.20
[exec] [exec] groff 1.18.1.4
[exec] [exec] grub 0.97
[exec] [exec] gtk2 2.24.23
[exec] [exec] gzip 1.3.12
[exec] [exec] hicolor-icon-theme 0.11
[exec] [exec] hwdata 0.233
[exec] [exec] info 4.13a
[exec] [exec] initscripts 9.03.58
[exec] [exec] iproute 2.6.32
[exec] [exec] iptables 1.4.7
[exec] [exec] iputils 20071127
[exec] [exec] jasper-libs 1.900.1
[exec] [exec] java-1.5.0-gcj 1.5.0.0
[exec] [exec] java-1.7.0-openjdk 1.7.0.151
[exec] [exec] java-1.7.0-openjdk-devel 1.7.0.151
[exec] [exec] java_cup 0.10k
[exec] [exec] jpackage-utils 1.7.5
[exec] [exec] kernel-headers 2.6.32
[exec] [exec] keyutils-libs 1.4
[exec] [exec] kpartx 0.4.9
[exec] [exec] krb5-libs 1.10.3
[exec] [exec] less 436
[exec] [exec] libICE 1.0.6
[exec] [exec] libIDL 0.8.13
[exec] [exec] libSM 1.2.1
[exec] [exec] libX11 1.6.4
[exec] [exec] libX11-common 1.6.4
[exec] [exec] libXau 1.0.6
[exec] [exec] libXcomposite 0.4.3
[exec] [exec] libXcursor 1.1.14
[exec] [exec] libXdamage 1.1.3
[exec] [exec] libXext 1.3.3
[exec] [exec] libXfixes 5.0.3
[exec] [exec] libXfont 1.5.1
[exec] [exec] libXft 2.3.2
[exec] [exec] libXi 1.7.8
[exec] [exec] libXinerama 1.1.3
[exec] [exec] libXrandr 1.5.1
[exec] [exec] libXrender 0.9.10
[exec] [exec] libXtst 1.2.3
[exec] [exec] libacl 2.2.49
[exec] [exec] libart_lgpl 2.3.20
[exec] [exec] libasyncns 0.8
[exec] [exec] libattr 2.4.44
[exec] [exec] libblkid 2.17.2
[exec] [exec] libcap 2.16
[exec] [exec] libcap-ng 0.6.4
[exec] [exec] libcom_err 1.41.12
[exec] [exec] libcurl 7.19.7
[exec] [exec] libdrm 2.4.65
[exec] [exec] libffi 3.0.5
[exec] [exec] libfontenc 1.1.2
[exec] [exec] libgcc 4.4.7
[exec] [exec] libgcj 4.4.7
[exec] [exec] libgcrypt 1.4.5
[exec] [exec] libgomp 4.4.7
[exec] [exec] libgpg-error 1.7
[exec] [exec] libidn 1.18
[exec] [exec] libjpeg-turbo 1.2.1
[exec] [exec] libnih 1.0.1
[exec] [exec] libogg 1.1.4
[exec] [exec] libpciaccess 0.13.4
[exec] [exec] libpng 1.2.49
[exec] [exec] libselinux 2.0.94
[exec] [exec] libselinux-utils 2.0.94
[exec] [exec] libsemanage 2.0.43
[exec] [exec] libsepol 2.0.41
[exec] [exec] libsndfile 1.0.20
[exec] [exec] libss 1.41.12
[exec] [exec] libssh2 1.4.2
[exec] [exec] libstdc++ 4.4.7
[exec] [exec] libtasn1 2.3
[exec] [exec] libthai 0.1.12
[exec] [exec] libtiff 3.9.4
[exec] [exec] libudev 147
[exec] [exec] libusb 0.1.12
[exec] [exec] libutempter 1.1.5
[exec] [exec] libuuid 2.17.2
[exec] [exec] libvorbis 1.2.3
[exec] [exec] libxcb 1.12
[exec] [exec] libxml2 2.7.6
[exec] [exec] lksctp-tools 1.0.10
[exec] [exec] lua 5.1.4
[exec] [exec] make 3.81
[exec] [exec] man 1.6f
[exec] [exec] mingetty 1.08
[exec] [exec] module-init-tools 3.9
[exec] [exec] mpfr 2.4.1
[exec] [exec] ncurses 5.7
[exec] [exec] ncurses-base 5.7
[exec] [exec] ncurses-libs 5.7
[exec] [exec] net-tools 1.60
[exec] [exec] nspr 4.13.1
[exec] [exec] nss 3.28.4
[exec] [exec] nss-softokn 3.14.3
[exec] [exec] nss-softokn-freebl 3.14.3
[exec] [exec] nss-sysinit 3.28.4
[exec] [exec] nss-tools 3.28.4
[exec] [exec] nss-util 3.28.4
[exec] [exec] openldap 2.4.40
[exec] [exec] openssl 1.0.1e
[exec] [exec] p11-kit 0.18.5
[exec] [exec] p11-kit-trust 0.18.5
[exec] [exec] pam 1.1.1
[exec] [exec] pango 1.28.1
[exec] [exec] parted 2.1
[exec] [exec] pcre 7.8
[exec] [exec] pcsc-lite-libs 1.5.2
[exec] [exec] perl 5.10.1
[exec] [exec] perl-Module-Pluggable 3.90
[exec] [exec] perl-Pod-Escapes 1.04
[exec] [exec] perl-Pod-Simple 3.13
[exec] [exec] perl-libs 5.10.1
[exec] [exec] perl-version 0.77
[exec] [exec] pinentry 0.7.6
[exec] [exec] pixman 0.32.8
[exec] [exec] pkgconfig 0.23
[exec] [exec] plymouth 0.8.3
[exec] [exec] plymouth-core-libs 0.8.3
[exec] [exec] plymouth-scripts 0.8.3
[exec] [exec] policycoreutils 2.0.83
[exec] [exec] polkit 0.96
[exec] [exec] popt 1.13
[exec] [exec] ppl 0.10.2
[exec] [exec] procps 3.2.8
[exec] [exec] psmisc 22.6
[exec] [exec] pth 2.0.7
[exec] [exec] pulseaudio-libs 0.9.21
[exec] [exec] pygpgme 0.1
[exec] [exec] python 2.6.6
[exec] [exec] python-iniparse 0.3.1
[exec] [exec] python-libs 2.6.6
[exec] [exec] python-pycurl 7.19.0
[exec] [exec] python-urlgrabber 3.9.1
[exec] [exec] readline 6.0
[exec] [exec] redhat-logos 60.0.14
[exec] [exec] rpm 4.8.0
[exec] [exec] rpm-libs 4.8.0
[exec] [exec] rpm-python 4.8.0
[exec] [exec] sed 4.2.1
[exec] [exec] setup 2.8.14
[exec] [exec] sgml-common 0.6.3
[exec] [exec] shadow-utils 4.1.5.1
[exec] [exec] shared-mime-info 0.70
[exec] [exec] sinjdoc 0.5
[exec] [exec] sqlite 3.6.20
[exec] [exec] sudo 1.8.6p3
[exec] [exec] sysvinit-tools 2.87
[exec] [exec] tar 1.23
[exec] [exec] tcp_wrappers-libs 7.6
[exec] [exec] ttmkfdir 3.0.9
[exec] [exec] tzdata 2017c
[exec] [exec] tzdata-java 2017c
[exec] [exec] udev 147
[exec] [exec] unzip 6.0
[exec] [exec] upstart 0.6.5
[exec] [exec] ustr 1.0.4
[exec] [exec] util-linux-ng 2.17.2
[exec] [exec] vim-common 7.4.629
[exec] [exec] vim-enhanced 7.4.629
[exec] [exec] vim-filesystem 7.4.629
[exec] [exec] vim-minimal 7.4.629
[exec] [exec] wget 1.12
[exec] [exec] which 2.19
[exec] [exec] xerces-j2 2.7.1
[exec] [exec] xml-commons-apis 1.3.04
[exec] [exec] xml-commons-resolver 1.1
[exec] [exec] xorg-x11-font-utils 7.2
[exec] [exec] xorg-x11-fonts-Type1 7.2
[exec] [exec] xz 4.999.9
[exec] [exec] xz-devel 4.999.9
[exec] [exec] xz-libs 4.999.9
[exec] [exec] xz-lzma-compat 4.999.9
[exec] [exec] yum 3.2.29
[exec] [exec] yum-metadata-parser 1.1.2
[exec] [exec] yum-plugin-fastestmirror 1.1.30
[exec] [exec] zip 3.0
[exec] [exec] zlib 1.2.3
[exec] [exec]
[exec] [exec] ant -version
[exec] [exec] Apache Ant version 1.7.1 compiled on May 10 2016
[exec] [exec]
[exec] [exec] cc --version
[exec] [exec] cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
[exec] [exec] Copyright (C) 2010 Free Software Foundation, Inc.
[exec] [exec] This is free software; see the source for copying conditions. There is NO
[exec] [exec] warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[exec] [exec]
[exec] [exec]
[exec] [exec] ld --version
[exec] [exec] GNU ld version 2.20.51.0.2-5.47.el6_9.1 20100205
[exec] [exec] Copyright 2009 Free Software Foundation, Inc.
[exec] [exec] This program is free software; you may redistribute it under the terms of
[exec] [exec] the GNU General Public License version 3 or (at your option) a later version.
[exec] [exec] This program has absolutely no warranty.
[exec] [exec]
[exec] [exec] make --version
[exec] [exec] GNU Make 3.81
[exec] [exec] Copyright (C) 2006 Free Software Foundation, Inc.
[exec] [exec] This is free software; see the source for copying conditions.
[exec] [exec] There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
[exec] [exec] PARTICULAR PURPOSE.
[exec] [exec]
[exec] [exec] This program built for x86_64-redhat-linux-gnu
[exec] [exec]
[exec] [exec] ./bin/qemu-img --version
[exec] [exec] qemu-img version 2.0.50, Copyright (c) 2004-2008 Fabrice Bellard
[exec] [exec]
[exec] [exec] make --no-print-directory -f makefiles/mount.mk
[exec] [exec] dd if=/dev/null of=boot.img bs=1048576 seek=487 count=0
[exec] [exec] mkdir -p -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build
[exec] [exec] 0+0 records in
[exec] [exec] 0+0 records out
[exec] [exec] 0 bytes (0 B) copied, 3.9051e-05 s, 0.0 kB/s
[exec] [exec] mkfs -F boot.img -U de505a44-50b7-4757-87e5-a1a547de8dd4
[exec] [exec] mkdir -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build/boot
[exec] [exec] mke2fs 1.41.12 (17-May-2010)
[exec] [exec] Filesystem label=
[exec] [exec] OS type: Linux
[exec] [exec] Block size=1024 (log=0)
[exec] [exec] Fragment size=1024 (log=0)
[exec] [exec] Stride=0 blocks, Stripe width=0 blocks
[exec] [exec] 124928 inodes, 498688 blocks
[exec] [exec] 24934 blocks (5.00%) reserved for the super user
[exec] [exec] First data block=1
[exec] [exec] Maximum filesystem blocks=67633152
[exec] [exec] 61 block groups
[exec] [exec] 8192 blocks per group, 8192 fragments per group
[exec] [exec] 2048 inodes per group
[exec] [exec] Superblock backups stored on blocks:
[exec] [exec] 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
[exec] [exec]
[exec] [exec] Writing inode tables: done
[exec] [exec] Writing superblocks and filesystem accounting information: done
[exec] [exec]
[exec] [exec] This filesystem will be automatically checked every 37 mounts or
[exec] [exec] 180 days, whichever comes first. Use tune2fs -c or -i to override.
[exec] [exec] mount -o loop boot.img /root/OpenSecurityController/osc-core/osc-server-bom/build/boot && trap "umount -d /root/OpenSecurityController/osc-core/osc-server-bom/build/boot" EXIT && make --no-print-directory -f makefiles/packages.mk
[exec] [exec] rpmdb --root /root/OpenSecurityController/osc-core/osc-server-bom/build --initdb
[exec] [exec] mkdir -p -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum
[exec] [exec] mount --bind /root/OpenSecurityController/osc-core/osc-server-bom/var/cache/yum /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum && trap "umount /root/OpenSecurityController/osc-core/osc-server-bom/build/var/cache/yum" EXIT && make -f makefiles/packages.mk vmidc-doit
[exec] [exec] mkdir -p -m 755 /root/OpenSecurityController/osc-core/osc-server-bom/build/etc/rpm
[exec] [exec] echo -e "%_install_langs C:en_US\n%_excludedocs 1\n" > /root/OpenSecurityController/osc-core/osc-server-bom/build/etc/rpm/macros
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build clean all
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Cleaning repos: centos-base centos-extras centos-plus centos-updates
[exec] [exec] Cleaning up Everything
[exec] [exec] Cleaning up list of fastest mirrors
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build clean metadata
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Cleaning repos: centos-base centos-extras centos-plus centos-updates
[exec] [exec] 0 metadata files removed
[exec] [exec] 0 sqlite files removed
[exec] [exec] 0 metadata files removed
[exec] [exec] yum -y -c repo/centos-6-updated.yum.conf --releasever=2.2 --installroot=/root/OpenSecurityController/osc-core/osc-server-bom/build install grep -v ^# centos-6.packages1
[exec] [exec] Loaded plugins: fastestmirror
[exec] [exec] Setting up Install Process
[exec] [exec] Determining fastest mirrors
[exec] [exec] No package audit-libs-2.4.5-6.el6.x86_64
[exec] [exec] available.No package basesystem-10.0-4.el6.noarch
[exec] [exec] available.No package bash-4.1.2-48.el6.x86_64
[exec] [exec] available.No package bzip2-libs-1.0.5-7.el6_0.x86_64
[exec] [exec] available.No package ca-certificates-2016.2.10-65.4.el6.noarch
[exec] [exec] available.No package chkconfig-1.3.49.5-1.el6.x86_64
[exec] [exec] available.No package coreutils-8.4-46.el6.x86_64
[exec] [exec] available.No package coreutils-libs-8.4-46.el6.x86_64
[exec] [exec] available.No package cracklib-2.8.16-4.el6.x86_64
[exec] [exec] available.No package cracklib-dicts-2.8.16-4.el6.x86_64
[exec] [exec] available.No package curl-7.19.7-52.el6.x86_64
[exec] [exec] available.No package cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64
[exec] [exec] available.No package db4-4.7.25-22.el6.x86_64
[exec] [exec] available.No package db4-utils-4.7.25-22.el6.x86_64
[exec] [exec] available.No package elfutils-libelf-0.164-2.el6.x86_64
[exec] [exec] available.No package file-libs-5.04-30.el6.x86_64
[exec] [exec] available.No package filesystem-2.4.30-3.el6.x86_64
[exec] [exec] available.No package glibc-2.12-1.209.el6.i686
[exec] [exec] available.No package glibc-2.12-1.209.el6.x86_64
[exec] [exec] available.No package glibc-common-2.12-1.209.el6.x86_64
[exec] [exec] available.No package gmp-4.3.1-12.el6.x86_64
[exec] [exec] available.No package grep-2.20-6.el6.x86_64
[exec] [exec] available.No package groff-1.18.1.4-21.el6.x86_64
[exec] [exec] available.No package gzip-1.3.12-24.el6.x86_64
[exec] [exec] available.No package info-4.13a-8.el6.x86_64
[exec] [exec] available.No package keyutils-libs-1.4-5.el6.x86_64
[exec] [exec] available.No package krb5-libs-1.10.3-65.el6.x86_64
[exec] [exec] available.No package less-436-13.el6.x86_64
[exec] [exec] available.No package libacl-2.2.49-7.el6.x86_64
[exec] [exec] available.No package libattr-2.4.44-7.el6.x86_64
[exec] [exec] available.No package libcap-2.16-5.5.el6.x86_64
[exec] [exec] available.No package libcom_err-1.41.12-23.el6.x86_64
[exec] [exec] available.No package libcurl-7.19.7-52.el6.x86_64
[exec] [exec] available.No package libgcc-4.4.7-18.el6.i686
[exec] [exec] available.No package libgcc-4.4.7-18.el6.x86_64
[exec] [exec] available.No package libidn-1.18-2.el6.x86_64
[exec] [exec] available.No package libselinux-2.0.94-7.el6.x86_64
[exec] [exec] available.No package libsepol-2.0.41-4.el6.x86_64
[exec] [exec] available.No package libssh2-1.4.2-2.el6_7.1.x86_64
[exec] [exec] available.No package libstdc++-4.4.7-18.el6.x86_64
[exec] [exec] available.No package libtasn1-2.3-6.el6_5.x86_64
[exec] [exec] available.No package lua-5.1.4-4.1.el6.x86_64
[exec] [exec] available.No package make-1:3.81-23.el6.x86_64
[exec] [exec] available.No package ncurses-5.7-4.20090207.el6.x86_64
[exec] [exec] available.No package ncurses-base-5.7-4.20090207.el6.x86_64
[exec] [exec] available.No package ncurses-libs-5.7-4.20090207.el6.x86_64
[exec] [exec] available.No package nspr-4.13.1-1.el6.x86_64
[exec] [exec] available.No package nss-3.27.1-13.el6.x86_64
[exec] [exec] available.No package nss-softokn-3.14.3-23.3.el6_8.x86_64
[exec] [exec] available.No package nss-softokn-freebl-3.14.3-23.3.el6_8.i686
[exec] [exec] available.No package nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64
[exec] [exec] available.No package nss-sysinit-3.27.1-13.el6.x86_64
[exec] [exec] available.No package nss-tools-3.27.1-13.el6.x86_64
[exec] [exec] available.No package nss-util-3.27.1-3.el6.x86_64
[exec] [exec] available.No package openldap-2.4.40-16.el6.x86_64
[exec] [exec] available.No package openssl-1.0.1e-57.el6.x86_64
[exec] [exec] available.No package p11-kit-0.18.5-2.el6_5.2.x86_64
[exec] [exec] available.No package p11-kit-trust-0.18.5-2.el6_5.2.x86_64
[exec] [exec] available.No package pam-1.1.1-24.el6.x86_64
[exec] [exec] available.No package pcre-7.8-7.el6.x86_64
[exec] [exec] available.No package popt-1.13-7.el6.x86_64
[exec] [exec] available.No package readline-6.0-4.el6.x86_64
[exec] [exec] available.No package rpm-4.8.0-55.el6.x86_64
[exec] [exec] available.No package rpm-libs-4.8.0-55.el6.x86_64
[exec] [exec] available.No package sed-4.2.1-10.el6.x86_64
[exec] [exec] available.No package setup-2.8.14-23.el6.noarch
[exec] [exec] available.No package sqlite-3.6.20-1.el6_7.2.x86_64
[exec] [exec] available.No package tzdata-2017b-1.el6.noarch
[exec] [exec] available.No package xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64
[exec] [exec] available.No package zlib-1.2.3-29.el6.x86_64
[exec] [exec] Error: Nothing to do
[exec] [exec] make[2]: [yum-basic-doit] Error 1
[exec] [exec] make[1]: [vmidc] Error 2
[exec] [exec] make: *** [make-image] Error 2
[exec] [exec] available.
[exec] [exec] Result: 2
[exec]
[exec] ovfTest:
[exec]
[exec] ovfFailure:
[exec]
[exec] build:
[exec]
[exec] BUILD SUCCESSFUL
[exec] Total time: 33 seconds
[delete] Deleting: /tmp/build_marker
createBuildDir: [mkdir] Created dir: /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-148-g353071c
copyServerUpgradeBundle: [copy] Copying 1 file to /root/OpenSecurityController/osc-core/Build1.0.0-SNAPSHOT-148-g353071c
copyPlugins:
checkImagesTocopy:
vmdkImageCopy:
BUILD FAILED /root/OpenSecurityController/osc-core/build.xml:121: Warning: Could not find file /root/OpenSecurityController/osc-core/osc-server-bom/OSC_disk-0.vmdk to copy.
@arvindn05,I met a question as up shows ,and I don't know how to solve this problem ,Can you provide a osc image for me?
@liuxuejiao123 unfortunately, we are not allowed to distribute binaries. @karimull is working to solve the issue so you can generate the image.
BTW, if you can provide your email id we can invite you on slack and we can help you better/faster.
Hi , We are currently looking into all the issues you were facing and we were able to reproduce some of them. We are currently updating our docs and fixing one issue to address your issue. This going to take sometime. Meanwhile I can help you build a OSC image on your machine , if we can communicate to each other through slack. Please let me know your time zone , place and other info, we can setup a time today or tomorrow. We are located in California, PST time zone.
@arvindn05 , my email is liuxuejiao3@huawei.com
@liuxuejiao123 @karimull i've sent out the invite for slack. Please continue your discussions there.
I located in China,time zone:UTC/GMT+08:00
OK
@karimull can you please describe the fix so other folks can reference the issue when they encounter similar problems?
@arvindn05, I am having the same GC warnings/core dumps as @liuxuejiao123 (Ubuntu 14.04) trying to build images, can I get a slack invite please? mstair@att.com
@mstair is it the same issue/error? i would open a new issue with the logs if its similar but not the same... @pravinrajr9 can you please help @mstair?
Thanks, basically identical to https://github.com/opensecuritycontroller/community/issues/87#issuecomment-341303942
@mstair I was able to reproduce the error. Can you please run the command ./create-centos again, we usually see those warnings when we run ./create-centos for the first time. After that can you please run the command "schroot -c centos" under the directory "osc-core/osc-server-bom/", you should be successfully able to get the centos chroot..
@mstair I have sent you slack invite, let us know if you face any issues
@pravinrajr9 Thank you, it ran after a few attempts. Are these errors from create-centos innocuous?
./create-centos: line 41: /mnt/sysimage/etc/rpm/macros: No such file or directory
ln: failed to create symbolic link ‘/srv/chroot/centos/etc/mtab’: File exists
This is output from a schroot attempt:
root@osc:/opt/osc/osc-core/osc-server-bom# pwd
/opt/osc/osc-core/osc-server-bom
root@osc:/opt/osc/osc-core/osc-server-bom# schroot -c centos
W: Failed to change to directory ‘/opt/osc/osc-core/osc-server-bom’: No such file or directory
I: The directory does not exist inside the chroot. Use the --directory option to run the command in a different directory.
W: Falling back to directory ‘/root’
-bash-4.1# exit
logout
root@osc:/opt/osc/osc-core/osc-server-bom# schroot --config
# schroot configuration generated by schroot 1.6.8 on 23 May 2018
[centos]
aliases=
command-prefix=
description=CENTOS 6
directory=/srv/chroot/centos
environment-filter=^(BASH_ENV|CDPATH|ENV|HOSTALIASES|IFS|KRB5_CONFIG|KRBCONFDIR|KRBTKFILE|KRB_CONF|LD_.*|LOCALDOMAIN|NLSPATH|PATH_LOCALE|RES_OPTIONS|TERMINFO|TERMINFO_DIRS|TERMPATH)$
groups=vmidc
message-verbosity=normal
preserve-environment=false
profile=default
root-groups=sudo
root-modifiable-keys=
root-users=
setup.config=default/config
setup.copyfiles=default/copyfiles
setup.fstab=default/fstab
setup.nssdatabases=default/nssdatabases
shell=
type=directory
union-type=none
user-modifiable-keys=
users=jenkins
@mstair I hope this is harmless, let me come back on this, please go ahead with installation
@pravinrajr9 Appears they were harmless. I was able to build by copying the osc-core into the chroot dir and then removing "proxy-chain.intel.com" references from the centos yum files. Thank you!
So, I have been facing the same issue, usi g an Ubuntu 14.4, followed the guide but it seems to fail at the end ... ./create-centos gives the same output as @liuxuejiao123 (unable to read the files ) When I run schroot -c centos, it gives me the bash so I guess it works.. But when I run 'ant ovf -Dimage-format=qcow2-only' .. it has a successful build but then gives the error
[exec] BUILD SUCCESSFUL
[exec] Total time: 6 seconds
[delete] Deleting: /tmp/build_marker
createBuildDir:
[mkdir] Created dir: /home/test/Desktop/osc-core/Build1.0.0-SNAPSHOT-38-g4441c96
copyServerUpgradeBundle:
[copy] Copying 1 file to /home/test/Desktop/osc-core/Build1.0.0-SNAPSHOT-38-g4441c96
copyPlugins:
checkImagesTocopy:
vmdkImageCopy:
qcow2ImageCopy:
BUILD FAILED
/home/test/Desktop/osc-core/build.xml:124: Warning: Could not find file /home/test/Desktop/osc-core/osc-server-bom/OSC_disk-0.qcow2 to copy.
If someone figured out a workaround or what is missing please let me know .. I have already tried the suggestions in this thread
Document Issue
Document Location: PATH_TO_DOCUMENT
Document Description:
Status