Cannot assign IP addresses to the Tile VMs, they are Already Assigned to Compilation VMs
search cancel

Cannot assign IP addresses to the Tile VMs, they are Already Assigned to Compilation VMs

book

Article ID: 293473

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Symptoms:

You are deploying Elastic Runtime (or any other tile) and trying to assign the first 4 IP addresses in the range to some of the components.

Operations (Ops) Manager fails to deploy with an error similar to:

IP '192.0.2.12' is already taken, cannot be taken for '<VM>'

If you inspect the installation.yml:

https://<OPSMAN_FQDN>/debug/files

The compilation VMs are consuming the first 4 IP addresses after Director:

    ip_assignments:
      assignments:
        p-bosh-bcd86fffbee1d58fe13c:
          director-f11b525cbd035b03d83f:
            4d6c37861885eec8c3c7:
            - 192.0.2.11
          compilation-526375e6a58c312f0b78:
            4d6c37861885eec8c3c7:
            - 192.0.2.12
            - 192.0.2.13
            - 192.0.2.14
            - 192.0.2.15

Environment


Cause

The Ops Manager workflow generates the p-bosh manifest before it generates manifests for other tiles. Ops Manager Director requires the IP address of the Director and the compilation VMs. If you have 4 compilation VMs (default) then the first 4 available IP addresses from the subnet will be assigned to the compilation VMs. Because of this if you try to use these IP addresses in another tile, Ops Manager will return an error stating that they are already taken.

 

Resolution

This is a workaround and is not guaranteed to work in future Pivotal Cloud Foundry releases.

This procedure assumes you are using a clean install of Ops Manager where the Ops Manager Director tile has not yet been deployed.

CIDR: 192.0.2.0/24
Reserved IP Ranges: 192.0.2.1-192.0.2.10 // Assuming we have other VMs outside of PCF using these IPs
Ops Manager Director: 192.0.2.11
Compilation VMs: 192.0.2.241, 192.0.2.242, 192.0.2.243, 192.0.2.244


1. Go to the Create Networks page.

2. Click Add Network.

3. For CIDR enter:
192.0.2.0/24
4. For Reserved IP Ranges enter:
192.0.2.1-192.0.2.10,192.0.2.12-192.0.2.240

Note: This will force Ops Manager to select .11 for Director and .241 to .244 to the compilation VMs. You can use whatever exclude range necessary to force the compilation VMs to use specific IPs.

5. Configure the other network options as required

6. Click on Save

7. Configure the rest of Ops Manager Director tile as required

8. Browse to the debug page:
https://<OPSMAN_FQDN>/debug/files
9. Scroll to installation.yml and verify the IP assignments section:
    ip_assignments:
      assignments:
        p-bosh-bcd86fffbee1d58fe13c:
          director-f11b525cbd035b03d83f:
            4d6c37861885eec8c3c7:
            - 192.0.2.11
          compilation-526375e6a58c312f0b78:
            4d6c37861885eec8c3c7:
            - 192.0.2.241
            - 192.0.2.242
            - 192.0.2.243
            - 192.0.2.244
10. Apply changes

11. 192.0.2.1-192.0.2.10

12. Apply changes

The compilation VMs will keep the 192.0.2.241-192.0.2.244 IP addresses.

Other IP addresses in the range are now free to be used by other tiles.