← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1472946] Re: _poll_shelved_instances periodic task is offloading instances even if shelved_offload_time is -1

 

** Changed in: nova/kilo
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1472946

Title:
  _poll_shelved_instances periodic task is offloading instances even if
  shelved_offload_time is -1

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) juno series:
  Invalid
Status in OpenStack Compute (nova) kilo series:
  Fix Released

Bug description:
  shelved_offload_time -1 means instance will remain in the SHELVED state until user unshelves it.
  Current behavior of _poll_shelved_instances periodic task is not considering shelved_offload_time is configured as -1 and offloading all the instances which are in 'SHELVED' state.

  
  Stpes to reproduce:
  1. set shelved_offload_time to -1 and restart nova-compute service.
  2. create instance and shelve it using command, "nova shelve <instance_id>"
  3. verify instance is in SHELVED state and instance files are present in instance path.
  4. wait until  _poll_shelved_instances periodic task executes (default is 3600 seconds, you can change it to 120 seconds)
  5. Once _poll_shelved_instances periodic task is executed, instance state changes to SHELVED_OFFLOADED and instance files are deleted from instance path.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1472946/+subscriptions


References