Hi Community,
Note: I have engaged Aruba Support, but we still haven't resolved the issue and I wanted to know if anyone has actually followed the guide to deploy a VPNC in unmanaged mode before.
I am trying to deploy a VPNC on Microsoft Azure in unmanaged mode. We can deploy them fine in Managed Mode, whereby Aruba Central has access to our Subscription, but we require more control over the naming convention of resources deployed.
We are following this guide:
Deploying Aruba Virtual Gateway in Microsoft Azure (Unmanaged Mode)Issue: The challenge we are having is the vGateway just will not register in Central. It can ping the outside world, resolve DNS addresses, ping other resources within Azure, so networking-wise it's fine, but it simple will not register in Central.
Challenge: What I am finding is the lack of clarity in the guide, specifically around the user-data injection into the VM, as I am noticing the following error in the serial console when it attempts ZTP Auto Provision:
-----
Enter Option (partial string is acceptable): executing command python /mswitch/bin/cloud-init.py
Traceback (most recent call last):
File "/mswitch/bin/cloud-init.py", line 99, in <module>
outfile.write(j[0]['keyData'])
IndexError: list index out of range
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
could not find userdata file at /tmp/userdata
could not fined mimicked userdata file at /flash/config/userdata_mimick
no serial_no foundSent ztp message successfully for addr type :1
Sent ztp message successfully for addr type :2
Processes will restart now
Restarting ntpwrap...
Restarting cert_dwnld...
Processes restarted successfully!
Starting ztp
Starting ztp auto provision
Setting timezone to America/Los_Angeles
Starting auto provisioning
Registered for NTP Sync
Initiated DHCP, awaiting DHCP response
Auto-provisioning is in progress. It requires DHCP and Activate servers
-----
This leads me to believe the issue lies with the user-data being passed to the VM during initial boot... or lack thereof. In the user guide, specifically on
this page, it states a user data 'command' to execute:
Azure user-data: central_url:internal-device.central.arubanetworks.com; serial_no:VG1901101037; username:"VG1901101037,02:1A:1E:33:1A:1B,MC-VA,VGW"; password:1901101800226565487619011018002265630190; mac_address:02:1A:1E:33:1A:1B; part_number:MC-VA; mode:VGW; interfaces:eth0, eth1, eth2, eth3; eth3:LAN; eth2:VPN; eth1:INET; eth0:LAN;
For anyone with knowledge of the Azure Cloud Shell, the command 'Azure' is not a valid command.
Has anyone done this before? And if so, any tricks I should know of?
Regards,
Stefano