Closed jeb-de closed 3 years ago
After some fiddling I got it working with (inside the docker contaner)
service dbus start
touch /etc/ssl/certs/authority
./bmcweb
The port is now 18080, querying the redfish root works:
curl -k https://${BMC_IP}:18080/redfish/v1
curl -k https://${BMC_IP}:18080/redfish/v1/Systems --user root:0penBmc -w '\n%{http_code}'
Result::
Unauthorized
401
Expected result:
{
"@odata.id": "/redfish/v1",
"@odata.type": "#ServiceRoot.v1_5_0.ServiceRoot",
"AccountService": {
"@odata.id": "/redfish/v1/AccountService"
},
"CertificateService": {
"@odata.id": "/redfish/v1/CertificateService"
},
...
200
How can this be fixed?
use passwd to change root password to '0penBmc', or just create a new user
I've seen this as well with non socket activated files. A workaround is to launch using the bmcweb.socket and bmcweb.service files. As is, this is a regression, and will look when I have time. I suspect this has something to do with attempting to open an ipv6 port on systems that don't support ipv6, but that's just a guess.
Resolved on master. Please reopen if this is still an issue.
After some fiddling I got it working with (inside the docker contaner)
service dbus start touch /etc/ssl/certs/authority ./bmcweb
The port is now 18080, querying the redfish root works:
curl -k https://${BMC_IP}:18080/redfish/v1
But the default user/password combination doesn't work
curl -k https://${BMC_IP}:18080/redfish/v1/Systems --user root:0penBmc -w '\n%{http_code}'
Result::
Unauthorized 401
Expected result:
{ "@odata.id": "/redfish/v1", "@odata.type": "#ServiceRoot.v1_5_0.ServiceRoot", "AccountService": { "@odata.id": "/redfish/v1/AccountService" }, "CertificateService": { "@odata.id": "/redfish/v1/CertificateService" }, ... 200
How can this be fixed?
How were you able to get it to work?
But the default user/password combination doesn't work
bmcweb does not control the passwords on your system, it uses PAM to log in. Make sure you've installed bmcweb (not just ran from the build dir) to get the relevant pam config, then ensure that the necessary groups are present for your user, then you can use your normal desktop username/password to log in.
Building with the docker script by
creates the expected build result at
But starting fails with
Expected behaviour: The bmcweb starts and serves the https on port 443 inside the docker container.