linkedin/cruise-control-ui

UI prompt wrongly on environment dropdown even after changing the config.csv file

shanrd7 opened this issue · 11 comments

UI prompt wrongly on environment dropdown even after changing the config.csv file

@shanrd7 I have also opened a similar issue and @nareshv also agree upon it. He has opened couple of open issues to resolve this.
Meanwhile I did a work around of clearing my cookies and it resolves the issue temporarily.

the code is available in v0.2.0 branch

@nareshv the latest release still has the same issue as earlier. Like the UI though opened in new window, it kept showing details of old configs.
If I delete cookies and then try it looks good.

@nareshv will incognito works?, because it doesn't work for me

@shanrd7 , just to understand the issue correctly.

  1. opened CCFE page
  2. seeing all the dropdowns for CC endpoints
  3. Made a backend change to config.csv
  4. CC end point information in the dropdown in CCFE is not updated to match with latest config.csv

Is that correct ?

Right now, after step-3, can you select the ⟳ Refresh Config from UI Adminstration dropdown ? which is in 0.2.x

I have not added the fully automated refresh as its being tested.

I have CCFE for dev environment as poc and in drop down kccpoc after that I have done it for prod environment changing the config.csv file as per prod and started the service, Somehow it still point to dev

There are two config.csv in the git source tree.

  1. Top level static/config.csv which is used only during the npm run dev phase
  2. Production file dist/static/config.csv which is automatically created by copying top level static/config.csv as part of npm run build. This directory (dist) is what needs to be deployed under a webserver along with the correctly modified dist/static/config.csv

In order to confirm that the config.csv is deployed correctly under a given environment. you can also curl http://dev.example.com/static/config.csv & curl http://prod.example.com/static/config.csv

Depending on what you have deployed you should see the same contents here as its used in CCFE.

@nareshv I have followed the exact process you have mentioned in wiki/docs. Even used your 2.x release. But still the CCFE would not refresh to the latest config.csv until I clear cookies.

@chetann , we don't use cookies anywhere in CCFE. There is also a cache buster url param while making a call to the backend (http://host.example.com/static/config.csv?t=<random-unique-timestamp>) which should ensure the server to serve the most recent configuration file thats on disk.

If that doesn't happen i suspect, something to do with the webserver not reloading the disk contents automatically.

Just curious, which webserver is this ?

closing this due to inactivity. please file a new one in case the problem persists.