Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add trust-anchor-cert to progress #339

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Jun 7, 2024

Signed-off-by: Boris Glimcher Boris.Glimcher@emc.com

@glimchb glimchb added the bug Something isn't working label Jun 7, 2024
@glimchb
Copy link
Member Author

glimchb commented Jun 7, 2024

sending

sztp-agent-1           | 2024/06/07 03:22:48 [INFO] Starting the Report Progress request.
sztp-agent-1           | 2024/06/07 03:22:48 [DEBUG] Sending to: https://bootstrap:9090/restconf/operations/ietf-sztp-bootstrap-server:report-progress
sztp-agent-1           | 2024/06/07 03:22:48 [DEBUG] Sending input: {"ietf-sztp-bootstrap-server:input":{"progress-type":"bootstrap-complete","message":"message sent via JSON","ssh-host-keys":{"ssh-host-key":[{"algorithm":"ssh-rsa","key-data":"bXlzc2hwYXNz"}]},"trust-anchor-certs":{"trust-anchor-cert":"bXlzc2hwYXNz"}}}
sztp-agent-1           | 2024/06/07 03:22:48 [ERROR]  [ERROR] Status code received: 400 ...but status code expected: 200

on server side error:

      {
        "timestamp": "2024-06-07T03:22:48Z",
        "source-ip": "10.127.127.4",
        "method": "POST",
        "path": "/restconf/operations/ietf-sztp-bootstrap-server:report-progress",
        "return-code": 400,
        "error-returned": {
          "ietf-restconf:errors": {
            "error": [
              {
                "error-type": "protocol",
                "error-tag": "malformed-message",
                "error-message": "Unable to parse \"input\" document: Doesn't match schema: {/ietf-sztp-bootstrap-server:input/trust-anchor-certs/trust-anchor-cert} expected array"
              }
            ]
          }
        }
      }

@glimchb
Copy link
Member Author

glimchb commented Jun 11, 2024

fixed

client:

sztp-agent-1           | 2024/06/11 23:58:58 [INFO] Starting the Report Progress request.
sztp-agent-1           | 2024/06/11 23:58:58 [DEBUG] Sending to: https://bootstrap:9090/restconf/operations/ietf-sztp-bootstrap-server:report-progress
sztp-agent-1           | 2024/06/11 23:58:58 [DEBUG] Sending input: {"ietf-sztp-bootstrap-server:input":{"progress-type":"bootstrap-complete","message":"message sent via JSON","ssh-host-keys":{"ssh-host-key":[{"algorithm":"ssh-rsa","key-data":"bXlzc2hwYXNz"}]},"trust-anchor-certs":{"trust-anchor-cert":["bXlzc2hwYXNz"]}}}

server:

      {
        "timestamp": "2024-06-11T23:59:58Z",
        "source-ip": "10.127.127.6",
        "method": "POST",
        "path": "/restconf/operations/ietf-sztp-bootstrap-server:report-progress",
        "return-code": 204,
        "event-details": {
          "report-progress-event": {
            "passed-input": {
              "progress-type": "bootstrap-complete",
              "message": "message sent via JSON",
              "ssh-host-keys": {
                "ssh-host-key": [
                  {
                    "algorithm": "ssh-rsa",
                    "key-data": "bXlzc2hwYXNz"
                  }
                ]
              },
              "trust-anchor-certs": {
                "trust-anchor-cert": [
                  "bXlzc2hwYXNz"
                ]
              }
            },
            "dynamic-callout": {
              "no-callout-configured": [
                null
              ]
            }
          }
        }
      },

@glimchb glimchb marked this pull request as ready for review June 12, 2024 00:05
@glimchb glimchb requested a review from a team as a code owner June 12, 2024 00:05
@glimchb glimchb added Merge Candidate in the open merge window, next candidate for merge and removed bug Something isn't working labels Jun 12, 2024
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@glimchb glimchb merged commit 5461c97 into opiproject:main Jun 12, 2024
15 of 16 checks passed
@glimchb glimchb deleted the print branch June 12, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge Candidate in the open merge window, next candidate for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant