Issue Details (XML | Word | Printable)

Key: GLASSFISH-17645
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: shreedhar_ganapathy
Reporter: Bhavanishankar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish
GLASSFISH-17644

virtualization layer should not be restricted to known service types

Created: 04/Nov/11 04:00 PM   Updated: 07/Feb/13 03:37 PM   Resolved: 07/Feb/13 03:37 PM
Component/s: iaas
Affects Version/s: 4.0
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

ALL


Tags:
Participants: Bhavanishankar, shreedhar_ganapathy and Tom Mueller


 Description  « Hide

Virtualization layer should allow template creation for any service type.

For example, doing the following

asadmin create-template --virtualization kvm --files $TEMPLATES_DIR/myservice.img,$TEMPLATES_DIR/myservice.xml --indexes ServiceType=MyService,VirtualizationType=libvirt myservice

causes:

[#|2011-11-04T21:24:29.613+0530|SEVERE|44.0|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=11;_ThreadName=Thread-2;|Exception in command execution : java.lang.IllegalArgumentException: No enum const class org.glassfish.virtualization.util.ServiceType$Type.MyService
java.lang.IllegalArgumentException: No enum const class org.glassfish.virtualization.util.ServiceType$Type.MyService
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.glassfish.virtualization.util.ServiceType$Type.valueOf(ServiceType.java:56)
        at org.glassfish.virtualization.util.ServiceType.load(ServiceType.java:73)
        at org.glassfish.virtualization.spi.TemplateCondition.from(TemplateCondition.java:67)
        at org.glassfish.virtualization.runtime.TemplateInstanceImpl.<init>(TemplateInstanceImpl.java:72)
        at org.glassfish.virtualization.runtime.TemplateRepositoryImpl.installs(TemplateRepositoryImpl.java:109)
        at org.glassfish.virtualization.commands.CreateTemplate.execute(CreateTemplate.java:188)

This will restrict the PaaS adminstrators from registering any new services in GlassFish.



No work has yet been logged on this issue.