*** mjturek has quit IRC | 00:07 | |
*** Sukhdev has quit IRC | 00:10 | |
*** rajinir has quit IRC | 04:14 | |
*** eshas has joined #openstack-dib | 04:17 | |
*** andreas_s has joined #openstack-dib | 05:01 | |
*** andreas_s has quit IRC | 05:06 | |
*** mordred has quit IRC | 05:29 | |
*** mordred has joined #openstack-dib | 05:41 | |
*** andreas_s has joined #openstack-dib | 05:48 | |
*** andreas_s has quit IRC | 05:48 | |
*** andreas_s has joined #openstack-dib | 05:48 | |
eshas | Hi | 06:43 |
---|---|---|
eshas | I have created a xenial RAW image from DIB and deployed it, but I cant login to it as it needs creds | 06:51 |
eshas | also its not pingable | 06:51 |
eshas | @tonyb @ianw any clue? | 06:51 |
eshas | I generated ssh keys too and provided public key on deploy , but how to give private key? | 06:52 |
eshas | ssh to ip fails saying cannot connect on port 22 | 06:52 |
*** hashar has joined #openstack-dib | 06:53 | |
ianw | eshas: what elements did you use? | 07:40 |
eshas | :~/dib/env/bin$ sudo DIB_RELEASE=xenial ./disk-image-create -a ppc64el -o ubuntu-xenial -t raw -x vm ubuntu | 07:41 |
eshas | to create RAW image | 07:41 |
eshas | copied it to disk and imported, then on my server ssh-keygen -t rsa -f cloud.key to generate cloud.key.pub and cloud.key | 07:42 |
eshas | I passed cloud.key.pub while creating vm from image | 07:42 |
eshas | VM VNC console goes to Ubuntu login: which is not posible without creds | 07:43 |
eshas | Thus I am trying via server : | 07:44 |
eshas | pvc4 ~]# ssh -o StrictHostKeyChecking=no -i cloud.key ubuntu@9.126.171.242 ssh: connect to host 9.126.171.242 port 22: No route to host | 07:44 |
eshas | but its failing to connect to vm | 07:44 |
eshas | is openssh not installed via DIB ? or is there something else I am doing incorrect | 07:52 |
ianw | i don't use the ubuntu element much; it's based on the upstream image which i think has ssh | 07:53 |
ianw | you might like to use guestfish to attach to the image and poke around in it | 07:53 |
ianw | you are booting this in an openstack cloud, right? | 07:54 |
eshas | yes | 08:08 |
eshas | openstack | 08:08 |
eshas | [root@pvc4 ~]# ssh -vvv -i cloud.key root@9.126.171.242 | 08:08 |
eshas | OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 | 08:08 |
eshas | debug1: Reading configuration data /etc/ssh/ssh_config | 08:08 |
eshas | debug1: /etc/ssh/ssh_config line 58: Applying options for * | 08:08 |
eshas | debug2: resolving "9.126.171.242" port 22 | 08:08 |
eshas | debug2: ssh_connect_direct: needpriv 0 | 08:08 |
eshas | debug1: Connecting to 9.126.171.242 [9.126.171.242] port 22. | 08:09 |
eshas | debug1: connect to address 9.126.171.242 port 22: No route to host | 08:09 |
eshas | ssh: connect to host 9.126.171.242 port 22: No route to host | 08:09 |
eshas | this is the debug log i see | 08:09 |
eshas | and how to assign the ip .. as thats done during OS installation normally but here install is automated | 08:10 |
ianw | eshas: before you go too much further; can you boot and log into a standard imgae like https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img ? | 08:11 |
eshas | but I have only ppc64 env | 08:12 |
ianw | well something like https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-ppc64el-disk1.img ? | 08:13 |
ianw | it's just if your keys aren't in the cloud properly , or something like that, then it's going to be easier to figure out with a known good image from upstream | 08:14 |
eshas | ok, I thought Xenial would download this one only | 08:14 |
eshas | just that I need it to be in RAW else it was not booting in my env | 08:15 |
eshas | image does boot to Ubuntu login: | 08:18 |
eshas | thats where I am stuck | 08:18 |
ianw | right, do you see anything about cloud-init in the logs? | 08:29 |
ianw | console log | 08:29 |
ianw | it should put out something i think | 08:29 |
*** eshas has quit IRC | 09:06 | |
*** eshas has joined #openstack-dib | 09:28 | |
olivierb- | Hello everyone, I have a potentially very basic question but after digging for a bit of time today on it I can not understand the in and outs of my issue or may be this is not an issue at all just something I missed. Here is the stuff: I have used DIB to successfully generate a ubuntu-minimal based image with LVM support that I use to provision a set of machines/VMs using Bifrost/Ironic and this works wonderfully well. However when I | 09:30 |
olivierb- | install some packages on those machines, these packages regenerate the initramfs and kernel but very strangely (at least from my perspective) the new ramdisk is missing a lot of stuff from my original (1 third in size) but also some other stuff added in the new one. Anyways the worse part is that this new ramdisk+kernel does not boot successfully as lvm and xfs drivers are not included (at minima). My question is therefore why does | 09:30 |
olivierb- | this behaviour occur, may be this is not relevant to DIB itself and more a generic linux issue but as a Linux user I would (naively ?) expect that rebuilding a kernel/ramdisk from a working system should lead to a working situation | 09:30 |
olivierb- | any pointer, advice, explanation, hint greatly appreciated | 09:31 |
*** pbourke has quit IRC | 10:15 | |
*** pbourke has joined #openstack-dib | 10:16 | |
ianw | oliverb-: i hate to bear bad news but i've never heard of that before :/ | 10:25 |
*** tflink has quit IRC | 10:34 | |
*** tflink has joined #openstack-dib | 10:35 | |
*** eshas has quit IRC | 11:18 | |
*** tflink has quit IRC | 11:56 | |
*** tflink has joined #openstack-dib | 11:58 | |
*** tflink has quit IRC | 12:05 | |
olivierb- | ianw, no pb, please note I have been using yolanda advices to build my dib reference image but using dracut-regenerate not initramfs, may be this is (partly) where the issue may be. Do I need to provide my dib environment some extra infos so that the deployed image can be updated into idempotent image with same drivers/... ? | 12:10 |
olivierb- | i meant debootstrap not initramfs of course | 12:11 |
*** tflink has joined #openstack-dib | 12:19 | |
*** vmlinuz has joined #openstack-dib | 12:30 | |
*** vmlinuz has joined #openstack-dib | 12:30 | |
*** gaoyan has joined #openstack-dib | 12:41 | |
*** gaoyan has quit IRC | 12:42 | |
*** gaoyan has joined #openstack-dib | 12:48 | |
*** tflink has quit IRC | 12:54 | |
olivierb- | while I am here any pointer to how to use debootstrap with LVM ? | 13:03 |
*** tflink has joined #openstack-dib | 14:12 | |
*** rajinir has joined #openstack-dib | 14:17 | |
*** mjturek has joined #openstack-dib | 14:21 | |
*** gaoyan has quit IRC | 14:49 | |
*** openstackgerrit has quit IRC | 14:50 | |
*** andreas_s has quit IRC | 15:34 | |
*** pavel_V has quit IRC | 15:50 | |
*** hashar is now known as hasharAway | 16:24 | |
*** eshas has joined #openstack-dib | 16:42 | |
eshas | @ianw - do we have logs in DIB? which console log? | 16:45 |
clarkb | eshas: are you asking if the built images write a console log to a tty? | 17:10 |
clarkb | or about logs for the image builds themselves? | 17:10 |
*** eshas has quit IRC | 17:28 | |
*** eshas has joined #openstack-dib | 17:35 | |
*** dhill_ has joined #openstack-dib | 17:35 | |
eshas | clarkb : the RAW ubuntu xenial image I built via DIB , and then deployed vm from it, I am not able to login to it as it asks for Ubuntu login | 17:37 |
eshas | so I was thinking if there is any console log etc where I could see | 17:37 |
clarkb | eshas: you'll either need to bake a user into the image (devuser element can be used for this) or rely on something like cloud-init or glean to configure user(s) on boot for you | 17:37 |
clarkb | for the console log yes you should be able to ask nova or virsh or whatever boot tool you used for the console log | 17:38 |
eshas | ok, i use nova, yes nova logs are there, but there isno error | 17:38 |
eshas | devuser allows user and password to be created? | 17:39 |
clarkb | eshas: yes and ssh keys | 17:39 |
clarkb | eshas: the openstack client can get console logs from nova | 17:39 |
*** dhill_ has quit IRC | 17:39 | |
clarkb | eshas: `openstack server console log $uuid` or similar (I'd have to check the help output) | 17:39 |
eshas | I did generate a ssh key pair and passed public key while deploying vm | 17:39 |
*** dhill_ has joined #openstack-dib | 17:39 | |
clarkb | eshas: which ubuntu element did you use? | 17:40 |
clarkb | eshas: ubuntu-minimal or ubuntu? | 17:40 |
eshas | ubuntu | 17:40 |
clarkb | eshas: try ssh using that key as the ubuntu user | 17:40 |
eshas | :~/dib/env/bin$ sudo DIB_RELEASE=xenial ./disk-image-create -a ppc64el -o ubuntu-xenial -t raw -x vm ubuntu | 17:40 |
eshas | hmm..you mean on login VNC console , use ssh key? | 17:41 |
eshas | ssh private key | 17:41 |
clarkb | eshas: no using ssh client something like `ssh -i path_to_private_key ubuntu@server_ip` | 17:41 |
eshas | [root@pvc4 ~]# ssh -vvv -i cloud.key root@9.126.171.242 | 17:41 |
eshas | OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 | 17:41 |
eshas | debug1: Reading configuration data /etc/ssh/ssh_config | 17:41 |
eshas | debug1: /etc/ssh/ssh_config line 58: Applying options for * | 17:41 |
eshas | debug2: resolving "9.126.171.242" port 22 | 17:41 |
eshas | debug2: ssh_connect_direct: needpriv 0 | 17:41 |
eshas | debug1: Connecting to 9.126.171.242 [9.126.171.242] port 22. | 17:41 |
eshas | debug1: connect to address 9.126.171.242 port 22: No route to host | 17:41 |
eshas | ssh: connect to host 9.126.171.242 port 22: No route to host | 17:41 |
eshas | ok, let me try ubuntu user | 17:41 |
clarkb | eshas: if there is no route to host chances are the ubuntu user won't work either | 17:43 |
eshas | [root@pvc4 ~]# ssh -o StrictHostKeyChecking=no -i cloud.key ubuntu@9.126.171.242 | 17:43 |
eshas | ssh: connect to host 9.126.171.242 port 22: No route to host | 17:43 |
clarkb | eshas: I would check the console log from nova and see that networking is configured properly | 17:43 |
eshas | yes, it didnt | 17:43 |
clarkb | no route to host implies an netowrking issue | 17:43 |
clarkb | check security groups | 17:43 |
eshas | yes, so usually in OS installation , ip, dns,gateway etc is specified | 17:44 |
eshas | here I couldnt do that as OS was automatically installed by DIB | 17:44 |
eshas | but I did specify the ip etc during nova boot | 17:44 |
clarkb | eshas: right cloud-init is supposed to configure that for you on boot | 17:44 |
clarkb | and do so dynamically because you won't know what your IP is until after nova starts creating it | 17:45 |
eshas | yes, but how do we specify cloud-init here | 17:45 |
clarkb | eshas: I believe it is default part of the ubuntu elemnt (which is why I asked which element was used earlier) | 17:45 |
clarkb | however considreing this is ppc there is also a chance it just isn't booting | 17:45 |
eshas | ok | 17:45 |
clarkb | (I'm not sure how well that is tested) | 17:46 |
eshas | if i virsh into it , it just hangs | 17:46 |
eshas | that i why i went via VNC, where ubuntu login: comes up | 17:46 |
clarkb | eshas: you probably want to use the devuser element ot bake in a user you can vnc with then | 17:47 |
eshas | ok, let me chk devuser element | 17:47 |
eshas | :~/dib/env/bin$ sudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=user1 DIB_DEV_USER_USERNAME ./disk-image-create -a ppc64el -o ubuntu-xenial -t raw -x vm ubuntu | 17:53 |
eshas | something like this? | 17:53 |
clarkb | eshas: you only need one DIB_DEV_USER_USERNAME, also I would set a password if accessing via vnc and you may want to enable sudo access too in order to help debug | 17:54 |
eshas | :~/dib/env/bin$ sudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=user1 DIB_DEV_USER_PASSWORD=<pwd> ./disk-image-create -a ppc64el -o ubuntu-xenial -t raw -x vm ubuntu | 17:55 |
clarkb | ya that should wokr, but consider setting the sudo access flag too | 17:55 |
eshas | :~/dib/env/bin$ sudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=user1 DIB_DEV_USER_PASSWORD=<pwd> DIB_DEV_USER_PWDLESS_SUDO ./disk-image-create -a ppc64el -o ubuntu-xenial -t raw -x vm ubuntu | 17:55 |
eshas | ok, this is what I will try now | 17:55 |
clarkb | DIB_DEV_USER_PWDLESS_SUDO=1 | 17:55 |
clarkb | or true or something | 17:55 |
eshas | ok | 17:56 |
eshas | let me try with yes, default is No | 17:56 |
*** Sukhdev has joined #openstack-dib | 17:57 | |
eshas | 2018-04-13 18:03:16.140 | + time_cond='-z /home/neo/.cache/image-create/SHA256SUMS.ubuntu.xenial.ppc64el' | 18:03 |
eshas | 2018-04-13 18:03:16.140 | + success='Server copy has changed. Using server version of https://cloud-images.ubuntu.com/xenial/current/SHA256SUMS' | 18:03 |
eshas | 2018-04-13 18:03:16.141 | ++ curl -v -L -o /home/neo/.cache/image-create/.download.l16bj7PR -w '%{http_code}' --connect-timeout 10 https://cloud-images.ubuntu.com/xenial/current/SHA256SUMS -z /home/neo/.cache/image-create/SHA256SUMS.ubuntu.xenial.ppc64el | 18:03 |
eshas | 2018-04-13 18:03:16.151 | % Total % Received % Xferd Average Speed Time Time Time Current | 18:03 |
eshas | 2018-04-13 18:03:16.151 | Dload Upload Total Spent Left Speed | 18:03 |
eshas | 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0* Resolving timed out after 10522 milliseconds | 18:03 |
eshas | 0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0 | 18:04 |
eshas | 2018-04-13 18:03:26.673 | * Closing connection 0 | 18:04 |
eshas | 2018-04-13 18:03:26.673 | curl: (28) Resolving timed out after 10522 milliseconds | 18:04 |
eshas | 2018-04-13 18:03:26.674 | + rcode=000 | 18:04 |
eshas | 2018-04-13 18:03:26.678 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/common-functions:run_d:1 : trap_cleanup | 18:04 |
eshas | 2018-04-13 18:03:26.681 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:36 : exitval=1 | 18:04 |
eshas | 2018-04-13 18:03:26.683 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:trap_cleanup:37 : cleanup | 18:04 |
eshas | 2018-04-13 18:03:26.685 | + /home/neo/dib/diskimage-builder/diskimage_builder/lib/img-functions:cleanup:42 : dib-block-device umount | 18:04 |
eshas | this is not downloading xenial and just exitting with 1 | 18:04 |
eshas | sudo DIB_RELEASE=xenial DIB_DEV_USER_USERNAME=root DIB_DEV_USER_PASSWORD=passw0rd DIB_DEV_USER_PWDLESS_SUDO=Yes ./disk-image-create -a ppc64el -o ubuntu-xenial1 -t raw -x vm ubuntu | 18:04 |
clarkb | looks like a dns resolution timeout | 18:05 |
clarkb | also can you use a paste service for large pastes like that (paste.openstack.org or githbub gist or similar) | 18:05 |
eshas | ok, sure | 18:11 |
eshas | but its pointing to the same xenial cloud image | 18:12 |
clarkb | eshas: yes your problem is local I think | 18:12 |
eshas | let me see | 18:12 |
clarkb | you can try running the curl yourself to see if you get a different result | 18:12 |
eshas | yes, even the original simple DIB didnt work | 18:14 |
eshas | i will chk the networking | 18:14 |
eshas | do you know if for sles also we can use DIB? | 18:15 |
clarkb | eshas: you can for opensuse, unsure of sles | 18:15 |
eshas | for rhel I think cloud image is there | 18:15 |
eshas | yeah, i couldnt find sles cloud images - so can iso be used directly? | 18:16 |
clarkb | I don't think you can boot an iso with nova, but unsure | 18:17 |
eshas | I need to use ubuntu, rhel and sles (i had iso for all) but just got to know about cloud images and DIB | 18:17 |
eshas | so trying to use it to automate | 18:17 |
eshas | but I need my own custom cloud-init etc | 18:18 |
eshas | and first step to get into vm (login) .. stuck since yest | 18:18 |
eshas | once in I can see if openssh is installed, firewall stuff, and cloud init for netwokring | 18:18 |
eshas | clarkb:SO do you know the code flow on a higher level for DIB? | 18:19 |
clarkb | eshas: yes, there are a series of run stages and each element can add scripts that are executed in order with run-parts for each run stage | 18:20 |
clarkb | then at the end dib converts the source content to your requested output image | 18:20 |
clarkb | you can in theory make an element to support sles, I'm just not sure anyone has done it yet | 18:20 |
eshas | ok .. i will check that | 18:20 |
clarkb | the rhel element might be a good example for how to get your keys/secrets in place | 18:20 |
eshas | hmm..ok.. i will chk that | 18:21 |
eshas | i was only trying to make ubuntu work first | 18:21 |
eshas | Also there are tools like Oz , kickstart files, SuseStudio VeeWee ect | 18:22 |
eshas | but I found DIB more widely used .. not sure if thats the right track as I have a short runway | 18:22 |
clarkb | for x86 I'd definitely recommend it if needing to support many images because then one tool can do it all. I am not sure how well ppc is supported across all of those distros though | 18:23 |
eshas | Automate image creation in openstack env on ppc64le arch . Then customization of image also to b automated - cloudinit , epel etc | 18:24 |
eshas | ok, thats the issue, i could find ppc64le support in DIb only | 18:24 |
eshas | rest tools https://docs.openstack.org/image-guide/create-images-automatically.html didnt seem to have ppc64le | 18:25 |
clarkb | ya it is supported and people like tonyb have been caring for it | 18:26 |
mtreinish | eshas: when tonyb is around he's a good person to talk to about ppc64le and openstack | 18:26 |
mtreinish | heh, clarkb is too quick :) | 18:26 |
eshas | yeah ianw has been helpful and tonyb also | 18:27 |
eshas | clarkb was quick to reply today! | 18:27 |
eshas | I will chk my network setup and retry and get back | 18:27 |
*** eshas has quit IRC | 18:53 | |
*** pavel_V has joined #openstack-dib | 18:58 | |
*** Sukhdev has quit IRC | 19:28 | |
*** openstackgerrit has joined #openstack-dib | 20:13 | |
openstackgerrit | FĂ©lix Bouliane proposed openstack/diskimage-builder master: Allow to pin ubuntu version rather than current https://review.openstack.org/559167 | 20:13 |
*** pavel_V has quit IRC | 20:19 | |
*** pavel_V has joined #openstack-dib | 21:33 | |
*** vmlinuz has quit IRC | 22:22 | |
*** vmlinuz has joined #openstack-dib | 22:23 | |
*** vmlinuz has joined #openstack-dib | 22:23 | |
*** Sukhdev has joined #openstack-dib | 22:51 | |
*** hasharAway has quit IRC | 22:58 | |
*** dhill_ has quit IRC | 23:00 | |
*** dhill_ has joined #openstack-dib | 23:07 | |
*** mjturek has quit IRC | 23:15 | |
*** vmlinuz has quit IRC | 23:37 | |
*** Sukhdev has quit IRC | 23:54 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!