Ask Your Question
1

Packstack answer file vmware backend config

asked 2016-04-19 17:40:04 -0600

tictoc gravatar image

updated 2016-04-19 19:49:02 -0600

From Kilo on I have not been able to set Yes to configure vmware backend without it failing. Set to no and enter the rest of the vmware info and it runs through just fine. Then after some config change I can connect to the vcenter / storage but get a device 0 error. So I am wondering what exactly does "Configure vmware backend" do??? Is there a subset of script that are ran and if so which ones?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-04-24 15:14:19 -0600

updated 2016-04-24 15:15:38 -0600

Packstack uses the nova module from the OpenStack Puppet Modules project, the nova::compute::vmware class sets the vmware configuration directives in the nova configuration file:


nova_config {
    'DEFAULT/compute_driver':     value => $compute_driver;
    'VMWARE/host_ip':             value => $host_ip;
    'VMWARE/host_username':       value => $host_username;
    'VMWARE/host_password':       value => $host_password;
    'VMWARE/cluster_name':        value => $cluster_name;
    'VMWARE/api_retry_count' :    value => $api_retry_count;
    'VMWARE/maximum_objects' :    value => $maximum_objects;
    'VMWARE/task_poll_interval' : value => $task_poll_interval;
    'VMWARE/use_linked_clone':    value => $use_linked_clone;
  }


 

https://github.com/openstack/puppet-nova/blob/master/manifests/compute/vmware.pp#L65 (https://github.com/openstack/puppet-n...)

Here's how packstack uses it:


class { '::nova::compute::vmware':
  host_ip       => hiera('CONFIG_VCENTER_HOST'),
  host_username => hiera('CONFIG_VCENTER_USER'),
  host_password => hiera('CONFIG_VCENTER_PASSWORD'),
  cluster_name  => $nova_vcenter_cluster_name,
}
 

https://github.com/openstack/packstack/blob/master/packstack/puppet/templates/nova_compute_vmware.pp#L2 (https://github.com/openstack/packstac...)

Since packstack sets only the values above, the module uses it's default values:


  $api_retry_count = 5,
  $maximum_objects = 100,
  $task_poll_interval = 5.0,
  $use_linked_clone = true,
  $wsdl_location = undef,
  $compute_driver = 'vmwareapi.VMwareVCDriver'
 

I hope this helps

edit flag offensive delete link more

Comments

Thank You!! Very well written and detailed!
That's pretty much what I could find but was unsure if packstack was in-fact configuring other items I could not see. Again thank you for this!!!

tictoc gravatar imagetictoc ( 2016-04-24 20:28:14 -0600 )edit
0

answered 2016-04-20 12:56:37 -0600

tictoc gravatar image

is there any kind of mapping to what the YES setting does?

I am using vsphere hypervisors exclusively, 5.5, and am well versed in the VMDK Driver. Just need to know what this particular setting is doing so I can possibly correct it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-19 17:40:04 -0600

Seen: 367 times

Last updated: Apr 24 '16