Add cmps and storage network settings for SI MOCK lab

- if the network with CONTROL_NETWORK_CIDR is not
  configured at the start of the script, CONTROL_IP_ADDRESS
  got the 'src' instead of IP address because:

    $ ip route get ${CONTROL_NETWORK_CIDR%/*}
    172.16.51.0 via 172.16.50.1 dev enp8s0f0 src 172.16.50.21 uid 0

  Ensure that the CONTROL_IP_ADDRESS will be empty in case
  if control network is not configured yet (no 'via' in the route).

  Fail in case

- split the function "prepare_metadata_files" on two functions:
  "prepare_metadata_files" and "collect_ceph_metadata"

- "prepare_metadata_files" function should be executed
  at the very beginning to prepare configs before
  any other service is set up

- "network_config" function must be executed right after
  "prepare_metadata_files" to initialize the correct
  CONTROL_IP_ADDRESS in case if this address is not from
  the PXE interface and is not available until network
  configuration is completed

- add "disable-rp-filter" function to allow different
  networks on the same node

https: //mirantis.jira.com/browse/PRODX-2630
Change-Id: I9f28f8f4b60efce64eecf7eb70cf75746892424e
3 files changed
tree: 7958525465ce39f63ae16403c6e3e7c3e56b4d1e
  1. de/
  2. .gitignore
  3. .gitreview
  4. tox.ini