Forum Discussion

Michel_van_der_'s avatar
Michel_van_der_
Icon for Nimbostratus rankNimbostratus
Dec 08, 2003

Bug with ITCMLocalLB::VirtualServer::create_from_pool_ex?

I'm converting some code from 4.2 to 4.5 (4.5PTF-07 Build18 to be exact).

 

 

I have a forwarding pool defined as 'ForwardToInside'. The code then

 

tries to use create_from_pool_ex to create a virtual server pointing to

 

this pool. Under 4.5 this throws an error (this is from perl, numbers

 

hidden due to security requirements):

 

 

Error creating Virtual Server w.x.y.z:0 for pool ForwardToInside SOAP-ENV:Server ITCMCommon::OperationFailed Exception caught on ITCMLocalLB::VirtualServer::create_from_pool_ex().

 

primary_error_code : 83

 

secondary_error_code: 0

 

error_string : IP address is not valid

 

 

However, the virtual server is created!

 

 

This all works flawlessly under 4.2 (mostly 4.2PTF-08 Build10, but

 

we used older PTFs as well).

 

 

Thoughts?

2 Replies

  • Which values are you passing in for netmask? You need to make sure that the ip address and netmask result in a valid network address, otherwise you will get the "IP address is not valid" error. In most cases you should be passing in "0.0.0.0" for the netmask.

     

     

    Unless you need to override the netmask and broadcast address you are better off using the ITCMLocalLB::create_from_pool method.

     

     

    Let me know if this helps.

     

     

    -Joe
  • I think with version 4.2, I used the create_from_pool, but I had problems,

     

    I forget what prompted me to go this route.

     

     

    I'm sure that I'm passing in correct values, the mask is something like

     

    255.255.255.240. Also, the action does result in a defined virtual server

     

    on the device. Also, please note that this used to work with 4.2 and

     

    it's broken now. Off course, it may very well be that the issue I had

     

    before with create_from_pool is now fixed. I'll try that in the mean time.

     

     

    I can't post the real network numbers in a public forum, but I'd be happy to

     

    share the actual code with calling signatures (or even a minimal test-case)

     

    for perusal by F5.