Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1051828 - packstack: add symlink in /var/tmp/packstack to most recent results
packstack: add symlink in /var/tmp/packstack to most recent results
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack (Show other bugs)
3.0
x86_64 Linux
low Severity low
: beta
: 8.0 (Liberty)
Assigned To: David Xie
Ido Ovadia
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-11 16:25 EST by Robert Harker
Modified: 2016-04-07 16:58 EDT (History)
12 users (show)

See Also:
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 16:58:51 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
add symbol link for latest log dir (824 bytes, patch)
2014-01-26 08:55 EST, David Xie
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 185405 None None None Never
OpenStack gerrit 239630 None None None Never
Red Hat Product Errata RHEA-2016:0603 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-07 20:53:53 EDT

  None (edit)
Description Robert Harker 2014-01-11 16:25:46 EST
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 06:24:42 EST
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 10:33:38 EST
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 14:16:55 EST
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 08:22:37 EST
Hey guys, I think I have done something. How can I submit my patch? On launchpad or?
Comment 6 David Xie 2014-01-26 08:55:59 EST
Created attachment 855679 [details]
add symbol link for latest log dir
Comment 9 Amit Ugol 2016-01-25 09:56:00 EST
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 16:58:51 EDT
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

Note You need to log in before you can comment on or make changes to this bug.