I have scheduled a maintenance (from date now), how can I verify if the 
agent is indeed in 'draining' mode?

 



-----Original Message-----
From: Vinod Kone [mailto:[email protected]] 
Sent: donderdag 8 augustus 2019 0:35
To: user
Subject: Re: Draining: Failed to validate master::Call: Expecting 'type' 
to be present

Please read the "maintenace primitives" section in this doc 
http://mesos.apache.org/documentation/latest/maintenance/ and let us 
know if you have unanswered questions.

On Wed, Aug 7, 2019 at 4:59 PM Marc Roos <[email protected]> 
wrote:



         I seem to be able to add a maintenance schedule, and get also a 
report 
        on '{"down_machines":[{"hostname":"m02.local"}]}' but I do not see 
tasks 
        migrate to other hosts. Or is this not the purpose of maintenance 
mode 
        in 1.8? Just to make sure no new tasks will be launched on hosts 
        scheduled for maintenance?
        
        
        
        -----Original Message-----
        From: Chun-Hung Hsiao [mailto:[email protected]] 
        Sent: woensdag 7 augustus 2019 22:59
        To: user
        Subject: Re: Draining: Failed to validate master::Call: Expecting 
'type' 
        to be present
        
        Hi Marc.
        
        Agent draining is a Mesos 1.9 feature and is only available on the 
        current Mesos master branch.
        Please see https://issues.apache.org/jira/browse/MESOS-9814.
        
        Best,
        Chun-Hung
        
        On Wed, Aug 7, 2019 at 1:35 PM Marc Roos <[email protected]> 

        wrote:
        
        
        
                Should this be working in mesos 1.8?
        
                [@m01 ~]# curl --user test:xxxxxxxxx -X POST \
                >   https://m01.local:5050/api/v1 \
                >   --cacert /etc/pki/ca-trust/source/ca.crt \
                >   -H 'Accept: application/json' \
                >   -H 'content-type: application/json' -d '{
                >   "type": "DRAIN_AGENT",
                >   "drain_agent": {"agent_id": {
                >     "value":"53336fcb-7756-4673-b9c7-177e04f34c3b-S1"
                >   }}}'
        
                Failed to validate master::Call: Expecting 'type' to be 
present
        
        
        
        
        


Reply via email to