Bug 1051828 - packstack: add symlink in /var/tmp/packstack to most recent results
Summary: packstack: add symlink in /var/tmp/packstack to most recent results
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 3.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: beta
: 8.0 (Liberty)
Assignee: David Xie
QA Contact: Ido Ovadia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-11 21:25 UTC by Robert Harker
Modified: 2016-04-07 20:58 UTC (History)
12 users (show)

Fixed In Version: openstack-packstack-7.0.0-0.7.dev1661.gaf13b7e.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 20:58:51 UTC
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 185405 0 None None None Never
OpenStack gerrit 239630 0 None None None Never
Red Hat Product Errata RHEA-2016:0603 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-08 00:53:53 UTC

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


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