Strange behavior in managing image cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
New
|
Undecided
|
Neil Soman |
Bug Description
In walrus's image cache management, the cached images with useCount=1 are harder to remove than ones with useCount=0.
A new cached image made after euca-register has useCount=0, and it can be marked as removable when all the other caches' useCount > 0.
After several "Maximum image cache size exceeded" errors happened, I tried to run 3 instances from different images at the same time and 2 of them were terminated after long "pending" status.
It seemed that they were removing thier caches each other (see the log below) because all the other's useCount were 1.
-------
12:45:59 INFO [WalrusImageMan
12:46:00 INFO [WalrusImageMan
12:46:01 INFO [WalrusImageMan
12:46:02 INFO [WalrusImageMan
12:46:03 INFO [WalrusImageMan
12:46:03 INFO [WalrusImageMan
12:58:55 INFO [WalrusImageMan
12:58:57 INFO [WalrusImageMan
Environment/
Eucalyptus : 2.0.2
Host : CentOS5.5
Installed : binary(
Hypervisor : kvm
VNET_MODE : MANAGED
-------
The image cache in use must not be marked as removable.
Also it seems that the parameter useCount does not increase in normal run-instance proccess, but do increase where "Maximum image cache size exceeded" error happens.
This may cause an unreasonable result that the old unpopular cache with useCount=1 lives longer than a new popular cache with useCount=0.
Is there some reason not to increase useCount in every run-instance process?
thanks.
Changed in eucalyptus: | |
assignee: | nobody → Neil Soman (neilsoman) |
This issue is now being tracked upstream at http:// eucalyptus. atlassian. net/browse/ EUCA-2781
Please watch that issue for further updates.