Monday, 2018-04-23

openstackgerritMerged openstack/diskimage-builder master: Stop using slave_scripts/install-distro-packages.sh  https://review.openstack.org/56326400:21
*** phuongnh has joined #openstack-dib01:08
openstackgerritMerged openstack/diskimage-builder master: pip-and-virtualenv: fix install-pip when centos-release-openstack is enabled  https://review.openstack.org/56293602:07
*** phuongnh has quit IRC02:28
*** phuongnh has joined #openstack-dib04:02
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: WIP: Docker matrix build  https://review.openstack.org/41434704:39
*** pmannidi has quit IRC05:37
*** dhill__ has quit IRC05:43
*** hashar has joined #openstack-dib06:02
*** eshas has joined #openstack-dib06:03
eshashi06:03
eshasIam using DIB today freshly downloaded06:04
eshasrunning into this error continuously and unable to create images06:04
eshas2018-04-23 05:47:51.523 | ++ mktemp /home/esha/.cache/image-create/.download.XXXXXXXX 2018-04-23 05:47:51.524 | + tmp=/home/esha/.cache/image-create/.download.KqdUgX4c 2018-04-23 05:47:51.524 | + '[' 0 = 1 ']' 2018-04-23 05:47:51.524 | + '[' -f /home/esha/.cache/image-create/SHA256SUMS.ubuntu.xenial.ppc64el -a -s /home/esha/.cache/image-create/SHA256SUMS.ubuntu.xenial.ppc64el ']' 2018-04-23 05:47:51.524 | + success='Downloaded and06:04
eshas2018-04-23 05:47:51.524 | + success='Downloaded and cached https://cloud-images.ubuntu.com/xenial/current/SHA256SUMS for the first time' 2018-04-23 05:47:51.524 | ++ curl -v -L -o /home/esha/.cache/image-create/.download.KqdUgX4c -w '%{http_code}' --connect-timeout 10 https://cloud-images.ubuntu.com/xenial/current/SHA256SUMS 2018-04-23 05:47:51.524 | /tmp/dib_build.QJ9N8ZVh/hooks/bin/cache-url: line 89: curl: command not found 20106:05
eshas2018-04-23 05:47:51.524 | + rcode= 2018-04-23 05:47:51.528 | + /home/esha/dib/diskimage-builder/diskimage_builder/lib/common-functions:run_d:1  :   trap_cleanup 2018-04-23 05:47:51.530 | + /home/esha/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:36 :   exitval=1 2018-04-23 05:47:51.532 | + /home/esha/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:37 :   cleanup 2018-04-23 05:47:51.506:05
eshaswhyis the curl command failing?06:06
eshasI have been using DIBand since friday running into this issue06:06
eshas@ianw @tonyb @clarkb06:06
ianweshas: do you have curl installed on your builder?06:08
eshashmm dowe have to explicitly?06:08
eshaslet me try that06:08
ianweshas: try running tests/install_test_deps.sh out of the dib source tree, it will install the things you need06:08
eshasalso I am not able to get into env directly by cd /dib/env/bin - it needs me to run activate which wasnot the case before06:10
eshasok, curl installed, going to run test...06:10
ianwclarkb / sean-k-mooney: dropped a comment on https://review.openstack.org/#/c/548958/4 about unicode / tracing / etc.  currently more confuesd than ever06:10
ianweshas: not sure what you mean by that.  but you're best approach is to "source env/dib/bin/activate ; disk-image-create ..."06:11
eshas@ianw I installed curl, ran test for deps.. it installed fewbutremoved manythatare required by me.. might need to reset my setup :(06:18
eshasesha@neo160:~/dib/env/bin$ sudo DIB_RELEASE=xenial openssh-server DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO ./disk-image-create -a ppc64el -o ubuntu-xenial-vm1 -t raw -x vm ubuntu sudo: openssh-server: command not found06:18
eshasthis is the commandI am trying06:18
eshasopenssh-server is not getting recognised06:18
eshasalso if I try to remove it then next error is DIB_DEV_USER_PWDLESS_SUDO not getting recognised as valid06:19
eshasare these 2elements to be used differently06:20
ianwDIB_* is an environment variable ...06:26
ianwi'd suggest you put this in a script, then run that script via sudo.  that will probably be the easiest way to avoid issues with arguments to sudo06:26
eshasso DIB_OPENSSH_SERVER=1 ?06:26
eshasok, I will06:26
eshasand DIB_DEV_USER_PWDLESS_SUDO=1 is required06:27
eshaslet me make a script06:27
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: WIP: Docker matrix build  https://review.openstack.org/41434706:38
*** eshas has quit IRC06:39
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: IP: Docker matrix build  https://review.openstack.org/41434706:53
*** pavel_V has joined #openstack-dib06:59
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: IP: Docker matrix build  https://review.openstack.org/41434707:03
*** pavel_V has quit IRC07:10
*** pavel_V has joined #openstack-dib07:13
openstackgerritAndreas Florath proposed openstack/diskimage-builder master: IP: Docker matrix build  https://review.openstack.org/41434707:26
*** eshas has joined #openstack-dib08:36
*** phuongnh has quit IRC08:41
*** brault has joined #openstack-dib09:10
eshasI created a vm using DIB :  sudo DIB_RELEASE=xenial DIB_OPENSSH_SERVER=1 DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=1 ./disk-image-create -a ppc64el -o ubuntu-xenial-vm1 -t raw -x vm ubuntu09:11
eshasThe vm got createdwith a .d directory that has the /dib/env/bin/ubuntu-xenial-vm1.d/dib-manifests# ls dib_arguments  dib_environment  dib-manifest-dpkg-ubuntu-xenial-vm109:12
eshaswhenItry to ssh to this vm, though it connects via ssh but password fails so cant enter09:13
eshasesha@neo160:~/dib/env/bin$ ssh 9.126.171.244 The authenticity of host '9.126.171.244 (9.126.171.244)' can't be established. ECDSA key fingerprint is SHA256:I8W1S1LJmD6Q0RIISEPalB46fo364HfscZUQd/sst48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '9.126.171.244' (ECDSA) to the list of known hosts. Password: Password: Password: Password: Connection to 9.126.171.244 closed by remote host. Conn09:14
eshaseven viaVNC console Ubuntu login: comes up and I try to enter the username/password entered in env variables but login fails09:16
eshas(env) esha@neo160:~/dib/env/bin$ ssh ubuntu@9.126.171.244 Password: Password: Password: Password: Password: Password: Received disconnect from 9.126.171.244 port 22:2: Too many authentication failures for ubuntu Connection to 9.126.171.244 closed by remote host. Connection to 9.126.171.244 closed.09:19
eshashowdo I login to this vm?09:19
eshas@promethenfire @clarkb @tonyb @ianw?09:21
eshasAm really stuck at login since  a week now09:29
ianweshas: did you include the devuser element in the list?  "vm ubuntu devuser"?09:45
eshassudo DIB_RELEASE=xenial DIB_OPENSSH_SERVER=1 DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=1 ./disk-image-create -a ppc64el -o ubuntu-xenial-vm1 -t raw -x vm ubuntu09:46
eshasthis is where I specified DEV_USER value, do i need to give element again?09:46
eshassudo DIB_RELEASE=xenial DIB_OPENSSH_SERVER=1 DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=1 ./disk-image-create -a ppc64el -o ubuntu-xenial-vm1 -t raw -x vm ubuntu devuser openssh-server09:47
eshasyoumeansomething like this?09:47
ianweshas: yes, like that.  you have environment variables (the capitals), but you need the actual elements listed to get picked up09:48
eshasok, and if I create a script do I need to specify each environment variable eg: export DIB_DEV_USER_PASSWORD=passw0rdetc and just write commandinend like09:50
eshas./disk-image-create -a ppc64el -o ubuntu-xenial-vm1 -t raw -x vm ubuntu devuser openssh-server09:50
eshashowdoI use all this in bash script09:51
eshaslet me try with devuser element etc09:51
ianweshas: you might need to read up on bash environment variables if it's not making sense09:51
ianwthe things *after* disk-image-create are the elements.  before that is environment variables set for the process by the shell, which are used within the elements09:52
eshasok, i will also my network interface is not coming up with ip , i want to customize the cloud init I use09:52
eshasok, thanks for clarifying, I didnt know that we hadto specify elements again09:52
eshasto delete a vm created by DIB, I can just remove the .raw and the .d created for it by DIB?09:56
ianweshas: yes, but it should overwrite it as well10:06
eshasoverwrite implies?10:07
eshasrm -rf .dand rm .raw10:07
eshassudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=1 ./disk-image-create -a ppc64el -o ubuntu-xenial-vm4 -t raw -x vm ubuntu devuser openssh-server10:07
eshastrying with this now10:07
eshasstill it is failing10:12
eshas(env) esha@neo160:~/dib/env/bin$ ssh ubuntu@9.126.171.246 ubuntu@9.126.171.246's password: Permission denied, please try again.10:12
eshasfrom VNC , bringing up network interface is failing10:15
eshaseven on VNC console, ubuntu login: ubuntu and Password: passw0rd is giving invalid login credentials10:20
eshasthis is after using devuser element separately10:20
eshassudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=1 ./disk-image-create -a ppc64el -o ubuntu-xenial-vm4 -t raw -x vm ubuntu devuser openssh-server10:20
eshasand deploying image with this image10:20
eshascan I mount this image as is and chroot to login? or use guestfish? I am not seeing the how these elements help as they dont seem to be working for me10:22
olivierb-Hello dibers, Could someone please have a look at https://review.openstack.org/#/c/562535 and give comments, this would help me finalize the work on this. Many thanks10:29
ianweshas: you can mount it with guestfish10:36
eshas@ianw yes,i think I need to go that way as devuser element is not working / allowing to login10:38
eshasnor via ssh10:38
eshassudo DIB_RELEASE=xenial ./disk-image-create -a ppc64el -o ubuntu-xenial-vm4 -t raw -x vm ubuntu devuser openssh-server10:39
eshaswill only try this and then guestfish to enter vm, lets see10:39
eshasMy aim is to download cloud-img, install OS in RAW, createa vm from image- then configure customized cloud-init, ssh, firewall disable, MAC removal, .rules file removal and networksettings in cloud.cfg along with eth0 setup10:41
eshashttps://docs.openstack.org/image-guide/openstack-images.html#no-hard-coded-mac-address-information - steps including and after this10:41
eshasforppc64el in ubuntu and rhel10:42
eshasI thought DIB could do all that in openstack env, but its not helping as much10:42
ianweshas: i think it can, but as you are seeing there is a fair level of setup in all of this10:46
ianweshas: if you want to run your command with "-x" and also specify a "--logfile" and then attach that logfile to a bug, it might be more helpful.  it's very hard to say what's going on without build logs10:47
eshasok, even guestfish is not able to open the .raw files10:51
eshasI do run with -x10:51
eshaslet me try with --logfile also10:52
eshassudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=ubuntu DIB_DEV_USER_PASSWORD=passw0rd ./disk-image-create -a ppc64el -o ubuntu-xenial-vm5 -t raw -x vm ubuntu devuser openssh-server --logfile11:19
eshasis this how we specifythe log file?11:19
ianwi'd do "disk-image-create -x --logfile=out.log ..."11:26
eshasyeah I made a .txt11:29
eshasopeninga bug11:29
eshasIf I want to install OS with specific options then how doI do it via cloud-image? for examplefordiskpartitioning i use entire disk guided instead of LVM etc11:30
eshashere in cloudimages all that is automated11:30
eshashttps://bugs.launchpad.net/diskimage-builder/+bug/176622811:52
openstackLaunchpad bug 1766228 in diskimage-builder "Unable to login to ubuntu vm created by DIB" [Undecided,New]11:52
eshasthis is the bug I created for issue in login to xenial image with latest DIB code11:53
eshas@ianw please take a look11:53
ianweshas: put a comment, I'd try not using the username "ubuntu" because i think the cloud image already has that user.  the devuser element may not reset it enough to log in.  we should probably fail in devuser if we see there is already a user with that name?12:03
eshasI am trying with devuser currently12:34
eshaswill update in few minutes12:34
*** mjturek has joined #openstack-dib12:53
eshas@ianw : devuser and passw0rd worked finally via VNC12:57
eshashowever ifconfig shows that no ipv4 address is set on vm12:57
*** dhill_ has joined #openstack-dib13:01
*** vmlinuz has joined #openstack-dib13:24
*** vmlinuz has joined #openstack-dib13:24
*** eshas has quit IRC13:42
*** rajinir has joined #openstack-dib15:08
*** pavel_V has quit IRC15:25
*** vmlinuz has quit IRC15:35
*** vmlinuz has joined #openstack-dib15:36
*** vmlinuz has joined #openstack-dib15:36
*** pavel_V has joined #openstack-dib16:00
*** pavel_V has quit IRC17:13
*** odyssey4me has joined #openstack-dib17:57
odyssey4meo/ everyone - I've been experimenting with using diskimage-builder to build base rootfs tarballs which will be used for nspawn/lxc containers17:59
odyssey4meI did a little tweaking to the ubuntu-minimal element to make it.... minimal - because lxc/nspawn containers do not need a kernel installed (they inherit from the host).18:00
odyssey4meSo I'm wondering what the right approach is here to prevent duplication - most of the element is fine, but it is certainly not minimal and can be reduced in a few areas... but obviously this is an established element name so I don't really want to muck with it.18:01
clarkbodyssey4me: ya I don't think you can change it at this point, however you are right minimal actually more accurately means "minimal as defined by default $distro bootstrap tool" and debootstrap gives you a kernel in that case18:01
clarkbodyssey4me: what I would probably do is rely on debootrap element like -minimal does and change the behavior with a different name18:02
odyssey4mewell, as of today's packages on ubuntu xenial, I don't get a kernel - https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu-minimal/package-installs.yaml is giving me a kernel18:02
clarkbubuntu-no-kernel18:02
clarkbodyssey4me: I think that was a relatively new change and debian itself gives you a kernel still?18:03
clarkbodyssey4me: but for backward compat the element has to be consistent?18:03
odyssey4meI haven't explored quite that far - I did see the note from pabelenger that in bionic it doesn't add an init at all18:03
odyssey4mebut it doesn't note anything about kernels18:03
clarkbbasically -minimal was a stand in for not having -minimal element18:04
clarkband that implied kernel18:04
odyssey4meyeah, so I was thinking of adding a new one - say something like 'ubuntu-systemd-container' (or whatever) - and then moving some stuff from ubuntu-minimal into ubuntu-common to prevent duplicaiton18:04
clarkbya I think something like that would work. Basically using ubuntu-mininal should give you consistent results over time but the background machinery can be moved into shared element18:05
odyssey4meok, as long as that's an amenable approach I'll have a go at preparing a patch for it18:06
*** noam__ has joined #openstack-dib18:24
*** noam__ has left #openstack-dib18:25
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Move common ubuntu environment setting to ubuntu-common element  https://review.openstack.org/56373118:34
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Move common ubuntu environment setting to ubuntu-common element  https://review.openstack.org/56373118:36
*** vmlinuz has quit IRC18:51
*** vmlinuz has joined #openstack-dib18:51
*** vmlinuz has joined #openstack-dib18:51
*** rajinir has quit IRC19:08
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Remove redundant sources change/update  https://review.openstack.org/56373919:12
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Add ubuntu-systemd-container operating-system element  https://review.openstack.org/56374819:40
*** pavel_V has joined #openstack-dib19:55
*** pavel_V has quit IRC20:11
*** mjturek has quit IRC20:38
*** mjturek has joined #openstack-dib20:40
*** mjturek has quit IRC20:44
*** rajinir has joined #openstack-dib20:45
*** pavel_V has joined #openstack-dib21:11
*** vmlinuz has quit IRC21:22
*** vmlinuz has joined #openstack-dib21:22
*** vmlinuz has joined #openstack-dib21:22
*** vmlinuz has quit IRC21:33
ianwodyssey4me: i'll take a look, i feel like greghaynes has done some work on kernel-less images at one point21:37
greghaynesYes a long time ago, I think I just ignored the kernel issue but I agree that should be fixed21:38
greghaynesHappy to look at patches for that21:39
greghaynesWith the python3 stuff, something ive been wondering about is expressing default element-deps that can be overriden. For this case of not wanting a kernel then ubuntu-minimal could express a default dependency on a ubuntu-kernel element but another element (no-kernel) could element-provides ubuntu-kernel which would get noticed if added to the build and would prevent adding the normal ubuntu-kernel21:41
greghayneselement21:41
greghaynesclarkb: openstackgerrit I want to say when we had the bug where we were installing two kernel versions in ubuntu-minimal I fixed that by removing kernel from the initial debootstrap21:43
greghayneser odyssey4me ^21:43
greghaynesyea https://github.ibm.com/wrigley/icp-core/blob/master/icp_core/db/ipam.py#L9421:43
greghaynesargh, https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/ubuntu-minimal/package-installs.yaml#L121:43
clarkbah that is why we do an explicit install later21:44
clarkbwhich should be fine if we move everything but that out of the -minimal element21:44
clarkbthen -minimal can install a kernel and be on its way21:45
greghaynesclarkb: yea, what goes on is debootstrap doesnt have the smarts to pull in updates repos so once theres a newer kernel you install the original version in debootstrap then upgrade to the newer one21:45
greghaynesclarkb: yes, alternatively theres some flexibility since its package installs - could add a special installtype for 'nokernel'21:45
greghaynesnot sure what option is going to be least pain21:46
greghaynesyea so if you wanted to not duplicate the ubuntu element we could add a package-installs flag "installtype_excludes" which means "dont install this package for this installtype". Then you could set installtype_excludes: nokernel in that ubuntu-minimal package-installs.yaml21:50
greghaynesat which point to use it you can DIB_INSTALLTYPE_ubuntu_minimal=nokernel21:51
greghaynesbut also doing the common element / kernel and container element is fine *shrug*21:53
*** hashar has quit IRC21:54
ianwgreghaynes: heh, i started writing that for mbr too.  i wanted it to choose mbr as the default, but have it be able to be overwritten22:04
greghaynesianw: yea, itd work great for the py3k stuff too I think22:05
greghaynesso maybe worth doing22:05
*** pavel_V has quit IRC22:06
*** dhill_ has quit IRC22:14
ianwit got too hard and i forget why.  from memory i was thinking of having extra stuff after elements in elements-deps22:14
ianwso it was like22:14
ianwblock-device : block-device-mbr22:14
ianwwhich meant "depends on block-device, but if none specified used block-device-mbr"22:14
ianwthen i started pulling apart the element solving stuff to implement that, and it all got too hard iirc :)22:15
*** dhill_ has joined #openstack-dib22:16
greghaynesahh fun22:21
*** dhill_ has quit IRC22:34
*** dhill_ has joined #openstack-dib22:43
*** dhill_ has quit IRC22:54
*** dhill_ has joined #openstack-dib23:00
*** dhill_ has quit IRC23:38
*** dhill_ has joined #openstack-dib23:45
*** dhill_ has quit IRC23:53

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!