mesos services not working after renaming to agent

Bug #1617407 reported by yatin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
High
yatin

Bug Description

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.

yatin (yatinkarel)
Changed in magnum:
assignee: nobody → yatin (yatinkarel)
status: New → In Progress
Revision history for this message
yatin (yatinkarel) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/#/c/361395/

Changed in magnum:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/361395
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=272903ff9e4beac66f3bd93895a779cff18af4f4
Submitter: Jenkins
Branch: master

commit 272903ff9e4beac66f3bd93895a779cff18af4f4
Author: yatin <email address hidden>
Date: Sat Aug 27 00:22:12 2016 +0530

    Revert "Update mesos slave to mesos agent"

    This reverts commit 15162ce33a099a53f7022ae45aec15463b0432a6.

    Mesos services were not working, so reverted the patch
    which renamed slave to agent.

    Change-Id: I94a9a36e649f48f8e31386226226261ef459ce25
    Closes-Bug: #1617407

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.