<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-skeleton/pytools, branch master</title>
<subtitle>Talos™ II OpenBMC Skeleton files</subtitle>
<id>https://git.raptorcs.com/git/talos-skeleton/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-skeleton/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/'/>
<updated>2018-02-26T01:02:52+00:00</updated>
<entry>
<title>pytools: Add completion script for obmcutil</title>
<updated>2018-02-26T01:02:52+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2018-02-26T00:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=c182e5ece4a7a4079c935d381ea787390cf0feb5'/>
<id>urn:sha1:c182e5ece4a7a4079c935d381ea787390cf0feb5</id>
<content type='text'>
Change-Id: Ia248f971e2c8a1ff80f1e6947ef0af283d4ec9ba
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>obmcutil: alias status to state</title>
<updated>2018-01-31T03:04:16+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2018-01-31T03:04:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=a30ab9db33bb8d1c208b2b86b8e824c5c70dae54'/>
<id>urn:sha1:a30ab9db33bb8d1c208b2b86b8e824c5c70dae54</id>
<content type='text'>
Save users who assume the machine status is available with 'obmcutil
status' by aliasing status to state.

Change-Id: Icdfa6f62ff6f719386edd892ec80fe29c32087f0
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
</content>
</entry>
<entry>
<title>Spelling fixes</title>
<updated>2017-10-26T01:50:47+00:00</updated>
<author>
<name>Gunnar Mills</name>
<email>gmills@us.ibm.com</email>
</author>
<published>2017-10-26T01:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=aa4c3103125c2ba16c64efea9a6e43cae4217816'/>
<id>urn:sha1:aa4c3103125c2ba16c64efea9a6e43cae4217816</id>
<content type='text'>
Change-Id: Ia4ded0c195204543c3df671ea471610237f5f44b
Signed-off-by: Gunnar Mills &lt;gmills@us.ibm.com&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Add `chassiskill` command</title>
<updated>2017-10-18T15:03:27+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-16T03:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=1be4fabdcb00d17f3b4dc2b563125e661692948d'/>
<id>urn:sha1:1be4fabdcb00d17f3b4dc2b563125e661692948d</id>
<content type='text'>
Nick reported an issue where the BMC became unusable after the host hit
a bug and began "spewing a lot of messages to the console".  Save
ourselves some DBus transactions and immediate execution of systemd
transitions by introducing a `chassiskill` command to directly deassert
the the power-up GPIO ourselves.  This will immediately terminate the
host and free up resources for the BMC to become responsive. As a bonus,
the PGOOD monitoring will then execute to clean up the resulting
inconsistent BMC/Host state for us.

Change-Id: I106a4202b6544b8e78b04938230a4eeee5f132bb
Requested-by: Nicholas Piggin &lt;npiggin@gmail.com&gt;
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Optionally wait for standby before getting objects</title>
<updated>2017-10-17T10:47:45+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-12T04:17:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=cf6a784d4e78ef77630e19cc73955ad60c244ee6'/>
<id>urn:sha1:cf6a784d4e78ef77630e19cc73955ad60c244ee6</id>
<content type='text'>
If the user passes --wait, try to immediately get the object but wait
until we reach standby before trying again if the first attempt fails.

The correct strategy is probably to look for registration of names on
the bus, but this ghetto approach also works.

Change-Id: I71b6f5d4fcf5841510da6f9877726b875b019d51
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Use 'in' test rather than dict.has_key()</title>
<updated>2017-10-17T06:00:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-11T15:07:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=08e149bb8e4637132cc7ba19805178464ad5e164'/>
<id>urn:sha1:08e149bb8e4637132cc7ba19805178464ad5e164</id>
<content type='text'>
Change-Id: I51b4d8a9760e0c73f0c36ff6619a484718db3a4b
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Remove unnecessary parentheses</title>
<updated>2017-10-17T06:00:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-11T15:05:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=81707a1f8a0503d81c6b6c1f6d08bd3dac19f556'/>
<id>urn:sha1:81707a1f8a0503d81c6b6c1f6d08bd3dac19f556</id>
<content type='text'>
Change-Id: I902c6674111a6c1790d08ddf02819dddeede970d
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Implement verbose mode</title>
<updated>2017-10-17T06:00:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-11T15:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=b43f7ed4ed77ed8c0a04551d36e274c24bda8378'/>
<id>urn:sha1:b43f7ed4ed77ed8c0a04551d36e274c24bda8378</id>
<content type='text'>
Verbose output is limited to state change requests at the moment, as
they are the operations that take significant amounts of time. Further,
the verbose output is implemented as following the tail of the journal
until the requested state change either succeeds or fails.

In testing it was observed that the journal output tends to lag the
DBus event that signals the completion of the state transition. As such
the patch adds a tuning parameter defining a further waiting period
beyond the receipt of the completion signal so that the verbose output
looks "reasonable". The default value of the tuning parameter was
roughly chosen to correlate well with the journal output on a
Witherspoon system for the `poweron` command.

Change-Id: I847e2bfeba55d6a3d7d1f7ff1ba1901993c9b505
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Implement blocking behaviour</title>
<updated>2017-10-17T06:00:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-11T14:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=de4ed02da37a8b3319f0c4077d5be4a02f7b2e9c'/>
<id>urn:sha1:de4ed02da37a8b3319f0c4077d5be4a02f7b2e9c</id>
<content type='text'>
The technique to block is to attach a listener for systemd JobRemoved
property change events, change the desired OpenBMC state
management property to trigger the systemd transition, and then run the
gobject dbus mainloop. We terminate the mainloop by invoking quit() in
the callback on the captured mainloop object.

Additionally, the result of the transition (success or failure) is
judged in the callback. We can't obtain the result by returning it, and
as we are using Python 2 we cannot meaningfully mutate captured
variables to expose it. Instead, a variable is created on the callback
function object after it is defined but before the function is invoked,
which is mutated inside the function (which can reference its own
object) when called. The result is retrieved after the mainloop has
terminated and is propagated up the call chain to form the exit status.

Change-Id: Ic19aa604631177abea7580de2357d8c6812ee874
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
<entry>
<title>pytools: obmcutil: Use format string for all-props output</title>
<updated>2017-10-17T06:00:51+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2017-10-11T11:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-skeleton/commit/?id=bba82bd39a614baa1a2bd5d27a9b2b591443945a'/>
<id>urn:sha1:bba82bd39a614baa1a2bd5d27a9b2b591443945a</id>
<content type='text'>
Change-Id: I9d803da8c0ff8862039bb5b7adc07952208820d1
Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
</content>
</entry>
</feed>
