<div dir="ltr"><div><div><div>HI,<br><br></div>we have a problem with delorean build of stable branches in TripleO CI[1], and it seems like a rpm specs problem. It can be reproducible easily [2]<br></div>Please, help with solution to this problem, all info is in the bug[1]<br><br></div><div>Alan, <br>if you think we use dlrn wrong, please point me out which line is incorrect in reproducing.<br></div><br clear="all"><div><div><div><div>[1] <a href="https://bugs.launchpad.net/tripleo/+bug/1604039">https://bugs.launchpad.net/tripleo/+bug/1604039</a><br></div><div>[2] Reproducing:<br><br><span style="font-family:monospace,monospace">sudo yum install -y createrepo git mock rpm-build yum-plugin-priorities yum-utils gcc python-virtualenv libffi-devel openssl-devel <br>sudo usermod -G mock -a $(id -nu)</span><br></div><div><div class="">
            <div class="" style="word-wrap:break-word"><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"><br>cd /tmp/</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">sudo rm -rf /tmp/test</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">mkdir /tmp/test && cd /tmp/test</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"> </span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">git clone <a href="https://git.openstack.org/openstack/tripleo-heat-templates">https://git.openstack.org/openstack/tripleo-heat-templates</a></span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">cd tripleo-heat-templates/</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">git checkout -b stable/mitaka origin/stable/mitaka</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"> </span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">cd ..</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">git clone <a href="https://github.com/openstack-packages/delorean.git">https://github.com/openstack-packages/delorean.git</a></span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">cd delorean</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">mkdir -p data</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">sed -i -e 's%--postinstall%%' scripts/build_rpm.sh</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"> </span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">virtualenv venv</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">./venv/bin/pip install -U setuptools</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">./venv/bin/pip install pytz</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">./venv/bin/pip install .</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"> </span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">sed -i -e "s%baseurl=.*%baseurl=<a href="https://trunk.rdoproject.org/centos7-mitaka%">https://trunk.rdoproject.org/centos7-mitaka%</a>" projects.ini</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">sed -i -e "s%distro=.*%distro=rpm-mitaka%" projects.ini</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">sed -i -e "s%source=.*%source=stable/mitaka%" projects.ini</span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace"> </span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">cp -r ../tripleo-heat-templates data/openstack-tripleo-heat-templates<br><br>cd data/openstack-tripleo-heat-templates/<br>GITHASH=$(git rev-parse HEAD)<br>for BRANCH in master origin/master stable/liberty origin/stable/liberty stable/mitaka origin/stable/mitaka; do <br>            git checkout -b $BRANCH || git checkout $BRANCH<br>            git reset --hard $GITHASH<br>done<br>cd /tmp/test/delorean<br><br></span></font></div><div style="font-style:normal;font-weight:normal;line-height:1.2em;font-size-adjust:none;font-stretch:normal;font-variant:normal;margin:0px;padding:0px;background:transparent none repeat scroll 0% 0%;vertical-align:top"><font size="2"><span style="font-family:monospace,monospace">./venv/bin/dlrn --config-file projects.ini --head-only --package-name openstack-tripleo-heat-templates --local</span></font></div></div>
        </div><br><br></div><div>The projects.ini:<br><br><span style="font-family:monospace,monospace">[DEFAULT]<br>datadir=./data<br>scriptsdir=./scripts<br>baseurl=<a href="https://trunk.rdoproject.org/centos7-mitaka">https://trunk.rdoproject.org/centos7-mitaka</a><br>distro=rpm-mitaka<br>source=stable/mitaka<br>target=centos<br>smtpserver=<br>reponame=delorean<br>templatedir=./dlrn/templates<br>maxretries=3<br>pkginfo_driver=dlrn.drivers.rdoinfo.RdoInfoDriver<br>tags=<br>#tags=mitaka<br>rsyncdest=<br>rsyncport=22<br><br>[gitrepo_driver]<br></span><br><br></div><div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best regards<br></div>Sagi Shnaidman<br></div></div>
</div></div></div></div></div>