blob: 817816d79d8bf1c96216cddc323b6b8984cd30b6 [file] [log] [blame]
rdudyalab086cf32016-08-11 00:07:45 -04001# Readme to build custom image.
2VM Building:
31.Download ubuntu 14.04 server version and create a VM using virt-manager(kvm hypervisor).
4Note: Can use virtual box also instead of virt-manger.
52.Create user ubuntu with sudo previlages.
63.git clone https://gerrit.opencord.org/monitoring
74.Go to /home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer_service_custom_image/startup-scripts
8 Edit i.STARTUP_PATH points to startup-scripts dir,
9 ii.IP variable in ceilometer_init_script.sh for accessing keystone from outside the vm.
10 iii.PUB_SUB_PATH point to ceilometer_pub_sub dir
115.Go to /home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer_service_custom_image
126.run install.sh
13 ./install.sh
147.With step 4 ceilometer setup(keystone,musql,rabbitmq),zookeeper and kafka will be installed.
158.Go to /home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer-plugins
16 i.cp -rf network/ext_services/ /usr/lib/python2.7/dist-packages/ceilometer/network/
17 ii.Update entry_point.txt:
18 copy the contents of ceilometer_entry_points.txt to /usr/lib/python2.7/dist-packages/ceilometer-6.0.0.egg-info/entry_points.txt under [ceilometer.notification]
199. Update /home/ubuntu/monitoring/xos/synchronizer/ceilometer/ceilometer_pub_sub/pub_sub.conf with proper IP and port numbers and rabbitmq credentials.
raghunath dudyalaa927d562016-09-28 14:04:13 +05302010.
21 i.update /etc/ceilmeter/pipeline.yaml with required publisher info for coressponding meters.
rdudyalab086cf32016-08-11 00:07:45 -040022 ex:
23 sources:
24 - name: meter_source
25 interval: 600
26 meters:
27 - "*"
28 - "!vsg"
29 - "!vsg.*"
30 sinks:
31 - meter_sink
32 - name: meter_sink
33 transformers:
34 publishers:
35 - notifier://
36 - kafka://localhost:9092?topic=ceilometer
raghunath dudyalaa927d562016-09-28 14:04:13 +053037 ii.Please set the following config in /etc/ceilometer/ceilometer.conf
38 [api]
39 default_api_return_limit = 1000
rdudyalab086cf32016-08-11 00:07:45 -040040
4111.This setup by default created ceilometer topic for kafka.If any other topic is needed to use in this setup please
42 create the topic before using it wih the following command.
43 /opt/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic <topic name>
4412.Reboot the system.
4513.After rebooting pleasing check following services are running using ps command:
46 i.ceilometer services.
47 ii.kafka and zookeeper services
48 iii.sub_main.py script for pub-sub.
4914.Shoutdown the VM.
5015.Copy the vm image to tmp folder.
5116.convert and compress the image using the following command:
52 $sudo qemu-img convert -O qcow2 -c ceilometer-trusty-server-multi-nic.qcow2 ceilometer-trusty-server-multi-nic.compressed.qcow2
5317.The compressed image can be run as a openstack vm for ceilometer service.
5418.--