<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I also realized that should take care of build unknown set python-magnumclient, magnumclient</p>
<p>src.rpm(s) , what is impossible having only current-passed-ci without clear instructions which src.rpm(s)</p>
<p>are required to be installed and built. So build via source from original stable branches of magnum</p>
<p>and magnum client is the only correct way as was done by Eduardo for RDO Liberty.<br>
</p>
<p>I apologize for noise.<br>
</p>
----------------------------------------------------------------------------------------------------------------------------------------------<br>
<div style="color: rgb(0, 0, 0);">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> rdo-list-bounces@redhat.com <rdo-list-bounces@redhat.com> on behalf of Boris Derzhavets <bderzhavets@hotmail.com><br>
<b>Sent:</b> Sunday, March 27, 2016 4:33 PM<br>
<b>To:</b> rdo-list<br>
<b>Subject:</b> [Rdo-list] How works CI for https://git.openstack.org/cgit/openstack/magnum/log/?h=stable/mitaka ?</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Commits which causing trouble mentioned in <a id="LPlnk291762" href="https://www.redhat.com/archives/rdo-list/2016-March/msg00157.html">
<br>
</a></p>
<p><a title="Ctrl+Click or tap to follow the link" id="LPlnk291762" href="https://www.redhat.com/archives/rdo-list/2016-March/msg00157.html">https://www.redhat.com/archives/rdo-list/2016-March/msg00157.html</a></p>
<p><a id="LPlnk291762" href="https://www.redhat.com/archives/rdo-list/2016-March/msg00157.html"><br>
</a></p>
<p> are following two</p>
<p><br>
</p>
<p><a id="LPlnk415406" href="https://git.openstack.org/cgit/openstack/magnum/commit/?h=stable/mitaka&id=db676bcde0b301c1cd1a4346687b3cef02390e8c">https://git.openstack.org/cgit/openstack/magnum/commit/?h=stable/mitaka&id=db676bcde0b301c1cd1a4346687b3cef02390e8c</a></p>
<p>date 2016-03-09</p>
<p><br>
</p>
<p><a id="LPlnk979544" href="https://git.openstack.org/cgit/openstack/magnum/commit/?h=stable/mitaka&id=7e58172a60f258f91e74320f7aee05009fbd1554">https://git.openstack.org/cgit/openstack/magnum/commit/?h=stable/mitaka&id=7e58172a60f258f91e74320f7aee05009fbd1554</a></p>
<p>date 2016-03-11</p>
<p><br>
</p>
<p>Testing openstack-magnum-2.0.1-0.20160324110644.c0c2bdb.el7.centos.src.rpm 2016-03-24 11:07 523K from
<a id="LPlnk596081" href="https://trunk.rdoproject.org/centos7-mitaka/current-passed-ci/">
https://trunk.rdoproject.org/centos7-mitaka/current-passed-ci/</a><br>
</p>
<p><br>
</p>
<p>rpm -iv openstack-magnum-2.0.1-0.20160324110644.c0c2bdb.el7.centos.src.rpm</p>
<p>cd ;</p>
<p>cd rpmbuild/SPEC</p>
<p>rpmbuild -bb openstack-magnum.spec ( previously installed all dependencies )</p>
<p>cd ../RPMS/noarch</p>
<p><br>
</p>
<p>yum install openstack-magnum-api-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm \<br>
openstack-magnum-common-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm \<br>
openstack-magnum-conductor-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm \<br>
openstack-magnum-doc-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm \<br>
python-magnum-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm \<br>
python-magnum-tests-2.0.1-0.20160324110644.c0c2bdb.el7.centos.noarch.rpm</p>
<p><br>
</p>
<p>systemctl start openstack-magnum-api.service ;</p>
<p>systemctl start openstack-magnum-conductor.service ;</p>
<p></p>
<p>systemctl enable openstack-magnum-api.service ;</p>
<p>systemctl enable openstack-magnum-conductor.service ;</p>
<br>
<p></p>
<p>[root@ip-192-169-142-127 noarch]# systemctl | grep magnum<br>
<i>openstack-magnum-api.service loaded active running OpenStack Magnum API Service<br>
openstack-magnum-conductor.service loaded active running Openstack Magnum Conductor Service<br>
</i><br>
</p>
<p>openstack-magnum-2.0.1-0.20160324110644.c0c2bdb.el7.centos.src.rpm seems to to have no idea
<br>
</p>
<p>about two commits mentioned above , giving me error :-</p>
<p>Run as admin as suggested in <a id="LPlnk788523" href="http://egonzalez.org/magnum-in-rdo-openstack-liberty-manual-installation-from-source-code/">
http://egonzalez.org/magnum-in-rdo-openstack-liberty-manual-installation-from-source-code/</a><br>
</p>
<p></p>
<pre># magnum bay-create --name demoswarmbay --baymodel demoswarmbaymodel \<br> --master-count 1 --node-count 1</pre>
Create for bay swarmbay failed: Failed to create trustee %(username) in domain $(domain_id) (HTTP 500)"
<p></p>
<p><br>
</p>
<p>Here I follow explanation done in <a id="LPlnk894075" href="http://osdir.com/ml/openstack-dev/2016-02/msg02123.html">
http://osdir.com/ml/openstack-dev/2016-02/msg02123.html</a></p>
<p><a id="LPlnk894075" href="http://osdir.com/ml/openstack-dev/2016-02/msg02123.html"></a>which is advising to fix an error using keystone V3</p>
<p><br>
</p>
<p>Script 1</p>
<p># 1. create the necessary domain and user:<br>
</p>
<p>export OS_TOKEN=bf2585734da14520868414d44dbe72c7</p>
<p>export OS_URL=http://127.0.0.1:5000/v3<br>
export OS_IDENTITY_API_VERSION=3<br>
openstack domain create magnum<br>
openstack user create trustee_domain_admin --password=secret --domain=magnum<br>
openstack role add --user=trustee_domain_admin --domain=magnum admin<br>
</p>
<p><br>
</p>
<p>Script 2 ( just cloned devstack to current folder to source functions )</p>
<p><br>
</p>
<p># 2. populate configs<br>
source /root/devstack/functions <br>
export MAGNUM_CONF=/etc/magnum/magnum.conf<br>
iniset $MAGNUM_CONF trust trustee_domain_id $(openstack domain show magnum | awk '/ id /{print $4}')<br>
iniset $MAGNUM_CONF trust trustee_domain_admin_id $(openstack user show trustee_domain_admin | awk '/ id /{print $4}')<br>
iniset $MAGNUM_CONF trust trustee_domain_admin_password secret <br>
</p>
<p><br>
</p>
<p>I completed both ( ran with #!/bin/bash -x ). All done , but having currently running keystone v2.0</p>
<p>it doesn't help. I keep getting same error.</p>
<p><br>
</p>
<p>I am not keystone expert, but looks like I need to go through procedure like described here</p>
<p>"Migrate from keystone v2.0 to keystone v3 OpenStack Liberty"</p>
<p><a id="LPlnk495003" href="http://egonzalez.org/migrate-from-keystone-v2-0-to-keystone-v3-openstack-liberty/">http://egonzalez.org/migrate-from-keystone-v2-0-to-keystone-v3-openstack-liberty/</a><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Thank you.</p>
<p>Boris.<br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>