Comment 5 for bug 398867

Revision history for this message
chris grzegorczyk (chris-grze) wrote :

Hi All,

We are happy to put something in to control this but it is too late for 1.5.2 which we are trying to get out the door.

The work around suggested can be greatly simplified as follows, consider if this is good enough:

1. Use "euca." as the prefix of the variable set in 'eucalyptus.conf': euca.CLUSTER_MIN_VLAN=100 and euca.CLUSTER_MAX_VLAN=2048

2. Set the values appropriately in ClusterState's constructor along the lines of:

    Integer minVlan = 10, maxVlan = 4096;
    try {
      minVlan = new Integer( System.getProperty( "euca.CLUSTER_MIN_VLAN" ) );
      maxVlan = new Integer( System.getProperty( "euca.CLUSTER_MAX_VLAN" ) );
    } catch ( NumberFormatException e ){}
    for ( int i = minVlan; i < maxVlan; i++ ) this.availableVlans.add( i );

There is an issue wrt to requriements for future versions where this may not be a sustainable approach.
I hope this can serve as a suitable stop-gap remedy meanwhile.

If you happen to try it, let me know if it works out.

thanks.
chris