Fix the alarm exception about the alarmDefinition
When the alarm is inserted into the database, the alarmDefinition does
not exist a definition to mapping with alarm. It will throw an
exception.
This commit will add the new alarm definitions.
Test Case:
PASS - Test a new alarm without definition before, it worked as
expect.
Issue-ID: INF-478
Change-Id: I201806298270f0df5ca035768d08efb1add1ab8e
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
(cherry picked from commit
6748085fe78a9ab979d9f29cde6440f7da63d711)