<feed xmlns='http://www.w3.org/2005/Atom'>
<title>phosphor-state-manager, branch master</title>
<subtitle>OpenBMC Phosphor state management daemon sources</subtitle>
<id>https://git.raptorcs.com/git/phosphor-state-manager/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/phosphor-state-manager/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/'/>
<updated>2019-04-10T19:29:16+00:00</updated>
<entry>
<title>Handle mapper introspect race condition</title>
<updated>2019-04-10T19:29:16+00:00</updated>
<author>
<name>Andrew Geissler</name>
<email>geissonator@yahoo.com</email>
</author>
<published>2019-04-09T21:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=624161cd2e922e790a2aa855c595b9074dc766c2'/>
<id>urn:sha1:624161cd2e922e790a2aa855c595b9074dc766c2</id>
<content type='text'>
There is a pervasive issue within OpenBMC where a dbus service may be
started and on the bus, but before mapper can introspect it, a dependent
service queries mapper for that objects information.

In most situations a service writer can avoid this by using the
Wants=mapper-wait@-xyz* syntax. This does not work however if two or
more dbus services implement the same dbus object path.

The host_check_main application is one service that is hitting this
issue. It requires the /xyz/openbmc_project/control/host0 object path
which is implemented by two dbus services.

The solution here is to first try mapper, but if that fails to use a
hard coded dbus service name. The value of mapper for this type of
function is up for debate within the community but for now, get a
compromise in that first tries mapper, and if not available tries the hard
coded well-known service name.

Tested:
Verified the following within QEMU:
- Good path works as expected, mapper response used
- GetObject fails for mapper call, successfully used hard coded path
- Service not available on dbus, verified exception reported

Change-Id: I14dfaf2ce43392a19a2a5a3131534f55c6eb6f4a
Signed-off-by: Andrew Geissler &lt;geissonator@yahoo.com&gt;
</content>
</entry>
<entry>
<title>build: install into bin instead of sbin</title>
<updated>2019-04-06T14:50:30+00:00</updated>
<author>
<name>Patrick Venture</name>
<email>venture@google.com</email>
</author>
<published>2019-03-28T18:25:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=19096267d41544379b403dff1283f0cb925990f1'/>
<id>urn:sha1:19096267d41544379b403dff1283f0cb925990f1</id>
<content type='text'>
Installs into bin instead of sbin per guidelines.

Signed-off-by: Patrick Venture &lt;venture@google.com&gt;
Change-Id: I53614a64fa37f2b3bc2841794bf5aa8c137c31df
</content>
</entry>
<entry>
<title>obmcutil: add more info to state subcommand</title>
<updated>2019-04-03T13:29:57+00:00</updated>
<author>
<name>Alexander Filippov</name>
<email>a.filippov@yadro.com</email>
</author>
<published>2019-04-03T13:29:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=86cffd9cb226b33126cf367cda676e0edcacdf1e'/>
<id>urn:sha1:86cffd9cb226b33126cf367cda676e0edcacdf1e</id>
<content type='text'>
Adds new subcommand to request the OS state.
Adds bootprogress and osstate to the output of state/status subcommands.

Tested: The output of `obmcutil state` must look like:
```
CurrentBMCState     : xyz.openbmc_project.State.BMC.BMCState.Ready
CurrentPowerState   : xyz.openbmc_project.State.Chassis.PowerState.Off
CurrentHostState    : xyz.openbmc_project.State.Host.HostState.Off
BootProgress        : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified
OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive
```

Change-Id: I59937986317fe2ac487d355a627de1070ba813f8
Signed-off-by: Alexander Filippov &lt;a.filippov@yadro.com&gt;
</content>
</entry>
<entry>
<title>build: pkg anti-pattern: use defaults</title>
<updated>2019-02-19T15:09:44+00:00</updated>
<author>
<name>Patrick Venture</name>
<email>venture@google.com</email>
</author>
<published>2019-02-13T23:49:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=64d60978c586435e76211faa4e435368a9f84757'/>
<id>urn:sha1:64d60978c586435e76211faa4e435368a9f84757</id>
<content type='text'>
Use the defaults in the pkg check where the default error message is
sufficient to identify which package is missing.

