Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review Changes - config-get-diff #80

Open
sekhardutta opened this issue Oct 16, 2017 · 5 comments
Open

Review Changes - config-get-diff #80

sekhardutta opened this issue Oct 16, 2017 · 5 comments

Comments

@sekhardutta
Copy link
Contributor

Hi Team

I am trying to get config differences after deployment using DCM. I am able to achieve this using a specific Class for example class="B2BGateway" name="all-objects" but when I try Class="all-classes" name="all-objects" it is throwing an error after 15min as below. I have to get all differences not only related to specif class. Any hep would be appreciated.

D:\dcm\deploy.ant.xml:943: java.lang.RuntimeException: Failed to compute the requested diff.
at com.ibm.dcm.Soma.doGetDiff(Soma.java:2744)
at com.ibm.dcm.Soma.performOperation(Soma.java:182)
at com.ibm.dcm.taskWdp.execute(taskWdp.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Thanks
Sekhar Dutta

@nhmathis
Copy link
Collaborator

Could you please post the full successful and failure plugin logs? There is important information that's useful for debugging. Feel free to redact the any sensitive information (IP Address, username, etc) .

@richgroot
Copy link
Contributor

richgroot commented Oct 16, 2017 via email

@sekhardutta
Copy link
Contributor Author

sekhardutta commented Oct 17, 2017

I have updated my params based on the java method doGetDiff as below and it is working fine
all-classes
all-objects
true
all-classes
all-objects
false

But when we give as below it is failing with the error java.lang.RuntimeException: Failed to compute the requested diff.
all-classes
all-objects
true
false
true

Now, the new problem I see is when I run get configuration changes, all action which were created dynamically by appliance also added. Normally we exclude these using WEBGUI with option "Exclude generated and external data". Is there any equivalent option we have here ? Any idea?

@richgroot
Copy link
Contributor

richgroot commented Oct 17, 2017 via email

@sekhardutta
Copy link
Contributor Author

sekhardutta commented Oct 17, 2017

Hi Rich

Please let me know if you find the param which we can use in java code to Exclude generated and external data by appliance in Review Changes. I have checked SOMA schema for get-diff and I didn't find any. For now as an interim solution I'm planning to write an XSLT to ignore unwanted data from the response of SOMA.

Regards
Sekhar Dutta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants