Austin released packaging error

Bug #668342 reported by Andrey Brindeyev
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Soren Hansen

Bug Description

There is no novarc.template file packaged with Austin release. This caused nova-admin zipfile failure.
I used that scenario on Maverick: http://wiki.openstack.org/NovaInstall/Austin#Single_Machine_Installation

abr@n13:/usr/local$ sudo nova-manage project zipfile MYPRJ abr
INFO:root:backend <module 'nova.db.sqlalchemy.api' from '/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/sqlalchemy/api.pyc'>
Traceback (most recent call last):
  File "/usr/local/bin/nova-manage", line 5, in <module>
    pkg_resources.run_script('nova==2010.1', 'nova-manage')
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 507, in <module>
    main()
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 499, in main
    fn(*argv)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/EGG-INFO/scripts/nova-manage", line 360, in zipfile
    zip_file = self.manager.get_credentials(user_id, project_id)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/auth/manager.py", line 635, in get_credentials
    rc = self.__generate_rc(user.access, user.secret, pid)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/auth/manager.py", line 682, in __generate_rc
    rc = open(FLAGS.credentials_template).read()
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/auth/novarc.template'

Related branches

Soren Hansen (soren)
Changed in nova:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Soren Hansen (soren) wrote :

It is actually included in the tarball, but setup.py install does not install it.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

How should we handle this? Should setup.py be creating /var/lib/nova. The ubuntu packages do it as well. Will it lead to issues?

Revision history for this message
Soren Hansen (soren) wrote :

The templates are easy enough. I've decided to move those back into the pythonpath. It turns out that's a common pattern. The CA stuff is slightly more tricky, but I'll come up with something.

Changed in nova:
assignee: nobody → Soren Hansen (soren)
Changed in nova:
status: Triaged → Fix Committed
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
cjy7891 (tangjiaping2009) wrote :

 sorry, status cheaged wrong

Revision history for this message
cjy7891 (tangjiaping2009) wrote :

 sorry, status changed wrong

Thierry Carrez (ttx)
Changed in nova:
status: Fix Released → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.