Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: iaas
    • Labels:
      None
    • Environment:

      ALL

      Description

      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.

        Activity

          People

          • Assignee:
            shreedhar_ganapathy
            Reporter:
            Bhavanishankar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: