I have an instance running under ganeti, it had been built from an existing vmdk file using ganeti instance command (gnt-instance). The idea is to import the instance into synnefo, but when the 'snf-manage server-import' command was used the following error was encountered as shown below:
# snf-manage server-import --backend-id=1 --user=4ef0d6b4-cdfa-4ce0-bdfa-3e636498d35a --image=57560521-a2cb-4ac4-bf4c-0d59d08be713 --flavor=28 --new-nics ganetivm
Traceback (most recent call last):
File "/usr/bin/snf-manage", line 9, in <module>
load_entry_point('snf-webproject==0.19.dev13534-df.c16e596.718678a', 'console_scripts', 'snf-manage')()
File "/usr/lib/python2.7/dist-packages/synnefo/webproject/manage.py", line 51, in main
mu.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/snf_django/management/commands/__init__.py", line 185, in run_from_argv
super(SynnefoCommand, self).run_from_argv(argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/synnefo/logic/management/commands/server-import.py", line 104, in handle
if not locals()[field.replace("-", "_")]:
KeyError: 'user'
Help info from the command says the instance will be turned off, renamed, and turned on again.