Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1051828

Summary: packstack: add symlink in /var/tmp/packstack to most recent results
Product: Red Hat OpenStack Reporter: Robert Harker <harker-redhat>
Component: openstack-packstackAssignee: David Xie <davidx>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: aortega, augol, davidx, derekh, fvollero, ichavero, jschluet, mburns, mmagr, rbalakri, sclewis, yeylon
Target Milestone: betaKeywords: Triaged
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-packstack-7.0.0-0.7.dev1661.gaf13b7e.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 20:58:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
add symbol link for latest log dir none

Description Robert Harker 2014-01-11 21:25:46 UTC
Description of problem:
Feature request:
When packstack is run a symlink from the most recent results:
  /var/tmp/packstack/packstack_run_hash_ID
To a standard name like:
  /var/tmp/packstack/Latest
should be created.

This would aid in finding the most recent results when trouble shooting a problem.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Francesco Vollero 2014-01-22 11:24:42 UTC
I would close this bug because it's easy to recognize which one was the latest installation of packstack due to the date and time, is not that cumbersome to identify which one is the last installed release. Anyway, if David want to do it and send the review, I would be more than pleased to follow up.

Comment 3 David Xie 2014-01-23 15:33:38 UTC
I'd like to try to add a symlink for it, please let me have a try. Thanks

Comment 4 Robert Harker 2014-01-25 19:16:55 UTC
I agree that a "ls -t" will show you the latest.  But if I recall correctly taking the assumption that the last entry in a simple "ls" does not.  I.e. The directory names are not named alpha-numerically sequentially.

Adding a symlink to the latest aids with troubleshooting.  Rather than saying:
"Do a 'ls -t' in /var/tmp/packstack.
Find the last entry.
'cd' to that directory"

You can simply say:
"'cd' to /var/tmp/packstack/latest"

Comment 5 David Xie 2014-01-26 13:22:37 UTC
Hey guys, I think I have done something. How can I submit my patch? On launchpad or?

Comment 6 David Xie 2014-01-26 13:55:59 UTC
Created attachment 855679 [details]
add symbol link for latest log dir

Comment 9 Amit Ugol 2016-01-25 14:56:00 UTC
Looks OK to me:

# ls -l /var/tmp/packstack/
total 8
drwx------. 2 root root 4096 Jan 25 15:32 20160125-153211-fwTCE6
drwx------. 4 root root 4096 Jan 25 15:32 20160125-153212-5A99YH
lrwxrwxrwx. 1 root root   41 Jan 25 15:32 latest -> /var/tmp/packstack/20160125-153212-5A99YH

Comment 11 errata-xmlrpc 2016-04-07 20:58:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html