-
Notifications
You must be signed in to change notification settings - Fork 514
rhc-list-ports: Fix output of scaled gears #5988
rhc-list-ports: Fix output of scaled gears #5988
Conversation
Read the list of scaled gears from the correct location. Commit 487e6e2 replaced haproxy/conf/gear-registry.db with gear-registry/gear-registry.json.
@jwhonce, I noticed this odd bit of code, and I don't know what it's actually used for, but I did noticed that it was wrong, so I fixed it. Could you explain what its purpose is, and what it impacts, if anything? If I can understand what it's for, I can open a defect report. If it's not used for anything, maybe we should simply delete it rather than fixing it. |
Looks like this should work, or you could get an ApplicationContainer and then call #gear_registry on it to get the registry, although that presumably would take more cycles than just parsing the json file itself. |
Thanks for the review! It doesn't seem like anything depends on this functionality, and the information is handily available using the |
It is used by rhc. See https://github.com/openshift/rhc/blob/master/lib/rhc/commands/port_forward.rb#L87 |
@Miciah with this fix, you get output such as:
Does nothing in origin-server or rhc use these SCALE lines? |
As far as I can see, rhc does not use the SCALE lines. It does not print them out. I didn't find anything in origin-server that used |
@smarterclayton @fabianofranz does anything use these SCALE lines? |
@ncdc not on |
Don't we use the rhc-list-ports output to determine what to port forward to? Whether something is scalable affects that decision.
|
@smarterclayton we haven't found anyplace where SCALE is used so far |
I'll make a new PR today to delete the code. |
Closing in favour of PR #6049. |
Read the list of scaled gears from the correct location.
Commit 487e6e2 replaced
haproxy/conf/gear-registry.db
withgear-registry/gear-registry.json
.