question

FiallegaJorgeITD-8921 avatar image
0 Votes"
FiallegaJorgeITD-8921 asked Monalla-MSFT answered

Azure Spring Cloud Config Server sends configuration to client even after the server is reset

Steps to reproduce:

  1. Created an Azure Spring Cloud service.

  2. Configured the Config Server pointing to a public git repo.

  3. Created/deployed a web application called "complex" to the created Azure Spring Cloud instance az spring-cloud app create -n complex

  4. The application picks the configurations correctly from the Config Server ! So when I hit web endpoint, it returns message coming from the configuration stored in git.

  5. Removed the Config Server by clicking on "Reset".

  6. Checked that indeed the Config Server is removed by running az spring-cloud config-server show -n my-asc which returns "Config server not set."

  7. Redeploy the "complex" application: az spring-cloud app deploy -n complex --jar-path target/complex-0.0.1-SNAPSHOT.jar

  8. Tested the end point in the "complex" application

Expected: I expect not to get the message from the Config Server stored in GIT, because the config server is not set anymore.
Actual: I keep getting the message that is stored in GIT even though my config server is not set anymore.

azure-spring-cloud
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I kept going with my experimentation. The following command az spring-cloud config-server show -n my-asc still shows "Config server not set."
Nevertheless I modified the application.yml configuration file on git. This is the git repo that before reseting my config server, it was pointing to. I was thinking that perphaps the reason why I am still getting the configuration in the application is due to some cloud caching. I went ahead and modified the application.yml on the git repository and restarted my "complex" application. To my surprise the new configuration message that I just entered shows up.

0 Votes 0 ·
Monalla-MSFT avatar image Monalla-MSFT FiallegaJorgeITD-8921 ·

@FiallegaJorgeITD-8921 - Thanks for reaching out.

I see that the issue is resolved for you.

Please let us know if you are facing any other issues regarding the same.

Thanks you.

0 Votes 0 ·

No, is not resolved at all. The point I was trying to make was exactly the opposite. I was trying to point out that is not a caching issue, is deeper than that. I was trying to explain that taking it one step further

Check that the config server is not set by running az spring-cloud config-server show -n my-asc and getting "Config server not set."

Modify the application.yml with a new message. let the new message be "hello new world". This is the application.yml that was associated to the config server prior to resetting the config server so that "Config server not set".

Restarted my "complex" application

Expected: I expect to see no message, and for sure, not the new massage "hello new world" that I just entered. Remember "Config server not set"
Actual: I see the message "hello new world".

0 Votes 0 ·
Show more comments

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

@FiallegaJorgeITD-8921 - Apologies for the delay in response and being patient.

Like I mentioned earlier, I have reached out to product team and got the confirmation that there is a bug in Spring Cloud Product and they have created a work item to get that fixed.

The ETA to get the issue fixed is by end of April 2021.

I hope this helps.

Please feel free to reach back out for any questions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.