Example nova-cells json config doesn't work

Bug #1240800 reported by Sam Morrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Anne Gentle

Bug Description

The Json at the bottom of http://docs.openstack.org/trunk/config-reference/content/section_compute-cells.html

Doesn't seem to work:

Get:

2013-10-17 15:44:09.733 9463 CRITICAL nova [-] 'list' object has no attribute 'items'
2013-10-17 15:44:09.733 9463 TRACE nova Traceback (most recent call last):
2013-10-17 15:44:09.733 9463 TRACE nova File "/usr/local/bin/nova-cells", line 10, in <module>
2013-10-17 15:44:09.733 9463 TRACE nova sys.exit(main())
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cmd/cells.py", line 40, in main
2013-10-17 15:44:09.733 9463 TRACE nova manager=CONF.cells.manager)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/service.py", line 257, in create
2013-10-17 15:44:09.733 9463 TRACE nova db_allowed=db_allowed)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/service.py", line 139, in __init__
2013-10-17 15:44:09.733 9463 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/manager.py", line 77, in __init__
2013-10-17 15:44:09.733 9463 TRACE nova self.state_manager = cell_state_manager()
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/state.py", line 155, in __new__
2013-10-17 15:44:09.733 9463 TRACE nova return CellStateManagerFile(cell_state_cls, config_path)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/state.py", line 452, in __init__
2013-10-17 15:44:09.733 9463 TRACE nova super(CellStateManagerFile, self).__init__(cell_state_cls)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/state.py", line 169, in __init__
2013-10-17 15:44:09.733 9463 TRACE nova self._cell_data_sync(force=True)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/state.py", line 468, in _cell_data_sync
2013-10-17 15:44:09.733 9463 TRACE nova self._refresh_cells_from_dict(self.cells_config_data)
2013-10-17 15:44:09.733 9463 TRACE nova File "/opt/nova/nova/cells/state.py", line 195, in _refresh_cells_from_dict
2013-10-17 15:44:09.733 9463 TRACE nova for cell_name, db_info in db_cells_dict.items():
2013-10-17 15:44:09.733 9463 TRACE nova AttributeError: 'list' object has no attribute 'items'

Not sure what the proper format is....

Revision history for this message
Tom Fifield (fifieldt) wrote :

Cheers Sam.

You don't happen to have a sample that does, do you? ;)

Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → High
milestone: none → havana
Revision history for this message
Sam Morrison (sorrison) wrote :

I tried a few variations that didn't work either, I'll try have a better look into it at some stage.

Tom Fifield (fifieldt)
Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/63271

Changed in openstack-manuals:
status: Confirmed → In Progress
Changed in openstack-manuals:
assignee: Tom Fifield (fifieldt) → Anne Gentle (annegentle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/63271
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=ae06e3b8bc93645fc0ca2f19a57be7a35a77c8a2
Submitter: Jenkins
Branch: master

commit ae06e3b8bc93645fc0ca2f19a57be7a35a77c8a2
Author: Tom Fifield <email address hidden>
Date: Fri Dec 20 10:23:58 2013 +0800

    Fix cells JSON example

    The previous cells JSON example was wrong. This patch
    updates it to be the same as that in etc/nova/cells.json
    from the nova codebase.

    Change-Id: I0d692edd11a5a3921fc7b2f9e463899984277df6
    Closes-Bug: 1240800

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/63507

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/63519

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/63519
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=000d84d41dee819d569b3a7f7976540cbeb6059b
Submitter: Jenkins
Branch: master

commit 000d84d41dee819d569b3a7f7976540cbeb6059b
Author: Diane Fleming <email address hidden>
Date: Fri Dec 20 15:13:24 2013 -0600

    Fix JSON example

    Closes-Bug: #1240800

    Change-Id: I1c61393b7e03bda9005e5111e35968f6bbb82cdd
    author: diane fleming

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (stable/havana)

Reviewed: https://review.openstack.org/63507
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=6c069549d3aaafaa92e3a499d8965b761a4d7e00
Submitter: Jenkins
Branch: stable/havana

commit 6c069549d3aaafaa92e3a499d8965b761a4d7e00
Author: Tom Fifield <email address hidden>
Date: Fri Dec 20 10:23:58 2013 +0800

    Fix cells JSON example

    The previous cells JSON example was wrong. This patch
    updates it to be the same as that in etc/nova/cells.json
    from the nova codebase.

    Change-Id: I0d692edd11a5a3921fc7b2f9e463899984277df6
    Closes-Bug: 1240800
    (cherry picked from commit ae06e3b8bc93645fc0ca2f19a57be7a35a77c8a2)

tags: added: in-stable-havana
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.