Puppet master plugin breaks hiera call

Bug #1569837 reported by Oleksii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Oleksii

Bug Description

During testing of plugin which deploys puppet master it was discovered that a hiera call (in check_deploy_state method) "hiera roles" fails with error:

2016-04-11 15:03:11,343 - ERROR utils.py:494 -- Unexpected exit_code returned: actual 1, expected 0. Command: 'hiera roles node-3.test.domain.local' Details: {'host': '10.109.0.5', 'command': 'hiera roles node-3.test.domain.local', 'exit_code': 1, 'stderr': ["/usr/lib/ruby/vendor_ruby/hiera/backend/nailgun_backend.rb:77:in `lookup': Failed to lookup node in nailgun (RuntimeError)\n", "\tfrom /usr/lib/ruby/vendor_ruby/hiera/backend.rb:174:in `block in lookup'\n", "\tfrom /usr/lib/ruby/vendor_ruby/hiera/backend.rb:171:in `each'\n", "\tfrom /usr/lib/ruby/vendor_ruby/hiera/backend.rb:171:in `lookup'\n", "\tfrom /usr/lib/ruby/vendor_ruby/hiera.rb:60:in `lookup'\n", "\tfrom /usr/bin/hiera:221:in `<main>'\n"], 'stdout': []}

For this case fqdn parameter should be provided to hiera call, e.g.:
hiera roles fqdn=node-3.test.domain.local

This is fixed in the following patchset:
https://review.openstack.org/#/c/304593/

Changed in fuel:
milestone: none → 10.0
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
status: New → Confirmed
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Oleksii (ozhurba)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/304593
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=4e647caba7c59c00d1b2202f140405ae73b51f49
Submitter: Jenkins
Branch: master

commit 4e647caba7c59c00d1b2202f140405ae73b51f49
Author: Oleksii Zhurba <email address hidden>
Date: Tue Apr 12 15:54:55 2016 +0300

    Add fqdn support for get_node_hiera_roles

    Closes-bug: 1569837
    Change-Id: Iaf3cc877e10b05f18f58721db11e73b2a702f71d

Changed in fuel:
status: In Progress → Fix Committed
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.