Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2256

Cannot delete Space/Project which was created by migration tool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.5.0.GA
    • 7.3.0.GA, 7.3.1.GA
    • Business Central
      • Migration from BPMS 6.4.0 to RHPAM 7.3
    • CR1
    • ?
      • See "Description"
    • 2019 Week 32-34

    Description

      After migrating .niogit from BPMS 6.4.0 to RHPAM 7.3.0, I can see migrated projects in "example" space. Then, if I click "Delete Space" for the "example" space, I get the following Exception so cannot delete the space.

      14:35:41,876 ERROR [org.guvnor.structure.backend.repositories.RepositoryServiceImpl] (default task-11) Error while removing repositories: java.lang.RuntimeException: The ConfigType REPOSITORY requires a namespace.
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl.resolveConfigGroupPath(ConfigurationServiceImpl.java:356)
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl.removeConfiguration(ConfigurationServiceImpl.java:415)
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl$Proxy$_$$_WeldClientProxy.removeConfiguration(Unknown Source)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.doRemoveRepository(RepositoryServiceImpl.java:411)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.removeRepositories(RepositoryServiceImpl.java:390)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.removeRepositories(Unknown Source)
      	at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl.removeOrganizationalUnit(OrganizationalUnitServiceImpl.java:503)
      	at org.guvnor.structure.backend.organizationalunit.OrganizationalUnitServiceImpl$Proxy$_$$_WeldClientProxy.removeOrganizationalUnit(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              ...
      

      The migration followed this document:

      https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.0/html-single/migrating_from_red_hat_jboss_bpm_suite_6.4_to_red_hat_process_automation_manager_7.0/index#migration-tool-7.0-con_non-exec-server

      Reproduce steps:

      • Start BPMS 6.4.0
      • Access business-central
      • Create a project (empty one is fine)
      • Shutdown BPMS
      • Remove $RHPAM_HOME/bin/.niogit and $RHPAM_HOME/bin/.index
      • Copy $BPMS_HOME/bin/.niogit to $RHPAM_HOME/bin/
      • Run migration tool

      $ cd rhpam-7.3.0-add-ons/rhpam-7.3-migration-tool/bin
      $ ./migration-tool.sh -t $RHPAM_HOME/bin/.niogit

      < Choose 5 in CLI menu. Not providing pom-migration.json >

      • Start RHPAM
      • Access business-central
      • You will see migrated "example" Space which contains migrated projects.
      • Click "Delete Space"
      • Hit the exception

      Also I get the same Exception when deleting a migrated project inside the migrated space.

      12:02:59,104 ERROR [org.guvnor.structure.backend.repositories.RepositoryServiceImpl] (default task-9) Error during remove repository: java.lang.RuntimeException: The ConfigType REPOSITORY requires a namespace.
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl.resolveConfigGroupPath(ConfigurationServiceImpl.java:356)
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl.removeConfiguration(ConfigurationServiceImpl.java:415)
      	at org.guvnor.structure.backend.config.ConfigurationServiceImpl$Proxy$_$$_WeldClientProxy.removeConfiguration(Unknown Source)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.doRemoveRepository(RepositoryServiceImpl.java:411)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.removeRepository(RepositoryServiceImpl.java:366)
      	at org.guvnor.structure.backend.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.removeRepository(Unknown Source)
      

      Attachments

        Activity

          People

            r_anand Rishiraj Anand
            rhn-support-tkobayas Toshiya Kobayashi
            Tomas David Tomas David
            Tomas David Tomas David
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: