Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Support for service cache updates #2677

Closed
niusmallnan opened this issue Feb 15, 2019 · 1 comment
Closed

Support for service cache updates #2677

niusmallnan opened this issue Feb 15, 2019 · 1 comment

Comments

@niusmallnan
Copy link
Contributor

niusmallnan commented Feb 15, 2019

When we get services from os-services via ros service, ROS can download the files to cache, they will be saved to /var/lib/rancher/cache.

These caches are now unable to be updated, We should support updating the cached files.

We can add an option to ros service list, suck as:

$ ros service list --update

Also, need to apply engine and console and os index.

@rootwuj
Copy link

rootwuj commented May 22, 2019

Tested with rancher/os:v1.5.2-rc1 from May 22

Run the following command can update the cache file (/var/lib/rancher/cache/), and other files are not affected.

  • sudo ros service list --update
  • sudo ros console list --update
  • sudo ros engine list --update
  • sudo ros os list --update

The following command can work with the updated cache file.

  • sudo ros service up
  • sudo ros console switch
  • sudo ros engine switch
  • sudo ros os upgrade

After the reboot or shutdown, everything went as expected.

Verified fixed

@rootwuj rootwuj closed this as completed May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants