AttributeError: 'FlatManager' object has no attribute 'allocate_network'

Asked by raaj

Hi,

   We are facing the following error while trying to create a project using nova-manage service,

nova-manage project create myproject admin
/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/api.py:42: DeprecationWarning: Use of empty request context is deprecated
  DeprecationWarning)
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 457, in <module>
    main()
  File "/usr/bin/nova-manage", line 449, in main
    fn(*argv)
  File "/usr/bin/nova-manage", line 297, in create
    self.manager.create_project(name, project_manager, description)
  File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 488, in create_project
    self.network_manager.allocate_network(context,
AttributeError: 'FlatManager' object has no attribute 'allocate_network'

Please help me.

Regards,
Raaj

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Soren Hansen
Solved:
Last query:
Last reply:
Revision history for this message
Soren Hansen (soren) said :
#1

Which version of Nova is this?

--
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

Revision history for this message
raaj (raj-msce) said :
#2

I have installed using ,

add-apt-repository ppa:nova-core/ppa and ,

apt-get install nova-common nova-doc ....

How to find the version?

Revision history for this message
Best Soren Hansen (soren) said :
#3

To find the currently installed versions, use:

   dpkg -l '*nova*' | cat

(The "| cat" make dpkg not truncate its output, so it's often needed
due to long version strings)

You should use the nova-core/trunk PPA instead.

sudo add-apt-repository ppa:nova-core/trunk

--
Soren Hansen
Ubuntu Developer    http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

Revision history for this message
raaj (raj-msce) said :
#4

This is the output when I run the above command

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================================-=================================================-============================================================================
ii nova-api 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - API frontend
ii nova-common 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - common files
ii nova-doc 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - documetation
ii nova-network 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - Network thingamajig
ii nova-objectstore 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - object store
ii nova-scheduler 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - Scheduler
ii python-nova 0.9.1~bzr331-0ubuntu2 OpenStack Compute - Nova - Python libraries
un python2.6-nova <none> (no description available)

And one more question, how can do a clean uninstall of nova and do a fresh install?

Revision history for this message
raaj (raj-msce) said :
#5

Thanks Soren Hansen, that solved my question.