<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>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>
</body>
</html>