Hi George, You're right. The backend status provides the "real" status in the provider, and you can use it if you need more detailed info. Some providers have different statuses that map to the same status in the abstraction, and using the backend status is the way to know the real state in the provider.
Regarding the REGION_UNAVAILABLE question, is that a valid status for an instance? You can read the current status mappings here [1], and that mapping contains all states supported in the InstanceState class [2]. Is that REGION_UNAVAILABLE a state that Amazon is returning as the state of some instances? In that case, jclouds will currently report it as UNRECOGNIZED, as there is no explicit mapping for it. If Amazon is actually returning that status, we should add it to the InstanceState enumeration. Mind opening a JIRA issue [3] to track this, if appropriate? HTH! I. [1] https://github.com/jclouds/jclouds/blob/master/apis/ec2/src/main/java/org/jclouds/ec2/compute/config/EC2ComputeServiceDependenciesModule.java#L83-L92 [2] https://github.com/jclouds/jclouds/blob/master/apis/ec2/src/main/java/org/jclouds/ec2/domain/InstanceState.java [3] https://issues.apache.org/jira/browse/JCLOUDS On 24 July 2014 20:56, George Kousiouris <[email protected]> wrote: > > hi all, > > i wanted to check regarding the status message returned in the NodeMetadata > case. From my understanding and the documentation the status messages can > be: > > ERROR > There is an error on the node > PENDING > The node is in transition > RUNNING > The node is available for requests > SUSPENDED > The node is deployed, but suspended or stopped. > TERMINATED > The node is visible, and in the process of being deleted. > UNRECOGNIZED > The state of the node is unrecognized. > > Now these are the ABSTRACTED status strings that can be returned right?As > implemented by some kind of mappers from the actual providers to the jclouds > enumeration? If we needed the actual providers string messages we would use > the backend status? > > Another question is what is the mapping between Amazon status messages and > more specifically, the REGION_UNAVAILABLE amazon message and the abstracted > enum? > > Thanks, > George > > > > > > > > > > > > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com >
