Re: [openstack-dev] Reply: [Nova] RemoteError: Remote error: OperationalError (OperationalError) (1048, Column 'instance_uuid' cannot be null)

2015-01-07 Thread Jianbo Zheng
Thanks a lot, dude.
Update the controller node and compute nodes solved my problem.

Regards,
Jianbo Zheng
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Reply: [Nova] RemoteError: Remote error: OperationalError (OperationalError) (1048, Column 'instance_uuid' cannot be null)

2014-12-21 Thread 贺鹏
Hi,
   I met the same problem three days ago. I found that my
controller node has a lower version Nova (Nova 2) while the compute
node has a relative new Nova version (2.1). I updated my controller
node Nova, and the problem got solved.

   I also did some code investigation. It seems that the newer
version code of Nova changes the process of building a new instance in
compute node. Specifically, when the compute node invokes the
instacne.save via rpc, it asks for more update operations in
databases.

  I notice that the varables `updates` in instance.save
(nova/objects/instance.py) has a key named 'numa_topology = None', and
this key leads to this database update error in the old version of
Nova. When I remove this key-value pair in 'updates', I did not see
this error again.

 I did search the bug list but I don't find the corresponding bug,
so I post it there, hope it can help.






---

Hi folks,
when i launch instance use cirros image in the new openstack
environment(juno version  centos7 OS base), the following piece is
error logs from compute node.
anybody meet the same error?









2014-12-12 17:16:52.481 12966 ERROR nova.compute.manager [-]
[instance: 67e215e0-2193-439d-89c4-be8c378df78d] Failed to allocate
network(s)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] Traceback (most recent call
last):
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/nova/compute/manager.py, line 2190,
in _build_resources
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] requested_networks,
security_groups)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/nova/compute/manager.py, line 1683,
in _build_networks_for_instance
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] requested_networks, macs,
security_groups, dhcp_options)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/nova/compute/manager.py, line 1717,
in _allocate_network
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d]
instance.save(expected_task_state=[None])
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/nova/objects/base.py, line 189, in
wrapper
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] ctxt, self, fn.__name__, args,
kwargs)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/nova/conductor/rpcapi.py, line 351,
in object_action
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] objmethod=objmethod, args=args,
kwargs=kwargs)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py, line
152, in call
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] retry=self.retry)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/oslo/messaging/transport.py, line
90, in _send
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] timeout=timeout, retry=retry)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py,
line 408, in send
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] retry=retry)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] File
/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py,
line 399, in _send
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] raise result
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] RemoteError: Remote error:
OperationalError (OperationalError) (1048, Column 'instance_uuid'
cannot be null) 'UPDATE instance_extra SET updated_at=%s,
instance_uuid=%s WHERE instance_extra.id = %s'
(datetime.datetime(2014, 12, 12, 9, 16, 52, 434376), None, 5L)
2014-12-12 17:16:52.481 12966 TRACE nova.compute.manager [instance:
67e215e0-2193-439d-89c4-be8c378df78d] [.u'Traceback (most recent call