Can not add node to deployed to env deployed with network templates

Bug #1614171 reported by Dmitry Ukov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Sustaining
Mitaka
Invalid
High
Fuel Sustaining

Bug Description

Steps to reproduce
1. Create env
2. Add network called san
   fuel2 network-group create -N 1 -C 172.17.32.64/27 -V 1362 -g 172.17.32.65 san
3. Upload network-template (see attachment)
4. Add controllers/computes
5. Deploy environment
6. Try to add new compute node to environment

Expected result:
  Node added to env with "Pending Addition" Status
Actual result:
  Error in Fuel UI

Logs show following error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 285, in content_json
    resp = func(cls, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/network_configuration.py", line 178, in PUT
    objects.Cluster.set_network_template(cluster, template)
  File "/usr/lib/python2.7/site-packages/nailgun/objects/cluster.py", line 1287, in set_network_template
    cls.update_nodes_network_template(instance, instance.nodes)
  File "/usr/lib/python2.7/site-packages/nailgun/objects/cluster.py", line 1301, in update_nodes_network_template
    Node.apply_network_template(node, template)
  File "/usr/lib/python2.7/site-packages/nailgun/objects/node.py", line 1224, in apply_network_template
    nm.assign_networks_by_template(instance)
  File "/usr/lib/python2.7/site-packages/nailgun/network/neutron.py", line 483, in assign_networks_by_template
    node_ifaces[iface]['id'] = nic.id
AttributeError: 'NoneType' object has no attribute 'id'

Diagnostic Snapshot:

Tags: area-python
Revision history for this message
Dmitry Ukov (dukov) wrote :
Changed in fuel:
milestone: none → 10.0
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
status: New → Confirmed
importance: Undecided → High
tags: added: area-python
Dmitry Ukov (dukov)
Changed in fuel:
status: Confirmed → Invalid
Revision history for this message
Dmitry Ukov (dukov) wrote :

This issue is due different interface naming for new nodes. I'd suggest more informative logging here

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.