undercloud install fails with cryptic error message if /etc/puppet does not exist

Bug #1804527 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
Alex Schultz

Bug Description

If someone installs the puppetlabs version of puppet rather than our packaging, the installation of the undercloud fails with an message about 'tmp' not being defined. We should improve the error messaging to explain at least why it failed. There isn't much we can do about the wrong package being used, but we can improve the failure to help point to what is wrong in this case.

Revision history for this message
Alex Schultz (alex-schultz) wrote :

We need to check that tmpd exists http://git.openstack.org/cgit/openstack/python-tripleoclient/tree/tripleoclient/utils.py#n1114 before attempting to do anything with it it. If tmpd is not defined then we should throw a message indicating that we could not perform the action.

tags: added: rocky-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

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

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/619363
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=e348fab9514f44baf1acc39633cd06bd375b4568
Submitter: Zuul
Branch: master

commit e348fab9514f44baf1acc39633cd06bd375b4568
Author: Alex Schultz <email address hidden>
Date: Wed Nov 21 14:47:13 2018 -0700

    Improve bulk symlink error handling

    If the tempdir doesn't exist, we can get a cryptic error message when
    using the bulk_symlink function. This change checks that the temp dir we
    are to use exists prior to consuming it and throws a message indicating
    the folder doesn't exist.

    Change-Id: I3a4bf279d6d1c2c35c000e7b38b147a026cfcfb4
    Closes-Bug: #1804527

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

This issue was fixed in the openstack/python-tripleoclient 11.2.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.