openstack overcloud node configure --all-manageable --root-device=sda fails in queens

Bug #1747057 reported by James Bagwell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Julie Pichon

Bug Description

Openstack QUEENS: 3.13.0
Python-tripleoclient Version 9.0.1 Release: 0.20180124052925.286494c.el7.centos

Steps I took:
openstack overcloud node import hosts.yaml
openstack overcloud node introspect --all-manageable
openstack overcloud node configure --all-manageable --root-device=sda

{"target_power_state": null, "inspect_interface": null, "links": [{"href": "http://172.31.255.1:6385/v1/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c", "rel": "self"}, {"href": "http://172.31.255.1:6385/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c", "rel": "bookmark"}], "target_provision_state": null, "last_error": null, "storage_interface": "noop", "updated_at": "2018-02-02T18:08:21+00:00", "maintenance_reason": null, "states": [{"href": "http://172.31.255.1:6385/v1/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/states", "rel": "self"}, {"href": "http://172.31.255.1:6385/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/states", "rel": "bookmark"}], "provision_state": "manageable", "clean_step": {}, "vendor_interface": null, "uuid": "13232e45-8c5c-4749-9c5c-7e69937f971c", "console_enabled": false, "extra": {"hardware_swift_object": "extra_hardware-13232e45-8c5c-4749-9c5c-7e69937f971c"}, "raid_config": {}, "provision_updated_at": "2018-02-02T17:12:47+00:00", "power_state": "power off", "target_raid_config": {}, "network_interface": "flat", "inspection_started_at": null, "inspection_finished_at": null, "maintenance": false, "power_interface": null, "driver": "pxe_ipmitool", "volume": [{"href": "http://172.31.255.1:6385/v1/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/volume", "rel": "self"}, {"href": "http://172.31.255.1:6385/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/volume", "rel": "bookmark"}], "raid_interface": null, "boot_interface": null, "reservation": null, "management_interface": null, "properties": {"cpu_arch": "x86_64", "memory_mb": "98304", "availability_zone": "", "cpus": "24", "capabilities": "profile:Controller,cpu_hugepages:true,cpu_txt:true,cpu_vt:true,boot_option:local,cpu_aes:true,cpu_hugepages_1g:true,boot_mode:bios", "host_group": "Controller", "local_gb": "231"}, "instance_uuid": null, "name": "server-1", "driver_info": {"ipmi_password": "***", "ipmi_address": "192.168.116.107", "deploy_ramdisk": "864eb03a-b1e0-4420-81cc-d608f7c0bfe7", "deploy_kernel": "a1a347b7-09c3-4b75-90ce-ed3ebdd42d47", "ipmi_username": "hp"}, "resource_class": "baremetal", "created_at": "2018-02-02T17:12:43+00:00", "portgroups": [{"href": "http://172.31.255.1:6385/v1/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/portgroups", "rel": "self"}, {"href": "http://172.31.255.1:6385/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/portgroups", "rel": "bookmark"}], "deploy_interface": null, "ports": [{"href": "http://172.31.255.1:6385/v1/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/ports", "rel": "self"}, {"href": "http://172.31.255.1:6385/nodes/13232e45-8c5c-4749-9c5c-7e69937f971c/ports", "rel": "bookmark"}], "console_interface": null, "driver_internal_info": {}, "chassis_uuid": null, "instance_info": {}}
 log_http_response /usr/lib/python2.7/site-packages/ironicclient/common/http.py:292
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor [req-a22d5233-138e-4f95-a248-b2e6efea14ec 6d9160b841b04d2a847b87c0c52ffa8a c3fea69039b64caaa5aab37651873d5a - default default] Failed to run action [action_ex_id=ce949409-d339-42aa-9e7a-8b35f6e45df2, action_cls='<class 'mistral.actions.action_factory.ConfigureRootDeviceAction'>', attributes='{}', params='{u'root_device': u'sda', u'node_uuid': u'13232e45-8c5c-4749-9c5c-7e69937f971c', u'minimum_size': 4, u'overwrite': False}']
 __init__() got an unexpected keyword argument 'auth_token': TypeError: __init__() got an unexpected keyword argument 'auth_token'
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor Traceback (most recent call last):
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/mistral/executors/default_executor.py", line 110, in run_action
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor result = action.run(action_ctx)
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/tripleo_common/actions/baremetal.py", line 194, in run
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor context=context)
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/tripleo_common/actions/baremetal.py", line 211, in _apply_root_device_strategy
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor inspector_client = self.get_baremetal_introspection_client(context)
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/tripleo_common/actions/base.py", line 93, in get_baremetal_introspection_client
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor auth_token=context.auth_token
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor File "/usr/lib/python2.7/site-packages/ironic_inspector_client/v1.py", line 88, in __init__
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor super(ClientV1, self).__init__(**kwargs)
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor TypeError: __init__() got an unexpected keyword argument 'auth_token'
2018-02-02 18:08:23.169 23499 ERROR mistral.executors.default_executor

Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → rocky-1
importance: Medium → High
milestone: rocky-1 → queens-rc1
Julie Pichon (jpichon)
tags: added: tripleo-common workflows
Revision history for this message
Julie Pichon (jpichon) wrote :
Julie Pichon (jpichon)
Changed in tripleo:
assignee: nobody → Julie Pichon (jpichon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
James Bagwell (jimbagwell) wrote :

Hi Julia - is this to be deprecated? (per your comment #1)

Revision history for this message
Julie Pichon (jpichon) wrote :

Hi James, sorry for the confusion! I meant the problem is due to the 'node configure' command using a deprecated way to initialise the baremetal introspection client (which does the actual work of configuring the nodes). Once the patch merges it should work fine again - "openstack overcloud node configure" is not getting deprecated!

If you're curious to test the patch on a testing environment, you can download it locally and then run the commands at https://github.com/openstack/tripleo-common/#action-development (only up to "sudo mistral-db-manage populate" is necessary) to update tripleo-common.

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

Reviewed: https://review.openstack.org/541665
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=4625b9306687862d2a6c787d047febe06d768407
Submitter: Zuul
Branch: master

commit 4625b9306687862d2a6c787d047febe06d768407
Author: Julie Pichon <email address hidden>
Date: Wed Feb 7 10:56:16 2018 +0000

    Fix baremetal introspection client creation

    We were using deprecated arguments to create the client, which have
    been removed in I9df8296ddc1b41cde22ff8b0f26d73c4408741ce.

    Also make explicit the keystoneauth1 requirement - the library is
    already used in other parts of the code but wasn't explicitly
    referenced.

    Change-Id: I2314020a6414f90d964f7be474668658913e61b9
    Closes-Bug: #1747057

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.5.0

This issue was fixed in the openstack/tripleo-common 8.5.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.