Change-Id: I21df28b0ad0a337e3af746b7cfb06ae9cc8f6087
Signed-off-by: Patrick Venture &lt;venture@google.com&gt;
</content>
</entry>
<entry>
<title>obmcutil: Add chassiskill option</title>
<updated>2019-02-14T19:20:57+00:00</updated>
<author>
<name>Anthony Wilson</name>
<email>wilsonan@us.ibm.com</email>
</author>
<published>2018-10-23T06:18:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=189cf2486e4f5273ec26d37d83302d4be9fd7539'/>
<id>urn:sha1:189cf2486e4f5273ec26d37d83302d4be9fd7539</id>
<content type='text'>
Change-Id: I9b8289e433bfcf918d430c012ec8879b58e523b0
Signed-off-by: Anthony Wilson &lt;wilsonan@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>obmcutil: Add to 'make install' list</title>
<updated>2019-02-07T16:24:00+00:00</updated>
<author>
<name>Anthony Wilson</name>
<email>wilsonan@us.ibm.com</email>
</author>
<published>2019-02-04T08:47:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=dc30523034bbea75e7d032a22e998a22866db643'/>
<id>urn:sha1:dc30523034bbea75e7d032a22e998a22866db643</id>
<content type='text'>
Testing: Verified obmc-phosphor-image build installs it correctly
  in  obmc-phosphor-image/1.0-r0/rootfs/usr/sbin/obmcutil

Change-Id: I386e726a653496ccd77549fa63603ddfb647bd78
Signed-off-by: Anthony Wilson &lt;wilsonan@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>Update error handling on sdbusplus calls</title>
<updated>2018-11-26T21:12:57+00:00</updated>
<author>
<name>Anthony Wilson</name>
<email>wilsonan@us.ibm.com</email>
</author>
<published>2018-10-26T02:56:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=32c532ea9bcddcab30f4fff30e6938211fdf584d'/>
<id>urn:sha1:32c532ea9bcddcab30f4fff30e6938211fdf584d</id>
<content type='text'>
Error handling was added to the bus.call() routine,
which effectively deprecated the is_method_error()
check. Errors should now be handled in a try/catch
block.

Change-Id: I1dcbbaa91db443445ef6bb2f616bd37f06731d36
Signed-off-by: Anthony Wilson &lt;wilsonan@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>std::variant: Fix use of incompatible api</title>
<updated>2018-11-13T01:27:25+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-11-13T01:19:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=7a0689a91af664c8485df760bedabba0aef84725'/>
<id>urn:sha1:7a0689a91af664c8485df760bedabba0aef84725</id>
<content type='text'>
Refactors any uses of the mapbox variant specific api and converts them
to an api compatible with std::variant and mapbox variant.

Tested:
    Built and run through the unit test suite.

Change-Id: Ie9b83fd638c495859fe98b5de86d9d3c7c1a27af
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>Include missing &lt;cassert&gt;</title>
<updated>2018-11-13T01:26:35+00:00</updated>
<author>
<name>William A. Kennington III</name>
<email>wak@google.com</email>
</author>
<published>2018-11-13T01:25:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=436f3b88152393c33b579c20d5ba0de28ff0f855'/>
<id>urn:sha1:436f3b88152393c33b579c20d5ba0de28ff0f855</id>
<content type='text'>
We are currently transitively depending on sdbusplus to provide the
definition of assert(). Add the necessary include we should have
requested.

Change-Id: I9e348edc851fc922916942f522748f0bc59d5399
Signed-off-by: William A. Kennington III &lt;wak@google.com&gt;
</content>
</entry>
<entry>
<title>obmcutil: Add wait/timeout option</title>
<updated>2018-10-25T13:47:01+00:00</updated>
<author>
<name>Anthony Wilson</name>
<email>wilsonan@us.ibm.com</email>
</author>
<published>2018-09-20T20:19:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-state-manager/commit/?id=acf54d089bbd4d6f3ac790229ee7008d96ed760b'/>
<id>urn:sha1:acf54d089bbd4d6f3ac790229ee7008d96ed760b</id>
<content type='text'>
The option to block/wait for a state transition to complete has
been added. The transition is expected to occur within a set
timeout window and will terminate if the desired state has not
been observed within that window. It may be possible for the
state transition to complete outside this window, but it is
assumed to be a failure.

Change-Id: Icb9ff29f51b8712469fd9957b7e4b287704cb314
Signed-off-by: Anthony Wilson &lt;wilsonan@us.ibm.com&gt;
</content>
</entry>
</feed>
