Uh oh!
There was an error while loading. Please reload this page.
Emit event UUIDs on template deletion - #1378
Conversation
ProjectMoon
commented
Jan 28, 2016
Says a license is missing, but this only touches one existing file. |
DaanHoogland
commented
Jan 28, 2016
Yes, nothing to do with your code but it is genuine. You can add the license to ActionEventUtilsTest to make the build pass. The license is there in higher branches. |
ProjectMoon
commented
Jan 28, 2016
I added the license header. Out of curiosity, I ran the |
DaanHoogland
commented
Jan 28, 2016
have a look in target/rat.txt and see what those are. maybe some remanence of your prior work. |
ProjectMoon
commented
Jan 28, 2016
I added the license check to ActionEventUtilsTest and of course now the checks pass. But may it is a better idea to put the license in as a separate PR? Not exactly related to this commit. |
ProjectMoon
commented
Jan 28, 2016
It looks like it was some old Debian package build causing a bunch of extraneous files to be placed into the rat report. Cleaned up those and the report is now much more in line with what the Jenkins job is reporting. |
ProjectMoon
commented
Jan 28, 2016
After some discussion on IRC, going to remove the addition of the license header here and fix it in a separate PR. |
ProjectMoon
commented
Jan 29, 2016
Now that #1382 has been merged to 4.6, the checks should succeed. |
ProjectMoon
commented
Jan 29, 2016
The checks failed on unit tests which exist only on pull request #1360. Which is ... interesting. Will try to retrigger build. |
ProjectMoon
commented
Jan 29, 2016
@DaanHoogland The build is now passing. |
cristofolini
commented
Jan 31, 2016
@ProjectMoon Even if you've managed to test this in an actual environment, I think a small unit test just to assert that the correct values for the class name and UUID are being emitted would be great for future reference, even if just as a warning in case someone makes a change to that code. |
ProjectMoon
commented
Feb 3, 2016
I will try to add a unit test later today. |
ProjectMoon
commented
Feb 5, 2016
@cristofolini the unit test has been added. |
cristofolini
commented
Feb 7, 2016
Thanks, @ProjectMoon! Now you just need to add the license header (I believe that's what caused jenkins to fail). |
ProjectMoon
commented
Feb 8, 2016
License header is now in the file. Let's hope the tests succeed. |
ProjectMoon
commented
Feb 8, 2016
Apparently cloud-utils has a test failure. Will run tests locally and see what happens. |
ProjectMoon
commented
Feb 8, 2016
The tests all succeed locally. Looking at the error message, it appears to be some one-off thing. Will try to force them to run again. |
ProjectMoon
commented
Feb 8, 2016
Jenkins failed with a false positive again, similar to another issue I had with a different pull request. |
…tes. The behavior is now consistent with template creation. This commit also adds a unit test for this functionality to make sure that it will always happen.
bvbharatk
commented
Mar 17, 2016
ACS CI BVT RunSumarry: The follwing tests have known issues Link to logs Folder (search by build_no):https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
yadvr
commented
May 2, 2016
LGTM @ProjectMoon please send the PR for 4.7+; the merge workflow is from 4.7+ Please close this one and open another PR against 4.7+ thanks tag:closeme |
ProjectMoon
commented
May 26, 2016
Making a new PR. |
…ete-4.7 Emit template UUID and class type over event bus when deleting templatesNew version of #1378 for the 4.7b branch instead of 4.6. * pr/1564: Emit template UUID and class type over event bus when deleting templates. Signed-off-by: Will Stevens <williamstevens@gmail.com>
When a template is deleted, it emits a usage event over the event bus. However, it does not emit the UUID or class name of the template over the event bus. This is leads to null pointers when expecting a template UUID on a delete event. The UUID and class name of the template are present on template creation, and on other usage events for different resources.
We have based this on 4.6 because we consider this a bug fix and it should be forward-merged.
Testing: No unit tests provided, but we have tested it in a fully deployed staging environment. Without this fix, delete a template and check the messages on the event bus. No template UUID or class name (VirtualMachineTemplate). With this fix, the template UUID and class name are emitted on the event bus.