summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sensors: Remove sensor managerHEADmasterAdriana Kobylak2018-08-211-52/+0
| | | | | | | | | | | | | | This sensor manager was in charge of creating the /org/openbmc/sensors object and initializing them, but this path is now deprecated and the sensors have moved to other paths specified by the ipmi sensor config.yaml file in the openbmc/openbmc repo. This sensor manager can now be removed. Tested: Powered on a Witherspoon to the Host OS without ipmi giving get/set sensor errors. Change-Id: Id9f7626d84d49c62cdb48b5d75f4247ed5813b4c Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove PowerSupplyDeratingSensorAdriana Kobylak2018-08-211-11/+0
| | | | | | | | | | | | The PowerSupplyDerating Sensor is being added to the ipmi sensor.yaml file since the /org/openbmc/sensors path is being deprecated. Remove this sensor from the org path. Tested: Powered on a Witherspoon to the Host OS without sensor errors. Change-Id: Ie6c4a0b649c374c323b87092895d319a98d7cede Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove PowerSupplyRedundancySensorAdriana Kobylak2018-08-211-46/+0
| | | | | | | | | | | | The PowerSupplyRedundancy Sensor is being added to the ipmi sensor.yaml file since the /org/openbmc/sensors path is being deprecated. Remove this sensor from the org path. Tested: Powered on a Witherspoon to the Host OS without sensor errors. Change-Id: Ie5ad41e7723de67c665576d6a69210df82710869 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove TurboAllowedSensorAdriana Kobylak2018-08-201-11/+0
| | | | | | | | | | | | The TurboAllowed sensor is already mapped to /xyz/openbmc_project/control/host0/turbo_allowed (Reference: the phosphor-ipmi-sensor-inventory-mrw-config/config.yaml file). Remove it from the deprecated /org/openbmc/sensors path. Tested: Powered on a Witherspoon to the Host OS without errors. Change-Id: Ic1df697756721305ab00b630e74f33160e24e522 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove BootCountSensorAdriana Kobylak2018-08-081-15/+0
| | | | | | | | | | | | | | The BootCountSensor has moved from the /org/openbmc/sensors path to /xyz/openbmc_project/state/host0. Remove it as it's deprecated. Tested: Verified that the "AttemptsLeft" host property where the BootSensor value now resides had the default value of 3 and was decremented when the Host didn't boot. Then on a successful boot this value was set back to 3. Change-Id: I87e2707abe7b052d4363bc583233780112200e4f Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove OperatingSystemStatusSensorAdriana Kobylak2018-08-081-12/+0
| | | | | | | | | | | | The OperatingSystemStatusSensor has moved from the /org/openbmc/sensors path to /xyz/openbmc_project/state/host0 and its value in the org path is no longer being updated. Remove this unused sensor class. Tested: Powered on a Witherspoon to the Host OS. Change-Id: I9cb50d999e475583fbdcf0443da73fe6b807f7bd Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sensors: Remove BootProgressSensorAdriana Kobylak2018-08-071-30/+0
| | | | | | | | | | | | | | The boot progress sensor has moved from the /org/openbmc/sensors path to /xyz/openbmc_project/state/host0. (Reference: the phosphor-ipmi-sensor-inventory%/config.yaml files under the openbmc/openbmc repository). Remove the deprecated sensor class. Tested: Verified Witherspoon powered on to the Host OS. Change-Id: I46ae2a2c6b228759bcde77773f451e201bc40732 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add MAINTAINERS fileAndrew Jeffery2018-05-191-0/+46
| | | | | Change-Id: I19e72796b1a84e1a5435ea63051c48e9488fc698 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pathtree: Make dataitems() use the cache dict under restricted argsAndrew Jeffery2018-05-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This achieves a 100x improvement in iteration time when the subtree rooted at the root of the full tree and there is no depth limit (i.e. the caller has requested all "populated" items). Whilst it sounds like a restricted case, it is a very common query by way of phosphor-objmgr's obmc/mapper/server.py:ObjectMapper.process_old_owner() Note this is a quasi API break, as some keys that were previously not present in the results may now appear: Explicitly storing 'None' into the data structure will have the key with 'None' appear in the full-tree dataitems() case. However, given this was filtered previously, no existing callers should be storing 'None' into the tree as they would not have been able to retrieve it via dataitems(). Before: $ python -m obmc.utils.testpathtree ... Iteration tests: depth=1, width=1, n=1000: 0.135853052139 depth=1, width=2, n=1000: 0.203811883926 depth=1, width=3, n=1000: 0.26814198494 depth=1, width=4, n=1000: 0.333888053894 depth=2, width=1, n=1000: 0.193987131119 depth=2, width=2, n=1000: 0.264018058777 depth=2, width=3, n=1000: 0.327262878418 depth=2, width=4, n=1000: 0.38805603981 depth=3, width=1, n=1000: 0.253651857376 depth=3, width=2, n=1000: 0.317117929459 depth=3, width=3, n=1000: 0.385557889938 depth=3, width=4, n=1000: 0.452265024185 depth=4, width=1, n=1000: 0.327889919281 depth=4, width=2, n=1000: 0.390358924866 depth=4, width=3, n=1000: 0.459683895111 depth=4, width=4, n=1000: 0.530153989792 After: $ python -m obmc.utils.testpathtree ... Iteration tests: depth=1, width=1, n=1000: 0.0012412071228 depth=1, width=2, n=1000: 0.00455403327942 depth=1, width=3, n=1000: 0.00307989120483 depth=1, width=4, n=1000: 0.00356507301331 depth=2, width=1, n=1000: 0.00118088722229 depth=2, width=2, n=1000: 0.00169396400452 depth=2, width=3, n=1000: 0.00234699249268 depth=2, width=4, n=1000: 0.00300288200378 depth=3, width=1, n=1000: 0.00100708007812 depth=3, width=2, n=1000: 0.00161695480347 depth=3, width=3, n=1000: 0.00234794616699 depth=3, width=4, n=1000: 0.00315403938293 depth=4, width=1, n=1000: 0.00101804733276 depth=4, width=2, n=1000: 0.00204801559448 depth=4, width=3, n=1000: 0.00281095504761 depth=4, width=4, n=1000: 0.0070219039917 Change-Id: Ice3afd12e2b112227735f0f1dedb6a8ea594740c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pathtree: Allow get() on subtreesAndrew Jeffery2018-05-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running recent PathTree modifications on a BMC we can see failures in the log such as "Failed to invoke ObjectMapper method" from the phosphor-fru-fault-monitor. This can be triggered via the openbmc-test-automation suite, for example with the following command $ robot -v OPENBMC_HOST:w5.aus.stglabs.ibm.com --include \ Create_Test_Error_Callout_And_Verify extended/test_association.robot Capturing the DBus traffic across this test case (`busctl capture > dbus.pcap`) and analysing it with Wireshark showed the following method invocation: ``` 0000 6c 01 00 01 53 00 00 00 16 00 00 00 c6 00 00 00 l...S........... 0010 01 01 6f 00 22 00 00 00 2f 78 79 7a 2f 6f 70 65 ..o.".../xyz/ope 0020 6e 62 6d 63 5f 70 72 6f 6a 65 63 74 2f 6f 62 6a nbmc_project/obj 0030 65 63 74 5f 6d 61 70 70 65 72 00 00 00 00 00 00 ect_mapper...... 0040 03 01 73 00 09 00 00 00 47 65 74 4f 62 6a 65 63 ..s.....GetObjec 0050 74 00 00 00 00 00 00 00 02 01 73 00 20 00 00 00 t.........s. ... 0060 78 79 7a 2e 6f 70 65 6e 62 6d 63 5f 70 72 6f 6a xyz.openbmc_proj 0070 65 63 74 2e 4f 62 6a 65 63 74 4d 61 70 70 65 72 ect.ObjectMapper 0080 00 00 00 00 00 00 00 00 06 01 73 00 20 00 00 00 ..........s. ... 0090 78 79 7a 2e 6f 70 65 6e 62 6d 63 5f 70 72 6f 6a xyz.openbmc_proj 00a0 65 63 74 2e 4f 62 6a 65 63 74 4d 61 70 70 65 72 ect.ObjectMapper 00b0 00 00 00 00 00 00 00 00 08 01 67 00 03 73 61 73 ..........g..sas 00c0 00 00 00 00 00 00 00 00 07 01 73 00 05 00 00 00 ..........s..... 00d0 3a 31 2e 35 37 00 00 00 20 00 00 00 2f 78 79 7a :1.57... .../xyz 00e0 2f 6f 70 65 6e 62 6d 63 5f 70 72 6f 6a 65 63 74 /openbmc_project 00f0 2f 6c 65 64 2f 67 72 6f 75 70 73 2f 00 00 00 00 /led/groups/.... 0100 27 00 00 00 22 00 00 00 6f 72 67 2e 66 72 65 65 '..."...org.free 0110 64 65 73 6b 74 6f 70 2e 44 42 75 73 2e 4f 62 6a desktop.DBus.Obj 0120 65 63 74 4d 61 6e 61 67 65 72 00 ectManager. ``` and the response ``` 0000 6c 03 01 01 3f 00 00 00 9d 08 00 00 5e 00 00 00 l...?.......^... 0010 06 01 73 00 05 00 00 00 3a 31 2e 35 37 00 00 00 ..s.....:1.57... 0020 04 01 73 00 27 00 00 00 6f 72 67 2e 66 72 65 65 ..s.'...org.free 0030 64 65 73 6b 74 6f 70 2e 44 42 75 73 2e 45 72 72 desktop.DBus.Err 0040 6f 72 2e 46 69 6c 65 4e 6f 74 46 6f 75 6e 64 00 or.FileNotFound. 0050 05 01 75 00 16 00 00 00 08 01 67 00 01 73 00 00 ..u.......g..s.. 0060 07 01 73 00 05 00 00 00 3a 31 2e 31 35 00 00 00 ..s.....:1.15... 0070 3a 00 00 00 70 61 74 68 20 6f 72 20 6f 62 6a 65 :...path or obje 0080 63 74 20 6e 6f 74 20 66 6f 75 6e 64 3a 20 2f 78 ct not found: /x 0090 79 7a 2f 6f 70 65 6e 62 6d 63 5f 70 72 6f 6a 65 yz/openbmc_proje 00a0 63 74 2f 6c 65 64 2f 67 72 6f 75 70 73 2f 00 ct/led/groups/. ``` These packets translate to the following `busctl` invocation and response: ``` root@witherspoon:~# busctl call \ xyz.openbmc_project.ObjectMapper \ /xyz/openbmc_project/object_mapper \ xyz.openbmc_project.ObjectMapper \ GetObject sas \ /xyz/openbmc_project/led/groups/ \ 1 \ org.freedesktop.Dbus.ObjectManager path or object not found: /xyz/openbmc_project/led/groups/ root@witherspoon:~# ``` From `busctl tree` we can see that the objects do actually appear on the bus: root@witherspoon:~# busctl tree ... Service xyz.openbmc_project.LED.GroupManager: └─/xyz └─/xyz/openbmc_project └─/xyz/openbmc_project/led └─/xyz/openbmc_project/led/groups ├─/xyz/openbmc_project/led/groups/bmc_booted ├─/xyz/openbmc_project/led/groups/bmc_fault ├─/xyz/openbmc_project/led/groups/boxelder_fault ├─/xyz/openbmc_project/led/groups/core0_fault ├─/xyz/openbmc_project/led/groups/core10_fault ... ``` However, the /xyz/openbmc_project/led/groups/ path represents a subtree root, not a leaf element. I didn't realise this was a supported use-case, and over-aggressively removed support for it in the recent patch adding the flat dict cache. Add in a fallback to iterating the PathTree datastructure when we take a cache miss. Change-Id: I658c3fdd6b87be9d814c59a654e63ec5bb83e2bd Fixes: 52aeb314c0eb ("pathtree: Cache keys in a flat dict for fast lookup") Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* testpathtree: Add dataitems() stress testAndrew Jeffery2018-05-141-0/+23
| | | | | Change-Id: I7493a8d2d9df6123a3d80f17b2ba268608997066 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* pathtree: Cache keys in a flat dict for fast lookupAndrew Jeffery2018-05-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This knocks about a second off of the depth stress tests: $ python -m obmc.utils.testpathtree Depth tests: 1: 5.18097305298 2: 6.18765211105 3: 7.3427259922 4: 8.33903598785 5: 9.55236506462 6: 10.7165560722 7: 12.1563079357 8: 13.3570129871 9: 14.7827298641 10: 16.0967490673 Width tests: 1: 1.20649981499 2: 1.20889282227 4: 1.20902085304 8: 1.22063994408 16: 1.22446990013 32: 1.21649098396 64: 1.21024799347 128: 1.21360588074 256: 1.22187900543 512: 1.23233604431 1024: 1.21607708931 2048: 1.21069407463 4096: 1.22389698029 8192: 1.20828580856 16384: 1.21290493011 32768: 1.21552395821 65536: 1.23201704025 131072: 1.21459794044 262144: 1.24190402031 524288: 1.21342992783 1048576: 1.21248602867 However, we get just over a 300% improvement in the host reboot scenario, which is captured by some separate tools used to analyse the PathTree's performance issues: $ # Before $ ./replay.py -n 1000 ptinit.log ptreboot.log deep copy: 1000 iterations took 3.0744523939938517s ops script: 1000 iterations took 10.03650910500437s net: 1000 iterations took 6.9620567110105185s $ # After $ ./replay.py -n 1000 ptinit.log ptreboot.log deep copy: 1000 iterations took 6.784729664999759s ops script: 1000 iterations took 9.0453162470003s net: 1000 iterations took 2.260586582000542s Change-Id: I6826b99950fa1561d292908c4ffff1137ecaa1bc Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* testpathtree: Add stress testsAndrew Jeffery2018-05-141-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indicative performance on a lightly loaded 3rd Gen Lenovo X1 Carbon: $ # Timing 1,000,000 executions of the test case, time units are seconds $ python -m obmc.utils.testpathtree Depth tests: 1: 6.01530885696 2: 7.11315083504 3: 8.41325497627 4: 9.51180887222 5: 10.7866010666 6: 12.0375499725 7: 13.4880149364 8: 14.7702541351 9: 16.3227319717 10: 17.6581590176 Width tests: 1: 1.19656515121 2: 1.20851492882 4: 1.2031879425 8: 1.19995284081 16: 1.21298193932 32: 1.20965600014 64: 1.20766687393 128: 1.21984100342 256: 1.21412611008 512: 1.21589684486 1024: 1.2073469162 2048: 1.2244079113 4096: 1.21275901794 8192: 1.22486519814 16384: 1.21715903282 32768: 1.21435189247 65536: 1.2201769352 131072: 1.21944999695 262144: 1.21434497833 524288: 1.20947313309 1048576: 1.21527695656 Change-Id: I05aa3fb59ddc2510e22e22a8802e166e2e801bab Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* utils: Add characterisation tests for PathTreeAndrew Jeffery2018-05-142-4/+315
| | | | | Change-Id: I1ad4832779e85a54a75b3551a8beeba429679e1c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* utils: Remove ListMatchBrad Bishop2018-04-041-8/+0
| | | | | | | | This is a pointless class given python lambdas. It was also broken with aea38c65. Drop. Change-Id: Ib269fee1b09cd04defe6ec98c2f5dc4118d5425e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Enable pycodestyleBrad Bishop2018-03-295-20/+24
| | | | | | | Apply fix-ups and run pycodestyle during CI testing. Change-Id: I1005495b11e228abdc8d40a51dbf81c4a6e6c92c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Port to python 3CamVan Nguyen2018-03-121-14/+41
| | | | | | | | | | Port code to python 3 yet remain backward compatible to python 2. This port is in preparation for yocto 2.4 upgrade. Resolves openbmc/openbmc#2920 Change-Id: Ie06d206a3de3de2ea636b043c099a0185b32ce53 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Port to python 3CamVan Nguyen2018-03-124-16/+21
| | | | | | | | Port code to python 3 yet remain backward compatible to python 2. This port is in preparation for yocto 2.4 upgrade. Change-Id: I564824b00c106a2c7ebd2f4a9607cd01eabf1322 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* witherspoon: correct power supply derating valueDeepak Kodihalli2018-02-231-1/+1
| | | | | | | The derating factor should be 90%. Change-Id: Id67adc69f1ecd3cfb3ea083e56bb2486644d549a Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Point PowerSupplyRedundancySensor to new interfaceGunnar Mills2018-02-131-1/+42
| | | | | | | | | | | | | | | | | | | The PowerSupplyRedundancy sensor is used by the Host to know whether the system has redundant power supply support. The sensor is implemented under the legacy openbmc/pyphosphor repo which does not persist it's values. This commit will move this sensor into the official phosphor settings repo (which does have persistency support) but also keep the legacy interfaces in place for backwards compatibility. The PowerSupplyRedundancySensor should look at the new PowerSupplyRedundancy interface for its value and when setting the PowerSupplyRedundancySensor, set the new value. Resolves openbmc/openbmc#2833 Change-Id: I490d385efba70f26b1a3eac87074b1fa0f8cd907 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Revert "Port obmc to python3.5"Brad Bishop2018-01-316-33/+33
| | | | | | | | | | Parse error with this change: TypeError: iter() returned non-iterator of type 'PathTreeItemIterator' This reverts commit f99783be6592130bbad2d0f69ada2b7ac61618f3. Change-Id: Id2b7f4af5284d25d59e19905c7b873726b02f700 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Port obmc to python3.5Balaji B Rao2018-01-306-33/+33
| | | | | Change-Id: I1ed6c6bd914635485a697369048a8be9e5919fc6 Signed-off-by: Balaji B Rao <balajibapu@gmail.com>
* dbuslib: Fix UnknownInterface errorAdriana Kobylak2017-12-142-3/+5
| | | | | | | | | | | | | The string "org.freedesktop.UnknownInterface" is not an existing dbus error string, all errors are of format *.DBus.Error.* so change this error string to the right one. Also fix the error responses when dbus errors are raised. Part of openbmc/openbmc#2463 Change-Id: I384393a6f81c5057173e2941cd109e2f952e1311 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Make PowerSupplyRedundancy writeable.Dhruvaraj Subhashchandran2017-12-051-8/+1
| | | | | | | | | Power Supply redundancy is read only, based on the requirement for customers to set it, enabling set value on this sensor. Change-Id: I1f2d5e892c0d729fe3f541a2d8c981b4bd678d60 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Change default of PowerSupplyRedundancy to enabledAndrew Geissler2017-11-211-1/+1
| | | | | | | | | | | | | | By default, systems should be in redundant mode so the power management system properly handles power supply failures. When this setting is disabled, the OCC will disable GPU throttling and will not enforce a n level power cap. Partially Resolves openbmc/openbmc#2665 Change-Id: I7850d962172d3a0209ef5fee8d39b5c57e6ef5c0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* dbuslib: Add decorator for property only ifacesBrad Bishop2017-11-021-0/+35
| | | | | | | | | | | The built-in Introspect method in dbus-python doesn't find interfaces if the @method or @signal decorators aren't used (property-only interfaces). Use this decorator on classes derived from dbus.service.Object to help the dbus-python provided Introspect method find these interfaces. Change-Id: Icaf6fc3a32ce44a653a440ae5ca531cf67a4e1cf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* dbuslib: Point OBJ_PREFIX at new xyz namespaceBrad Bishop2017-07-291-1/+1
| | | | | | | Resolves: openbmc/openbmc#1314 Change-Id: I20e1a64ceb9928c17cbd4217fa93941cf2912aa1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* libsensors: pep8 fixesBrad Bishop2017-07-011-4/+7
| | | | | Change-Id: If2608216a919be9b929ac2f99ad29ba2b789fa98 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* libsensors: Remove unused or unsupported typesBrad Bishop2017-07-011-189/+0
| | | | | | | | A number of these types are unused or are now implemented in the xyz sensors namespace. Remove. Change-Id: Ic177bef8eba0f8add38254494051d2049a1148be Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Increase boot count for SBE side switchAndrew Geissler2017-05-221-1/+10
| | | | | | | | The host gets one additional boot try when switching over to the alternate SBE seeprom side Change-Id: Ia692fffdb6720a1b80d9cf2c9cdc279acf84efe5 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Disable user updates for Power Cap SensorJayanth Othayoth2017-04-191-11/+1
| | | | | | | Resolves openbmc/openbmc#1421 Change-Id: Id956ea27f5e212928b9698c11180d1945e3350c3 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add Power Supply Derating Sensor Support.Jayanth Othayoth2017-03-281-0/+11
| | | | | Change-Id: I328315159d1b7c0287f4af5b69973e2c708a7cb2 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add Turbo Allowed Sensor supportJayanth Othayoth2017-03-281-0/+11
| | | | | Change-Id: I407e507f79e0491e36b0404a8ba486a5c88469f5 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Corrected sensor name from PsRedundancy to PowerSupplyRedundancyDhruvaraj Subhashchandran2017-03-281-1/+1
| | | | | | | resolves openbmc/openbmc#1391 Change-Id: Iba7d2af745f8e30e42fd447b8cc3f05cb76c9eb5 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Sensor reading support for Power Supply RedundancyDhruvaraj S2017-03-271-0/+11
| | | | | | | | Added Power Supply Redundancy Sensor and prevented setting the value. Change-Id: If05ecb74c1e05ac59da1ae4dbb265ba65ce7744b Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Add BootProgress signal for BootProgressSensorYi Li2016-11-101-0/+5
| | | | | | | | | This signal broadcasts current boot progress when sensor value changes. Partially resolves openbmc/openbmc#315 Change-Id: If490852f2cfc620f720d6edfa629881212a43312 Signed-off-by: Yi Li <adamliyi@msn.com>
* dbus-binding: Fix 'pop' error when no validator givenPatrick Williams2016-09-281-1/+1
| | | | | | | Fixes openbmc/openbmc#606. Change-Id: Id39435f8177d053c317ebe2e48c1c3fd9d3a2385 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Callback input validator function on property setVishwanatha Subbanna2016-09-271-0/+5
| | | | | | | | | | This will provide a way for subclasses to register a callback handler which will then be called into whenever a property update is attempted. The callback will validate the user inputs and then either throw exception or return success. On an exception, its rethrown. Change-Id: I4c1920adb7e4873f2c530752313dd3ebc2230dc2 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* utils: add prefixBrad Bishop2016-09-201-4/+4
| | | | | | | | Allow some composition of the strings returned by org_dot_openbmc_match_strings. Signed-off-by: Brad Bishop <bradleyb Change-Id: I8e6a522af175bba70aedbfb4f5a65e06b9237598
* utils: match parentsBrad Bishop2016-09-201-1/+2
| | | | | | | | Match parents like '/org' in addition to '/org/openbmc/foo' when testing with org_dot_openbmc_match. Change-Id: I707f1de0367bfad0de4afa4436b10203c0d7f852 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* utils: provide dbus match stringsBrad Bishop2016-09-201-4/+8
| | | | | | | | Provide a list of name filters, suitable for use with dbus interface/path name matching. Change-Id: I47a3be43e4460e35ec457436300fac82eb18a03f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* bindings: cooperative multiple inheritanceBrad Bishop2016-09-121-5/+4
| | | | | | | | | | | | | Update Properties and ObjectManager constructors such that they cooperate in a multiple inheritance hierarchy. For details, see this blog post referenced by the official python documentation: https://rhettinger.wordpress.com/2011/05/26/super-considered-super Change-Id: I586e6fa9f1a369693c73b9307786d3c8a05dd9a3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* bindings: Add missing module importsBrad Bishop2016-09-121-0/+2
| | | | | Change-Id: I498d6e2437b91263de825456125e3b805efa0179 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* bindings: remove unused methodsBrad Bishop2016-09-121-15/+2
| | | | | Change-Id: I99eb622d963d9bb8df6fd9072c482f71c8e881c2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove Path classBrad Bishop2016-09-081-23/+0
| | | | | | | Unused, and os.path should be favored anyway. Change-Id: I9ba718e15695d9e14b8893ef09721fb4f90c2b85 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add xyz.openbmc-project to interface matchBrad Bishop2016-09-081-2/+7
| | | | | | | In preparation for migration to xyz.openbmc-project. Change-Id: Ia134de704affb3b51726790ea38b9b36bdda16b1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add WSGI namespacesBrad Bishop2016-08-303-1/+7
| | | | | | | Add wsgi and wsgi/apps directories in the obmc package namespace. Change-Id: I289a37ba111385e3129628d141a6ed530a7a3def Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Rename pyobmc to pyphosphorBrad Bishop2016-08-301-1/+1
| | | | | Change-Id: I4992473bef644cc8a68e38cb55c2e01200e919d7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* change sensor scaling algorithm for exponential scalesEdward A. James2016-08-181-5/+13
| | | | | | | | | | - scale values should be exponentials (10^x) - implement adjust factor depends on Iaf2d5e30df620212dd3c9e821d6462964520dc44 Change-Id: Id4e1dfad0def21f9f1d341d859c3b2c237dea080 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* propertycacher: context manager for file openBrad Bishop2016-08-101-10/+8
| | | | | Change-Id: Ib75f3f5ccbd35d7e70d9c171c0642077930c4741 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud