'/usr/bin/nova-manage network list' returned 1 instead of 8 expected fixed networks

Bug #1349369 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
In Progress
High
Roman Podoliaka

Bug Description

{

    "build_id": "2014-07-26_10-32-31",
    "ostf_sha": "8c328521b1444f22c50463b9432193e20ed33813",
    "build_number": "363",
    "auth_required": true,
    "api": "1.0",
    "nailgun_sha": "83cc9ed44ebc8dd97248483b6d414ebbc4cff3c0",
    "production": "docker",
    "fuelmain_sha": "6e05b0448d4dc52839e6c6d3696cc5129bf9e1c2",
    "astute_sha": "aa5aed61035a8dc4035ab1619a8bb540a7430a95",
    "feature_groups": [
        "mirantis"
    ],
    "release": "5.1",
    "fuellib_sha": "d1c7f67b3cf51978d3178c8666ea398f2477dcb5"

}

Steps:
1. Create next cluster - CentOS, simple, Vlan nova-network, 1 controller, 1 compute, set Number of fixed networks to 8
2. Deploy cluster
3. Ssh to controller after successful deployment
4. Execute /usr/bin/nova-manage network list

Expected - command execution returned 8 networks
Actual - it returned 1 network
[root@node-2 ~]# /usr/bin/nova-manage network list
id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid
1 10.0.0.0/27 None 10.0.0.3 8.8.4.4 8.8.8.8 103 None 8831eaae-a345-469a-a207-eba461dfef9f

Logs are attached

Tags: nova
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Seeing this in Nova logs:

<178>Jul 28 10:46:34 node-2 nova-manage 2014-07-28 10:46:34.996 17815 CRITICAL nova [req-ccd28c6a-c224-4b8c-8f98-3b5dbd30b9a2 None] DuplicateVlan: Detected existing vlan with id 103
2014-07-28 10:46:34.996 17815 TRACE nova Traceback (most recent call last):
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/bin/nova-manage", line 10, in <module>
2014-07-28 10:46:34.996 17815 TRACE nova sys.exit(main())
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1376, in main
2014-07-28 10:46:34.996 17815 TRACE nova ret = fn(*fn_args, **fn_kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 530, in create
2014-07-28 10:46:34.996 17815 TRACE nova net_manager.create_networks(context.get_admin_context(), **kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/network/manager.py", line 1865, in create_networks
2014-07-28 10:46:34.996 17815 TRACE nova self, context, vpn=True, **kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/network/manager.py", line 1094, in create_networks
2014-07-28 10:46:34.996 17815 TRACE nova return self._do_create_networks(context, **kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/network/manager.py", line 1232, in _do_create_networks
2014-07-28 10:46:34.996 17815 TRACE nova net.create()
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/objects/base.py", line 151, in wrapper
2014-07-28 10:46:34.996 17815 TRACE nova return fn(self, ctxt, *args, **kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/objects/network.py", line 131, in create
2014-07-28 10:46:34.996 17815 TRACE nova db_network = db.network_create_safe(context, updates)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/db/api.py", line 929, in network_create_safe
2014-07-28 10:46:34.996 17815 TRACE nova return IMPL.network_create_safe(context, values)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py", line 146, in wrapper
2014-07-28 10:46:34.996 17815 TRACE nova return f(*args, **kwargs)
2014-07-28 10:46:34.996 17815 TRACE nova File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py", line 2519, in network_create_safe
2014-07-28 10:46:34.996 17815 TRACE nova raise exception.DuplicateVlan(vlan=values['vlan'])
2014-07-28 10:46:34.996 17815 TRACE nova DuplicateVlan: Detected existing vlan with id 103
2014-07-28 10:46:34.996 17815 TRACE nova

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Roman Podoliaka (rpodolyaka)
status: New → Triaged
tags: added: nova
Changed in fuel:
status: Triaged → In Progress
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.