Rename from slave to agent was reported in https://bugs.launchpad.net/magnum/+bug/1516188.
Following Patch fixed the above bug: https://review.openstack.org/#/c/338680/
But above patch break the mesos services. Some instances are:
1. service mesos-agent doesn't exist:
-----------------------------------------------------------
ubuntu@me-xdpwyptk57-0-m5cydvkjf7k5-mesos-agent-syfrrerpd6ir:~$ sudo service mesos-agent status
mesos-agent: unrecognized service
ubuntu@me-xdpwyptk57-0-m5cydvkjf7k5-mesos-agent-syfrrerpd6ir:~$ sudo service mesos-slave status
mesos-slave start/running, process 2789
------------------------------------
2. mesos monitor(/state) looks for agents, but "slaves" is present, output is below:
---------------------------------------------------------------
{"activated_slaves":0.0,"build_date":"2015-10-12 20:57:28","build_time":1444683448.0,"build_user":"root","cluster":"mesosbay","completed_frameworks":[],"deactivated_slaves":1.0,"elected_time":1472215934.6228,"flags":{"allocation_interval":"1secs","allocator":"HierarchicalDRF","authenticate":"false","authenticate_slaves":"false","authenticators":"crammd5","authorizers":"local","cluster":"mesosbay","framework_sorter":"drf","help":"false","hostname":"10.0.0.5","hostname_lookup":"true","initialize_driver_logging":"true","ip":"10.0.0.5","log_auto_initialize":"true","log_dir":"\/var\/log\/mesos","logbufsecs":"0","logging_level":"INFO","max_slave_ping_timeouts":"5","port":"5050","quiet":"false","quorum":"1","recovery_slave_removal_limit":"100%","registry":"replicated_log","registry_fetch_timeout":"1mins","registry_store_timeout":"5secs","registry_strict":"false","root_submissions":"true","slave_ping_timeout":"15secs","slave_reregister_timeout":"10mins","user_sorter":"drf","version":"false","webui_dir":"\/usr\/share\/mesos\/webui","work_dir":"\/var\/lib\/mesos","zk":"zk:\/\/10.0.0.5:2181\/mesos","zk_session_timeout":"10secs"},"frameworks":[{"active":true,"capabilities":[],"checkpoint":true,"completed_tasks":[],"executors":[],"failover_timeout":604800.0,"hostname":"10.0.0.5","id":"77b987b5-f451-45d6-8a5f-b848a86f7b8f-0000","name":"marathon","offered_resources":{"cpus":0,"disk":0,"mem":0},"offers":[],"pid":"scheduler-a72fbc96-5bae-4e1b-9ec2-cb8cbb9eae50@10.0.0.5:39346","registered_time":1472215958.10614,"resources":{"cpus":0,"disk":0,"mem":0},"role":"*","tasks":[],"unregistered_time":0.0,"used_resources":{"cpus":0,"disk":0,"mem":0},"user":"root","webui_url":"http:\/\/10.0.0.5:8080"}],"git_sha":"2dd7f7ee115fe00b8e098b0a10762a4fa8f4600f","git_tag":"0.25.0","hostname":"10.0.0.5","id":"77b987b5-f451-45d6-8a5f-b848a86f7b8f","leader":"master@10.0.0.5:5050","log_dir":"\/var\/log\/mesos","orphan_tasks":[],"pid":"master@10.0.0.5:5050","slaves":[{"active":false,"attributes":{},"hostname":"me-xdpwyptk57-0-m5cydvkjf7k5-mesos-agent-syfrrerpd6ir.novalocal","id":"77b987b5-f451-45d6-8a5f-b848a86f7b8f-S7","offered_resources":{"cpus":0,"disk":0,"mem":0},"pid":"slave(1)@127.0.1.1:5051","registered_time":1472226686.78832,"reserved_resources":{},"resources":{"cpus":1.0,"disk":14017.0,"mem":1001.0,"ports":"[31000-32000]"},"unreserved_resources":{"cpus":1.0,"disk":14017.0,"mem":1001.0,"ports":"[31000-32000]"},"used_resources":{"cpus":0,"disk":0,"mem":0}}],"start_time":1472215928.82749,"unregistered_frameworks":[],"version":"0.25.0"}
---------------------------------------------------------
3. Also, configuration is also not updated because configurations are pushed in "/etc/mesos-agent", but this directory doesn't exist instead "/etc/mesos-slave" exist
So, revert of https://review.openstack.org/#/c/338680/ is required until complete conversion of slave to agent is done.
Even then, ubuntu mesos image(ubuntu-14.04.3-mesos-0.25.0.qcow2) has to be updated because package installation is done in the image itself.
Fix proposed to branch: master /review. openstack. org/#/c/ 361395/
Review: https:/