check-grenade-dsvm-ironic-sideways failing test_list_baremetal_node

Bug #1422520 reported by Adam Gandelman
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grenade
Fix Released
Undecided
Adam Gandelman

Bug Description

New tempest test is failing when run on stable/juno sideways grenade: https://review.openstack.org/#/c/149125/

http://logs.openstack.org/64/153164/1/check/check-grenade-dsvm-ironic-sideways/9e5eb03/

Traceback (most recent call last):
  File "tempest/api/compute/admin/test_baremetal_nodes.py", line 38, in test_list_baremetal_nodes
    baremetal_nodes = self.client.list_baremetal_nodes()
  File "tempest/services/compute/json/baremetal_nodes_client.py", line 32, in list_baremetal_nodes
    resp, body = self.get(url)
  File "/opt/stack/new/tempest/.tox/smoke/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 172, in get
    return self.request('GET', url, extra_headers, headers)
  File "tempest/common/service_client.py", line 61, in request
    headers=headers, body=body)
  File "/opt/stack/new/tempest/.tox/smoke/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 388, in request
    resp, resp_body)
  File "/opt/stack/new/tempest/.tox/smoke/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 493, in _error_checker
    raise exceptions.ServerFault(message)
ServerFault: Got server fault
Details: The server has either erred or is incapable of performing the requested operation.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

http://logs.openstack.org/64/153164/1/check/check-grenade-dsvm-ironic-sideways/c96634c/logs/new/screen-n-api.txt.gz

_process_stack /opt/stack/new/nova/nova/api/openstack/wsgi.py:937
2015-02-16 21:55:22.969 ERROR nova.api.openstack [req-3eeb32a3-c4b2-41b7-94c5-3ea07dda04e0 BaremetalNodesAdminTestJSON-2134236199 BaremetalNodesAdminTestJSON-1920363053] Caught error: (OperationalError) no such table: bm_nodes u'SELECT bm_nodes.deleted_at AS bm_nodes_deleted_at, bm_nodes.created_at AS bm_nodes_created_at, bm_nodes.updated_at AS bm_nodes_updated_at, bm_nodes.id AS bm_nodes_id, bm_nodes.deleted AS bm_nodes_deleted, bm_nodes.uuid AS bm_nodes_uuid, bm_nodes.service_host AS bm_nodes_service_host, bm_nodes.instance_uuid AS bm_nodes_instance_uuid, bm_nodes.instance_name AS bm_nodes_instance_name, bm_nodes.cpus AS bm_nodes_cpus, bm_nodes.memory_mb AS bm_nodes_memory_mb, bm_nodes.local_gb AS bm_nodes_local_gb, bm_nodes.preserve_ephemeral AS bm_nodes_preserve_ephemeral, bm_nodes.pm_address AS bm_nodes_pm_address, bm_nodes.pm_user AS bm_nodes_pm_user, bm_nodes.pm_password AS bm_nodes_pm_password, bm_nodes.task_state AS bm_nodes_task_state, bm_nodes.terminal_port AS bm_nodes_terminal_port, bm_nodes.image_path AS bm_nodes_image_path, bm_nodes.pxe_config_path AS bm_nodes_pxe_config_path, bm_nodes.deploy_key AS bm_nodes_deploy_key, bm_nodes.root_mb AS bm_nodes_root_mb, bm_nodes.swap_mb AS bm_nodes_swap_mb, bm_nodes.ephemeral_mb AS bm_nodes_ephemeral_mb \nFROM bm_nodes \nWHERE bm_nodes.deleted = 0' ()

Not sure why this is trying to hit the nova database. These requests should be proxy'd to Ironic at this point in the migration.

affects: ironic → grenade
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to grenade (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/156410

Matt Riedemann (mriedem)
Changed in grenade:
status: New → In Progress
assignee: nobody → Adam Gandelman (gandelman-a)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to grenade (stable/juno)

Reviewed: https://review.openstack.org/156410
Committed: https://git.openstack.org/cgit/openstack-dev/grenade/commit/?id=118b0b0bacaf6c3bb81a78fc21e0e06ca2e1072e
Submitter: Jenkins
Branch: stable/juno

commit 118b0b0bacaf6c3bb81a78fc21e0e06ca2e1072e
Author: Adam Gandelman <email address hidden>
Date: Mon Feb 16 15:01:18 2015 -0800

    Also restart nova-api as part of nova-bm -> ironic migration

    The nova-api service needs a restart after the migration to pick up the new
    compute_driver config setting. This toggles whether baremetal node requests
    are proxied to ironic or served locally from the nova-bm database. A new
    test was added to tempest that stresses this and is failing the juno grenade
    job because the API is attempting to serve nodes locally instead of via
    Ironic.

    Change-Id: I4f8354abfd909ba4acd62d3ce4a6ab0535a64f7c
    Closes-bug: #1422520

tags: added: in-stable-juno
Alan Pevec (apevec)
Changed in grenade:
status: In Progress → Fix Committed
tags: removed: in-stable-juno
tags: added: in-stable-juno
Sean Dague (sdague)
Changed in grenade:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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