• Skip to primary navigation
  • Skip to content

www.open902.com

My own Knowledge Base made public ..

  • Home
  • vRealize Automation 7
    • vRA & vRB 7.2
      • Installation
        • vRA 7.2 – Installation
        • vRA 7.2 – Unattended Enterprise Install
        • vRA 7.2 – Unattended Install Answer File Generator
        • vRB 7.2 – Installation
      • Configuration
        • vRA 7.2 – Initial Configuration
        • vRA 7.2 – Endpoints and AD Integration
        • vRA 7.2 – Fabric and Business Groups
        • vRA 7.2 – Reservations, Reservation Policies and Network Profiles
        • vRA 7.2 – Blueprints and Entitlements
        • vRA 7.2 – Email Config and Approval Policies
      • Advanced Configuration
        • vRA 7.2 – Guest Agent and Software Components
        • vRA 7.2 – Custom Property RegEx
        • vRA 7.2 – Make IP in Network Profile unavailable for deployments
      • Integrations
        • vRA 7.2 – Azure Integration
        • vRA 7.2 – vRB 7.2 Configuration
        • vRB Cloud without vRA by using vIDM
    • vRA 7.0 & 7.1
      • Installation & Configuration
        • vRealize Automation 7 – Simple install
        • vRealize Automation 7 – Enterprise install
        • Upgrade vRealize Automation 7.0 to 7.0.1
        • vRA7 – Initial Configuration
        • vRA7 – Endpoint
        • vRA7 – Business Groups
        • vRA7 – AD Integration
        • vRA7 – Fabric Group
        • vRA7 – Network Profile
        • vRA7 – Reservations
        • vRA7 – IaaS Blueprint
        • vRA7 – Mail and Approvals
      • Advanced Configuration
        • vRA7 – Customize Hostname, VLAN and IP during deployment
        • vRA7 – Custom Property Relationships using Actions
        • vRA7 – vRealize Orchestrator 7
        • vRA7 – VAMI Certificate
        • vRA7 – Gugent on Linux
        • vRA7 – Gugent on Windows
        • vRA7 – Import Unmanaged Virtual Machines from vSphere
      • Integrations
        • vRA7 – NSX 6 Integration
        • Ubiquiti EdgeRouter X, NSX and vRealize Automation in network kinda harmony
        • vRA7 – vRealize Business Standard
        • vRealize Business for Cloud – Change Time zone
        • vRB Cloud without vRA by using vIDM
      • Troubleshooting
        • vRA7 – Delete stuck ‘In Progress’ Deployments
        • vRA 7 – Remove Stuck Approval Process
        • Remove Orphaned Network Profiles
        • vRA7 – Remove Stuck or Orphaned Managed Machines
  • vRA / vCAC 6
    • Installation
      • 1. Requirements
      • 2. Identity Appliance
      • 3. vCAC Appliance
      • 4. IaaS Server
    • Configuration
      • 5. Add a Tenant
      • 6. Agents & Endpoints
      • 7. Resource Allocations
      • 8. Blueprints
      • 9. Services & Catalogs
      • 10. Entitlements & Test
    • Advanced Configuration
      • Enable vCenter Orchestrator in vCAC
      • Configure External vCenter Orchestrator for vCAC
      • vCAC – Create Active Directory Endpoint & Test
      • vCAC – Refresh Inventory
      • vCAC – SMTP Settings
  • NSX
    • Ubiquiti EdgeRouter X, NSX and vRA7 Configuration
    • NSX 6 Integration into vRA7
    • NSX Authentication in Web Client using Sub-Domain users
  • vCloud Director 8.x
    • Install vCloud Director 8.0 for SP
    • NSX 6.2 for vCloud Director 8.0 SP
    • Configure vCloud Director 8.0 for SP – PVDC
    • Configure vCloud Director 8.0 for SP – Organization
    • vCloud Director 8.0 with NSX 6.2 – Final Testing
  • vCloud Director 5.x
    • 1. Installation of vCD 5.5
    • 2. vShield Manager
    • 3. VXLAN Configuration
    • 4. Initial vCloud Config
    • 5. Create a Provider vDC
    • 6.External Network
    • 7. Organization VDC
    • 8. vShield Edge & Organization Network
    • 9. Final Testing
    • 10. Installing an additional vCloud cell
    • Upgrade 1.5 > 5.5
      • 1. vCloud Director Binaries
      • 2. vShield Manager
      • 3. Final Touches
  • Lego NUC vSAN Cluster
  • Vembu
  • About Me

Remove Orphaned Network Profiles

BACKUP YOUR SQL DB BEFORE PROCEEDING !

In a PREVIOUS POST I discussed how easy it is in vRA 7.1 to end up with orphaned Network Profiles.

After digging through the vPostgres Database of vRA, a colleague, Nathan Gaskill from the CTO Office in ANS came to my rescue and pointed out I was looking at the wrong database 🙂

Of course I shouldn’t look at the vPostgres, but rather the SQL DB. Thankfully he also pointed at the right tables so I was able to dig a bit deeper and delete the necessary bits.

Once again, backup your DB before doing this …. I would say that I’d rather get GSS (VMware Support) involved if this is happening in production, simply to back yourself up in case something goes poopoo 🙂

Just as a reminder, due to a mistake in the Blueprint configuration (missing Edge Reservation), I ended up with two Network Profiles I was unable to delete.

nsx-079

When creating for example Routed Networks, you end up with two profiles

  • Transit Network
    • Of Type External Network
  • Routed Network
    • Of Type Routed Network

Because of the way routing works, the External Network is attached to the Routed Network

Example:

nsx-097

As a result I wasn’t able to delete the External profile because it was in use by the Routed profile.

When trying to delete the Routed profile, I also got a message that said range is in use.

nsx-080

When I checked the range of the Routed profile, I noticed that the range itself is ALLOCATED

nsx-099

As shown in the above mentioned post, I already deleted all Edge Devices / VMs etc., so there is nothing where this range could be allocated to.

There also wasn’t anything in the Web Client to indicated that a Logical Switch has been created and subsequently attached to the DLR.

As Nathan mentioned to me, time to dig through the IaaS SQL database.

When you expand the database using the Management Studio, you need to look at these three tables

nsx-100

When you check the table dbo.StaticIPv4Address you’ll be able to see the IPs ‘assigned’ from the range (even though in my case they aren’t, or rather, weren’t)

nsx-101

First I tried to delete all those IPs – but that gave me an error about dependencies. So I went into the table StaticIPv4Range (Right Click > Edit Top 200 Rows)

nsx-102

Now you can use your mouse and drag / select the relevant rows

nsx-104

And hit Delete

nsx-105

Next we go into StaticIPv4NetworkProfile (Right Click > Edit Top 200 Rows)

Using the same principle, delete the affected profile(s)

nsx-106

While I was ‘there’, I also deleted the External Profile through the DB – technically I should have been able to do that once the Routed once was gone, but heh – easy way out, right 🙂

Once done, I was able to go back into vRA and refresh the Network Profile tab

Before:

nsx-107

After:

nsx-096

For testing purposes I deleted all but one profile – my Transit network which was ok. I wanted to ensure that i can re-create any DB-Deleted profile with the same details.

So .. all good …

NOTE AGAIN: BACKUP YOUR DB !!

I seriously don’t know much about SQL and the proof will be in the pudding, as they say, whether there are future problems etc. (upgrades come to mind).

Anyway, time for tea 🙂

Copyright © 2019 · Genesis Sample on Genesis Framework · WordPress · Log in