<HTML>
<HEAD>
<TITLE>Re: [Openstack] Glance 2012.1-dev! ERROR: NO 'app_factory' attribute</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Something I’ve found useful to help with the “cleanup” situation is the following.<BR>
<BR>
<a href="http://pastebin.com/Vm03EafN">http://pastebin.com/Vm03EafN</a><BR>
<BR>
It at least does some basic devstack cleanup then attempts to install a new version from git (nothing special really) - ubuntu only...<BR>
<BR>
Maybe others will find it useful...<BR>
<BR>
On 12/16/11 8:10 AM, "Jay Pipes" <<a href="jaypipes@gmail.com">jaypipes@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>cc'ing mailing list as this is generally useful and something I myself<BR>
ran into last night when I grabbed the latest devstack and re-ran<BR>
stack.sh...<BR>
<BR>
I found the solution was to remove all the old .pyc files, like so:<BR>
<BR>
cd $GLANCE_SRC_DIR<BR>
find . -type f -name "*.pyc" -exec sudo rm -f {} \;<BR>
<BR>
And then restart Glance servers...<BR>
<BR>
Please let me know if that works for you as well.<BR>
<BR>
Thanks,<BR>
-jay<BR>
<BR>
On Thu, Dec 15, 2011 at 10:39 PM, jeffrey coho<BR>
<<a href="jeffreycohobupt@gmail.com">jeffreycohobupt@gmail.com</a>> wrote:<BR>
> Hi,Jay<BR>
>   Thanks.I copied those to my config files,and restarted<BR>
> with glance-control .Anyway,it is still not working.....<BR>
> port 9292 is still not listening.So what is the stable release of Glance<BR>
>  now?<BR>
> and how can i get one?(i am using ubuntu11.10)<BR>
><BR>
> Yours,<BR>
> jeff<BR>
><BR>
> 2011/12/15 Jay Pipes <<a href="jaypipes@gmail.com">jaypipes@gmail.com</a>><BR>
>><BR>
>> Yeah, I was worried we would run into these kinds of problems with a<BR>
>> recent commit...<BR>
>><BR>
>> Basically, do what Hugo suggested. We recently overhauled the<BR>
>> configuration and paste deploy factories in Glance to align with the<BR>
>> common cfg work being done in Nova and Glance. This means that the<BR>
>> glance-api.conf and glance-registry.conf paste deploy sections need to<BR>
>> be updated.<BR>
>><BR>
>> You can see the changes needed by looking at this diff:<BR>
>><BR>
>> <a href="https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-api.conf">https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-api.conf</a><BR>
>><BR>
>> <a href="https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-cache.conf">https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-cache.conf</a><BR>
>><BR>
>> <a href="https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-registry.conf">https://review.openstack.org/#patch,sidebyside,2139,1,etc/glance-registry.conf</a><BR>
>><BR>
>> Ping us back if you have issues figuring out the needed changes.<BR>
>><BR>
>> Thanks!<BR>
>> -jay<BR>
>><BR>
>> On Thu, Dec 15, 2011 at 8:28 AM, jeffrey coho <<a href="jeffreycohobupt@gmail.com">jeffreycohobupt@gmail.com</a>><BR>
>> wrote:<BR>
>> > Hi,all,<BR>
>> >    Glance version i am running is 2012.1-dev. But glance-api can't be<BR>
>> > started(maybe this version is just unstable for now?).Here is some<BR>
>> > details:<BR>
>> ><BR>
>> > #sudo glance-api glance-api.conf --debug -v &<BR>
>> > [1]27173<BR>
>> > Error trying to load config /etc/glance/glance-api.conf:<module<BR>
>> > 'glance.api.v1' from<BR>
>> ><BR>
>> > '/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/__init__.pyc'><BR>
>> > has no 'app_factory' attribute<BR>
>> ><BR>
>> > Any ideas?Thanks very much.<BR>
>> ><BR>
>> > Yours,<BR>
>> > Jeff<BR>
>> ><BR>
>> > _______________________________________________<BR>
>> > Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
>> > Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
>> > Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
>> > More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
>> ><BR>
><BR>
><BR>
<BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>