NoMoreNetworks exception during nova-manage installation

Bug #670867 reported by Lakshmi Khadar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Unassigned

Bug Description

Hi,
I am trying to install OpenStack nova on ubuntu 10.04 and could able to create the project and useradmin also. But getting the following error while creating the zipfile of nova.

# nova-manage project zipfile AppleProj apple

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 "build/bdist.linux-x86_64/egg/pkg_resources.py", line 448, in run_script
    entries = dist.get_entry_map(group)
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1166, in run_script

  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 646, in get_credentials
    (vpn_ip, vpn_port) = self.get_project_vpn_data(project)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/auth/manager.py", line 547, in get_project_vpn_data
    Project.safe_id(project))
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/api.py", line 453, in project_get_network
    return IMPL.project_get_network(context, project_id)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/sqlalchemy/api.py", line 108, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/sqlalchemy/api.py", line 998, in project_get_network
    return network_associate(context, project_id)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/sqlalchemy/api.py", line 97, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg/nova/db/sqlalchemy/api.py", line 823, in network_associate
    raise db.NoMoreNetworks()
nova.db.api.NoMoreNetworks: None

Please suggest me how to resolve the bug

affects: launchpad → nova
Revision history for this message
Ryan Lucio (rlucio) wrote :

Before you can get a zip file with your EC2 certs, you have to use nova-manage to create a user, a project, a network.

See the Networking section of the Admin page for instructions:

http://wiki.openstack.org/NovaAdminManual?highlight=%28Networking%29

Revision history for this message
Ryan Lucio (rlucio) wrote :

The bug to fix here is really just to handle this exception so that the user gets an appropriate error message (rather than the stack trace)

Revision history for this message
Ryan Lucio (rlucio) wrote :

Also note this is a dupe of 654025.

Revision history for this message
Lakshmi Khadar (lakshmi-khadar) wrote :

Hi,

I could get the nova.zip. When I am trying the following step as part of nova-installation, I am facing the below problem. Server is running with "eucalyptus-cc * eucalyptus-cloud services"

root@ubuntu:/opt/OpenStack# euca-upload-bundle -m /tmp/kernel.manifest.xml -b mybucket
Checking bucket: mybucket
Traceback (most recent call last):
  File "/usr/bin/euca-upload-bundle", line 231, in <module>
    main()
  File "/usr/bin/euca-upload-bundle", line 214, in main
    bucket_instance = ensure_bucket(conn, bucket, canned_acl)
  File "/usr/bin/euca-upload-bundle", line 87, in ensure_bucket
    bucket_instance = connection.get_bucket(bucket)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 275, in get_bucket
    rs = bucket.get_all_keys(headers, maxkeys=0)
  File "/usr/lib/pymodules/python2.6/boto/s3/bucket.py", line 204, in get_all_keys
    headers=headers, query_args=s)
  File "/usr/lib/pymodules/python2.6/boto/s3/connection.py", line 342, in make_request
    data, host, auth_path, sender)
  File "/usr/lib/pymodules/python2.6/boto/connection.py", line 459, in make_request
    return self._mexe(method, path, data, headers, host, sender)
  File "/usr/lib/pymodules/python2.6/boto/connection.py", line 437, in _mexe
    raise e
socket.error: [Errno 111] Connection refused

Changed in nova:
status: New → Incomplete
status: Incomplete → In Progress
Revision history for this message
Lakshmi Khadar (lakshmi-khadar) wrote :

While debugging the above error, I could find that there is no 8773 port be opened, hence unable to connect to that as shown below

> /usr/lib/pymodules/python2.6/boto/s3/connection.py(341)make_request()
-> return AWSAuthConnection.make_request(self, method, path, headers,
(Pdb) p auth_path
'/mybucket/?max-keys=0'
(Pdb) p method
'GET'
(Pdb) p path
'/mybucket/?max-keys=0'
(Pdb) p headers
None
(Pdb) p self
S3Connection:127.0.0.1
(Pdb)

root@ubuntu:~# wget -T 10 -t 1 -O - --no-check-certificate https://127.0.0.1:8773/services/Walrus
--2010-11-08 17:54:45-- https://127.0.0.1:8773/services/Walrus
Connecting to 127.0.0.1:8773... failed: Connection refused.

However when I started running eucalyptus services as shown below.

root@ubuntu:~# ps aux | grep eucalyptus
root 9000 0.0 0.0 16692 332 ? Ss 12:34 0:00 eucalyptus-cloud --remote-dns -h / -u eucalyptus --pidfile //var/run/eucalyptus/eucalyptus-cloud.pid -f -L console-log
root 9001 0.0 24.2 938808 119448 ? Sl 12:34 0:06 eucalyptus-cloud --remote-dns -h / -u eucalyptus --pidfile //var/run/eucalyptus/eucalyptus-cloud.pid -f -L console-log
root 12926 0.0 0.5 49056 2612 ? Ss 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12928 0.0 0.9 148744 4668 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12929 0.0 0.9 148744 4672 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12930 0.0 0.9 148744 4672 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12931 0.0 1.0 148748 5180 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12932 0.0 0.9 148744 4672 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12957 0.0 0.9 148744 4680 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12961 0.0 0.9 148744 4680 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
113 12962 0.0 0.9 148744 4680 ? Sl 17:43 0:00 apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
root 13598 0.0 0.1 7620 896 pts/9 S+ 17:56 0:00 grep --color=auto eucalyptus

I would like to know does it require any other packages to be installed or service to be registered. If at all please let me know how shall I proceed to get the 127.0.0.1:8773 port to be opened for the S3Connection.

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.