← Back to team overview

openstack team mailing list archive

Re: nova users and projects table -> project's associatednetwork

 

nova-manage project scrub <id> should work, but you have to use the project_id (from keystone) not the project name.

Vish

On Sep 4, 2012, at 11:31 PM, Simon Walter <simon@xxxxxxxxxx> wrote:

> 
> On 09/05/2012 02:34 PM, Simon Walter wrote:
>> 
>> 
>> On 09/05/2012 01:18 PM, Vishvananda Ishaya wrote:
>>> 
>>> users and projects are stored in keystone.
>>> 
>>> Long ago they were stored in nova, and the tables existed through
>>> essex in case people were using "deprecated auth".
>> 
>> Thank you. I've found them. It was a bit confusing.
>> 
>> Do you have any idea on why nova-network is referring to a deleted network?
> 
> More info:
> 
> I've tried associating the new network with the project by issuing:
> nova-manage network modify 10.1.2.0/24 --project=admin
> 
> This did not help. So I wanted to debug the issue and hardcoded the network id into nova/db/sqlalchemy/api.py:
> #def network_get(context, network_id, session=None):
> def network_get(context, 2, session=None):
> 
> Now instances start. Do I need to create a new project *after* the new network is created? Testing... Yes, that works.
> 
> Is there a bug for: deleted networks are not automatically and cannot be manually disassociated from projects?
> 
> Comments:
> There seems to be some quite some issues with regards to failing gracefully and clean up around the project. For example, any of the failed instances that I started while debugging this have to manually be removed from the database. Shouldn't a warning be issued that the vm doesn't exist and references to it were removed from the system?
> 
> Simon
> 
> 
>> 
>>>> The real error is:
>>>> 2012-09-05 11:23:00 ERROR nova.rpc.amqp
>>>> [req-3e174011-b6cd-40ba-9066-5018df246c3e None None] Exception during
>>>> message handling
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp Traceback (most recent call
>>>> last):
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in
>>>> _process_data
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     rval =
>>>> node_func(context=ctxt, **node_args)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 257,
>>>> in wrapped
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     return func(self,
>>>> context, *args, **kwargs)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 949,
>>>> in get_instance_nw_info
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     network =
>>>> self._get_network_by_id(context, vif['network_id'])
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line
>>>> 1722, in _get_network_by_id
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     network_id)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line
>>>> 1543, in _get_network_by_id
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     return
>>>> self.db.network_get(context, network_id)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in
>>>> network_get
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     return
>>>> IMPL.network_get(context, network_id)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
>>>> 120, in wrapper
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     return f(*args, **kwargs)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp   File
>>>> "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
>>>> 1935, in network_get
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp     raise
>>>> exception.NetworkNotFound(network_id=network_id)
>>>> 2012-09-05 11:23:00 TRACE nova.rpc.amqp NetworkNotFound: Network 1
>>>> could not be found.
>> 
> 
> 
> -- 
> simonsmicrophone.com
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



References