Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

A GSC could not be obtained to provision

Hi,

I try to deploy a procesing unit using the following code:

public Boolean call() throws Exception { try { ProcessingUnitDeployment processingUnit = new ProcessingUnitDeployment(puFile); processingUnit.name(name); processingUnit.addZone(zones);

        GridServiceManager gridServiceManager = gridServiceManagers.waitForAtLeastOne();
        ProcessingUnit unit = gridServiceManager.deploy(processingUnit);

        logger.info("Deployed Processing Unit {}. Waiting for Processing Unit to become INTACT", name);

        if (unit == null) {
            return false;
        }
        unit.addLifecycleListener(this);
        latch.await();

        return succes;
    } catch (GSMNotFoundException e) {
        throw new RuntimeException(e.getMessage(), e);
    } catch (Exception e) {
        throw new RuntimeException(e.getMessage(), e);
    }
}

@Override public void processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance) { this.succes = processingUnitInstance.getProcessingUnit().getStatus().equals(DeploymentStatus.INTACT); latch.countDown(); }

@Override
public void processingUnitInstanceRemoved(ProcessingUnitInstance processingUnitInstance) {

}

I would like to be sure the processing unit is deployed before I move on (or let the caller decide to time out). The system test code I run, starts up all of the gigaspaces components (LUS, GSA, GSM, GSC (3)). However as soon as the test tries to deploy a new processing unit, the following messages appears and the processing unit doesn't get deployed:

[gsm][4/18492] 2012-02-15 17:59:40,781 GSM INFO [com.gigaspaces.grid.gsm] - Deploying import-extension-example [gsm][4/18492] 2012-02-15 17:59:40,962 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [1]], count [2] [gsm][4/18492] 2012-02-15 17:59:40,983 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [1]] until an available GSC is obtained [gsm][4/18492] 2012-02-15 17:59:41,039 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [2]], count [2] [gsm][4/18492] 2012-02-15 17:59:41,039 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [2]] until an available GSC is obtained [gsc][3/18491] 2012-02-15 17:59:41,086 INFO nl.qiy.extension.runtime.gigaspaces.ExtensionDeploymentProcess - Deployed Processing Unit import-extension-example. Waiting for Processing Unit to become INTACT [gsm][4/18492] 2012-02-15 18:00:09,431 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [1]], count [2] [gsm][4/18492] 2012-02-15 18:00:09,456 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [1]] until an available GSC is obtained [gsm][4/18492] 2012-02-15 18:00:10,476 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [2]], count [2] [gsm][4/18492] 2012-02-15 18:00:10,476 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [2]] until an available GSC is obtained [gsm][4/18492] 2012-02-15 18:00:20,489 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [1]], count [2] [gsm][4/18492] 2012-02-15 18:00:20,489 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [1]] until an available GSC is obtained [gsm][4/18492] 2012-02-15 18:00:21,508 GSM WARNING [com.gigaspaces.grid.gsm] - A GSC could not be obtained to provision [import-extension-example.1 [2]], count [2] [gsm][4/18492] 2012-02-15 18:00:21,509 GSM WARNING [com.gigaspaces.grid.gsm] - Pending allocation request for [import-extension-example.1 [2]] until an available GSC is obtained

We used to deploy using the Deploy class. However, we are now running GigaSpaces 8.0.4-GA using the gridServiceManagers. Does this have to do with the GS-8317 Provisioning failure because GSCs were not registered with issue?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3821]{quote}

asked 2012-02-15 11:33:25 -0500

rinokadijk gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

I suggest you take a look on the http://www.gigaspaces.com/wiki/display/SBP/UniversalDeployer.
See the source code how such issue is handled.
Tnx
Shay

answered 2012-02-21 10:29:35 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-02-15 11:33:25 -0500

Seen: 3,168 times

Last updated: Feb 21 '12