*** dhill_ has quit IRC | 01:06 | |
*** dhill_ has joined #openstack-dib | 01:11 | |
*** dhill_ has quit IRC | 01:23 | |
*** dhill_ has joined #openstack-dib | 01:23 | |
*** tonyb has joined #openstack-dib | 01:50 | |
prometheanfire | ianw: fixed | 02:16 |
---|---|---|
*** chhagarw has joined #openstack-dib | 04:07 | |
*** andreas_s has joined #openstack-dib | 04:30 | |
*** andreas_s has quit IRC | 04:35 | |
*** andreas_s has joined #openstack-dib | 06:33 | |
*** andreas_s has quit IRC | 06:42 | |
*** ADMINIBM has joined #openstack-dib | 06:45 | |
ADMINIBM | Hi, I am trying to automate vm creation in openstack based product and came across DIB,OZ and VeeWee along with other tools. I am using a ppc64 based environment - for now KVM on ppc64 arch and want to automate image creation for Linux flavors - RHEL, SLES and Ubuntu - I want to use the latest versions of these OS - for eg Ubuntu 18.04 to start with | 06:47 |
ADMINIBM | I installed python-diskimage-builder and used sudo DIB_RELEASE=xenial disk-image-create -a ppc64el -o ubuntu-xenial.qcow2 -x vm ubuntu | 06:51 |
ADMINIBM | This did proceed to download the cloudimage and run pre-install script but failed saying no python in /bin/usr/env | 06:56 |
ADMINIBM | I want to ask 1. If dib is the only tool with ppc64 arch support for image creation | 06:57 |
ADMINIBM | 2. does DIB use cloudimages for all RHEL , SLES and Ubuntu flavors or iso need to be used for latest versions image creation? | 06:57 |
*** hashar has joined #openstack-dib | 06:58 | |
*** andreas_s has joined #openstack-dib | 07:26 | |
rm_work | the LATEST for Ubuntu uses a tgz I think? But, IMO if you are building images for openstack clouds based on the standard distros, DIB is definitely what you want to be using... | 08:49 |
rm_work | It is the official tool AFAIU | 08:49 |
rm_work | other projects inside openstack that build images all rely on DIB | 08:49 |
openstackgerrit | Bharat Kunwar proposed openstack/diskimage-builder master: Fix yaml dependency issue with dracut-regenerate for python3 https://review.openstack.org/558497 | 09:01 |
ADMINIBM | https://cloud-images.ubuntu.com/bionic/current/ | 09:10 |
ADMINIBM | this is the site for ubuntu 18.04 cloud images in which I want to use ppc64le | 09:10 |
ianw | ADMINIBM: dib does work with ppc64, and tonyb is the person to talk to probably | 09:20 |
ADMINIBM | @ianw thanks, yes I saw DIB has ppc64le only for Ubuntu but even with that I was not able to disk-image-create bionic ubuntu 18.04 on ppc64le - it said it needed python although I have that installed | 09:22 |
ADMINIBM | @tonyb could you provide inputs | 09:22 |
ianw | ADMINIBM: can you put a full log into pastebin or similar? | 09:24 |
ianw | ADMINIBM: also, maybe try "ubuntu-minimal" ... that actually builds things up from debootstrap, and may work better | 09:24 |
ADMINIBM | :~/diskimage-builder$ sudo DIB_RELEASE=bionic disk-image-create -a ppc64el -o ubuntu-bionic.qcow2 -x vm ubuntu | 09:25 |
ADMINIBM | this is the command I used | 09:25 |
ADMINIBM | I have installed python-diskimage-builder | 09:25 |
ADMINIBM | + true | 09:25 |
ADMINIBM | + case "$1" in | 09:25 |
ADMINIBM | + shift | 09:25 |
ADMINIBM | + break | 09:25 |
ADMINIBM | + export DIB_IMAGE_CACHE=/home/neo/.cache/image-create | 09:25 |
ADMINIBM | + DIB_IMAGE_CACHE=/home/neo/.cache/image-create | 09:25 |
ADMINIBM | + mkdir -p /home/neo/.cache/image-create | 09:26 |
ADMINIBM | + '[' '' = 1 -a /home/neo '!=' '' ']' | 09:26 |
ADMINIBM | + source /usr/bin/../share/diskimage-builder/lib/img-defaults | 09:26 |
ADMINIBM | ++ source /usr/bin/../share/diskimage-builder/lib/common-defaults | 09:26 |
ADMINIBM | +++ '[' -f /etc/debian_version ']' | 09:26 |
ADMINIBM | ++++ dpkg --print-architecture | 09:26 |
ADMINIBM | +++ _ARCH=ppc64el | 09:26 |
ADMINIBM | +++ ARCH=ppc64el | 09:26 |
ADMINIBM | +++ export ARCH | 09:26 |
ADMINIBM | +++ export DIB_NO_TMPFS=0 | 09:26 |
ADMINIBM | +++ DIB_NO_TMPFS=0 | 09:26 |
ADMINIBM | +++ export DIB_MIN_TMPFS=2 | 09:26 |
ADMINIBM | +++ DIB_MIN_TMPFS=2 | 09:26 |
ADMINIBM | +++ _BASE_ELEMENT_DIR=/usr/bin/../share/diskimage-builder/elements | 09:26 |
ADMINIBM | +++ ELEMENTS_PATH= | 09:26 |
ADMINIBM | +++ export ELEMENTS_PATH=/usr/bin/../share/diskimage-builder/elements | 09:26 |
ADMINIBM | +++ ELEMENTS_PATH=/usr/bin/../share/diskimage-builder/elements | 09:26 |
ADMINIBM | +++ export DIB_OFFLINE= | 09:26 |
ADMINIBM | +++ DIB_OFFLINE= | 09:26 |
ADMINIBM | +++ [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin =~ :/sbin ]] | 09:26 |
ADMINIBM | +++ [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin =~ :/usr/sbin ]] | 09:26 |
ADMINIBM | +++ [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin =~ :/usr/local/sbin ]] | 09:26 |
ADMINIBM | ++ FS_TYPE=ext4 | 09:26 |
ADMINIBM | ++ export IMAGE_TYPE=qcow2 | 09:26 |
ADMINIBM | ++ IMAGE_TYPE=qcow2 | 09:26 |
ianw | please don't paste it in here... | 09:26 |
ADMINIBM | ++ export IMAGE_NAME=ubuntu-bionic.qcow2 | 09:26 |
ADMINIBM | ++ IMAGE_NAME=ubuntu-bionic.qcow2 | 09:26 |
ADMINIBM | + source /usr/bin/../share/diskimage-builder/lib/common-functions | 09:27 |
ADMINIBM | + source /usr/bin/../share/diskimage-builder/lib/img-functions | 09:27 |
ADMINIBM | + '[' 0 == 1 ']' | 09:27 |
ADMINIBM | + '[' -z 'vm ubuntu' ']' | 09:27 |
ADMINIBM | + arg_to_elements vm ubuntu | 09:27 |
ADMINIBM | + for arg in '"$@"' | 09:27 |
ADMINIBM | + IMAGE_ELEMENT=' vm' | 09:27 |
ADMINIBM | + for arg in '"$@"' | 09:27 |
ADMINIBM | + IMAGE_ELEMENT=' vm ubuntu' | 09:27 |
ADMINIBM | + '[' '' '!=' 1 ']' | 09:27 |
ADMINIBM | + IMAGE_ELEMENT='base vm ubuntu' | 09:27 |
ADMINIBM | + '[' 0 == 1 ']' | 09:27 |
ADMINIBM | + echo 'Building elements: base vm ubuntu' | 09:27 |
ADMINIBM | Building elements: base vm ubuntu | 09:27 |
ADMINIBM | ++ /usr/bin/element-info base vm ubuntu | 09:27 |
ADMINIBM | Traceback (most recent call last): | 09:27 |
ADMINIBM | File "/usr/bin/element-info", line 21, in <module> | 09:27 |
ADMINIBM | sys.exit(main(sys.argv)) | 09:27 |
ADMINIBM | TypeError: main() takes no arguments (1 given) | 09:27 |
ADMINIBM | + IMAGE_ELEMENT= | 09:27 |
ADMINIBM | oh ok, where is paste-bin/ | 09:27 |
ADMINIBM | sudo DIB_RELEASE=bionic disk-image-create -a ppc64el -o ubuntu-bionic.qcow2 -x vm ubuntu-minimal | 09:27 |
ADMINIBM | gives same error | 09:27 |
ianw | ADMINIBM: paste.openstack.org is fine | 09:27 |
ianw | ADMINIBM: have you installed it? | 09:28 |
ianw | in a virtualenv? | 09:28 |
ADMINIBM | http://paste.openstack.org/show/718720/ | 09:29 |
ADMINIBM | have you installed it? - installed what ? | 09:29 |
ADMINIBM | I have installed python-diskimage-builder in KVM on ppc64le | 09:30 |
ianw | is that a system package? | 09:30 |
ADMINIBM | The base OS for KVM is 16.04 Ubuntu | 09:31 |
ianw | hmm, i think that's probably the issue, you'll need to use from upstream | 09:31 |
ADMINIBM | https://pypi.python.org/pypi/diskimage-builder/2.7.2 | 09:32 |
ianw | ADMINIBM: try https://docs.openstack.org/diskimage-builder/latest/developer/index.html#quickstart | 09:32 |
ADMINIBM | you mean clone it and then use disk-image builder | 09:33 |
ianw | yes, follow those instructions to make a virtualenv and run it from in there | 09:35 |
ADMINIBM | ok, I created it and followed steps | 09:36 |
ADMINIBM | let me try xenial now | 09:37 |
ADMINIBM | retried debian | 09:38 |
ADMINIBM | same error | 09:38 |
ADMINIBM | http://paste.openstack.org/show/718721/ | 09:39 |
*** andreas_s has quit IRC | 09:40 | |
ianw | /usr/bin/element-info | 09:45 |
ianw | it's still using the system version | 09:45 |
ianw | try ./path/to/venv/bin/disk-image-create | 09:45 |
ADMINIBM | ./path/to/venv/bin/disk-image-create | 10:14 |
ADMINIBM | whats this? | 10:14 |
*** andreas_s has joined #openstack-dib | 10:16 | |
ianw | ADMINIBM: i mean run the disk-image-create binary that is inside the virtualenv | 10:25 |
ADMINIBM | even if I go inside the directory , which was same | 10:32 |
ADMINIBM | 0:~/dib/diskimage-builder/diskimage_builder$ sudo DIB_RELEASE=bionic ./disk-image-create.py -a ppc64el -o ubuntu-bionic.qcow2 -x vm ubuntu-minimal | 10:32 |
ADMINIBM | sudo: ./disk-image-create.py: command not found | 10:32 |
ADMINIBM | .py file can be only run by python not as script | 10:33 |
ianw | ADMINIBM: no, it is a binary file | 10:33 |
ADMINIBM | hmm..its listing as .py | 10:34 |
ianw | where did you make the virtualenv? | 10:34 |
ADMINIBM | in this path itself | 10:34 |
ADMINIBM | I followed exact instructions that were there on site | 10:34 |
ianw | then you should be able to run "disk-image-create" and it will choose the one from the virtualenv | 10:35 |
ADMINIBM | /home/neo/dib/diskimage-builder/diskimage_builder | 10:35 |
ianw | no you want /home/neo/dib/bin/disk-image-create | 10:36 |
ianw | "/home/neo/dib" is your virtualenv | 10:36 |
ADMINIBM | I changed directory a bit and got to the env | 10:39 |
ADMINIBM | running disk-image-create | 10:39 |
ianw | maybe uninstall the package to avoid any confusion | 10:41 |
ianw | i have nothing against the package, but it's quite old and not kept up-to-date, just because our processes are all pretty much around running from master | 10:42 |
ADMINIBM | ok, i will uninstall python-diskimage-builder | 10:44 |
ADMINIBM | good news is : | 10:45 |
ADMINIBM | 2018-04-09 10:42:40.904 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:compress_and_save_image:156 : echo 'Converting image using qemu-img convert' | 10:45 |
ADMINIBM | 2018-04-09 10:42:40.905 | Converting image using qemu-img convert | 10:45 |
ADMINIBM | 2018-04-09 10:42:40.907 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:compress_and_save_image:157 : qemu-img convert -c -f raw -O qcow2 /tmp/dib_image.bgwnq2Jj/image0.raw ubuntu-bionic.qcow2-new | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.626 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:compress_and_save_image:160 : OUT_IMAGE_PATH=ubuntu-bionic.qcow2-new | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.628 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:compress_and_save_image:161 : finish_image ubuntu-bionic.qcow2 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.630 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:finish_image:55 : '[' -f ubuntu-bionic.qcow2 -a 0 -eq 0 ']' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.633 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:finish_image:67 : mv ubuntu-bionic.qcow2-new ubuntu-bionic.qcow2 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.636 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:finish_image:68 : '[' 0 == 1 ']' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.638 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:finish_image:73 : echo 'Image file ubuntu-bionic.qcow2 created...' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.638 | Image file ubuntu-bionic.qcow2 created... | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.641 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/disk-image-create:main:540 : '[' -n '' ']' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.643 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/disk-image-create:main:547 : cleanup_image_dir | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.645 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:cleanup_image_dir:214 : kill_chroot_processes /tmp/dib_image.bgwnq2Jj | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.704 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:cleanup_image_dir:215 : tmpfs_check 0 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.707 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:23 : local echo_message=0 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.709 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:24 : '[' 0 == 0 ']' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.712 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:25 : '[' -r /proc/meminfo ']' | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.715 | ++ /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:26 : awk '/^MemTotal/ { print $2 }' /proc/meminfo | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.719 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:26 : total_kB=267810048 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.722 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:29 : RAM_NEEDED=4 | 10:45 |
ADMINIBM | 2018-04-09 10:43:21.724 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:30 : '[' 267810048 -lt 4194304 ']' | 10:46 |
ADMINIBM | 2018-04-09 10:43:21.726 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:tmpfs_check:30 : return 0 | 10:46 |
ADMINIBM | 2018-04-09 10:43:21.729 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:cleanup_image_dir:216 : timeout 120 sh -c 'while ! sudo umount -f /tmp/dib_image.bgwnq2Jj; do sleep 1; done' | 10:46 |
ADMINIBM | 2018-04-09 10:43:21.790 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:cleanup_image_dir:221 : rm -rf --one-file-system /tmp/dib_image.bgwnq2Jj | 10:46 |
ADMINIBM | 2018-04-09 10:43:21.793 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/disk-image-create:main:550 : trap EXIT | 10:46 |
ADMINIBM | ubuntu-bionic.qcow2-new | 10:46 |
ADMINIBM | seems to be new image | 10:46 |
ADMINIBM | let me see where its created | 10:46 |
*** dhill_ has quit IRC | 11:26 | |
ADMINIBM | @tonyb Hi, I am trying to automate vm creation in openstack based product and came across DIB,OZ and VeeWee along with other tools. I am using a ppc64 based environment - for now KVM on ppc64 arch and want to automate image creation for Linux flavors - RHEL, SLES and Ubuntu - I want to use the latest versions of these OS - for eg Ubuntu 18.04 to start with | 11:36 |
ADMINIBM | <ADMINIBM> I installed python-diskimage-builder and used sudo DIB_RELEASE=xenial disk-image-create -a ppc64el -o ubuntu-xenial.qcow2 -x vm ubuntu | 11:36 |
ADMINIBM | <ADMINIBM> This did proceed to download the cloudimage and run pre-install script but failed saying no python in /bin/usr/env | 11:36 |
ADMINIBM | <ADMINIBM> I want to ask 1. If dib is the only tool with ppc64 arch support for image creation | 11:36 |
ADMINIBM | <ADMINIBM> 2. does DIB use cloudimages for all RHEL , SLES and Ubuntu flavors or iso need to be used for latest versions image creation? | 11:36 |
ADMINIBM | @ianw gave me inputs with which i could create ubuntu qcow2 image for bionic using :~/dib/env/bin$ sudo DIB_RELEASE=bionic ./disk-image-create -a ppc64el -o ubuntu-bionic.qcow2 -x vm ubuntu-minimal | 11:39 |
*** hwoarang has joined #openstack-dib | 12:12 | |
*** ADMINIBM has quit IRC | 12:42 | |
*** vmlinuz has joined #openstack-dib | 12:43 | |
*** vmlinuz has joined #openstack-dib | 12:43 | |
*** mjturek has joined #openstack-dib | 12:44 | |
*** hwoarang has quit IRC | 12:57 | |
*** hwoarang has joined #openstack-dib | 12:57 | |
*** hwoarang has quit IRC | 13:35 | |
*** chhagarw has quit IRC | 13:48 | |
*** hwoarang has joined #openstack-dib | 15:14 | |
*** ADMINIBM has joined #openstack-dib | 15:16 | |
ADMINIBM | @tonyb are you there? | 15:27 |
*** andreas_s has quit IRC | 15:28 | |
ADMINIBM | @ianw what is the storage media used for the images created by DIB | 15:28 |
ADMINIBM | ? | 15:29 |
*** andreas_s has joined #openstack-dib | 15:29 | |
*** andreas_s has quit IRC | 15:38 | |
*** andreas_s has joined #openstack-dib | 15:38 | |
*** andreas_s has quit IRC | 15:43 | |
*** andreas_s has joined #openstack-dib | 15:48 | |
*** andreas_s has quit IRC | 16:06 | |
*** andreas_s has joined #openstack-dib | 16:07 | |
*** hashar has quit IRC | 16:10 | |
*** ADMINIBM has quit IRC | 16:19 | |
*** andreas_s has quit IRC | 16:20 | |
*** andreas_s has joined #openstack-dib | 16:26 | |
*** andreas_s has quit IRC | 16:35 | |
*** dhill_ has joined #openstack-dib | 16:39 | |
*** andreas_s has joined #openstack-dib | 16:40 | |
*** hashar has joined #openstack-dib | 16:42 | |
*** ADMINIBM has joined #openstack-dib | 16:43 | |
*** dhill_ has quit IRC | 16:48 | |
*** dhill_ has joined #openstack-dib | 16:48 | |
*** andreas_s has quit IRC | 16:49 | |
*** andreas_s has joined #openstack-dib | 16:54 | |
*** dhill__ has joined #openstack-dib | 17:02 | |
*** dhill_ has quit IRC | 17:03 | |
*** andreas_s has quit IRC | 17:09 | |
*** andreas_s has joined #openstack-dib | 17:28 | |
*** andreas_s has quit IRC | 17:32 | |
*** chhagarw has joined #openstack-dib | 17:42 | |
*** ADMINIBM has quit IRC | 17:50 | |
*** andreas_s has joined #openstack-dib | 18:00 | |
*** andreas_s has quit IRC | 18:15 | |
*** chhagarw has quit IRC | 18:45 | |
*** chhagarw has joined #openstack-dib | 18:58 | |
*** chhagarw has quit IRC | 20:45 | |
*** vmlinuz has quit IRC | 21:04 | |
ianw | ADMINIBM: tonyb and myself are in.au tz | 21:08 |
ianw | oh, they've gone | 21:08 |
tonyb | ianw: Yeah. | 21:12 |
ianw | tonyb: well you get the gist, they were interested in ppc64 builds. at least they seemed to get to the point of getting a .qcow2 out the other end, so hopefully enough to keep evaluating | 21:15 |
tonyb | Yeah I got more deets in a PM. They confused me with ppc64 vs ppc64{le,el} and they're interested in all the distros and of course you can't do RHEL without a subscription | 21:16 |
tonyb | I have no idea about *suse* | 21:16 |
*** vmlinuz has joined #openstack-dib | 21:21 | |
*** vmlinuz has joined #openstack-dib | 21:21 | |
*** vmlinuz has quit IRC | 21:22 | |
*** hashar has quit IRC | 21:37 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!