-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor and clean up code base #46
Conversation
…itioning strategy
The Makefile GOPATH stuff looks good. |
The lint errors should be fixed now. |
They indeed are! However, the unit tests are failing:
|
The tests are being worked on in another PR #42. This PR is a prerequisite to finish that one since there are API changes. |
Understood. In that case, the only thing left from my perspective is deciding whether to keep the flag format changes ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an updated review off of the latest changes for the discussion on flag format (.
versus -
). I also found some errors occurring with flags from the collect
subcommand, so I'm requesting changes to fix those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting:
{"level":"error","error":"failed to make request: Post \"https:/foobar.openchami.cluster/hsm/v2/Inventory/RedfishEndpoints\": http: no Host in request URL","time":"2024-08-14T16:14:41Z","message":"failed to add Redfish endpoint"}
because of replacing //
with /
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a small issue that is causing a 503 error during testing that is an easy fix. Upon testing with this fix, I got corrrect 401 and 409 responses when running collect
on a populated SMD, but got a 500 when populating a fresh SMD. I'm not currently sure if this is with SMD or Magellan (I'm leaning towards the former), we'll have to dig deeper to find out.
LGTM |
Recreated PR from #43.
This PR covers a range of changes to be made to Magellan's internal API and command-line interface, including but not limited to:
bmclib
and that are unused andbmclib
dependencyscan
subcommand input parametersThe list above is subject to change as needed and aims to not introduce any new features into the current code base. It will likely break API compatibility in some areas to some extent as things are being changed, cleaned up, and moved around. Merging this PR will also require updating the parsing code to handle the output received from
magellan
in SMD.Additionally, this PR addresses issues #8, #18, and #15.