Skip to content

juniper.device.system halt command not possible on MX960 #801

@jalgbzh

Description

@jalgbzh

The task juniper.device.system halt command fails on MX960

juniper.device.system:
  action: "halt"
  all_re: True
 vmhost: True
  • The task get the error : "The vmhost option can only be used when the action option has the value"
  • With no option vmhost : then we get the error : "halt failed. Error: RpcError(severity: error, bad_element: request-halt, message: syntax error)"

My guess is that in the second case the command sent is not the expected one for vmhost routing engine

DETAILS :

VMHOST option True

juniper.device.system:
  action: "halt"
  all_re: True
 vmhost: True

Full Error message

msg: >-
  The vmhost option can only be used when the action option has the value
  "reboot".
invocation:
  module_args:
    action: halt
    all_re: true
    vmhost: true
    user: ansible_bb
    passwd: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
    host: 81.253.192.7
    timeout: 10
    in_min: 0
    other_re: false
    media: false
    huge_tree: false
    at: null
    member_id: null
    cs_user: null
    cs_passwd: null
    ssh_private_key_file: null
    ssh_config: null
    mode: null
    console: null
    port: 830
    baud: null
    attempts: null
    logfile: null
    logdir: null
    level: null
_ansible_no_log: false
changed: false

NO VMHOST option

juniper.device.system:
  action: "halt"
  all_re: True
changed: false
msg: >-
  halt failed. Error: RpcError(severity: error, bad_element: request-halt,
  message: syntax error)
reboot: false
action: halt
all_re: true
other_re: false
media: false
vmhost: false
invocation:
  module_args:
    action: halt
    all_re: true
    user: ansible_bb
    passwd: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
    host: 81.253.192.7
    timeout: 10
    in_min: 0
    other_re: false
    vmhost: false
    media: false
    huge_tree: false
    at: null
    member_id: null
    cs_user: null
    cs_passwd: null
    ssh_private_key_file: null
    ssh_config: null
    mode: null
    console: null
    port: 830
    baud: null
    attempts: null
    logfile: null
    logdir: null
    level: null
_ansible_no_log: false

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions