Bug 815932
Summary: | Can't read stickshift-proxy.cfg | ||
---|---|---|---|
Product: | OKD | Reporter: | Kenny Woodson <kwoodson> |
Component: | Containers | Assignee: | Rob Millner <rmillner> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | mfisher, twiest, xtian |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-27 20:45:52 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: |
Description
Kenny Woodson
2012-04-24 20:29:21 UTC
This seems to only happen on new ex-nodes. On the old ex-nodes, the file is already there. When I try to start stickshift-proxy I get this error. [ ~]# /etc/init.d/stickshift-proxy start sed: can't read /var/lib/stickshift/.stickshift-proxy.d/stickshift-proxy.cfg: No such file or directory [ALERT] 114/163155 (26545) : Could not open configuration file /var/lib/stickshift/.stickshift-proxy.d/stickshift-proxy.cfg : No such file or directory Errors in configuration file, check with stickshift-proxy check. [ ~]# This file has never been in our configuration management tools. I also don't think it should be as it seems to be updated by the stickshift-proxy itself when it adds new nodes. It seems to me that this file used to be laid down by an RPM, but isn't now (since older ex-nodes have it and new ex-nodes don't). This file is installed by the rhc-node RPM in /etc/stickshift/stickshift-proxy.cfg and then its %post should copy into place in /var/lib/stickshift/.stickshift-proxy.d if there's not already one in place. The file exists on an instance of devenv_1739 that's been sync'd to now. The file exists on a fresh instance of devenv_1739 with no updates. It seems like either %post for rhc-node or a previous migration script failed. Here's the work-around copied from rhc-node. mkdir -p /var/lib/stickshift/.stickshift-proxy.d /sbin/chkconfig --add stickshift-proxy || : if ! [ -f /var/lib/stickshift/.stickshift-proxy.d/stickshift-proxy.cfg ]; then cp /etc/stickshift/stickshift-proxy.cfg \ /var/lib/stickshift/.stickshift-proxy.d/stickshift-proxy.cfg restorecon /var/lib/stickshift/.stickshift-proxy.d/stickshift-proxy.cfg fi /sbin/restorecon /var/lib/stickshift/.stickshift-proxy.d/ /sbin/service stickshift-proxy condrestart Verified the file exists in stage_174 which has the same broker version. Are the ex nodes being launched derived from stage_174 or are they from an earlier build? If they are derived from stage_174, would you be able to determine whether there were errors installing the rhc-node package? Thanks! ex-nodes are not launched based on devenv AMIs, we have our own AMI. Using the manual workaround from comment 4, I've manually fixed the problem. Note, only these 5 nodes were affected: 35, 37, 40, 41, 42 Workaround provided. It doesn't seem like there's enough info to debug this further. If possible, try to capture debug info from the RPM installation next time you have to spin up more nodes and we'll see if there's a failure in %post. Passing to Q/E to validate that the proxy configuration file exists on dev and stg. You can test either by directly checking or by creating a scalable app and verifying that the expose ports worked. Checked this on devenv_1741, the file exists #ls -lh /var/lib/stickshift/.stickshift-proxy.d/ total 4.0K -rw-r-----. 1 root root 2.0K Apr 25 02:29 stickshift-proxy.cfg [root@ip-10-118-31-171 ~]# /etc/init.d/stickshift-proxy restart Stopping stickshift-proxy: [ OK ] Starting stickshift-proxy: [ OK ] |