Tuesday, 2019-04-09

*** Vorrtex has joined #openstack-dib04:13
*** Vorrtex has quit IRC04:22
*** hwoarang_ has quit IRC04:37
*** hwoarang has joined #openstack-dib04:42
*** hwoarang has quit IRC06:57
*** hwoarang has joined #openstack-dib07:04
*** jangutter has quit IRC07:15
*** jangutter_ has joined #openstack-dib07:15
*** sziviani has joined #openstack-dib08:08
*** priteau has joined #openstack-dib08:15
*** yolanda_ has quit IRC09:47
rm_workyeah we could PROBABLY use that tonyb12:08
rm_workif we're willing to say "this is the official openstack build" or something... I suppose Redhat might not want to support that though if people call them up <_<12:09
rm_workthough not sure anyone can actually do that with centos anyway, they'd want a real RHEL amp12:09
rm_workcgoncalves: ^^ comment?12:09
cgoncalvesrm_work, RHEL-based amps (read as in OSP) we install the official/supported haproxy 1.5, not 1.812:21
rm_workahh :/12:21
rm_workwell that's shitty12:21
rm_work:(12:21
rm_workand no real support for CentOS anyway right?12:22
rm_workso maybe it's fine12:22
rm_workwe can just pick whatever one, so if there's one in the openstack ecosystem SOMEWHERE we can pull it12:22
cgoncalvesCentOS is community-supported :)12:22
*** priteau has quit IRC12:42
cgoncalvesFYI, there's a memory issue with the haproxy version in the openshift repo: https://storyboard.openstack.org/#!/story/200541212:46
*** mjturek has joined #openstack-dib13:07
*** priteau has joined #openstack-dib13:27
*** mjturek has quit IRC13:35
*** mjturek has joined #openstack-dib13:36
*** Vorrtex has joined #openstack-dib13:58
*** priteau has quit IRC14:04
Vorrtexcgoncalves clarkb what's the best way to lock down where these steps are located in elements for building one of these images?14:50
clarkbVorrtex: dib logging (with -x maybe) should be quite verbose and step you through it command by command14:51
clarkbwhich should show you where things have gone wrong14:51
clarkbThe one thing it does that is annoying is only show you the script name not which element it came from iirc14:51
clarkbso if the script name doesn't clear that up you may have to search for where that file lives14:52
VorrtexOkay, well, its failing on a massive yum install line... which doesn't seem to have a script name attached in the output that I can see?14:54
Vorrtex2019-04-09 14:52:18.852 | > + yum -v -y install make automake gcc gcc-c++ kernel-devel cryptsetup less iputils acpid libffi-devel logrotate selinux-policy-targeted rsyslog socat curl python-devel dkms git openssh-clients iptables keepalived ipvsadm python2-devel policycoreutils-python libselinux-python which tcpdump policycoreutils ethtool open-vm-tools nmap-ncat traceroute openssh-server openssl-devel screen vconfig gawk14:54
Vorrtex ca-certificates bash-completion selinux-policy irqbalance dbus sos acl psmisc net-tools cloud-init lsof haproxy18 at14:54
clarkbyou'll have to scan backwards to get the script name14:55
clarkbit prints on a line of its own iirc14:55
clarkbchances are that is from the pkg_resources element though14:55
VorrtexThat's after scrolling up through all the 4billion lines of yum output ha ha14:55
clarkbthe pkg_resources element takes deps defined in each element and combines them together to install them all14:55
Vorrtexdib-run-parts Running /tmp/in_target.d/install.d/01-package-installs14:57
VorrtexI think that's the failing bit?14:57
clarkbya and I bet that is in elements/pkg_resources/install.d/01-package-installs14:57
clarkbis it failing because one of the packages listed isn't valid in the ppc repo?14:58
clarkbif so then you'll have to track back to which element adds it as a dep14:58
clarkbpkg-map and package-installs.yaml files would be the files to look in I think if that is the issue14:59
Vorrtexlol, nope, its failing with a 404 looking in a location that doesn't have a ppc64le architecture14:59
VorrtexThere's about 15 or 20 packages with this output:14:59
Vorrtex2019-04-09 14:52:24.287 | >   glibc-headers-2.17-260.el7_6.3.ppc64le: failed to retrieve glibc-headers-2.17-260.el7_6.3.ppc64le.rpm from paas14:59
Vorrtex2019-04-09 14:52:24.287 | > error was [Errno 14] HTTP Error 404 - Not Found14:59
clarkboh is it still installing the paas repo?15:00
VorrtexAnd if you navigate to the URL provided further up the stack trace, its just an x86_64 architecture15:00
clarkb(I thought that was going to get commented out, but maybe there is a second paas repo configuration)15:00
Vorrtexno, I don't know why its saying "from paas", but the URLs don't have paas in them at all.15:01
Vorrtexhttp://mirror.centos.org/centos/7/updates/ppc64le/Packages/sos-3.6-16.el7.centos.noarch.rpm15:01
VorrtexThat's the failing URL15:01
Vorrtexwell, one of them.15:01
Vorrtexpick up and place any of the failing packages at the URL and it wouldn't matter, since ppc64le is not there.15:01
Vorrtexclarkb either way, I can't seem to find anything at "elements/pkg_resources".  Is that supposed to be in diskimage-builder repo?15:02
clarkbVorrtex: yes part of disk image builder's included elements and it is called "package-installs"15:03
cgoncalvesVorrtex, hey. you might want to use http://mirror.centos.org/altarch/7/updates/15:03
Vorrtex*I* didn't set that URL, I'm trying to FIND where that URL is set... lol15:03
Vorrtexcgoncalves but thanks for the updated URL15:03
cgoncalvesmeaning playing tricks with DIB to pick http://mirror.centos.org/altarch/ as base for non x86 arches15:04
Vorrtexcgoncalves if I can find where that URL is set, I can make a patch to detect non-x86 arches and do "the right thing"... which of course, begs the question why it has to be in an "altarch" designation in the first place, since it already has a directory that filters by arch, but hey!  I can't reform everyone to do the right thing! ;)15:05
clarkbVorrtex: centos-minimal/yum.repos.d/yum.repo maybe15:05
clarkbhrm no you don't use centos-minimal15:05
cgoncalvesnot sure if http://git.openstack.org/cgit/openstack/diskimage-builder/tree/diskimage_builder/elements/rpm-distro/pre-install.d/01-override-yum-arch is the right place. currently on a meeting, sorry15:06
Vorrtexclarkb my original question was more geared toward "set me up with some tools so I don't have to hop in this channel, drop a stack trace, and let you guys troubleshoot locations for me."  lol.  I appreciate how helpful you guys are, but I would love to be self sufficient.15:06
clarkbVorrtex: the drop a stack trace equivalent is to add `bash` to the script that is failing. You'll then get a shell and be able to poke around15:07
VorrtexSo in this case, I still can't find package-installs anywhere15:07
clarkbVorrtex: openstack/diskimage-builder/diskimage_builder/elements/package-installs15:07
cgoncalvesdiskimage_builder/elements/centos7/pre-install.d/01-set-centos-mirror15:07
Vorrtexclarkb you're actually killing me... My problem is finding the script that's failing... lol15:07
cgoncalvesVorrtex, ^. so you may want to add a if-then-else condition there15:08
clarkbThe way dib operates is via a collection of elements in an elements path. When you run dib you select elements out of that path and a series of run parts scripts are merged together then run in sequence15:08
clarkbinstall.d is the "install" phase and all install.d scripts from all selected elements get merged together and run parts15:08
clarkbidentifying what element is running a thing is definitely the first step in debugging. Hopefully ^ helps in the spelunking15:10
clarkbunfortunately the logging doesn't identify which element a script originated from, but does identify the script15:13
VorrtexThis is the least helpful script ever... lol.15:15
Vorrtexdiskimage-builder/diskimage_builder/elements/package-installs/install.d/01-package-installs15:16
VorrtexAll it does is an install of a temp file.15:16
VorrtexI'm guessing that's what you're talking about the aggregated list of packages needing installed.15:16
clarkbya. And looks like the extra-data.d script creates the tmpfile15:17
VorrtexYep.15:17
clarkbVorrtex: thinking about debugging this specific problem I would drop a bash into the start of that script, then look in /etc/yum to find which file defines that repo then search your dib log for what writes that file15:21
Vorrtexyeah, landed on the same flow a little later.  Now I'm working on the if/else.15:23
VorrtexSorry for the runaround... I don't think I was very clear with my expectations nor my requests.  Thanks for the help, clarkb , I do appreciate it.15:23
clarkbno worries. I think this identifies it would be really helpful to better identify the source script in the logs15:24
clarkb(which is good feedback)15:25
VorrtexI mean, even without debug I could find that script name, but not where to find it specifically.  I'm not sure how you could add better "tracing", but it could help if possible.15:29
clarkbwe could potentially print the full rooted path to the script15:29
VorrtexThat might be excessive as a default, but part of debug, I vote yes.15:31
* Vorrtex cries in "vote doesn't really matter"15:31
Vorrtexcgoncalves do I need to reinstall DIB to pick up this centos config change?  I dropped a bash into this distribution mirror file change and it didn't stop me there, nor did my if/else get evaluated./15:34
cgoncalvesVorrtex, yes15:35
Vorrtexcgoncalves thanks15:35
*** openstackgerrit has joined #openstack-dib15:50
openstackgerritPedro Alvarez Piedehierro proposed openstack/diskimage-builder master: Fix Fedora aarch64 image location  https://review.openstack.org/65128315:50
*** mjturek has quit IRC16:05
Vorrtexcgoncalves so oddly enough a script was already updating to use "altarch", but nothing was uncommenting them.  So I added a change to uncomment them... (probably not the right change, but it "16:11
Vorrtex"worked").  However, looks like its still failing on a different mirror list... lol, so RIP for that.16:11
cgoncalvesone down, more to go!16:11
VorrtexStory of the development life, amirite?16:12
*** priteau has joined #openstack-dib16:13
clarkbVorrtex: as a side note we (openstack-infra) use the centos-minimal element which builds a new image from scratch using yum. I have no idea if that would be more reliable or not. We did it to have more control over the installed package set overtime.16:18
VorrtexI don't know if that will work for the octavia amphora... That's what I'm trying to build on ppc64le16:19
clarkbyou might have to supply your own element that lists out additional packages to install if the amphora elements depend on the implicit packages included in the normal cloud image16:20
clarkbbut other than that I would expect it to work. However I've never tested it on ppc :)16:20
VorrtexSure, you mean other packages should I use centos-minimal, right?16:21
clarkbcorrect16:22
clarkbfor example ssh isn't installed by default in that case16:22
clarkbneither is vim which always bugs me :P16:23
Vorrtexlol, I would argue vim being absent makes sense, since "minimal" to me would denote "only the required things" and the lack of fluff.16:23
VorrtexWhile I love me some vim (use it every day), it is "fluff" ha ha16:24
*** mjturek has joined #openstack-dib16:51
*** priteau has quit IRC17:04
VorrtexAlright, stuck again... I'm still getting these package installation errors, but I've verified the repofiles are all accurate... where else should I look?19:00
Vorrtexclarkb cgoncalves ?  Any ideas?19:15
clarkbVorrtex: sorry in a meeting now19:15
VorrtexAlright, no big.  I'm about to be in a meeting in 15 mins anyway19:15
Vorrtexclarkb when you get a minute:  https://gist.github.com/tvardema/5bb00d0d327b6a026edbddd0b5953d3d19:35
VorrtexThe paas repo file is "correct", but for whatever reason those URLs are still wrong.19:35
cgoncalvesVorrtex, you're pointing to http://mirror.centos.org/centos/7/updates/ppc64le/Packages/ which does not exist19:47
cgoncalveshttp://mirror.centos.org/centos/7/updates/ppc64le/Packages/glibc-devel-2.17-260.el7_6.3.ppc64le.rpm: [Errno 14] HTTP Error 404 - Not Found19:47
cgoncalvespoint it to http://mirror.centos.org/altarch/7/updates/ppc64le/Packages/19:47
cgoncalvesgoing AFK for the day19:49
Vorrtexcgoncalves No, I know its pointing to the wrong one, but I've verified all the repofiles at /etc/yum.repos.d/*.repo are correct19:49
VorrtexI'm asking where else I can look to find where it might be wrong URL.19:50
VorrtexI got a suggestion to look for a hardcoded one in the Dockerfile.19:50
*** mjturek has quit IRC20:18
Vorrtexhey clarkb is there a specific base Dockerfile or something used that you know of?20:22
clarkbI dont think there is any docker invol ed20:23
Vorrtexclarkb good to know, bad to find out... I'm not sure where else to look.  Like I mentioned above, all the repofiles are correctly using altarch, so I don't know what step is failing here.20:24
clarkbdoes yum have a debug mode that might explain its choices better?20:25
Vorrtexpotentially?  I'll check.20:25
Vorrtexit already does verbose output for the yum install.20:36
*** Vorrtex has quit IRC20:47
openstackgerritPierre Riteau proposed openstack/diskimage-builder master: Increase size of EFI system partition (again)  https://review.openstack.org/64170221:41
*** hwoarang has quit IRC23:54
*** hwoarang has joined #openstack-dib23:58

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