All of lore.kernel.org
 help / color / mirror / Atom feed
* Query regarding using the Redfish in OpenBMC
@ 2020-07-22  8:02 khader basha shaik
  2020-07-23 10:48 ` khader basha shaik
  0 siblings, 1 reply; 9+ messages in thread
From: khader basha shaik @ 2020-07-22  8:02 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

  Hi Team,

I am newbiee to  Openbmc.  I want to view  the redfish/v1 (
https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser .Could you
please guide me on what changes i need to so that i view the /redfish/v1/
content in the browser .

here are the steps i have followed:

   1. Clone OpenBMC project : git clone
   https://github.com/openbmc/openbmc.git in the server machine .
   2. Compile using the following command: TEMPLATECONF=meta-phosphor/conf
   . openbmc-env
   3. modify the following files:


   -  #build vi conf/local.conf   (modify the  line "-MACHINE??=qemuarm" "
   to    "-MACHINE??=raspberrypi3-64" "
   - #build vi conf/bblayer.conf (add the following line
"/home/khader<username>/openbmc/meta-raspberrypi
   \"  to the line  above /home/khader<username>/openbmc/metaphosphor \"

       4. #build  bitbake obmc-phosphor-image

The above steps I have used to build an Openbmc project.


Can you help me what further steps should i need to do so that i can view
the /redfish/v1/  content in the webbrowser.

Note:- I am compiling the openbmc code in the server machine.

Any help /guidelines on this will really help me alot.
Appreciate all your help.

Thanks & Regards,
khader B Shaik

[-- Attachment #2: Type: text/html, Size: 1874 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Query regarding using the Redfish in OpenBMC
  2020-07-22  8:02 Query regarding using the Redfish in OpenBMC khader basha shaik
@ 2020-07-23 10:48 ` khader basha shaik
  2020-07-23 13:55   ` Joseph Reynolds
  0 siblings, 1 reply; 9+ messages in thread
From: khader basha shaik @ 2020-07-23 10:48 UTC (permalink / raw)
  To: openbmc, openbmcbump-github

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

Hi Team,

I am newbiee to  Openbmc.  I want to view  the redfish/v1 (
https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser .Could you
please guide me on what changes i need to so that i view the /redfish/v1/
content in the browser .

here are the steps i have followed:

   1. Clone OpenBMC project : git clone
   https://github.com/openbmc/openbmc.git in the server machine .
   2. Compile using the following command: TEMPLATECONF=meta-phosphor/conf
   . openbmc-env
   3. modify the following files:


   -  #build vi conf/local.conf   (modify the  line "-MACHINE??=qemuarm" "
   to    "-MACHINE??=raspberrypi3-64" "
   - #build vi conf/bblayer.conf (add the following line
"/home/khader<username>/openbmc/meta-raspberrypi
   \"  to the line  above /home/khader<username>/openbmc/metaphosphor \"

       4. #build  bitbake obmc-phosphor-image

The above steps I have used to build an Openbmc project.


Can you help me what further steps should i need to do so that i can view
the /redfish/v1/  content in the webbrowser.

Note:- I am compiling the openbmc code in the server machine.

Any help /guidelines on this will really help me alot.
Appreciate all your help.

Thanks & Regards,
khader B Shaik

[-- Attachment #2: Type: text/html, Size: 1946 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-23 10:48 ` khader basha shaik
@ 2020-07-23 13:55   ` Joseph Reynolds
  2020-07-24 11:59     ` khader basha shaik
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Reynolds @ 2020-07-23 13:55 UTC (permalink / raw)
  To: khader basha shaik, openbmc, openbmcbump-github

