Invalid: Instance has already been created

Asked by Marco Köhl

Hi Folks,

I get this message: Invalid: Instance has already been created

I tried to delete some things in the FS and also removed the database, like descripted here (but fittet to my env)

$rm –f /var/log/libvirt/qemu/instance*
$rm –f /etc/libvirt/nwfilter/nova*
$rm –f /var/lib/nova/instances/instance-*
$rm –f /var/log/libvirt/qemu/inst*
$rm -f /etc/libvirt/nwfilter/nova-*

$mysql -u root -p
drop database nova;

Then recreate the DB.
/*Re-create the Nova database
CREATE DATABASE nova;
GRANT ALL PRIVILEGES ON nova.* TO ‘novadbadmin’@'%’ IDENTIFIED BY ‘password’;

Maybe restart for good measure before a resync.

$nova-manage db sync

But nothing changed. Any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
willfu (willfly0620) said :
#1

There may have cache in memory, please take graceful way to delete instance.
It will sync all the info. In this case you need to restart your nova services.

Can you help with this problem?

Provide an answer of your own, or ask Marco Köhl for more information if necessary.

To post a message you must log in.