{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cloudstack/issues/1378","repository_url":"https://api.github.com/repos/apache/cloudstack","labels_url":"https://api.github.com/repos/apache/cloudstack/issues/1378/labels{/name}","comments_url":"https://api.github.com/repos/apache/cloudstack/issues/1378/comments","events_url":"https://api.github.com/repos/apache/cloudstack/issues/1378/events","html_url":"https://github.com/apache/cloudstack/pull/1378","id":129419095,"number":1378,"title":"Emit event UUIDs on template deletion","user":{"login":"ProjectMoon","id":183856,"avatar_url":"https://avatars.githubusercontent.com/u/183856?v=3","gravatar_id":"","url":"https://api.github.com/users/ProjectMoon","html_url":"https://github.com/ProjectMoon","followers_url":"https://api.github.com/users/ProjectMoon/followers","following_url":"https://api.github.com/users/ProjectMoon/following{/other_user}","gists_url":"https://api.github.com/users/ProjectMoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ProjectMoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProjectMoon/subscriptions","organizations_url":"https://api.github.com/users/ProjectMoon/orgs","repos_url":"https://api.github.com/users/ProjectMoon/repos","events_url":"https://api.github.com/users/ProjectMoon/events{/privacy}","received_events_url":"https://api.github.com/users/ProjectMoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-01-28T11:07:38Z","updated_at":"2016-03-17T05:13:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/cloudstack/pulls/1378","html_url":"https://github.com/apache/cloudstack/pull/1378","diff_url":"https://github.com/apache/cloudstack/pull/1378.diff","patch_url":"https://github.com/apache/cloudstack/pull/1378.patch"},"body":"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. \r\n\r\nWe have based this on 4.6 because we consider this a bug fix and it should be forward-merged.\r\n\r\nTesting: 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."},"comment":{"url":"https://api.github.com/repos/apache/cloudstack/issues/comments/197705664","html_url":"https://github.com/apache/cloudstack/pull/1378#issuecomment-197705664","issue_url":"https://api.github.com/repos/apache/cloudstack/issues/1378","id":197705664,"user":{"login":"bvbharatk","id":2075740,"avatar_url":"https://avatars.githubusercontent.com/u/2075740?v=3","gravatar_id":"","url":"https://api.github.com/users/bvbharatk","html_url":"https://github.com/bvbharatk","followers_url":"https://api.github.com/users/bvbharatk/followers","following_url":"https://api.github.com/users/bvbharatk/following{/other_user}","gists_url":"https://api.github.com/users/bvbharatk/gists{/gist_id}","starred_url":"https://api.github.com/users/bvbharatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvbharatk/subscriptions","organizations_url":"https://api.github.com/users/bvbharatk/orgs","repos_url":"https://api.github.com/users/bvbharatk/repos","events_url":"https://api.github.com/users/bvbharatk/events{/privacy}","received_events_url":"https://api.github.com/users/bvbharatk/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T05:13:54Z","updated_at":"2016-03-17T05:13:54Z","body":"### ACS CI BVT Run\n **Sumarry:**\n Build Number 105\n Hypervisor xenserver\n NetworkType Advanced\n Passed=104\n Failed=14\n Skipped=4\n\n**The follwing tests have known issues**\ntest_vpc_remote_access_vpn\ntest_vpc_site2site_vpn\ntest_01_test_vm_volume_snapshot\ntest_02_vpc_privategw_static_routes\ntest_03_rvpc_privategw_static_routes\ntest_04_change_offering_small\nContextSuite context=TestNiciraContoller>:setup\ntest_01_primary_storage_iscsi\ntest02_internallb_haproxy_stats_on_all_interfaces\ntest_01_internallb_roundrobin_1VPC_3VM_HTTP_port80\nContextSuite context=TestDeployVM>:setup\ntest_04_extract_template\ntest_04_extract_Iso\ntest_07_list_default_iso\n\n\n_Link to logs Folder (search by build_no):_ https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0\n\n\n**Failed tests:**\n* integration.smoke.test_privategw_acl.TestPrivateGwACL\n\n * test_01_vpc_privategw_acl Failed\n\n* integration.smoke.test_guest_vlan_range.TestDedicateGuestVlanRange\n\n * test_dedicateGuestVlanRange Failing since 5 runs\n\n\n**Skipped tests:**\ntest_vm_nic_adapter_vmxnet3\ntest_deploy_vgpu_enabled_vm\ntest_06_copy_template\ntest_06_copy_iso\n\n**Passed test suits:**\nintegration.smoke.test_deploy_vm_with_userdata.TestDeployVmWithUserData\nintegration.smoke.test_affinity_groups_projects.TestDeployVmWithAffinityGroup\nintegration.smoke.test_portable_publicip.TestPortablePublicIPAcquire\nintegration.smoke.test_over_provisioning.TestUpdateOverProvision\nintegration.smoke.test_global_settings.TestUpdateConfigWithScope\nintegration.smoke.test_scale_vm.TestScaleVm\nintegration.smoke.test_service_offerings.TestCreateServiceOffering\nintegration.smoke.test_loadbalance.TestLoadBalance\nintegration.smoke.test_routers.TestRouterServices\nintegration.smoke.test_reset_vm_on_reboot.TestResetVmOnReboot\nintegration.smoke.test_snapshots.TestSnapshotRootDisk\nintegration.smoke.test_deploy_vms_with_varied_deploymentplanners.TestDeployVmWithVariedPlanners\nintegration.smoke.test_network.TestDeleteAccount\nintegration.smoke.test_non_contigiousvlan.TestUpdatePhysicalNetwork\nintegration.smoke.test_deploy_vm_iso.TestDeployVMFromISO\nintegration.smoke.test_public_ip_range.TestDedicatePublicIPRange\nintegration.smoke.test_multipleips_per_nic.TestDeployVM\nintegration.smoke.test_regions.TestRegions\nintegration.smoke.test_affinity_groups.TestDeployVmWithAffinityGroup\nintegration.smoke.test_network_acl.TestNetworkACL\nintegration.smoke.test_pvlan.TestPVLAN\nintegration.smoke.test_volumes.TestCreateVolume\nintegration.smoke.test_ssvm.TestSSVMs\nintegration.smoke.test_nic.TestNic\nintegration.smoke.test_deploy_vm_root_resize.TestDeployVM\nintegration.smoke.test_resource_detail.TestResourceDetail\nintegration.smoke.test_secondary_storage.TestSecStorageServices\nintegration.smoke.test_vm_life_cycle.TestDeployVM\nintegration.smoke.test_disk_offerings.TestCreateDiskOffering"}}