Uploaded image for project: 'Razor'
  1. Razor
  2. RAZOR-939

set-node-hw-info not working for mac(net0, etc.)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: RAZOR 1.2.0
    • Fix Version/s: RAZOR 1.5.0
    • Component/s: Client, DOCS
    • Environment:

      Puppet Enterprise 2016.2.1
      CentOS 7

    • Template:
    • Team:
      Analytics
    • Story Points:
      1
    • Sprint:
      Analytics 2016-11-02

      Description

      Unable to submit any command that actually allows for updating the MAC on an already existing node. It keeps complaining about the attribute mac, which it does not accept as a parameter.

      Commands attempted below:

      [root@puppet4-razor-01 /]# razor nodes node1 hw_info
      From https://localhost:8151/api/collections/nodes/node1:
       
        mac: [08-00-27-d9-2d-97]
       
       
      razor set-node-hw-info --node node1 --hw-info net0=08:00:27:d9:2d:98
      Error from doing POST https://localhost:8151/api/commands/set-node-hw-info
      422 Unprocessable Entity
        error: hw_info must contain at least one of the match keys: mac
       
      [root@puppet4-razor-01 /]# razor set-node-hw-info --node node1 --hw-info mac net0=08:00:27:d9:2d:98
      Error: Invalid object for argument 'hw_info': 795: unexpected token at 'mac'
      Try 'razor --help' for more information
       
      [root@puppet4-razor-01 /]# razor set-node-hw-info --node node1 --hw-info net0=08:00:27:d9:2d:98 mac
      Error from doing POST https://localhost:8151/api/commands/set-node-hw-info
      404 Resource Not Found
        error: node must be the name of an existing node, but is 'mac'
       
      [root@puppet4-razor-01 /]# razor set-node-hw-info --node node1 --hw-info mac=08:00:27:d9:2d:98
      Error from doing POST https://localhost:8151/api/commands/set-node-hw-info
      422 Unprocessable Entity
        error: extra attribute mac was present in hw_info, but is not allowed
      [root@puppet4-razor-01 /]# razor set-node-hw-info --node node1 --hw-info mac0=08:00:27:d9:2d:98
      Error from doing POST https://localhost:8151/api/commands/set-node-hw-info
      422 Unprocessable Entity
        error: extra attribute mac0 was present in hw_info, but is not allowed
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              asasfu Adam S
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support