<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"\6279\6CE8\6846\6587\672C Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Times New Roman","serif";}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.Char
        {mso-style-name:"\6279\6CE8\6846\6587\672C Char";
        mso-style-priority:99;
        mso-style-link:\6279\6CE8\6846\6587\672C;
        font-family:SimSun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">I met Glance 502 error as well. This patch can solve it :
<a href="https://review.openstack.org/#/c/493654/">https://review.openstack.org/#/c/493654/</a> You can  cherry pick it to Pike and try again.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Here is the patch
<a href="https://review.openstack.org/#/c/525994/">https://review.openstack.org/#/c/525994/</a>  for stable/pike.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:SimSun">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> d.lake@surrey.ac.uk [mailto:d.lake@surrey.ac.uk]
<br>
</span><b><span style="font-size:10.0pt;font-family:SimSun">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:SimSun"> 2017</span><span style="font-size:10.0pt;font-family:SimSun">年<span lang="EN-US">12</span>月<span lang="EN-US">7</span>日<span lang="EN-US">
 15:50<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> berndbausch@gmail.com; openstack@lists.openstack.org<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [Openstack] Issue installing OpenStack Pike with Devstack<o:p></o:p></span></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div id="x_compose-container">
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Bernd<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks - I’ll start looking around at glance and Apache.   I’ve told Devstack not to load the sample images and it is now failing further along with a 500 Error so it is certainly something around HTTP.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">This is SO annoying because all I am trying to do is to take a working system and clone it into identical hardware.   I’m not changing any versions or even any of the layout.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Even if I clone the /opt/stack/Devstack directory, the first thing that stack seems to do is connect out and pull down not the versions of underlying code which worked before but the latest.   Even the “upper-requirements”
 file is pulled down so I can’t nail that down to what I know works.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I’m going to clean everything out on the new system and just run the most simple Devstack to see if that works.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">David<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Sent from my iPhone<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="2" width="98%" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> Bernd Bausch <<a href="mailto:berndbausch@gmail.com">berndbausch@gmail.com</a>><br>
<b>Sent:</b> Thursday, December 7, 2017 7:01:33 AM<br>
<b>To:</b> Lake D Mr (PG/R - Elec Electronic Eng); <a href="mailto:Openstack@lists.openstack.org">
Openstack@lists.openstack.org</a><br>
<b>Subject:</b> RE: [Openstack] Issue installing OpenStack Pike with Devstack</span><span lang="EN-US">
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:10.0pt">> The proxy server received an invalid: response from an upstream server.<br>
(HTTP 502)<br>
<br>
Apache is the proxy server for Glance in this case. The message says that<br>
Apache doesn't get the expected response from Glance, which could mean that<br>
Glance is not running at all. Check for other errors further up in the log.<br>
<br>
An earlier local.conf not working anymore on a newer DevStack version has<br>
hit me as well at times. You may have to carefully evaluate what you need in<br>
your cloud and throw out everything else. You might also have version<br>
mismatches - remember that enable_plugin has an optional version parameter.<br>
<br>
Bernd Bausch<br>
<br>
----<br>
From: <a href="mailto:d.lake@surrey.ac.uk">d.lake@surrey.ac.uk</a> [<a href="mailto:d.lake@surrey.ac.uk">mailto:d.lake@surrey.ac.uk</a>]
<br>
Sent: Thursday, December 7, 2017 8:45 AM<br>
To: <a href="mailto:Openstack@lists.openstack.org">Openstack@lists.openstack.org</a><br>
Subject: Re: [Openstack] Issue installing OpenStack Pike with Devstack<br>
<br>
Following from my earlier email, I’ve traced the problem to a mis-match of<br>
arguments between /opt/stack/nova/nova/db/sqlalchemy/api.py and nova-manage.<br>
<br>
If I change api.py to exclude the retry_on_request from the list of<br>
arguments, nova-manage works.<br>
<br>
This is obviously the wrong thing to do but at least it gets things<br>
underway.<br>
<br>
At least, I get further through the installation.<br>
<br>
I am now seeing another error further down the installation:<br>
<br>
2017-12-06 23:36:40.076 | + functions:upload_image:380               :  <br>
openstack --os-cloud=devstack-admin --os-region-name=RegionOne image create<br>
cirros-0.3.5-x86_64-disk --public --container-format=bare --disk-format<br>
qcow2<br>
2017-12-06 23:36:42.338 | 502 Bad Gateway: Bad Gateway: The proxy server<br>
received an invalid: response from an upstream server. (HTTP 502)<br>
<br>
I’m not using a proxy server so I have no idea where THIS one is coming<br>
from.  If I run the command manually, it works.<br>
<br>
David<br>
<br>
From: Lake D Mr (PG/R - Elec Electronic Eng) <br>
Sent: 06 December 2017 21:49<br>
To: 'Openstack@lists.openstack.org' <<a href="mailto:Openstack@lists.openstack.org">Openstack@lists.openstack.org</a>><br>
Subject: Issue installing OpenStack Pike with Devstack<br>
<br>
Hello<br>
<br>
I’m trying to install a new OpenStack Pike environment using Devstack.  The<br>
local.conf is identical to a system built in early October (same base OS –<br>
CentOS7, same interfaces, different IP addresses, but that is all).<br>
<br>
The system in October installed perfectly.<br>
<br>
This system refuses to install falling over at the very first “nova-manage”<br>
<br>
2017-12-06 21:36:36.337 | + lib/nova:init_nova:694                   :  <br>
/usr/bin/nova-manage --config-file /etc/nova/nova.conf api_db sync<br>
2017-12-06 21:36:38.426 | Traceback (most recent call last):<br>
2017-12-06 21:36:38.426 |   File "/usr/bin/nova-manage", line 6, in <module><br>
2017-12-06 21:36:38.427 |     from nova.cmd.manage import main<br>
2017-12-06 21:36:38.427 |   File "/opt/stack/nova/nova/cmd/manage.py", line<br>
82, in <module><br>
2017-12-06 21:36:38.427 |     from nova import config<br>
2017-12-06 21:36:38.427 |   File "/opt/stack/nova/nova/config.py", line 23,<br>
in <module><br>
2017-12-06 21:36:38.427 |     from nova.db.sqlalchemy import api as<br>
sqlalchemy_api<br>
2017-12-06 21:36:38.427 |   File<br>
"/opt/stack/nova/nova/db/sqlalchemy/api.py", line 925, in <module><br>
2017-12-06 21:36:38.427 |     retry_on_request=True)<br>
2017-12-06 21:36:38.427 | TypeError: __init__() got an unexpected keyword<br>
argument 'retry_on_request'<br>
<br>
The only difference I can see between the two systems is that the Python<br>
libraries are different versions (oslo.db is 4.25.0 on the old system,<br>
4.31.0 on the new one).   <br>
<br>
I have no idea where to start looking.<br>
<br>
Thanks<br>
<br>
David<br>
<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>