Merge "Add use_ip_resolver to config.yaml"
This commit is contained in:
commit
cbedf6bcf4
|
@ -42,6 +42,12 @@ If the used hostnames in the ``config.yaml`` file (variable ``hostname_manager``
|
|||
and ``hostname_compute``) are not resolvable you have to install the
|
||||
``vagrant-hostmanager`` plugin (``vagrant plugin install vagrant-hostmanager``).
|
||||
|
||||
If the nodes are still not able to communicate to each other even after
|
||||
installing the ``vagrant-hostnamanger`` plugin (for example you get errors about
|
||||
the compute node not being able to communicate to *cinder c-api* during the
|
||||
*vagrant up* phase), set the variable ``use_ip_resolver`` in the ``config.yaml``
|
||||
file to ``true``, in order to obtain the correct nodes ip.
|
||||
|
||||
|
||||
Local Setup
|
||||
--------------------
|
||||
|
|
|
@ -126,7 +126,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
config.hostmanager.manage_host = true
|
||||
config.hostmanager.ignore_private_ip = false
|
||||
config.hostmanager.include_offline = true
|
||||
if conf["use_bridge"] == false
|
||||
if conf["use_bridge"] == false || conf["use_ip_resolver"] == true
|
||||
config.hostmanager.ip_resolver = proc do |machine|
|
||||
result = ""
|
||||
begin
|
||||
|
|
|
@ -29,6 +29,12 @@ setup_mode: devstack
|
|||
# it exactly right.
|
||||
bridge_int: eth1
|
||||
|
||||
# Enable the vagrant-hostmanager's ip_resolver in order to get the correct
|
||||
# nodes ip. You should install the vagrant-hostmanager plugin and enable this
|
||||
# option if the nodes are not able to communicate (for example you get errors
|
||||
# during the compute vagrant up phase not being able to communicate to c-api).
|
||||
#use_ip_resolver: true
|
||||
|
||||
# A non upstream for the base box, used to speed things up. Choose one of
|
||||
# box_name (for a locally added box) or box_url for the url of a nearby box.
|
||||
#box_name: 'my.favorite'
|
||||
|
|
Loading…
Reference in New Issue