Thursday, 2018-04-26

*** pmannidi has quit IRC00:06
*** pmannidi has joined #openstack-dib00:22
*** dhill_ has quit IRC00:43
*** dhill_ has joined #openstack-dib00:51
*** phuongnh has joined #openstack-dib01:38
*** yolanda__ has joined #openstack-dib01:40
*** yolanda_ has quit IRC01:44
*** rajinir has quit IRC01:48
*** mordred has quit IRC02:12
*** ianw_pto has quit IRC02:12
*** ianw has joined #openstack-dib02:13
*** mordred has joined #openstack-dib02:13
*** dhill_ has quit IRC02:46
*** dhill_ has joined #openstack-dib02:54
*** andreas_s has joined #openstack-dib03:23
*** andreas_s has quit IRC03:28
*** yolanda__ is now known as yolanda05:45
*** eshas has joined #openstack-dib06:00
eshasAny clue on how to pass my own cloud-init package and my own image to DIB06:00
eshasthis is required because currently the ubuntu vm created by DIB is not setting the ipv4 address on vm hence networking is not working06:04
*** yuvaladar has joined #openstack-dib06:08
*** yuvaladar has quit IRC06:09
*** eshas has quit IRC06:16
*** hashar has joined #openstack-dib06:31
*** andreas_s has joined #openstack-dib06:35
*** yuvaladar has joined #openstack-dib07:16
*** andreas_s has quit IRC07:18
*** andreas_s has joined #openstack-dib07:19
*** andreas_s_ has joined #openstack-dib07:21
*** andreas__ has joined #openstack-dib07:23
*** andreas_s has quit IRC07:23
*** andreas__ has quit IRC07:26
*** andreas_s_ has quit IRC07:26
*** andreas_s has joined #openstack-dib07:30
*** pmannidi has quit IRC07:35
*** andreas_s has quit IRC07:39
*** andreas_s has joined #openstack-dib07:44
*** pmannidi has joined #openstack-dib07:49
olivierb-<eshas> may be dhcp-all-interfaces element could also help08:02
*** andreas_s has quit IRC08:02
*** andreas_s has joined #openstack-dib08:09
*** andreas_s has quit IRC08:18
*** andreas_s has joined #openstack-dib08:23
*** openstackgerrit has joined #openstack-dib08:24
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Move common ubuntu environment setting to ubuntu-common element  https://review.openstack.org/56373108:24
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Remove redundant sources change/update  https://review.openstack.org/56373908:25
openstackgerritJesse Pretorius (odyssey4me) proposed openstack/diskimage-builder master: Add ubuntu-systemd-container operating-system element  https://review.openstack.org/56374808:25
*** andreas_s has quit IRC08:29
*** andreas_s has joined #openstack-dib08:29
*** andreas_s has quit IRC08:30
*** andreas_s_ has joined #openstack-dib08:33
*** eshas has joined #openstack-dib08:34
*** yuvaladar has quit IRC08:42
*** eshas has quit IRC08:47
*** mtreinish has quit IRC09:41
*** mtreinish has joined #openstack-dib09:47
*** eshas has joined #openstack-dib09:48
eshasis 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 pingable09:49
eshas@clarkb , @ianw ,tonyb ?09:50
eshas@greghaynes?09:50
*** esha1 has joined #openstack-dib09:59
esha1Couple of issues I am seeing : 1.How to use my own cloud init package as current one downloaded v18.2 does not allocate ipv4 address10:08
esha12.I need to use my own cloud image instead of any downloaded by DIB, any element for that?10:09
esha13.I am getting a disk out of space issue and hence no images are getting created by DIB10:10
esha1Any response to above queries?10:11
*** andreas_s_ has quit IRC10:37
*** esha1 has quit IRC10:47
*** yolanda_ has joined #openstack-dib10:53
*** yolanda__ has joined #openstack-dib10:54
*** yolanda has quit IRC10:56
*** yolanda_ has quit IRC10:58
*** andreas_s has joined #openstack-dib11:17
*** phuongnh has quit IRC11:33
*** rm_work has quit IRC11:39
*** rm_work has joined #openstack-dib11:39
*** eshas has quit IRC11:59
*** vmlinuz has joined #openstack-dib12:20
*** vmlinuz has joined #openstack-dib12:20
*** dhill_ has quit IRC13:38
*** mjturek has joined #openstack-dib13:44
*** dhill_ has joined #openstack-dib13: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.txt13: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 grp14:15
olivierb-ok got it14:16
olivierb-there has been quite some changes related to pip lately I think14: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 though14:18
*** rajinir has joined #openstack-dib14:22
sai_thanks olivierb-15:24
*** dhill_ has quit IRC15:53
*** dhill_ has joined #openstack-dib16:01
*** andreas_s has quit IRC16:01
*** andreas_s_ has joined #openstack-dib16:04
*** andreas_s_ has quit IRC16:08
*** esha1 has joined #openstack-dib17: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 images17:49
clarkbesha1: 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 --notmpfs17: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 .rpm17:53
clarkbesha1: if you read the README for the ubuntu element it says use DIB_CLOUD_IMAGES to set a different url to find the base image17:53
clarkbesha1: DATA_SOURCES is the input data to cloud init not the package for cloud init17:54
clarkbesha1: just write a new element that instalsl your rpm17:54
esha1ok 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
clarkbesha1: for ubuntu using the ubuntu element that is the documented parameter17:56
esha1as RHEL comes in .qcow2 from the rhn license so cant be downloaded by DIB directly17:56
clarkblooks like DIB_LOCAL_IMAGE is what the rhel element uses17:57
clarkbso they are different17:57
esha1ok, for prebuilt on my own ubuntu images I will try that DIB_CLOUD_IMAGES and rhel I will use  DIB_LOCAL_IMAGE17:57
esha1For out of space I tried and raised bug too https://bugs.launchpad.net/diskimage-builder/+bug/176654017:58
openstackLaunchpad bug 1766540 in diskimage-builder "failed to write (No space left on device) error in image creation via DIB " [Undecided,New]17:58
esha1seems -no-tmpf didnt work17:58
esha1if --notmpfs the correct one?17:58
esha1*is?17:59
clarkb--no-tmpfs18:00
clarkbis in the disk-image-create help18:00
esha1ok, i will retry with that18:00
esha1sudo DIB_NO_TMPFS=1 ./disk-image-create -no-tmpfs -a ppc64el -o ubuntu-vm1 -t raw -x vm ubuntu --logfile diblogvm1.txt18:01
esha1this is what I hadtried anddidnt work18:01
esha1seems needs --no-tmpfs18:01
esha1For cloud-init I need to install a rpm that is precreated18:02
esha1so a new element for should point to it and install it on the vm after creation? current ubuntu element already deploys v18.2 on Ubuntu18:03
clarkbesha1: the elements run at image build time, you can write new elements to do things like install packages or add configuration18:04
esha1what is configdrive?18:04
clarkbconfig 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 metadata18:05
clarkbit is an alternative to the metadata service that some clouds provide18:05
esha1usually 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 time18:05
esha1now 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 assigned18:06
esha1how do you inject ip and network info like dns etc in image via DIB, so vmdeployedhas that18:07
esha1?18:07
clarkbesha1: it happens dynamically at boot time typically using a tool like cloud init18:08
clarkbesha1: 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 works18:09
esha1hmm, but DIB ubuntu element dows install cloudinit v18.218:09
clarkb(and how cloud-init is configured)18:09
esha1yes, i dont use dhcp18:09
esha1I always manually configure during OS install for first vm18:09
clarkbesha1: the problem with that approach is then you can only have one vm running at a time or they will fight over the IP address18:10
esha1then capture it with cloud init rpm installed so next deploys use the ip sent with nova boot18:10
clarkbesha1: instead if your cloud supports config drive you can boot with config drive enabled and configure the networking with that info and cloud init18:10
esha1how do I enable config drive ?18:11
esha1else atleast how doi send the network info even ifits for one vm at a time?18:11
clarkbif 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
esha1ok, yes I have openstack environement18:11
clarkbyour nova installation may also need to be configured to allow config drive support18:11
esha1ok, yes ours is customised18: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
esha1sobasically in a nutshell for my own cloud-init rpm or any package install I need to write an element - none exist in DIB right now18:12
esha1and for ip injection in image by DIB also no support right now18:13
clarkbsort of. Dib supports generic package installation but its going to pull from the distro sources if you use that18:14
clarkband 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
esha1what element is for generic package install?18:15
clarkbfor 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 IP18:16
clarkbesha1: there is the -p flag to thr image creat command and the package-installs element18:16
greghaynesThis 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
esha1yes, 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 installed18:18
esha1thus I am unable to access the vm or ping it18:18
clarkbesha1: if you don't use dhcp you need to have either metadata service or config drive enabled aiui18:18
clarkbesha1: you should make sure one or btoh of those are present18:18
greghaynesyep, need to figure out what networking method is supported by your cloud18:19
esha1ok, i will find that18: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
esha1even if I pass the ip and network at nova boot?18:20
clarkbesha1: 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 ip18:21
clarkbmetadata service and configdrive are the common appraoches to solve that propblem18:21
esha1For 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 ip18:21
esha1ok..i will chk abt metadata service for vm and config drive in my private cloud or vm based18:22
esha1Also for passing pre-built images i guess it has to be OS specific then?18:24
clarkbesha1: 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 concerns18:25
esha1right18:25
esha1is 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
clarkbesha1: 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 version18:27
esha1oh i see18:27
esha1Thanks @clarkb amd @greghaynes18:28
esha1I will work on it more and get back18:28
esha1will try --no-tmpfs also18:28
*** esha1 has quit IRC18:35
*** esha1 has joined #openstack-dib18:36
esha1I found18:50
*** esha1 has quit IRC19:21
*** dhill_ has quit IRC19:48
*** dhill_ has joined #openstack-dib20:00
*** vmlinuz has quit IRC20:35
*** yolanda__ has quit IRC20:38
*** vmlinuz has joined #openstack-dib20:38
*** vmlinuz has joined #openstack-dib20:38
*** yolanda__ has joined #openstack-dib20:43
*** vmlinuz has quit IRC20:57
*** dhill_ has quit IRC21:39
*** hashar has quit IRC21:44
*** dhill_ has joined #openstack-dib21:47
*** pmannidi has quit IRC23:27
*** pmannidi has joined #openstack-dib23:28

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