Bug 859560 - rhc-accept-node
Summary: rhc-accept-node
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-21 20:45 UTC by Mike McGrath
Modified: 2015-05-14 22:59 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:48:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McGrath 2012-09-21 20:45:00 UTC
rhc-accept-node should check ~/.ssh/, .sandbox, .tmp and .env exists

Comment 1 Ram Ranganathan 2012-09-25 19:12:36 UTC
Fixed with pull request: 
    https://github.com/openshift/li/pull/401

Waiting for merge.

Comment 2 Peter Ruan 2012-09-26 23:09:32 UTC
verified on devenv_2236

drwxr-x---.  3 root  73c93a2fe3994c8c8c4e5bdb6b210720 4096 Sep 26 13:52 .env
d---------.  3 root  root                             4096 Sep 26 19:07 .sandbox
drwxr-x---.  2 root  73c93a2fe3994c8c8c4e5bdb6b210720 4096 Sep 26 13:53 .ssh
d---------.  3 root  root                             4096 Sep 26 19:07 .tmp

Comment 3 Peter Ruan 2012-09-26 23:09:48 UTC
verified on devenv_2236

drwxr-x---.  3 root  73c93a2fe3994c8c8c4e5bdb6b210720 4096 Sep 26 13:52 .env
d---------.  3 root  root                             4096 Sep 26 19:07 .sandbox
drwxr-x---.  2 root  73c93a2fe3994c8c8c4e5bdb6b210720 4096 Sep 26 13:53 .ssh
d---------.  3 root  root                             4096 Sep 26 19:07 .tmp

Comment 4 Xiaoli Tian 2012-09-27 05:36:28 UTC
Verified it on devenv_2440 with the following steps:

[root@ip-10-190-27-254 ~]# rhc-accept-node 
PASS

[root@ip-10-190-27-254 diy1-2240t]# ls -a
.  ..  app-root  diy-0.1  diy1  .env  git  .gitconfig  .m2  .sandbox  .ssh  .tmp
[root@ip-10-190-27-254 diy1-2240t]# rm -rf .env 
[root@ip-10-190-27-254 diy1-2240t]# rm -rf .ssh/
[root@ip-10-190-27-254 diy1-2240t]# rm -rf .tmp/
[root@ip-10-190-27-254 diy1-2240t]# rm -rf .sandbox/

run rhc-accept-node to see if it will detect these removed files.

[root@ip-10-190-27-254 diy1-2240t]# rhc-accept-node 
FAIL: directory beec1ff41a554d7b82c4b3c712dae534 doesn't have a .ssh directory
FAIL: directory beec1ff41a554d7b82c4b3c712dae534 doesn't have a .env directory
FAIL: directory beec1ff41a554d7b82c4b3c712dae534 doesn't have a .sandbox directory
FAIL: directory beec1ff41a554d7b82c4b3c712dae534 doesn't have a .tmp directory
4 ERRORS


Then the feature is added.


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