nova-cells fails when using JSON file to store cell information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Liam Young | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Undecided
|
Liam Young | ||
Trusty |
Fix Released
|
Undecided
|
Liam Young |
Bug Description
As recommended in http://
2014-04-29 11:52:05.240 16759 CRITICAL nova [-] __init__() takes exactly 3 arguments (1 given)
2014-04-29 11:52:05.240 16759 TRACE nova Traceback (most recent call last):
2014-04-29 11:52:05.240 16759 TRACE nova File "/usr/bin/
2014-04-29 11:52:05.240 16759 TRACE nova sys.exit(main())
2014-04-29 11:52:05.240 16759 TRACE nova File "/usr/lib/
2014-04-29 11:52:05.240 16759 TRACE nova manager=
2014-04-29 11:52:05.240 16759 TRACE nova File "/usr/lib/
2014-04-29 11:52:05.240 16759 TRACE nova db_allowed=
2014-04-29 11:52:05.240 16759 TRACE nova File "/usr/lib/
2014-04-29 11:52:05.240 16759 TRACE nova self.manager = manager_
2014-04-29 11:52:05.240 16759 TRACE nova File "/usr/lib/
2014-04-29 11:52:05.240 16759 TRACE nova self.state_manager = cell_state_
2014-04-29 11:52:05.240 16759 TRACE nova TypeError: __init__() takes exactly 3 arguments (1 given)
I have had a dig into the code and it appears that CellsManager creates an instance of CellStateManager with no arguments. CellStateManager __new__ runs and creates an instance of CellStateManage
It seems reasonable for CellStateManage
=== modified file 'state.py'
--- state.py 2014-04-30 15:10:16 +0000
+++ state.py 2014-04-30 15:10:26 +0000
@@ -155,7 +155,7 @@
if not config_path:
- return CellStateManage
+ return CellStateManage
return CellStateManage
@@ -450,7 +450,9 @@
class CellStateManage
- def __init__(self, cell_state_cls, cells_config_path):
+ def __init__(self, cell_state_
+ cells_config = CONF.cells.
+ cells_config_path = CONF.find_
Ubuntu: 14.04
nova-cells: 1:2014.1-0ubuntu1
nova.conf:
[DEFAULT]
dhcpbridge_
dhcpbridge=
logdir=
state_path=
lock_path=
force_dhcp_
iscsi_helper=tgtadm
libvirt_
connection_
root_helper=sudo nova-rootwrap /etc/nova/
verbose=True
ec2_private_
api_paste_
volumes_
enabled_
auth_strategy=
compute_
quota_driver=
[cells]
enable=True
name=cell
cell_type=compute
cells_config=
cells.json:
{
"parent": {
"name": "parent",
"api_url": "http://
}
}
Related branches
- Corey Bryant: Approve
- James Page: Needs Fixing
-
Diff: 106 lines (+85/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/cells-json-store.patch (+76/-0)
debian/patches/series (+1/-0)
tags: | added: cells |
Changed in nova: | |
assignee: | nobody → Pranav Salunke (dguitarbite) |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in nova (Ubuntu): | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in nova (Ubuntu Trusty): | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
As there hasn't been much movement on this I'm going to take the bug and submit the patch I described when the bug was submitted