Tuesday, 2018-05-01

*** dhill_ has quit IRC04:09
*** hashar has joined #openstack-dib07:01
*** pmannidi has quit IRC07:11
*** eshas has joined #openstack-dib07:15
*** hashar is now known as hasharAway07:42
*** eshas has quit IRC07:51
*** dhill_ has joined #openstack-dib13:06
*** dhill_ has quit IRC13:22
*** dhill_ has joined #openstack-dib13:22
*** hasharAway has quit IRC13:27
*** openstackgerrit has quit IRC13:34
*** vizo has quit IRC13:50
*** eshas has joined #openstack-dib14:07
eshasHi, Trying to create a raw rhel 7.5 image14:40
eshasroot@neo160:~/dib/env/bin# sudo DIB_LOCAL_IMAGE=/home/esha/rhel-server-7.5-ppc64le-kvm.qcow2 ./disk-image-create -a ppc64le -o rhel75_1 -x vm rhel7 --logfile rhel_vm1.txt14:40
eshasbut it fails in package installs - 2018-05-01 14:31:10.550 | > Not loading "rhnplugin" plugin, as it is disabled14:41
eshas2018-05-01 14:31:10.550 | > Not loading "product-id" plugin, as it is disabled14:41
eshas2018-05-01 14:31:10.550 | > Loading "search-disabled-repos" plugin14:41
eshas2018-05-01 14:31:10.550 | > Not loading "subscription-manager" plugin, as it is disabled14:41
eshas2018-05-01 14:31:10.550 | > Config time: 0.04514:41
eshas2018-05-01 14:31:10.550 | > Yum version: 3.4.314:41
eshas2018-05-01 14:31:10.550 | > Setting up Package Sacks14:41
eshas2018-05-01 14:31:10.550 | > There are no enabled repos.14:41
eshas2018-05-01 14:31:10.550 | >  Run "yum repolist all" to see the repos you have.14:41
eshas2018-05-01 14:31:10.550 | >  To enable Red Hat Subscription Management repositories:14:41
eshas2018-05-01 14:31:10.550 | >      subscription-manager repos --enable <repo>14:41
eshas2018-05-01 14:31:10.550 | >  To enable custom repositories:14:41
eshas2018-05-01 14:31:10.550 | >      yum-config-manager --enable <repo>14:41
eshas2018-05-01 14:31:10.550 | returncode: 114:41
eshas2018-05-01 14:31:10.550 | install-packages failed with returncode 114:41
eshas root@neo160:~/dib/env/bin# yum repolist all14:42
eshasrepolist: 014:42
eshasI think it needs a repo atleast14:42
eshasMy openstack environment runs on Ubuntu 16.04, how do I add rhn repo there so DIB can use them to build rhel7.5 images?14:56
clarkbeshas: it should be an element parameter14:57
eshasyeah,but repo has to be installed on system first right?14:57
clarkbno, that repo is relative to the image build chroot I think14:58
clarkbI would half expect your DIB_LOCAL_IMAGE to come with that predifined?14:58
eshashmm..and repo needs username/password14:58
eshasthis DIB_LOCAL_IMAGE is from redhat site itself14:59
eshaswhile converting to raw DIB failed14:59
eshaswith error i pasted above14:59
clarkbeshas: see the elements/rhel-common/README.rst14:59
clarkbseems to cover this stuff14:59
eshasok15:00
*** eshas has quit IRC15:32
*** eshas has joined #openstack-dib15:36
*** dhill_ has quit IRC15:42
*** dhill_ has joined #openstack-dib15:43
eshassudo DIB_LOCAL_IMAGE=/home/esha/rhel-server-7.5-ppc64le-kvm.qcow2 REG_SAT_URL=https://<.com> REG_USER=<username> REG_PASSWORD=<password> REG_METHOD=satellite ./disk-image-create -a ppc64le -o rhel75_1 -x vm rhel7 --logfile rhel_vm1.txt16:35
eshasI am sing this command16:35
eshas*using16:36
eshasrhel-registration is failing16:36
eshas2018-05-01 16:28:11.151 | Installing satellite dependencies16:37
eshas2018-05-01 16:28:11.673 | curl: (60) Peer's certificate issuer has been marked as not trusted by the user.16:37
eshas2018-05-01 16:28:11.673 | More details here: http://curl.haxx.se/docs/sslcerts.html16:37
eshas2018-05-01 16:28:11.673 |16:37
eshas2018-05-01 16:28:11.673 | curl performs SSL certificate verification by default, using a "bundle"16:37
eshas2018-05-01 16:28:11.673 |  of Certificate Authority (CA) public keys (CA certs). If the default16:37
eshas2018-05-01 16:28:11.673 |  bundle file isn't adequate, you can specify an alternate file16:37
eshas2018-05-01 16:28:11.673 |  using the --cacert option.16:37
eshas2018-05-01 16:28:11.674 | If this HTTPS server uses a certificate signed by a CA represented in16:37
eshas2018-05-01 16:28:11.674 |  the bundle, the certificate verification probably failed due to a16:37
eshas2018-05-01 16:28:11.674 |  problem with the certificate (it might be expired, or the name might16:37
eshas2018-05-01 16:28:11.674 |  not match the domain name in the URL).16:37
eshas2018-05-01 16:28:11.674 | If you'd like to turn off curl's verification of the certificate, use16:37
eshas2018-05-01 16:28:11.674 |  the -k (or --insecure) option.16:37
eshas2018-05-01 16:28:11.676 | error: skipping https://ftp3.linux.ibm.com/pub/katello-ca-consumer-latest.noarch.rpm - transfer failed16:37
eshas2018-05-01 16:28:11.677 | Retrieving https://ftp3.linux.ibm.com/pub/katello-ca-consumer-latest.noarch.rpm16:37
eshas2018-05-01 16:28:11.677 | Registering with options:  --password *** --username <myusername>16:37
eshas2018-05-01 16:28:12.767 | Unable to verify server's identity: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)16:37
eshasMy credentials are correct16:38
eshasis there any other way to register to RHN satellite?16:38
eshasAnybody using DIB to build rhel7.5 cloud-images?16:41
eshasIs rhel-registration of repo and yum a requirement for building the rhel cloud image?17:03
eshas@greghayne @tonyb17:03
eshasanyone uses DIB to build rhel images?17:04
clarkbeshas: that is telling you that the server's ssl cert was not verifiable17:06
clarkbit is probably a self signed cert or the name used theredoesn't match the name in the cert17:06
eshaswhich name17:07
eshasI use this https site and have valid creds for it which i have specified here17:07
clarkbftp3.linux.ibm.com17:07
eshasyes17:08
clarkbor maybe ibm has their own CA that made teh cert for that host and you need to add it to the trust chain of your image build17:08
eshasthats my repo site for satellite RHN registration17:08
eshashmm..how do i add my cert to DIB?17:08
clarkbyou'll probably want an element to add it to /etc/ssl/certs or wherever they are stored on rhel17:09
eshasis there any public repo i can use ?17:09
clarkbfor rhel? I don't know you would have to ask rhel17:09
eshasoh so that implies that repo and satellite are manadatory for rhel image to build17:09
eshasand these might be org specific definitely17:10
eshasas we use license here17:10
*** mjturek has joined #openstack-dib17:12
eshasif I have a abc.rpm or abc.deb that needs to be installed during OS install in ubuntu how can I pass that?17:13
eshasits basically my customised cloud-init as current cloud-init v18.2 is not getting ip info assigned in bionic vms17:14
clarkbyou can add an element to fetch the file either off of disk or from a server then rpm -i or dpkg -i the file17:14
eshasbut it should be done on install17:15
eshasso if i create an element, in its install.d I should write this script17:15
eshaseach element also has the 7 directories and deps right?17:16
eshasand i want to cp it to image getting created17:16
clarkbyup17:20
*** eshas has quit IRC17:24
*** mjturek has quit IRC17:52
*** mjturek has joined #openstack-dib18:00
*** mjturek has quit IRC18:00
*** mjturek has joined #openstack-dib18:01
*** mjturek has quit IRC18:05
sai_hey could anyone help with https://launchpad.net/diskimage-builder18:09
clarkbsai_: yes there are a few of us around. What do you need help with?18:10
sai_clarkb: hey, so when trying to build a centos7 image with DIB i see it fail with the above bug. It works with ubuntu for the same image elements18:10
sai_clarkb: https://bugs.launchpad.net/diskimage-builder/+bug/176813518:10
openstackLaunchpad bug 1768135 in diskimage-builder "diskimage-builder fails to create disk image- cannot uninstall virtualenv" [Undecided,New]18:10
clarkbsai_: that is a side effect of the recent pip10 release. I believe that the latest release of dib fixes the issue if you update18:11
*** dhill_ has quit IRC18:12
sai_clarkb: 2.14.1 release didnt help and there are no releases after that i believe18:12
*** dhill_ has joined #openstack-dib18:15
clarkbsai_: b423292cd0e5b3bd266e083e0a4a46f383b0960c is the commit that should've fixed it I think and was part of 2.14. I notice there is another fix if you are using rdo though which is unreleased. Are you using rdo?18:16
sai_clarkb: using rdo? im just using centos7 base image. u mean rdo repos?18:16
clarkbyes rdo repos18:17
clarkbif not then 2.14.1 should work I would expect, however we use the centos-minimal element rather than centos7 element (builds image from scratch rather than basing on base image) and the testing may be missing some issue with centos7 specifically18:18
sai_clarkb: negative, not using any rdo images. How do i deal with this problem now? Any debug info I can provide you that would help?18:19
sai_rdo repos i meant18:19
*** mjturek has joined #openstack-dib18:19
*** mjturek has quit IRC18:20
clarkbsai_: are you using pip-and-virtualenv element ot install pip and virtualenv and setuptools? if not I would convert to that. If yes then there is probably a bug in that implementation that prevents this from working with the centos7 element but works with centos-minimal18:20
clarkbif that is the case you could switch to centos-minimal as the base distro element18:20
clarkb(or fix the bug)18:20
sai_clarkb: im using pip-and-virtualenv element. https://github.com/openstack/shaker/blob/master/shaker/resources/image_elements/shaker-agent/element-deps#L518:22
sai_clarkb: im a dib noob, what specifically would change between a centos7 element and a centos-minimal element18:23
clarkbsai_: centos7 element uses centos's published images as a starting point and builds on top of that. centos-minimal runs yum in a chroot and builds a new image from scratch by installing packages that way18:24
clarkbsai_: is the complete log available somewhere?18:25
sai_clarkb: how do i get the complete log? run with --debug? or is there a specific plac eit logs to?18:26
clarkbit should be fairly verbose by default I'm assuming the log you pasted isn't the entire output from dib18:28
clarkbah -x for tracing turned on18:29
sai_clarkb: ack, let me attach the complete thing fro mdib18:29
sai_ah18:29
sai_tried --debug18:29
sai_lol18:29
clarkbthere is help output18:29
*** mjturek has joined #openstack-dib18:31
*** mjturek has quit IRC18:32
sai_clarkb: thanks for ur pointers. will update bz18:34
*** mjturek has joined #openstack-dib18:46
ianwsai_: running with "-x --logfile=log.txt" will get you a helpful logfile in log.txt19:03
*** hashar has joined #openstack-dib19:28
*** hashar has quit IRC20:00
*** mjturek has quit IRC20:17
sai_ianw: ack20:24
*** rajinir has joined #openstack-dib20:51
*** openstackgerrit has joined #openstack-dib21:45
openstackgerritOded Le'Sage proposed openstack/diskimage-builder master: Fixes add-apt-keys in dpkg element  https://review.openstack.org/56559921:45
*** rajinir has quit IRC23:10

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