hexdump: command not found

Bug #1558672 reported by Mark Vanderwiel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Ian Wienand

Bug Description

http://logs.openstack.org/25/288725/7/check/gate-heatclient-dsvm-functional/838718f/logs/devstacklog.txt.gz

This is a heat client dsvm functional devstack. It only installs a subset of services, Heat and Keystone to allow for CLI functional testing. This was working fine, but now when using the devstack generate_hex_string, it fails because the hexdump cmd is not found.

2016-03-17 15:55:49.285 | ++ /opt/stack/new/devstack/lib/heat:configure_heat:L129: generate_hex_string 16
2016-03-17 15:55:49.285 | ++ /opt/stack/new/devstack/functions-common:generate_hex_string:L690: local size=16
2016-03-17 15:55:49.285 | ++ /opt/stack/new/devstack/functions-common:generate_hex_string:L691: hexdump -n 16 -v -e '/1 "%02x"' /dev/urandom
2016-03-17 15:55:49.285 | /opt/stack/new/devstack/functions-common: line 691: hexdump: command not found
2016-03-17 15:55:49.285 | + /opt/stack/new/devstack/lib/heat:configure_heat:L129: iniset /etc/heat/heat.conf DEFAULT auth_encryption_key

Looking at a full devstack log, I see that at least Nova and Heat are using this generate_hex_string common function. When using the full devstack, looks like there are enough other packages installed that one of them brings in the hexdump command.

I will propose a patch to bring in the hexdump (bsdmainutils) as part of the general package utilities installed for devstack.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
assignee: nobody → Mark Vanderwiel (vanderwl)
status: New → In Progress
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

here's an alternative to add the same to the base images themselves:
https://review.openstack.org/295521

Changed in devstack:
assignee: Mark Vanderwiel (vanderwl) → Ian Wienand (iwienand)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/294191
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=d99c29032bb0cc89ffe6874c7b879b84897ff0b0
Submitter: Jenkins
Branch: master

commit d99c29032bb0cc89ffe6874c7b879b84897ff0b0
Author: Mark Vanderwiel <email address hidden>
Date: Thu Mar 17 12:19:16 2016 -0500

    Add dependency for hexdump

    hexdump is used in common function generate_hex_string which is
    used by nova and heat. The current general dependencies do not
    have this dependency covered, instead it is usually pulled in by
    other implicit dependencies when a full devstack is built. In
    cases where only a subset is built (like just Heat and keystone)
    hexdump is missing.

    Added unit tests for the generate_hex_string function.

    Depends-On: Ib47d802a31a0f4c2a49daa7e6698e37c70a2365a
    Change-Id: I77c8c2019fb8b8174cdfaed3e56ebf728f0732b7
    Closes-Bug: #1558672

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

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

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

Reviewed: https://review.openstack.org/298170
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=603fc0c6ec58a0fec060a1030e58b5f7e56794d4
Submitter: Jenkins
Branch: stable/mitaka

commit 603fc0c6ec58a0fec060a1030e58b5f7e56794d4
Author: Mark Vanderwiel <email address hidden>
Date: Thu Mar 17 12:19:16 2016 -0500

    Add dependency for hexdump

    hexdump is used in common function generate_hex_string which is
    used by nova and heat. The current general dependencies do not
    have this dependency covered, instead it is usually pulled in by
    other implicit dependencies when a full devstack is built. In
    cases where only a subset is built (like just Heat and keystone)
    hexdump is missing.

    Added unit tests for the generate_hex_string function.

    Depends-On: Ib47d802a31a0f4c2a49daa7e6698e37c70a2365a
    Change-Id: I77c8c2019fb8b8174cdfaed3e56ebf728f0732b7
    Closes-Bug: #1558672
    (cherry picked from commit d99c29032bb0cc89ffe6874c7b879b84897ff0b0)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/382101

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/liberty)

Reviewed: https://review.openstack.org/382101
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=9edb50760af3025ae3135f3c59e79fa2e2c6f717
Submitter: Jenkins
Branch: stable/liberty

commit 9edb50760af3025ae3135f3c59e79fa2e2c6f717
Author: Mark Vanderwiel <email address hidden>
Date: Thu Mar 17 12:19:16 2016 -0500

    Add dependency for hexdump

    hexdump is used in common function generate_hex_string which is
    used by nova and heat. The current general dependencies do not
    have this dependency covered, instead it is usually pulled in by
    other implicit dependencies when a full devstack is built. In
    cases where only a subset is built (like just Heat and keystone)
    hexdump is missing.

    Added unit tests for the generate_hex_string function.

    Depends-On: Ib47d802a31a0f4c2a49daa7e6698e37c70a2365a
    Change-Id: I77c8c2019fb8b8174cdfaed3e56ebf728f0732b7
    Closes-Bug: #1558672
    (cherry picked from commit d99c29032bb0cc89ffe6874c7b879b84897ff0b0)
    (cherry picked from commit 603fc0c6ec58a0fec060a1030e58b5f7e56794d4)

tags: added: in-stable-liberty
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.