Age | Commit message (Collapse) | Author | Files | Lines |
|
The service was getting called twice, resulting in a removal of the
overlayfs workdir while the overlay was mounted. Solve this by checking
if the /etc overlay is mounted yet before removing the workdir. Need to
add mountpoint to busybox for this.
Resolves openbmc/openbmc#2429
Change-Id: I407a07dcc3f3856af12a7f3a52966fe7c3d756c3
Signed-off-by: Edward A. James <eajames@us.ibm.com>
|
|
This reverts commit 2a284a012d902bfa399bc14309337c3c1fe1a8ff.
Change-Id: I88f1cc9275d9dd1c39fda7e4fe218941fd5ddd42
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
Install elog-gen.py and mako script by default in the
obmc-phosphor-image sdk.
Change-Id: Ibfb94fc4a645bcca66f7b93656edd88a1af5c4f6
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
This commit adds a service file requirement to fstab for mounting
the ubi0:rwfs volume to /var. The required file is
obmc-flash-bmc-reset.service, which, when called, will perform a
BMC factory reset if the corresponding environment variable is set.
This functionality was moved out of obmc-flash-bmc-ubirw.service because
the factory reset is not the only procedure that calls that service.
Moving this function to a new service avoids unexpected behaviors.
Resolves openbmc/openbmc#2326
Change-Id: If2a9c650f315cff23040194ec87f16c05622c85e
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
Reduce number of service restarts and increase wait
time between restarts.
- Change the StartLimitBurst to 3
Five just seems excessive for our services in openbmc. In all fail
scenarios seen so far (other then with phosphor-hwmon), either
restarting once does the job or restarting all 5 times does not help
and we just end up hitting the 5 limit anyway.
- Change the RestartSec from 100ms to 1s.
When a service hits a failure, our new debug collection service kicks
in. When a core file is involved, it's been found that generating 5 core
files within ~500ms puts a huge strain on the BMC. Also, if the bmc is
going to get a fix on a restart of a service, the more time the better
(think retries on device driver scenarios).
Change-Id: I0e5bb3f32022cdb72d00f1a861a69653ef937cf1
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
This reverts commit 3b900a42acf55606bf28d7e83cabe1a545e9178d.
Change-Id: Ia19c92e6724068e84989f62d1673c9effb287f83
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
Need /home to be writable and persistent.
Resolves openbmc/openbmc#2250
Change-Id: I1b3477945b3364a9a5053fd085ff8fd591ad6949
Signed-off-by: Eddie James <eajames@us.ibm.com>
|
|
systemd-tmpfiles-setup.service tries to create a temporary
dir /srv but due to the read-only root file system it was
failing.
Resolves openbmc/openbmc#2231
Change-Id: I429b16a7736959583f24bf7fb4c6766cda24130a
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
/media will be a tmpfs.
This is done so that /media is writeable in a
read-only filesystem to be able to mount the
ubi volumes for the systems that implement the
software interfaces.
Resolves openbmc/openbmc#2072
Change-Id: Id6163fe43843f9d17ef49760dee1caee7cc17ceb
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
|
|
Append base-files to add new fstab and depend on mount-overlay recipe.
Add systemd services to help mounting overlay fs.
Resolves openbmc/openbmc#2134
Change-Id: Ib56fcdde9f7364fca56a08e1ce72e7cafaac35b0
Signed-off-by: Edward A. James <eajames@us.ibm.com>
|
|
Resolves openbmc/openbmc#1938
This reverts commit 45af9a22aabf38474a00698f511e334c14d84c76.
Change-Id: I482d8b14ce1cfcb9022973a9412adff46f458f5f
Signed-off-by: Charles Paul Hofer <Charles.Hofer@ibm.com>
|
|
Package includes systemd tools for storing and retrieving
coredumps.
Change-Id: I7d71b9a0f055213c6293c3cbd1af26a662e87e2a
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
|
|
Currently building causes a warning about a postinstall hook that is
unable to run, due to needing qemu, which causes the postinstall hook to
be delayed until first boot. When moving to a read-only-rootfs, we
cannot have delayed postinstall actions (otherwise bitbake fails).
The glib package does not actually have any GIO modules that need the
postinstall action executed for, so remove it entirely via bbappend.
This is not appropriate to do upstream for the glib package because,
depending on glib options, this may become required. We only use glib
for the python dbus libraries, so we are unlikely to ever be affected
by this. (Even if we are it just causes a small performance hit on
process start-up due to a gio cache not being populated.)
Change-Id: I217d4f21be3e2af20895b51267830f4fda376d2c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
The Synchronize method would be called when an error log is
committed to get all the entries flushed into the journal.
These patches have been submitted upstream and can be removed
once the changes are integrated into systemd.
Change-Id: I89059d438870803b41bafdb4de3fb11eba3c5fd2
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
The state management code on the BMC is designed to
utilize systemd targets as much as possible. The host
reboot was always the odd duck that had some special
code written to support it. This special code would
basically issue a power off, look for it to complete
and then issue a power on. This is very error prone
code and has resulted in a few issues.
Moving to a single systemd target (the new reboot target)
defined here will allow the host reboots to occur
solely through a single systemd target now.
openbmc/openbmc#2032 is one of those bugs being
addressed with this change.
Change-Id: If33454aa4f15580e45f888a9b1602dec24a46fca
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Put os-release in the sysroot so it can be accessed by other
recipes.
Change-Id: Id97d44bcec0272d6b7dc29831a056e419579adc9
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Update the os-release recipe such that it is not rebuilt unless
git reports something different.
To do this both the recipe and sstate caches must be disabled
but the impact with such a small recipe is low enough to be
acceptable.
Resolves: openbmc/openbmc#124
Change-Id: I53343410d973ab4a60d9437704c34dbec7120ede
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
If the chassis poweroff target is running at the same
time as the host stop target, ensure the host does
not consider itself complete until the chassis
is fully off. This ensures host reboots will
wait for the chassis to be fully off before starting
the next boot.
Resolves openbmc/openbmc#2026
Change-Id: Iefcbb6435cc81393d0591cf4c7bb4eceeef906f0
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
With the recent refactor to the shutdown targets,
need to ensure the obmc-chassis-poweroff target is
called if the host-shutdown times out so that
the system properly shuts down
Resolves openbmc/openbmc#2027
Change-Id: I8b1374611776a4027beaa7646862dc4be51df838
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Use standard python four space indent.
Change-Id: I878b7b711a6bebe61d328d54afa41d1915aa2955
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
On systems where kernel is not configured with namespace support
then don't return error during setting up network namespace.
Rationale to not enable the kernel with namespace support
as it brings lot of unnecessary code.
Resolves openbmc/openbmc#1949
Change-Id: I3b52a8c61b9bd3e3fff02cfab998c3746b8b72c6
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
|
This target will allow the user to do an immediate
power off of the system without waiting for the host.
It can also be used to cause an immedate power off
if the host is hung during the normal power off
process.
The chassis poweroff target will now require the
host off target to ensure everything is properly
stopped when the chassis is powered off.
Change-Id: I8430d895ae5498d2e451aaf07480b0cf9550e8f2
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
It is possible the watchdog device is configured to do
something other than reset the system on a watchdog timeout.
If this occurs, and the busybox watchdog is started back up again,
the watchdog driver won't actually start the watchdog hardware
unless the watchdog device has been properly closed first.
So, on startup, write the magic character to the watchdog
device to properly close it before running.
Change-Id: I61521d337a958c9dc8f9a6786a65aee3e81994ac
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
Fixes openbmc/openbmc#1692
Change-Id: I84fffbaa453d918bcbf7bcb8100109ba8ba1be91
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
|
|
When this target is started, the fan watchdog will
take over fan speed control and move fans to full speed.
This will be done by having other services conflict with
this target.
Change-Id: I00c00a835cc2f7087baa1649d582287628b01401
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
This target gets executed when the host watchdog times out.
Change-Id: Id6711a1b7eab784189daf46bc225398b5cc1790f
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
With recent changes done to path of the error yaml files
in dbus-interfaces build is broken.
Resolves openbmc/openbmc#1780
Change-Id: Ia296add2617433b05931a343046c2d059c20c4ff
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
Enable the watchdog application
Change-Id: I83829b7e4270359a4dcf2a7aad92035f783b9a6c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
As a part of the soft power off (host-shutdown) ensure
that the host-stop target always gets called. Updated the
involved services to ensure they are run in the correct order.
Change-Id: I7e9113631786f0d0cb0f89b94c4b97fdc0328e7b
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
When GPIO monitor sees that a particular line is asserted,
it calls into one of the configured systemd targets and this
is one such. For now, the target just has host-quiesce and
will be enhanced to contain a service that logs an error.
Change-Id: I09afea5fcab3efce7bbfa5124af9b8cb2e0594bf
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
Add a dependency to the power on target so that it waits to
start until the ActivationBlocksTransition interface is not
present on any of the Software subtrees, which would indicate
that a code update is in progress.
Closes openbmc/openbmc#1344
Change-Id: I926d209ce4d3106e09e35a35c1e9cfde1ec2f613
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
This target is started after fans have had time to
ramp up to full speed, and will start the fan monitor
and control services.
Change-Id: I99c1125f038071f56612859d976d5fba3fe9ffd6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
The obmc-host-stop@.target will always be called on host shutdowns
but the inverse is not always true. This commit ensures everything
conflicts with the target that is always called in this path.
Change-Id: Ic680ef96b1d6e2aec844a9c619928b7014fe7450
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
The target change is:
obmc-stop-host -> obmc-host-shutdown
obmc-quiesce-host -> obmc-host-quiesce
Updated skeleton-rev.bbclass to have
correct commit id.
Change-Id: Ida47f8709622d98129c0fe00c86bad77d8d76dfb
Signed-off-by: Josh D. King <jdking@us.ibm.com>
|
|
The target change is:
obmc-chassis-stop -> obmc-host-stop
obmc-chassis-start -> obmc-host-start
Removed CHASSIS_FMT and CHASSIS_LINK_FMT
because they are no longer needed.
CHASSIS_POWER_FMT_2 did not change because
its used for obmc-chassis-reset.
Deleted files obmc-chassis-start@.target and
obmc-chassis-stop@.target because they are
no longer needed. I moved over their contents
to obmc-host-start and obmc-host-stop.
Updated phosphor-state-manager.bb and
skeleton-rev.bbclass to have correct commit
id.
Change-Id: I26cba4153038f39d60e8d450a05969a216848abe
Signed-off-by: Josh D. King <jdking@us.ibm.com>
|
|
The target change is:
obmc-power-chassis-on -> obmc-chassis-poweron
obmc-power-chassis-off -> obmc-chassis-poweroff
Also updated phosphor-state-manager.bb to now
have correct commit id.
Change-Id: I15aae803e5f0d44d4e6a137278f93e91f848b2c0
Signed-off-by: Josh D. King <jdking@us.ibm.com>
|
|
From googlttest 1.8, gmock becomes part of gtest, and its recipe is
dropped from upstream.
Remove it from SDK, gtest will provide both gtest and gmock libraries.
Change-Id: Iea14e81bda08e97dbeb9eddee8991f22cb8478be
Signed-off-by: Lei YU <mine260309@gmail.com>
|
|
The point of this new target is to support getting
the systemd targets which boot the host into the
running state (without actually running the associated
services) when the BMC is rebooted and the host is
up and running. This will ensure that systemd
and its targets match with the state of the system
without affecting the running host.
This commit will run the new target but nothing will
happen yet due to the discovery service being a noop.
Once the application is in for the service to call,
it will be added to the service which will enable this
new host running with bmc reset support.
Change-Id: Ia29e53de58ea7530941341b0e515e4d8fa49be6c
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Makefile.
Note: This is part of the change required to
upgrade systemd to version 232.
Resolves openbmc/openbmc#932
Change-Id: Ia529e301c63938a68e1acd3eb74242c2dd92ba3d
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
Start fsi-disable.service to unbind the FSI Driver.
Start fsi-enable.service to bind it again and rescan.
Also added a fsi-bind@.service so we can ensure the
driver is bound each power on.
Change-Id: I5fa62b44994aea3bb645e755187f29e720bf3bce
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
Run the obmc-chassis-reset@.target:
- Check if pgood is on
- If it is, create the file in /run/openbmc/chassis@%i-on and
- Run the systemctl command to start the chassis power on target
Resolves openbmc/openbmc#1094
Change-Id: I93f94fc1b75e35fd353387d0bed5569e07615171
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Once enabled these targets and services will be run after
a BMC reboot to check if pgood is on and if so, to create
a file which will be used by other power on services
to know whether they need to run or not.
Change-Id: Id2e75f9bce20f362d2f57a79e91ece1eaf7d7c45
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Change-Id: I9bdbacc7fb763cfcf4c056911152513c7c872299
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
When using --git-dir, git no longer automatically determines the
working tree and thus always assumes the tree is dirty unless the
--work-tree option is also passed.
Fixes openbmc/openbmc#820.
Change-Id: I3af6941e0562bf665290e57c2b7a80459385fefa
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Change-Id: I4792e4037ffbace4af224cd1bfe0aef63d11a099
Signed-off-by: Lei YU <mine260309@gmail.com>
|
|
When services associated with a target fail, the
target should go to the quiesce state for error
gathering and policy checks on automated recovery.
Use the OnFailureJobMode=flush to ensure all queued
services are cancelled when entering quiesce.
Change-Id: I4023a9c842500bb57013196aefbded533131ef00
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Enable native and nativesdk classes for phosphor-dbus-interfaces.
Install nativesdk-phosphor-dbus-interfaces by default in the
obmc-phosphor-image sdk.
Change-Id: Iaf134734ada106bb69254dfffa07c2af2641d9f8
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
This will be the target that all other critical targets go to when
a service within it fails. Automated recovery and stay-in-fail-state
logic will be built on top of entry into this new target.
Change-Id: Ibdf2e823cf372916c61ef5a8375c4faf8a928119
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Change-Id: I5e4a0da68bfcebb12f3ac4161e63c145f9f73b0a
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|