On 7/23/20 5:48 AM, khader basha shaik wrote:
> Hi Team,
>
> I am newbiee to  Openbmc.  I want to view  the redfish/v1 
> (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser 
> .Could you please guide me on what changes i need to so that i view 
> the /redfish/v1/ content in the browser .
>
> here are the steps i have followed:
>
>  1. Clone OpenBMC project : git clone
>     https://github.com/openbmc/openbmc.git in the server machine .
>  2. Compile using the following command:
>     TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>  3. modify the following files:
>
>   *  #build vi conf/local.conf  (modify the  line "-MACHINE??=qemuarm"
>     " to "-MACHINE??=raspberrypi3-64" "
>   * #build vi conf/bblayer.conf (add the following line
>     "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line 
>     above /home/khader<username>/openbmc/metaphosphor \"
>
>        4. #build  bitbake obmc-phosphor-image
>
> The above steps I have used to build an Openbmc project.
>
>
> Can you help me what further steps should i need to do so that i can 
> view the /redfish/v1/  content in the webbrowser.

What BMC system will you use to upload, boot, and run the BMC firmware 
image?  A QEMU virtual system?
Have you seen the developer docs here? 
https://github.com/openbmc/docs/tree/master/development

Good luck,
- Joseph

>
> Note:- I am compiling the openbmc code in the server machine.
>
> Any help /guidelines on this will really help me alot.
> Appreciate all your help.
>
> Thanks & Regards,
> khader B Shaik

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-23 13:55   ` Joseph Reynolds
@ 2020-07-24 11:59     ` khader basha shaik
  2020-07-24 13:40       ` Mike
  0 siblings, 1 reply; 9+ messages in thread
From: khader basha shaik @ 2020-07-24 11:59 UTC (permalink / raw)
  To: Joseph Reynolds; +Cc: openbmc, openbmcbump-github

[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]

Hi Joseph,

Thanks for your response.

I will be using Raspberrypi3 system.

Can you please guide what further steps I should take in order to view the
/redfish/v1 content in the web(https://xxx.xxx.xxx:8000/redfish/v1).

Any pointer on this is really helpful.

I have gone through the documents the developer docs but could not find
anything that points to enabling the redfish stuff in the browser.
Please correct me if i am wrong

Thanks & Regards,
Khader B Shaik



On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey@linux.ibm.com> wrote:

> On 7/23/20 5:48 AM, khader basha shaik wrote:
> > Hi Team,
> >
> > I am newbiee to  Openbmc.  I want to view  the redfish/v1
> > (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser
> > .Could you please guide me on what changes i need to so that i view
> > the /redfish/v1/ content in the browser .
> >
> > here are the steps i have followed:
> >
> >  1. Clone OpenBMC project : git clone
> >     https://github.com/openbmc/openbmc.git in the server machine .
> >  2. Compile using the following command:
> >     TEMPLATECONF=meta-phosphor/conf  . openbmc-env
> >  3. modify the following files:
> >
> >   *  #build vi conf/local.conf  (modify the  line "-MACHINE??=qemuarm"
> >     " to "-MACHINE??=raspberrypi3-64" "
> >   * #build vi conf/bblayer.conf (add the following line
> >     "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line
> >     above /home/khader<username>/openbmc/metaphosphor \"
> >
> >        4. #build  bitbake obmc-phosphor-image
> >
> > The above steps I have used to build an Openbmc project.
> >
> >
> > Can you help me what further steps should i need to do so that i can
> > view the /redfish/v1/  content in the webbrowser.
>
> What BMC system will you use to upload, boot, and run the BMC firmware
> image?  A QEMU virtual system?
> Have you seen the developer docs here?
> https://github.com/openbmc/docs/tree/master/development
>
> Good luck,
> - Joseph
>
> >
> > Note:- I am compiling the openbmc code in the server machine.
> >
> > Any help /guidelines on this will really help me alot.
> > Appreciate all your help.
> >
> > Thanks & Regards,
> > khader B Shaik
>
>

[-- Attachment #2: Type: text/html, Size: 3340 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-24 11:59     ` khader basha shaik
@ 2020-07-24 13:40       ` Mike
  2020-07-24 21:57         ` Joseph Reynolds
  0 siblings, 1 reply; 9+ messages in thread
From: Mike @ 2020-07-24 13:40 UTC (permalink / raw)
  To: khader basha shaik; +Cc: Joseph Reynolds, openbmc, openbmcbump-github

[-- Attachment #1: Type: text/plain, Size: 3185 bytes --]

I’m trying to do the same and struggling to get it up on a Rasp Pi 4.

My first approach was to add layers to meta-raspberrypi, and I got to the point where the web was up, but I could not log in with root. I added a missing layer that adds groups to the accounts and will test later today.

The second approach was to use the evb config files. But it can’t make the image. It seems to be using meta-phosphor image layers instead of meta-raspberrypi layers. I used openbmc tag 2.9. I will try 2.8 later and see if it compiles.

I will post more details later. I can provide config files etc. I am away from my computer for awhile.

How are you building? Are you using an evb config? What tag are you using?



Sent from my iPhone

> On Jul 24, 2020, at 6:01 AM, khader basha shaik <shaikkhaderbasha601@gmail.com> wrote:
> 
> 
> Hi Joseph,
> 
> Thanks for your response. 
> 
> I will be using Raspberrypi3 system.
> 
> Can you please guide what further steps I should take in order to view the /redfish/v1 content in the web(https://xxx.xxx.xxx:8000/redfish/v1).
> 
> Any pointer on this is really helpful.
> 
> I have gone through the documents the developer docs but could not find anything that points to enabling the redfish stuff in the browser.
> Please correct me if i am wrong
> 
> Thanks & Regards,
> Khader B Shaik
> 
> 
> 
>> On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey@linux.ibm.com> wrote:
>> On 7/23/20 5:48 AM, khader basha shaik wrote:
>> > Hi Team,
>> >
>> > I am newbiee to  Openbmc.  I want to view  the redfish/v1 
>> > (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser 
>> > .Could you please guide me on what changes i need to so that i view 
>> > the /redfish/v1/ content in the browser .
>> >
>> > here are the steps i have followed:
>> >
>> >  1. Clone OpenBMC project : git clone
>> >     https://github.com/openbmc/openbmc.git in the server machine .
>> >  2. Compile using the following command:
>> >     TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>> >  3. modify the following files:
>> >
>> >   *  #build vi conf/local.conf  (modify the  line "-MACHINE??=qemuarm"
>> >     " to "-MACHINE??=raspberrypi3-64" "
>> >   * #build vi conf/bblayer.conf (add the following line
>> >     "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line 
>> >     above /home/khader<username>/openbmc/metaphosphor \"
>> >
>> >        4. #build  bitbake obmc-phosphor-image
>> >
>> > The above steps I have used to build an Openbmc project.
>> >
>> >
>> > Can you help me what further steps should i need to do so that i can 
>> > view the /redfish/v1/  content in the webbrowser.
>> 
>> What BMC system will you use to upload, boot, and run the BMC firmware 
>> image?  A QEMU virtual system?
>> Have you seen the developer docs here? 
>> https://github.com/openbmc/docs/tree/master/development
>> 
>> Good luck,
>> - Joseph
>> 
>> >
>> > Note:- I am compiling the openbmc code in the server machine.
>> >
>> > Any help /guidelines on this will really help me alot.
>> > Appreciate all your help.
>> >
>> > Thanks & Regards,
>> > khader B Shaik
>> 

[-- Attachment #2: Type: text/html, Size: 4687 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-24 13:40       ` Mike
@ 2020-07-24 21:57         ` Joseph Reynolds
  2020-07-24 23:12           ` Mike Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Reynolds @ 2020-07-24 21:57 UTC (permalink / raw)
  To: Mike, khader basha shaik; +Cc: openbmc, openbmcbump-github

On 7/24/20 8:40 AM, Mike wrote:
> I’m trying to do the same and struggling to get it up on a Rasp Pi 4.
>
> My first approach was to add layers to meta-raspberrypi, and I got to 
> the point where the web was up, but I could not log in with root. I 
> added a missing layer that adds groups to the accounts and will test 
> later today.
>
> The second approach was to use the evb config files. But it can’t make 
> the image. It seems to be using meta-phosphor image layers instead of 
> meta-raspberrypi layers. I used openbmc tag 2.9. I will try 2.8 later 
> and see if it compiles.

I think your build configuration would include both the meta-raspberrypi 
and meta-phosphor layers.
The meta-phosphor layer brings in the BMCWeb recipe [1] and BMCWeb 
enables Redfish by default [2].
So I think your approach should work, but I do not have experience 
setting up machines.
Andrew added a tutorial for this [3].

[1]: 
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
[2]: https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L37
[3]: https://gist.github.com/geissonator/77d4f6c6ed17bb0693b4251137f77fb4

The root password is configured in the phosphor-defaults.inc [4] (and 
other places such as in various EVB layers) and the root user is 
authorized to use redfish APIs per the bmcweb recipe ([1] again).

[4]: 
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/conf/distro/include/phosphor-defaults.inc#L229

Note the default port for BMCWeb is 443 (HTTPS).

A few more questions:
1. How are you getting the RPI's IP address?  Are you just looking for 
it, or do you learn it by using the RPI's serial connection and signing in?
2. Are you using the RPI's serial port to debug?  If so, can you sign on 
as root?  If you can, does the systemctl command show the bmcweb service 
is running?  If it is, does bmcweb show any error messages for failed 
attempts to use Redfish APIs?

- Joseph

>
> I will post more details later. I can provide config files etc. I am 
> away from my computer for awhile.
>
> How are you building? Are you using an evb config? What tag are you using?
>
>
>
> Sent from my iPhone
>
>> On Jul 24, 2020, at 6:01 AM, khader basha shaik 
>> <shaikkhaderbasha601@gmail.com> wrote:
>>
>> 
>> Hi Joseph,
>>
>> Thanks for your response.
>>
>> I will be using Raspberrypi3 system.
>>
>> Can you please guide what further steps I should take in order to 
>> view the /redfish/v1 content in the 
>> web(https://xxx.xxx.xxx:8000/redfish/v1).

The default port is 443 (HTTPS) unless you changed it in a recipe. (This 
is not common.)
If you continue to enter "https:" you should not need to specify port.

>>
>> Any pointer on this is really helpful.
>>
>> I have gone through the documents the developer docs but could not 
>> find anything that points to enabling the redfish stuff in the browser.
>> Please correct me if i am wrong
>>
>> Thanks & Regards,
>> Khader B Shaik
>>
>>
>>
>> On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey@linux.ibm.com 
>> <mailto:jrey@linux.ibm.com>> wrote:
>>
>>     On 7/23/20 5:48 AM, khader basha shaik wrote:
>>     > Hi Team,
>>     >
>>     > I am newbiee to  Openbmc.  I want to view  the redfish/v1
>>     > (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser
>>     > .Could you please guide me on what changes i need to so
>>     that i view
>>     > the /redfish/v1/ content in the browser .
>>     >
>>     > here are the steps i have followed:
>>     >
>>     >  1. Clone OpenBMC project : git clone
>>     > https://github.com/openbmc/openbmc.git in the server machine .
>>     >  2. Compile using the following command:
>>     >     TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>>     >  3. modify the following files:
>>     >
>>     >   *  #build vi conf/local.conf  (modify the  line
>>     "-MACHINE??=qemuarm"
>>     >     " to "-MACHINE??=raspberrypi3-64" "
>>     >   * #build vi conf/bblayer.conf (add the following line
>>     >  "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line
>>     >     above /home/khader<username>/openbmc/metaphosphor \"
>>     >
>>     >        4. #build  bitbake obmc-phosphor-image
>>     >
>>     > The above steps I have used to build an Openbmc project.
>>     >
>>     >
>>     > Can you help me what further steps should i need to do so that
>>     i can
>>     > view the /redfish/v1/  content in the webbrowser.
>>
>>     What BMC system will you use to upload, boot, and run the BMC
>>     firmware
>>     image?  A QEMU virtual system?
>>     Have you seen the developer docs here?
>>     https://github.com/openbmc/docs/tree/master/development
>>
>>     Good luck,
>>     - Joseph
>>
>>     >
>>     > Note:- I am compiling the openbmc code in the server machine.
>>     >
>>     > Any help /guidelines on this will really help me alot.
>>     > Appreciate all your help.
>>     >
>>     > Thanks & Regards,
>>     > khader B Shaik
>>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-24 21:57         ` Joseph Reynolds
@ 2020-07-24 23:12           ` Mike Jones
  2020-07-25  1:16             ` Mike Jones
  2020-07-27 23:07             ` Ed Tanous
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Jones @ 2020-07-24 23:12 UTC (permalink / raw)
  To: Joseph Reynolds; +Cc: khader basha shaik, openbmc, openbmcbump-github

Some progress. On the hacked build, there were three problems:

1) bmcweb failed at start
2) Wrong port
3) Can’t login

The failure was found by compiling it with logging. /var/log/redfish was missing. Touching the file and executing bmcweb& got it up.

Some doc said port 8080, but it is 18080.

DHCP is not working, so I boot to console with hdmi and keyboard and make a static address with ifconfig. Will deal with later.

Login was because groups were missing. Found where that was in meta-phosphor and added.

Now I have the webui up.

On the evb build, it is trying to build images that fail when checking file size. I think this is because meta-phosphor has IMAGE_FSTYPES += with some mtb images, and meta-rasberrypi has IMAGE_FSTYPES ?= and I assume += wins or mixes. I think if I add IMAGE_FSTYPES = in local.conf, it would override it and probably work.

Waiting for a long rebuild...

Sent from my iPad

>> On Jul 24, 2020, at 3:57 PM, Joseph Reynolds <jrey@linux.ibm.com> wrote:
>> 
>> On 7/24/20 8:40 AM, Mike wrote:
>> I’m trying to do the same and struggling to get it up on a Rasp Pi 4.
>> My first approach was to add layers to meta-raspberrypi, and I got to the point where the web was up, but I could not log in with root. I added a missing layer that adds groups to the accounts and will test later today.
>> The second approach was to use the evb config files. But it can’t make the image. It seems to be using meta-phosphor image layers instead of meta-raspberrypi layers. I used openbmc tag 2.9. I will try 2.8 later and see if it compiles.
> 
> I think your build configuration would include both the meta-raspberrypi and meta-phosphor layers.
> The meta-phosphor layer brings in the BMCWeb recipe [1] and BMCWeb enables Redfish by default [2].
> So I think your approach should work, but I do not have experience setting up machines.
> Andrew added a tutorial for this [3].
> 
> [1]: https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
> [2]: https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L37
> [3]: https://gist.github.com/geissonator/77d4f6c6ed17bb0693b4251137f77fb4
> 
> The root password is configured in the phosphor-defaults.inc [4] (and other places such as in various EVB layers) and the root user is authorized to use redfish APIs per the bmcweb recipe ([1] again).
> 
> [4]: https://github.com/openbmc/openbmc/blob/master/meta-phosphor/conf/distro/include/phosphor-defaults.inc#L229
> 
> Note the default port for BMCWeb is 443 (HTTPS).
> 
> A few more questions:
> 1. How are you getting the RPI's IP address?  Are you just looking for it, or do you learn it by using the RPI's serial connection and signing in?
> 2. Are you using the RPI's serial port to debug?  If so, can you sign on as root?  If you can, does the systemctl command show the bmcweb service is running?  If it is, does bmcweb show any error messages for failed attempts to use Redfish APIs?
> 
> - Joseph
> 
>> I will post more details later. I can provide config files etc. I am away from my computer for awhile.
>> How are you building? Are you using an evb config? What tag are you using?
>> Sent from my iPhone
>>>> On Jul 24, 2020, at 6:01 AM, khader basha shaik <shaikkhaderbasha601@gmail.com> wrote:
>>> 
>>> Hi Joseph,
>>> Thanks for your response.
>>> I will be using Raspberrypi3 system.
>>> Can you please guide what further steps I should take in order to view the /redfish/v1 content in the web(https://xxx.xxx.xxx:8000/redfish/v1).
> 
> The default port is 443 (HTTPS) unless you changed it in a recipe. (This is not common.)
> If you continue to enter "https:" you should not need to specify port.
> 
>>> Any pointer on this is really helpful.
>>> I have gone through the documents the developer docs but could not find anything that points to enabling the redfish stuff in the browser.
>>> Please correct me if i am wrong
>>> Thanks & Regards,
>>> Khader B Shaik
>>>> On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey@linux.ibm.com <mailto:jrey@linux.ibm.com>> wrote:
>>>>   On 7/23/20 5:48 AM, khader basha shaik wrote:
>>>> Hi Team,
>>>> I am newbiee to  Openbmc.  I want to view  the redfish/v1
>>>> (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser
>>>> .Could you please guide me on what changes i need to so
>>>   that i view
>>>> the /redfish/v1/ content in the browser .
>>>> here are the steps i have followed:
>>>> 1. Clone OpenBMC project : git clone
>>>> https://github.com/openbmc/openbmc.git in the server machine .
>>>> 2. Compile using the following command:
>>>>    TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>>>> 3. modify the following files:
>>>>  *  #build vi conf/local.conf  (modify the  line
>>>   "-MACHINE??=qemuarm"
>>>>    " to "-MACHINE??=raspberrypi3-64" "
>>>>  * #build vi conf/bblayer.conf (add the following line
>>>> "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line
>>>>    above /home/khader<username>/openbmc/metaphosphor \"
>>>>       4. #build  bitbake obmc-phosphor-image
>>>> The above steps I have used to build an Openbmc project.
>>>> Can you help me what further steps should i need to do so that
>>>   i can
>>>> view the /redfish/v1/  content in the webbrowser.
>>>   What BMC system will you use to upload, boot, and run the BMC
>>>   firmware
>>>   image?  A QEMU virtual system?
>>>   Have you seen the developer docs here?
>>>   https://github.com/openbmc/docs/tree/master/development
>>>   Good luck,
>>>   - Joseph
>>>> Note:- I am compiling the openbmc code in the server machine.
>>>> Any help /guidelines on this will really help me alot.
>>>> Appreciate all your help.
>>>> Thanks & Regards,
>>>> khader B Shaik

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-24 23:12           ` Mike Jones
@ 2020-07-25  1:16             ` Mike Jones
  2020-07-27 23:07             ` Ed Tanous
  1 sibling, 0 replies; 9+ messages in thread
From: Mike Jones @ 2020-07-25  1:16 UTC (permalink / raw)
  To: Joseph Reynolds; +Cc: khader basha shaik, openbmc, openbmcbump-github

Setting IMAGE_FSTYPES in local.conf got tag 2.7 to compile.

Now I am getting infinite redirects from firefox.

I’m compiling up tag 2.8 to see if that goes away.

If the redirect is a known problem let me know.

Also if there is a solution for missing /var/log/redfish by some trick such that running bmcweb creates it when missing or its put in the filesystem up front, let me know. Maybe 2.8 will fix it.

Mike

Sent from my iPad

> On Jul 24, 2020, at 5:12 PM, Mike Jones <proclivis@gmail.com> wrote:
> 
> Some progress. On the hacked build, there were three problems:
> 
> 1) bmcweb failed at start
> 2) Wrong port
> 3) Can’t login
> 
> The failure was found by compiling it with logging. /var/log/redfish was missing. Touching the file and executing bmcweb& got it up.
> 
> Some doc said port 8080, but it is 18080.
> 
> DHCP is not working, so I boot to console with hdmi and keyboard and make a static address with ifconfig. Will deal with later.
> 
> Login was because groups were missing. Found where that was in meta-phosphor and added.
> 
> Now I have the webui up.
> 
> On the evb build, it is trying to build images that fail when checking file size. I think this is because meta-phosphor has IMAGE_FSTYPES += with some mtb images, and meta-rasberrypi has IMAGE_FSTYPES ?= and I assume += wins or mixes. I think if I add IMAGE_FSTYPES = in local.conf, it would override it and probably work.
> 
> Waiting for a long rebuild...
> 
> Sent from my iPad
> 
>>>> On Jul 24, 2020, at 3:57 PM, Joseph Reynolds <jrey@linux.ibm.com> wrote:
>>> 
>>> On 7/24/20 8:40 AM, Mike wrote:
>>> I’m trying to do the same and struggling to get it up on a Rasp Pi 4.
>>> My first approach was to add layers to meta-raspberrypi, and I got to the point where the web was up, but I could not log in with root. I added a missing layer that adds groups to the accounts and will test later today.
>>> The second approach was to use the evb config files. But it can’t make the image. It seems to be using meta-phosphor image layers instead of meta-raspberrypi layers. I used openbmc tag 2.9. I will try 2.8 later and see if it compiles.
>> 
>> I think your build configuration would include both the meta-raspberrypi and meta-phosphor layers.
>> The meta-phosphor layer brings in the BMCWeb recipe [1] and BMCWeb enables Redfish by default [2].
>> So I think your approach should work, but I do not have experience setting up machines.
>> Andrew added a tutorial for this [3].
>> 
>> [1]: https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb
>> [2]: https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L37
>> [3]: https://gist.github.com/geissonator/77d4f6c6ed17bb0693b4251137f77fb4
>> 
>> The root password is configured in the phosphor-defaults.inc [4] (and other places such as in various EVB layers) and the root user is authorized to use redfish APIs per the bmcweb recipe ([1] again).
>> 
>> [4]: https://github.com/openbmc/openbmc/blob/master/meta-phosphor/conf/distro/include/phosphor-defaults.inc#L229
>> 
>> Note the default port for BMCWeb is 443 (HTTPS).
>> 
>> A few more questions:
>> 1. How are you getting the RPI's IP address?  Are you just looking for it, or do you learn it by using the RPI's serial connection and signing in?
>> 2. Are you using the RPI's serial port to debug?  If so, can you sign on as root?  If you can, does the systemctl command show the bmcweb service is running?  If it is, does bmcweb show any error messages for failed attempts to use Redfish APIs?
>> 
>> - Joseph
>> 
>>> I will post more details later. I can provide config files etc. I am away from my computer for awhile.
>>> How are you building? Are you using an evb config? What tag are you using?
>>> Sent from my iPhone
>>>>> On Jul 24, 2020, at 6:01 AM, khader basha shaik <shaikkhaderbasha601@gmail.com> wrote:
>>>> 
>>>> Hi Joseph,
>>>> Thanks for your response.
>>>> I will be using Raspberrypi3 system.
>>>> Can you please guide what further steps I should take in order to view the /redfish/v1 content in the web(https://xxx.xxx.xxx:8000/redfish/v1).
>> 
>> The default port is 443 (HTTPS) unless you changed it in a recipe. (This is not common.)
>> If you continue to enter "https:" you should not need to specify port.
>> 
>>>> Any pointer on this is really helpful.
>>>> I have gone through the documents the developer docs but could not find anything that points to enabling the redfish stuff in the browser.
>>>> Please correct me if i am wrong
>>>> Thanks & Regards,
>>>> Khader B Shaik
>>>>> On Thu, 23 Jul 2020 at 19:25, Joseph Reynolds <jrey@linux.ibm.com <mailto:jrey@linux.ibm.com>> wrote:
>>>>>  On 7/23/20 5:48 AM, khader basha shaik wrote:
>>>>> Hi Team,
>>>>> I am newbiee to  Openbmc.  I want to view  the redfish/v1
>>>>> (https://10.xxx.xxx.xxx:8000/redfish/v1) contents in the browser
>>>>> .Could you please guide me on what changes i need to so
>>>>  that i view
>>>>> the /redfish/v1/ content in the browser .
>>>>> here are the steps i have followed:
>>>>> 1. Clone OpenBMC project : git clone
>>>>> https://github.com/openbmc/openbmc.git in the server machine .
>>>>> 2. Compile using the following command:
>>>>>   TEMPLATECONF=meta-phosphor/conf  . openbmc-env
>>>>> 3. modify the following files:
>>>>> *  #build vi conf/local.conf  (modify the  line
>>>>  "-MACHINE??=qemuarm"
>>>>>   " to "-MACHINE??=raspberrypi3-64" "
>>>>> * #build vi conf/bblayer.conf (add the following line
>>>>> "/home/khader<username>/openbmc/meta-raspberrypi \"  to the line
>>>>>   above /home/khader<username>/openbmc/metaphosphor \"
>>>>>      4. #build  bitbake obmc-phosphor-image
>>>>> The above steps I have used to build an Openbmc project.
>>>>> Can you help me what further steps should i need to do so that
>>>>  i can
>>>>> view the /redfish/v1/  content in the webbrowser.
>>>>  What BMC system will you use to upload, boot, and run the BMC
>>>>  firmware
>>>>  image?  A QEMU virtual system?
>>>>  Have you seen the developer docs here?
>>>>  https://github.com/openbmc/docs/tree/master/development
>>>>  Good luck,
>>>>  - Joseph
>>>>> Note:- I am compiling the openbmc code in the server machine.
>>>>> Any help /guidelines on this will really help me alot.
>>>>> Appreciate all your help.
>>>>> Thanks & Regards,
>>>>> khader B Shaik

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Query regarding using the Redfish in OpenBMC
  2020-07-24 23:12           ` Mike Jones
  2020-07-25  1:16             ` Mike Jones
@ 2020-07-27 23:07             ` Ed Tanous
  1 sibling, 0 replies; 9+ messages in thread
From: Ed Tanous @ 2020-07-27 23:07 UTC (permalink / raw)
  To: Mike Jones
  Cc: Joseph Reynolds, khader basha shaik, openbmc, openbmcbump-github

[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]

On Fri, Jul 24, 2020 at 4:13 PM Mike Jones <proclivis@gmail.com> wrote:
>
> Some progress. On the hacked build, there were three problems:
>
> 1) bmcweb failed at start
> 2) Wrong port
> 3) Can’t login
>
> The failure was found by compiling it with logging. /var/log/redfish was
missing. Touching the file and executing bmcweb& got it up.

This was a bug.  Pull master up to at least this commit:
https://github.com/openbmc/bmcweb/commit/7f4eb5887f9a52a2832ee9b6e06749575903128a


>
> Some doc said port 8080, but it is 18080.

Ideally you'd be using the bmcweb.socket file for socket activation, which
defaults to 443.  port 18080 only happens when you launch bmcweb by hand.
I’m guessing you copied the binary over by hand and didn’t do a make
install?


>
> DHCP is not working, so I boot to console with hdmi and keyboard and make
a static address with ifconfig. Will deal with later.
>
> Login was because groups were missing. Found where that was in
meta-phosphor and added.

The login groups should be made automatically by the recipe.  If you're
using it, and they're not present, this might be worth a bug getting filed.


>
> Now I have the webui up.

Yee Haw!


>
> On the evb build, it is trying to build images that fail when checking
file size. I think this is because meta-phosphor has IMAGE_FSTYPES += with
some mtb images, and meta-rasberrypi has IMAGE_FSTYPES ?= and I assume +=
wins or mixes. I think if I add IMAGE_FSTYPES = in local.conf, it would
override it and probably work.

This might be related to rpi using ext4 images, not squashfs images.

>
> Waiting for a long rebuild...

Groan.... yep.  Highly recommend a ridiculously overpowered build machine
for yocto builds.

[-- Attachment #2: Type: text/html, Size: 2351 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-07-27 23:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22  8:02 Query regarding using the Redfish in OpenBMC khader basha shaik
2020-07-23 10:48 ` khader basha shaik
2020-07-23 13:55   ` Joseph Reynolds
2020-07-24 11:59     ` khader basha shaik
2020-07-24 13:40       ` Mike
2020-07-24 21:57         ` Joseph Reynolds
2020-07-24 23:12           ` Mike Jones
2020-07-25  1:16             ` Mike Jones
2020-07-27 23:07             ` Ed Tanous

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.