IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Deployment : deletion order set in the map

  • 1.  Deployment : deletion order set in the map

    Posted 03/02/16 01:07 PM

    hi,

    In the Deployer, I have a little deletion action to do (a single service), and then add some new services
    that I would like to execute within the project :

    I’ve created a Project with 2 sets (in that order) :
    1- a deletion set (Source : IS_preprod)
    2- a deployment set (source : IS_Dev → IS_preprod)

    Curiosly, after adding sets, the Deletion Set appears after the Deployment Set ?

    In addition, when I arrive in the Map section, I see the Deletion Set appears after the Deployment Set.
    I’m worried while the documentation is maybe not precise enough about order of deployment sets.

    How may I be certain that the Deletion actions will execute “before” Deployment actions please ?

    Regards


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 08:46 AM

    …or maybe i’m not using the good way ?


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:04 AM

    Hi Cedric,

    you can try the following:

    • remove the deletion set
    • specify the files of the service and its directory under the “Files to delete” link in the regular deployment set.

    Make sure to specify the files first and then the directory.

    A flow service is using a flow.xml, flow.xml.bak and a node.ndf.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 4.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:26 AM

    Thanks Holger,

    but the deletion has to be applied on my target IS_Preprod, while the regular Deployment is from IS_Dev.

    So in the Deployment set, I have to select 2 Source servers : IS_Dev and IS_Preprod ?

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 5.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:32 AM

    Hi Cedric,

    no, this is not neccessary.

    You only need to define the IS_Dev as source and IS_Preprod as target in the Map.

    Even for a Deletion Set, you should define IS_Dev as source and then map IS_Preprod as target.

    When you create 2 Maps (one for the deletion and one for the deployment), you can control the order of their execution as Deployment Candidates.
    You will get a warning about incomplete maps, but this can be ignored as it is intentional in this case.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 6.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:47 AM

    Yes, I think I understand Holger.

    But if I select only the IS_Dev source, I will not be abble to specify the files to Delete, because the old files exist on the IS_Preprod, but do not exist on the IS_Dev. So I can not select them.

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 7.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:55 AM

    Hi Cedric,

    when deleting files/service in a normal deployment set, there is a text box in which the names with path (relative to the Package base folder) need to be specified manually.
    One file per line.
    The file paths start with “ns” followed by the path to the service. Unix directory separator “/” can be used even on Windows systems.

    In this case the files do not have to exist on the soure system.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 8.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 09:58 AM

    Oh, I understand… I’ve thought, because the file was not displayed in the files listed, the Deployer will not be abble to delete them from the target…

    Thanks again Holger.

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 9.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 10:07 AM

    It was an example isn’t it ?

    In my current case, I will have a single map because it contains a regular Deployment set (and files to delete) ?

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 10.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 10:24 AM

    Hi Cedric,

    when there is only one deployment set you are right.

    With the 2 Maps I was referrring to the original request with one deployment set and one deletion set.
    In this case you can define separate maps for each of them and deploy them in any order you want.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 11.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 10:25 AM


  • 12.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 11:13 AM

    I’ve created my set with specifying files to delete, but the Build fails because the Deployer do not find the files and directories on the IS_Dev file system :

    2016-03-03 16:07:30 CET	ERROR	[DEP.0001.0042] Integration Server package files ns/...folder1.../node.ndf, ns/...folder2.../node.ndf do not exist. Use the Deployer user interface to verify and edit the list of files for the package.

    Am I missing something ?

    The Deployer can’t continue without the success of the Build step

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 13.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 12:36 PM

    Hi Cedric,

    can you provide some screenshots of your DeploymentSet?

    Especially of the section “Files to delete”.

    Regards,
    Holger


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 14.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 12:52 PM

    Preparing the screenshot… I’ve realized that 2 old files was still in the Selected files section.
    They should not appear there because I have deleted them from my IS_Dev…
    So I’ve just restarted the IS, and now that’s OK.

    I’m my fault, sorry.

    Regards


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 15.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 12:59 PM

    Hi Cedric,

    please check your deletion list.

    Folders usually do not have a node.ndf but a node.idf.

    Java Services consist of node.df and a java.frag file.
    Flow Services consist of a node.ndf, a flow.xml and a flow.xml.bak.
    DocTypes, AdapterServices and Triggers only consist of a node.ndf

    You must specify all files for the appropriate object for deletion as otherwise the folder for the object wont be deleted.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 16.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 01:06 PM

    Thanks a lot Holger, by chance, all the bad named files was placed in a folder directory to delete.
    So all deletions have worked well :slight_smile:

    Regards


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 17.  RE: Deployment : deletion order set in the map

    Posted 03/03/16 02:13 PM

    Hi Cedric,

    did you verify that on the target filesystem?

    If there have been files overseen for deletion or if they are specified in wrong order, the folders remain in the file system being empty.

    Regards,
    Holger


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 18.  RE: Deployment : deletion order set in the map

    Posted 03/04/16 04:19 AM

    Hi Holger,

    You’re right, looking on the file system, the folders have not been deleted.

    I do not understand, reading the documentation, the folder must be suffixed by “/”
    but after saving, the folder item disappear from the list :

    Example :
    → Before Saving :
    ns/mypackage/adapters/Adapter1/node.idf;
    ns/mypackage/adapters/Adapter1/;

    → After Saving :
    ns/mypackage/adapters/Adapter1/node.idf;

    Any idea why ?

    Regards


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 19.  RE: Deployment : deletion order set in the map

    Posted 03/04/16 10:45 AM

    Hi Cedric,

    does it help if you omit the trailing “/”?

    Evtl. you have to use a newer Fix for Deployer (if there is any).
    Remember to update the WmDeployerResource-Package on all instances after patching the Deployer.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 20.  RE: Deployment : deletion order set in the map

    Posted 03/04/16 10:50 AM

    Holger, unfortunately not, if I try omitting the trailing “/” and save the screen set, the only selected file showed to the left is for the .idf file (no line concerning the folder).
    After going again in the “Select files” option, the field contains only one item :
    ns/mypackage/adapters/Adapter1/node.idf;

    Regards


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 21.  RE: Deployment : deletion order set in the map

    Posted 03/04/16 10:59 AM

    DEP_9.8_Fix3 is already installed on all my servers.

    Regards


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 22.  RE: Deployment : deletion order set in the map

    Posted 03/04/16 12:34 PM

    Hi Cedric,

    thanks for pointing this out.

    In this case I am running out of ideas meanwhile.
    Maybe someone else can take over and provide some points I might not yet have encountered?

    Regards,
    Holger


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 23.  RE: Deployment : deletion order set in the map

    Posted 03/05/16 11:50 AM

    hi,

    It means, the only solution for me would be to delete manually these folders ?

    Does the IS console has the ability to delete empty folders ?

    Regards


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 24.  RE: Deployment : deletion order set in the map

    Posted 03/07/16 06:19 AM

    Hi Cedric,

    sounds like a bug to me.
    Maybe you should contact SAG Support to get this checked.

    I have encountered similar issues in my wM 7.1.3 and wM 9.5 SP1 Environments which could be solved by specifying the files and directories in correct order (from deepest upwards).

    As soon as the node.idf or the node.ndf has been deleted the empty Folders will no longer show up in IS Admin or Designer.
    This means they have to be deleted manually from the FileSystem.
    Reload the affected package afterwards.

    Regards,
    Holger


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 25.  RE: Deployment : deletion order set in the map

    Posted 03/07/16 06:27 AM

    Thanks a lot Holger.
    Yes, you’re right, it looks like a bug. Maybe 2 bugs : the fact that a folder can’t be followed by a trailing “/” is strange too…

    I’ve contacted the support… there are working on this case.
    I will come back to you, if they have some good news :wink:

    Regards


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General