Comment 2 for bug 1655034

Revision history for this message
Prabhat Ranjan (pranjank) wrote :

Steps to create multiple compute service on one host

1. Assuming one compute service is running

2. create configuration file for second compute service
   vi /etc/nova/nova2.conf
   [DEFAULT]
   host=host2
   log_file=/opt/stack/logs/n-cpu2.log

   [dpm]
   physical_storage_adapter_mappings = 44444444-b18d-11e6-9c12-42f2e9ef1641:0
   target_wwpn_ignore_list = 444444680B214AC1,444447680B224AC1
   max_instances = 10
   max_memory = 4096
   max_processors = 3
   cpc_object_id = ffffffff-12df-311a-804c-4ed2cc1d6564
   hmc_password = <password>
   hmc_username = <user>
   hmc = <IP>

3. Start second compute service (please use configuration file in order it overrides)
   /usr/local/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/nova2.conf

4. We have to create second network agent too because existing network agent doesn't know about host2

Steps to create second network agent

1. create configuration file for second network agent
   vi /etc/neutron/plugins/ml2/dpm_agent2.ini
   [DEFAULT]
   host = host2

2. start network agent (please use configuration file in order it overrides)
   /usr/local/bin/neutron-dpm-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/dpm_agent.ini --config-file /etc/neutron/plugins/ml2/dpm_agent2.ini