Package com.elastisys.scale.cloudadapters.openstack.faults

Examples of com.elastisys.scale.cloudadapters.openstack.faults.FloatingIpAddressException


  @Override
  public String doRequest(NovaApi api) throws FloatingIpAddressException {
    try {
      return assignFloatingIp(api, this.server);
    } catch (Exception e) {
      throw new FloatingIpAddressException(format(
          "failed to assign floating IP "
              + "address to server \"%s\": %s",
          this.server.getId(), e.getMessage()), e);
    }
  }
View Full Code Here


    List<FloatingIP> freeFloatingIps = getFreeFloatingIps(floatingIps);
    if (freeFloatingIps.isEmpty()) {
      freeFloatingIps.add(floatingIPApi.create());
    }
    if (freeFloatingIps.isEmpty()) {
      throw new FloatingIpAddressException(
          "no floating IP address(es) available");
    }
    FloatingIP ipToAllocate = Iterables.getLast(freeFloatingIps);
    String ip = ipToAllocate.getIp();
    LOG.debug("assigning floating ip {} to server {}", ip, server.getId());
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.openstack.faults.FloatingIpAddressException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.