Project

General

Profile

Bug #23825

FreeNAS-11.0-RC - can't create a VM

Added by col reilly over 3 years ago. Updated about 3 years ago.

Status:
Closed: Not To Be Fixed
Priority:
No priority
Assignee:
Marcelo Araujo
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

FreeNAS-11.0-RC (ad90a865b) - Dell PowerEdge C6100 - 2 x AMD Opteron Quad Core 2.10 Ghz - 64GB RAM PC2-5300P ECC - 2 x Toshiba P300 2TB SATA Drives - Dual Marvell PHY Gigabit NICs

ChangeLog Required:
No

Description

creating a VM using the standard GUI fails.

Request Method: POST
Request URL: https://192.168.1.134/admin/vm/vm/add/
Software Version: FreeNAS-11.0-RC (ad90a865b)
Exception Type: ClientException
Exception Value:

NOT NULL constraint failed: vm_vm.autostart

Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 207
Server time: Sun, 7 May 2017 08:03:26 +0100

Environment:

Software Version: FreeNAS-11.0-RC (ad90a865b)
Request Method: POST
Request URL: https://192.168.1.134/admin/vm/vm/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
208. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
145. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
362. mf.save()
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
207. raise ClientException(c.error, c.trace)

Exception Type: ClientException at /admin/vm/vm/add/
Exception Value: NOT NULL constraint failed: vm_vm.autostart

Add VM
Request Method: POST
Request URL: https://192.168.1.134/admin/vm/vm/add/
Software Version: FreeNAS-11.0-RC (ad90a865b)
Exception Type: ClientException
Exception Value:

NOT NULL constraint failed: vm_vm.autostart

Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 207
Server time: Sun, 7 May 2017 08:03:26 +0100
Traceback
Environment:

Software Version: FreeNAS-11.0-RC (ad90a865b)
Request Method: POST
Request URL: https://192.168.1.134/admin/vm/vm/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
208. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
145. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
362. mf.save()
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
207. raise ClientException(c.error, c.trace)

Exception Type: ClientException at /admin/vm/vm/add/
Exception Value: NOT NULL constraint failed: vm_vm.autostart

Request information
GET

No GET data
POST
Variable Value
all ''
name 'ubuntudesktop'
description ''
vcpus '8'
memory '16000'
bootloader 'UEFI'
__form_id 'dialogForm_vm'
FILES

No FILES data
COOKIES
Variable Value
csrftoken 'RWEju73ch11bA8Q9XiyiY8jh0cJILQBV6ay6QhLFDXDertxxVxwbtsAsOGmhIlUP'
fntreeSaveStateCookie 'root%2Croot%2F127%2Croot%2F127%2F137%2Croot%2F1%2F5%2Croot%2F129%2Croot%2F133%2F137%2Croot%2F37%2Croot%2F193%2Croot%2F24%2Croot%2F133%2Croot%2F125%2Croot%2F208%2Croot%2F141%2Croot%2F153%2Croot%2F153%2F157%2Croot%2F191%2Croot%2F191%2F200%2Croot%2F191%2F200%2F202%2Croot%2F146%2Croot%2F24%2F25%2Croot%2F24%2F28%2Croot%2F154%2Croot%2F231%2Croot%2F55%2Croot%2F55%2F146%2Croot%2F10'
sessionid 'zs4i13xwc3ord6z3sc7dx7w573ivan39'
META
Variable Value

History

#1 Updated by Bonnie Follweiler over 3 years ago

Would you provide a debug (System->Advance->Save debug)?

#2 Updated by William Grzybowski over 3 years ago

Were you running Nightlies then "downgraded" to RC?

#3 Updated by Marcelo Araujo over 3 years ago

  • Status changed from Unscreened to Screened

#4 Updated by col reilly over 3 years ago

William Grzybowski wrote:

Were you running Nightlies then "downgraded" to RC?

yes...'downgraded' from nightlies to the RC

#5 Updated by col reilly over 3 years ago

  • File debug-frank-20170508201446.tgz added

Bonnie Follweiler wrote:

Would you provide a debug (System->Advance->Save debug)?

here you go. no sensitive information in there??

#6 Updated by Scott Finlon over 3 years ago

William Grzybowski wrote:

Were you running Nightlies then "downgraded" to RC?

I was running 11-Nightlies, took a backup, rolled back to 9.10.2, installed 11.0-RC, and then imported my backup config, and I have the exact same issue.

Environment:

Software Version: FreeNAS-11.0-RC (ad90a865b)
Request Method: POST
Request URL: https://192.168.254.5/admin/vm/vm/add/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
208. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
145. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
362. mf.save()
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "./freenasUI/vm/forms.py" in save
70. self.instance = models.VM.objects.get(pk=c.call('vm.create', cdata))
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
207. raise ClientException(c.error, c.trace)

Exception Type: ClientException at /admin/vm/vm/add/
Exception Value: NOT NULL constraint failed: vm_vm.autostart

#7 Updated by Bonnie Follweiler over 3 years ago

  • Private changed from No to Yes

#8 Updated by Marcelo Araujo over 3 years ago

  • Target version set to 11.0

#9 Updated by Marcelo Araujo over 3 years ago

col reilly wrote:

William Grzybowski wrote:

Were you running Nightlies then "downgraded" to RC?

yes...'downgraded' from nightlies to the RC

From now on, you should not be able to downgrade from Nightlies to RC anymore.

#10 Updated by Marcelo Araujo over 3 years ago

  • Status changed from Screened to 15

#11 Updated by col reilly over 3 years ago

the
1) Login via ssh into your FreeNAS.
2) cd /usr/local/www/freenasUI
3) python manage.py makemigrations vm
4) python manage.py migrate vm
did it for me. thank you!

#12 Updated by Marcelo Araujo over 3 years ago

  • Status changed from 15 to Closed: Not To Be Fixed

The main problem was the downgrade! So, from now on it isn't possible anymore to downgrade from Nightlies. I'm closing this ticket for now.

#13 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Target version changed from 11.0 to N/A

#14 Updated by Dru Lavigne about 3 years ago

  • File deleted (debug-frank-20170508201446.tgz)

#15 Updated by Dru Lavigne about 3 years ago

  • Private changed from Yes to No

Also available in: Atom PDF