*** pmannidi has quit IRC | 00:06 | |
*** pmannidi has joined #openstack-dib | 00:22 | |
*** dhill_ has quit IRC | 00:43 | |
*** dhill_ has joined #openstack-dib | 00:51 | |
*** phuongnh has joined #openstack-dib | 01:38 | |
*** yolanda__ has joined #openstack-dib | 01:40 | |
*** yolanda_ has quit IRC | 01:44 | |
*** rajinir has quit IRC | 01:48 | |
*** mordred has quit IRC | 02:12 | |
*** ianw_pto has quit IRC | 02:12 | |
*** ianw has joined #openstack-dib | 02:13 | |
*** mordred has joined #openstack-dib | 02:13 | |
*** dhill_ has quit IRC | 02:46 | |
*** dhill_ has joined #openstack-dib | 02:54 | |
*** andreas_s has joined #openstack-dib | 03:23 | |
*** andreas_s has quit IRC | 03:28 | |
*** yolanda__ is now known as yolanda | 05:45 | |
*** eshas has joined #openstack-dib | 06:00 | |
eshas | Any clue on how to pass my own cloud-init package and my own image to DIB | 06:00 |
---|---|---|
eshas | this is required because currently the ubuntu vm created by DIB is not setting the ipv4 address on vm hence networking is not working | 06:04 |
*** yuvaladar has joined #openstack-dib | 06:08 | |
*** yuvaladar has quit IRC | 06:09 | |
*** eshas has quit IRC | 06:16 | |
*** hashar has joined #openstack-dib | 06:31 | |
*** andreas_s has joined #openstack-dib | 06:35 | |
*** yuvaladar has joined #openstack-dib | 07:16 | |
*** andreas_s has quit IRC | 07:18 | |
*** andreas_s has joined #openstack-dib | 07:19 | |
*** andreas_s_ has joined #openstack-dib | 07:21 | |
*** andreas__ has joined #openstack-dib | 07:23 | |
*** andreas_s has quit IRC | 07:23 | |
*** andreas__ has quit IRC | 07:26 | |
*** andreas_s_ has quit IRC | 07:26 | |
*** andreas_s has joined #openstack-dib | 07:30 | |
*** pmannidi has quit IRC | 07:35 | |
*** andreas_s has quit IRC | 07:39 | |
*** andreas_s has joined #openstack-dib | 07:44 | |
*** pmannidi has joined #openstack-dib | 07:49 | |
olivierb- | <eshas> may be dhcp-all-interfaces element could also help | 08:02 |
*** andreas_s has quit IRC | 08:02 | |
*** andreas_s has joined #openstack-dib | 08:09 | |
*** andreas_s has quit IRC | 08:18 | |
*** andreas_s has joined #openstack-dib | 08:23 | |
*** openstackgerrit has joined #openstack-dib | 08:24 | |
openstackgerrit | Jesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Move common ubuntu environment setting to ubuntu-common element https://review.openstack.org/563731 | 08:24 |
openstackgerrit | Jesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Remove redundant sources change/update https://review.openstack.org/563739 | 08:25 |
openstackgerrit | Jesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Add ubuntu-systemd-container operating-system element https://review.openstack.org/563748 | 08:25 |
*** andreas_s has quit IRC | 08:29 | |
*** andreas_s has joined #openstack-dib | 08:29 | |
*** andreas_s has quit IRC | 08:30 | |
*** andreas_s_ has joined #openstack-dib | 08:33 | |
*** eshas has joined #openstack-dib | 08:34 | |
*** yuvaladar has quit IRC | 08:42 | |
*** eshas has quit IRC | 08:47 | |
*** mtreinish has quit IRC | 09:41 | |
*** mtreinish has joined #openstack-dib | 09:47 | |
*** eshas has joined #openstack-dib | 09:48 | |
eshas | is there a way to specify the network details in DIB like ipv4 etc, cause the xenial vm deployed via DIB does not allocate the ip address hence vm not pingable | 09:49 |
eshas | @clarkb , @ianw ,tonyb ? | 09:50 |
eshas | @greghaynes? | 09:50 |
*** esha1 has joined #openstack-dib | 09:59 | |
esha1 | Couple of issues I am seeing : 1.How to use my own cloud init package as current one downloaded v18.2 does not allocate ipv4 address | 10:08 |
esha1 | 2.I need to use my own cloud image instead of any downloaded by DIB, any element for that? | 10:09 |
esha1 | 3.I am getting a disk out of space issue and hence no images are getting created by DIB | 10:10 |
esha1 | Any response to above queries? | 10:11 |
*** andreas_s_ has quit IRC | 10:37 | |
*** esha1 has quit IRC | 10:47 | |
*** yolanda_ has joined #openstack-dib | 10:53 | |
*** yolanda__ has joined #openstack-dib | 10:54 | |
*** yolanda has quit IRC | 10:56 | |
*** yolanda_ has quit IRC | 10:58 | |
*** andreas_s has joined #openstack-dib | 11:17 | |
*** phuongnh has quit IRC | 11:33 | |
*** rm_work has quit IRC | 11:39 | |
*** rm_work has joined #openstack-dib | 11:39 | |
*** eshas has quit IRC | 11:59 | |
*** vmlinuz has joined #openstack-dib | 12:20 | |
*** vmlinuz has joined #openstack-dib | 12:20 | |
*** dhill_ has quit IRC | 13:38 | |
*** mjturek has joined #openstack-dib | 13:44 | |
*** dhill_ has joined #openstack-dib | 13:47 | |
sai_ | greghaynes: hey seeing this when running diskimage builder? maybe from pip-and-virtualenv element? How do i debug futher? | 13:59 |
sai_ | https://gist.githubusercontent.com/smalleni/64b0286b1bf66d659d3ef2123f1c8f66/raw/9a88a4921c39f7269ad37800e00432bb6809eb45/gistfile1.txt | 13:59 |
sai_ | olivierb-: ^ | 14:10 |
olivierb- | sai_ not sure why you point me to this ? | 14:15 |
sai_ | olivierb-: just asking around for help :-) | 14:15 |
* sai_ checked last few responses in grp | 14:15 | |
olivierb- | ok got it | 14:16 |
olivierb- | there has been quite some changes related to pip lately I think | 14:17 |
olivierb- | https://review.openstack.org/#/c/562936/ | 14:18 |
olivierb- | https://review.openstack.org/#/c/561479/ | 14:18 |
olivierb- | not sure it relates to your issue though | 14:18 |
*** rajinir has joined #openstack-dib | 14:22 | |
sai_ | thanks olivierb- | 15:24 |
*** dhill_ has quit IRC | 15:53 | |
*** dhill_ has joined #openstack-dib | 16:01 | |
*** andreas_s has quit IRC | 16:01 | |
*** andreas_s_ has joined #openstack-dib | 16:04 | |
*** andreas_s_ has quit IRC | 16:08 | |
*** esha1 has joined #openstack-dib | 17:48 | |
esha1 | .I need to use my own cloud image instead of any downloaded by DIB, any element for that? - I found DIB_LOCAL_IMAGE .. this can do it I think for RHEL images as well as my own images | 17:49 |
clarkb | esha1: for using your own cloud init package you'll need to write a new element to install it likely. For running out of disk space you may need to run the builds disabling the tmpfs something like --notmpfs | 17:53 |
esha1 | .How to use my own cloud init package as current one downloaded v18.2 does not allocate ipv4 address - I found DIB_CLOUD_INIT_DATA_SOURCES but it doesnt take a .rpm | 17:53 |
clarkb | esha1: if you read the README for the ubuntu element it says use DIB_CLOUD_IMAGES to set a different url to find the base image | 17:53 |
clarkb | esha1: DATA_SOURCES is the input data to cloud init not the package for cloud init | 17:54 |
clarkb | esha1: just write a new element that instalsl your rpm | 17:54 |
esha1 | ok 1. For a RHEL img or a img created by me earlier for ubuntu,rhel I was thinikng of using DIB_LOCAL_IMAGE - Do I need to use DIB_CLOUD_IMAGES? | 17:56 |
clarkb | esha1: for ubuntu using the ubuntu element that is the documented parameter | 17:56 |
esha1 | as RHEL comes in .qcow2 from the rhn license so cant be downloaded by DIB directly | 17:56 |
clarkb | looks like DIB_LOCAL_IMAGE is what the rhel element uses | 17:57 |
clarkb | so they are different | 17:57 |
esha1 | ok, for prebuilt on my own ubuntu images I will try that DIB_CLOUD_IMAGES and rhel I will use DIB_LOCAL_IMAGE | 17:57 |
esha1 | For out of space I tried and raised bug too https://bugs.launchpad.net/diskimage-builder/+bug/1766540 | 17:58 |
openstack | Launchpad bug 1766540 in diskimage-builder "failed to write (No space left on device) error in image creation via DIB " [Undecided,New] | 17:58 |
esha1 | seems -no-tmpf didnt work | 17:58 |
esha1 | if --notmpfs the correct one? | 17:58 |
esha1 | *is? | 17:59 |
clarkb | --no-tmpfs | 18:00 |
clarkb | is in the disk-image-create help | 18:00 |
esha1 | ok, i will retry with that | 18:00 |
esha1 | sudo DIB_NO_TMPFS=1 ./disk-image-create -no-tmpfs -a ppc64el -o ubuntu-vm1 -t raw -x vm ubuntu --logfile diblogvm1.txt | 18:01 |
esha1 | this is what I hadtried anddidnt work | 18:01 |
esha1 | seems needs --no-tmpfs | 18:01 |
esha1 | For cloud-init I need to install a rpm that is precreated | 18:02 |
esha1 | so a new element for should point to it and install it on the vm after creation? current ubuntu element already deploys v18.2 on Ubuntu | 18:03 |
clarkb | esha1: the elements run at image build time, you can write new elements to do things like install packages or add configuration | 18:04 |
esha1 | what is configdrive? | 18:04 |
clarkb | config drive is a method of providing metadata to the instance when it boots. It uses an cdrom or fat32 image attached to the instance with json metadata | 18:05 |
clarkb | it is an alternative to the metadata service that some clouds provide | 18:05 |
esha1 | usually while building image from iso , I create vm, install OS andthat assigns ip..then I install cloudinit on it , capture it and deploy new vm from this image -here now the cloudinit assigns the ip supplied at deploy time | 18:05 |
esha1 | now as DIB installs OS on its own, the ip data needs to be passed for network config - cause my vm via DIB is not getting an ipv4 assigned | 18:06 |
esha1 | how do you inject ip and network info like dns etc in image via DIB, so vmdeployedhas that | 18:07 |
esha1 | ? | 18:07 |
clarkb | esha1: it happens dynamically at boot time typically using a tool like cloud init | 18:08 |
clarkb | esha1: when the VM starts cloud-init is run and it examines the state of its configuration to do things like configure the IP address. Some times this is done by dhcp other times it is statically configured from info in the config drive, depends on how the cloud works | 18:09 |
esha1 | hmm, but DIB ubuntu element dows install cloudinit v18.2 | 18:09 |
clarkb | (and how cloud-init is configured) | 18:09 |
esha1 | yes, i dont use dhcp | 18:09 |
esha1 | I always manually configure during OS install for first vm | 18:09 |
clarkb | esha1: the problem with that approach is then you can only have one vm running at a time or they will fight over the IP address | 18:10 |
esha1 | then capture it with cloud init rpm installed so next deploys use the ip sent with nova boot | 18:10 |
clarkb | esha1: instead if your cloud supports config drive you can boot with config drive enabled and configure the networking with that info and cloud init | 18:10 |
esha1 | how do I enable config drive ? | 18:11 |
esha1 | else atleast how doi send the network info even ifits for one vm at a time? | 18:11 |
clarkb | if you are booting with openstack nova then there is an openstack server create --config-drive=true flag (or similar, you'll have to check the docs/help output) | 18:11 |
esha1 | ok, yes I have openstack environement | 18:11 |
clarkb | your nova installation may also need to be configured to allow config drive support | 18:11 |
esha1 | ok, yes ours is customised | 18:11 |
clarkb | (I think it is allowed by default but not enabled on VMs by default so you have to explicitly ask for it) | 18:12 |
esha1 | sobasically in a nutshell for my own cloud-init rpm or any package install I need to write an element - none exist in DIB right now | 18:12 |
esha1 | and for ip injection in image by DIB also no support right now | 18:13 |
clarkb | sort of. Dib supports generic package installation but its going to pull from the distro sources if you use that | 18:14 |
clarkb | and it sounds like you need to install cloud-init from outside the distro so you probably do need an element to add the new source then install from that source (and possible remove that source afterwards so the end result image doesn't have it in the image) | 18:14 |
esha1 | what element is for generic package install? | 18:15 |
clarkb | for IP injections thats a completely separate issue. You don't want to assign IPs at image build time. You need to assign IPs at image boot time as each image boot id a unique instance with its own IP | 18:16 |
clarkb | esha1: there is the -p flag to thr image creat command and the package-installs element | 18:16 |
greghaynes | This is a RH based image? If so theres https://docs.openstack.org/diskimage-builder/latest/elements/yum/README.html (note DIB_YUM_REPO_CONF) | 18:17 |
esha1 | yes, but thats what I tried, I built an image for ubuntu xenial with DIB, , copied it to my storage volume, and deployed vm with it using ip address provided, but it didnt assign the ip although ubuntu 16.04 was installed | 18:18 |
esha1 | thus I am unable to access the vm or ping it | 18:18 |
clarkb | esha1: if you don't use dhcp you need to have either metadata service or config drive enabled aiui | 18:18 |
clarkb | esha1: you should make sure one or btoh of those are present | 18:18 |
greghaynes | yep, need to figure out what networking method is supported by your cloud | 18:19 |
esha1 | ok, i will find that | 18:19 |
clarkb | (this is independent of dib) | 18:19 |
clarkb | (dib just produces images that do their best to work in a variety of circumstances but if there isn't any info available you don't get an ip assigned at boot) | 18:20 |
esha1 | even if I pass the ip and network at nova boot? | 18:20 |
clarkb | esha1: yes, that tells nova to attach an itnerface assigned to that network an IP to the instance btu it does nothing to tell the instance about the ip | 18:21 |
clarkb | metadata service and configdrive are the common appraoches to solve that propblem | 18:21 |
esha1 | For RH based image I am yet try the element to point to local image as RHEL needs to be downloaded from site and then passed to DIB - then yes, repo , cloud init, epel ,ssh etc are needed and ofcourse ip | 18:21 |
esha1 | ok..i will chk abt metadata service for vm and config drive in my private cloud or vm based | 18:22 |
esha1 | Also for passing pre-built images i guess it has to be OS specific then? | 18:24 |
clarkb | esha1: ya unfortunately it appears redhat and ubuntu elements use different parameters for that. I think because the ubuntu element allows a generic url and you can host it anywhere whereas rhel element expects it to be predownloaded due to licensing concerns | 18:25 |
esha1 | right | 18:25 |
esha1 | is there a way to update the OS in a prebuilt image via DIB - say I have a RHEL 7.4 image built (not via DIB) and then RHEL 7.5 is announced so I can just upgrade it using DIB? | 18:27 |
clarkb | esha1: I think the default for these dib elements is to build the latest release for rhel/centos, so you would just rerun the build process and get the newer version | 18:27 |
esha1 | oh i see | 18:27 |
esha1 | Thanks @clarkb amd @greghaynes | 18:28 |
esha1 | I will work on it more and get back | 18:28 |
esha1 | will try --no-tmpfs also | 18:28 |
*** esha1 has quit IRC | 18:35 | |
*** esha1 has joined #openstack-dib | 18:36 | |
esha1 | I found | 18:50 |
*** esha1 has quit IRC | 19:21 | |
*** dhill_ has quit IRC | 19:48 | |
*** dhill_ has joined #openstack-dib | 20:00 | |
*** vmlinuz has quit IRC | 20:35 | |
*** yolanda__ has quit IRC | 20:38 | |
*** vmlinuz has joined #openstack-dib | 20:38 | |
*** vmlinuz has joined #openstack-dib | 20:38 | |
*** yolanda__ has joined #openstack-dib | 20:43 | |
*** vmlinuz has quit IRC | 20:57 | |
*** dhill_ has quit IRC | 21:39 | |
*** hashar has quit IRC | 21:44 | |
*** dhill_ has joined #openstack-dib | 21:47 | |
*** pmannidi has quit IRC | 23:27 | |
*** pmannidi has joined #openstack-dib | 23:28 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!