Jump to content

Deploy unavailable Virtual Server via AS3 JSON


rev.dennis

24 views

I am migrating from an End Of Life hardware to a new vCMP Guest and with the migration I am deploying all the applications using JSON and AS3 (through BIGiQ).

So we would like all the applications to be staged on the F5 in a disabled state and as we migrate each application with the team on the phone for verification, I just want to make the change in JSON and push to the F5 and disable the Virtual Server on the legacy EoL box and BOOM, live traffic on new box.

Why disabled state?  I don't want any traffic to go to new hardware until we are ready to migrate the application.

So in JSON format all I can figure out looking through the AS3 schema is possibly changing this one setting from true to false.  What it does is create everything but the virtual server if you go to the F5 itself.  So the partition is created (tenant) and you'll find the pool but you won't see any virtual server.

as3_virtualServer_brief.png.42108cb8dea7e3f244fb7b66c1a6e414.png

The goal is actually to have the virtual server deployed to the F5 using JSON but it be visible and disabled.

disabled.png.4f623dc8d2798a3e3b656267d53152c3.png

I "thought" if the virtual server was in a disabled state then it would not be responsive but this actually isn't true as I will demonstrate below

So I first remove the virtual server so we start with a clean slate

as3_vs_delete.png.d3554501c0eebc795b334b98a9d791c3.png

Now let's go to the command prompt on the F5 and ping the IP address of the Virtual Server (in this case its 192.168.199.22)

[root@usfnt2slbco02:/S2-green-P::Active:In Sync] config # ping 192.168.199.22
PING 192.168.199.22 (192.168.199.22) 56(84) bytes of data.
^C
--- 192.168.199.22 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4000ms

From above ping nothing is responding to that IP address.

 

Now let's deploy the Virtual Server in enabled state as shown above

as3_virtualServer_enabled_status.thumb.png.0d3fc1cae09c172f34da58c3d363188b.png

Now we get a ping response as we should

[root@usfnt2slbco02:/S2-green-P::Active:In Sync] config # ping 192.168.199.22
PING 192.168.199.22 (192.168.199.22) 56(84) bytes of data.
64 bytes from 192.168.199.22: icmp_seq=1 ttl=255 time=0.109 ms
64 bytes from 192.168.199.22: icmp_seq=2 ttl=255 time=0.226 ms
64 bytes from 192.168.199.22: icmp_seq=3 ttl=255 time=0.311 ms
^C
--- 192.168.199.22 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.109/0.215/0.311/0.083 ms

Now click on the checkbox to the left and click disable so the screen looks like this

as3_virtualServer_disabled_status.thumb.png.9cfda08dab5818fe161174d6676bb40a.png

So most people's thought is if its disabled then it shouldn't be responding, but it does

[root@usfnt2slbco02:/S2-green-P::Active:In Sync] config # ping 192.168.199.22
PING 192.168.199.22 (192.168.199.22) 56(84) bytes of data.
64 bytes from 192.168.199.22: icmp_seq=1 ttl=255 time=0.201 ms
64 bytes from 192.168.199.22: icmp_seq=2 ttl=255 time=0.242 ms
64 bytes from 192.168.199.22: icmp_seq=3 ttl=255 time=0.232 ms
64 bytes from 192.168.199.22: icmp_seq=4 ttl=255 time=0.259 ms
^C
--- 192.168.199.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.201/0.233/0.259/0.026 ms

The solution is to change that setting in the AS3 from

"enable": true,

to

"enable": false,

Then save and deploy and your virtual server will be gone and its no longer pingable

 

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

Privacy Policy