0

I have created an alarm using openstack4j as follows:

 Alarm alarm2 = os
    .telemetry()
    .alarms()
    .create(alarm);
    System.out.println("Alarm details:"+alarm.getAlarmId());
    System.out.println("alarms:"+os.telemetry().alarms().list());

But after alarm is created the AlarmId is null and is also not found in the list of alarms. There are no errors during the creation of alarms also.

Openstack4j Version used is: 3.0.4-SNAPSHOT

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
prashr186
  • 1
  • 4
  • After further analysis ,found that the url request to create the alarm from openstack4j is http://172.16.1.100:8777/v2/alarms instead of http://172.16.1.100:8042/v2/alarms. Alarm service is running on 8042 and not on 8777. – prashr186 May 08 '17 at 12:15
  • i checked the port value in the /etc/ceilometer/ceilometer.conf file and it reads 8777.But still i am facing the same issue – prashr186 May 09 '17 at 09:49

0 Answers0