NoneType error when deployment starts on baremetal lab

Bug #1656783 reported by Kristina Berezovskaia
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Fedor Zhadaev
Nominated for Ocata by Timur Nurlygayanov
Mitaka
Fix Released
Critical
Fedor Zhadaev
Newton
Fix Released
Critical
Fedor Zhadaev

Bug Description

Detailed bug description:
 When I start to deploy env on barametal lab it is impossible because of Error
'NoneType' object has no attribute 'update'

Steps to reproduce:
 1) Create env
 2) Start deploy

Expected results:
 deployment is successful

Actual result:
 'NoneType' object has no attribute 'update' at the beginning

Description of the environment:
1 controller
1 compute with pinning
1 compute with hp
2 compute with sr-iov

snapshot #767

Full trace:
ERROR [7ff76ccf0880] (manager) Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nailgun/task/manager.py", line 61, in _call_silently
    to_return = method(task, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nailgun/task/task.py", line 258, in message
    dry_run=dry_run, **kwargs
  File "/usr/lib/python2.7/site-packages/nailgun/task/task.py", line 136, in call_deployment_method
    args = getattr(cls, method)(transaction, **kwargs)
  File "/usr/lib/python2.7/site-packages/nailgun/task/task.py", line 531, in task_deploy
    transaction.cluster, nodes
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 1008, in serialize_for_lcm
    ignore_customized, skip_extensions
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 990, in _invoke_serializer
    ignore_customized=ignore_customized, skip_extensions=skip_extensions
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 128, in serialize
    self.serialize_generated(origin_nodes, skip_extensions)
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 148, in serialize_generated
    serialized_nodes = self.serialize_nodes(nodes)
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 840, in serialize_nodes
    self.serialize_node(node, roles)
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 854, in serialize_node
    serialized_node = base.serialize_node(node, roles[0])
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 677, in serialize_node
    self.serialize_node_attributes(node, serialized_node)
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 681, in serialize_node_attributes
    self.generate_cpu_pinning(node, serialized_node)
  File "/usr/lib/python2.7/site-packages/nailgun/orchestrator/deployment_serializers.py", line 701, in generate_cpu_pinning
    serialized_node.get('dpdk').update(objects.Node.get_attributes(node)
AttributeError: 'NoneType' object has no attribute 'update'

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

It is a regression issue (so code worked fine the week before) and it is Critical issue because we can't deploy environment (with any configuration) of the hardware lab.

Steps To Reproduce are simple:
1. Deploy master node with Fuel 9.2
2. Add bare-metal nodes for controller and computes
3. Press "deploy environment" button

Observed Result:
We got an exception from Nailgun python code about the None parameter, because of the bug in the code.

Note: I know how to fix it, the fix is trivial and shouldn't affect other features.
I'm going to create pull request.

Changed in fuel:
importance: High → Critical
status: New → Confirmed
tags: added: blocker-for-qa
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/420642

Changed in fuel:
assignee: Timur Nurlygayanov (tnurlygayanov) → Fedor Zhadaev (fzhadaev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/421284

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

Reviewed: https://review.openstack.org/420640
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=d1de5e7e799ea968afc1bd2d6f88a37aab99be12
Submitter: Jenkins
Branch: master

commit d1de5e7e799ea968afc1bd2d6f88a37aab99be12
Author: Timur Nurlygayanov <email address hidden>
Date: Mon Jan 16 13:51:53 2017 +0300

    Ensure that 'dpdk' in serialization before update

    Change-Id: I8c14c25e08defc3c6533f7fbe7ba5f34120e098e
    Closes-Bug: #1656783

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/newton)

Reviewed: https://review.openstack.org/421284
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=1fe4d542663c768e8de2e9bb5534a926be402e7f
Submitter: Jenkins
Branch: stable/newton

commit 1fe4d542663c768e8de2e9bb5534a926be402e7f
Author: Timur Nurlygayanov <email address hidden>
Date: Mon Jan 16 13:51:53 2017 +0300

    Ensure that 'dpdk' in serialization before update

    Change-Id: I8c14c25e08defc3c6533f7fbe7ba5f34120e098e
    Closes-Bug: #1656783

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/420642
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=2e9cd9831ce2f98faaba39b1143268624e850a2b
Submitter: Jenkins
Branch: stable/mitaka

commit 2e9cd9831ce2f98faaba39b1143268624e850a2b
Author: Timur Nurlygayanov <email address hidden>
Date: Mon Jan 16 13:51:53 2017 +0300

    Ensure that 'dpdk' in serialization before update

    Change-Id: I8c14c25e08defc3c6533f7fbe7ba5f34120e098e
    Closes-Bug: #1656783

summary: - NoneType error when deployment starts on barametal lab
+ NoneType error when deployment starts on baremetal lab
Revision history for this message
Kristina Berezovskaia (kkuznetsova) wrote :

Verify on 9.2 snap #801 and #804

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-web 11.0.0.0rc1

This issue was fixed in the openstack/fuel-web 11.0.0.0rc1 release candidate.

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.