Customizing the sync interval beween VMware Integrated OpenStack and vCenter virtual machine status
search cancel

Customizing the sync interval beween VMware Integrated OpenStack and vCenter virtual machine status

book

Article ID: 341968

calendar_today

Updated On:

Products

VMware VMware Integrated OpenStack

Issue/Introduction

Symptoms:
When a instance power state changes outside of VMware Integrated OpenStack the virtual machine state can take up to 10 minutes to reflect the difference.

Environment

VMware Integrated OpenStack 6.x
VMware Integrated Openstack 7.x
VMware Integrated OpenStack 5.x

Cause

This issue occurs when the related sync_power_state_interval value in the nova.conf file is set to 600 seconds.

Resolution

For VIO 6.x and newer:
  1. SSH to the VIO Manager as root.
  2. Update the nova and novacompute custom resources with 'viocli update' commands. For example: viocli update novacompute
  3. Add the line sync_power_state_interval:60 under DEFAULT. For example:
conf:
nova:
  DEFAULT:
    sync_power_state_interval: 60
  ......
  neutron:
    metadata_proxy_shared_secret: ".Secret:managedencryptedpasswords:data.metadata_proxy_shared_secret"
  vmware:
    passthrough: "false"
    pbm_default_policy: "Your Default Storage Policy"
  ......
  1. Write and quit. The sync state interval has been set.

For VIO 5.1 and earlier the custom.yml must be edited:

To change the nova_sync_power_state_interval value in the custom.yml file:
  1. Open the custom.yml file.

    If the /opt/vmware/vio/custom/custom.yml file does not exist, create it by running this command:

    cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom

    Type sudo -i and enter the a vio user password.
     
  2. Change the nova_sync_power_state_interval value to 60 (value in sec).
  3. Save the file.
  4. Run the viocli deployment configure limit compute.