History log of /external/autotest/client/common_lib/host_protections.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
da8fb97be0353f54eb7e62e132482d728684f200 01-Dec-2009 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> Fix autotest client when checking only client from svn

When the client was made configurable through
global_config.ini (r3956), the scenario "developer
checking out client directory only" wasn't
considered, and an exception will be thrown
due to the lack of a global_config.ini present.

In order to fix this, instead of throwing an
exception, just print a warning on cases that
matter, and make all the values that are
supposed to be grabbed from the config file
to have a sensible default.

2nd try: Now a warning is printed only when
autotest is being run through autoserv, since
it's probably the only case worth printing
a warning.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3981 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
6d08b3c3fc2858ccd60a323008703179f93ae38b 18-Nov-2009 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> Make a standalone client to be able to use global_config.ini

In order to make it possible the autotest client to use the
global_config.ini configuration files:

* Modified global_config.py to support verifying if the
configuration file is under autotest's root directory,
or the client directory
* Extended the autotest run method to copy over
the configuration files to the client.

Notes for revisors (changes from previous patchset and other stuff):

* Latest comments from John adressed

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3955 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
313b9266da8da08299d3786e1023f14023c82906 03-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Fix a regression from the control_segment -> Host refactoring of the
repair code. Importing the host_protections on the client will
fail since global_config.ini is unavailable there. However this is
more of a host protection bug than a repair code bug, as common_lib
code should be usable on a standalone client (or at least importable).

This change allows the loading of the "default" host protection to
fail, as long as the failure reason is a problem is a complete lack
of a config file (and not just an incomplete one, which is still a
failure). It does mean that host_protections.default is undefined
on clients, but this shouldn't be a problem.

Risk: Low
Visibility: Make

Signed-off-by: John Admanski <jadmanski@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3654 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
f957fe2ff88da95d53fc43da98c59f1a90e73093 12-May-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> fixed imports.

Signed-off-by: Travis Miller <raphtee@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3115 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
3f033d59399f05b2ebd0130565300389dec99475 01-Apr-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add warning to host_protections to inform developers of the consequences of changing the enum that defines these levels.

Signed-off-by: Scott Zawalski <scottz@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@2958 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
c9ae1787fd41101089b09551d8028aef1daae1d3 30-Jan-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> * add "Do not verify" host protection level and implement it in scheduler
* make scheduler run pre-job cleanup even if "skip verify" was chosen. accomplished this by adding a SetEntryPendingTask to call on_pending, instead of having the VerifyTask do it.

Signed-off-by: Steve Howard <showard@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2715 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
25c0b8cb56358f22dccf7fdc32dd1662787dc9ca 24-Jan-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Added new host protection level (repair software only) that would allow any
type of repair except the hardware repairs. Updated users. Added
Host.request_hardware_repair() function to be called by repair_full when
software repair fails. Added error.AutoservHardwareRepairRequestedError to be
raised when hardware repair has been requested and updated server_job.repair()
to let it propagate through.

Signed-off-by: Mihai Rusu <dizzy@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2686 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
b024fb10ac05a63b14dc30819ba36e12b50be772 11-Jul-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Rename host protection category "Filesystem only" to "Repair filesystem only".

Signed-off-by: James Ren <jamesren@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1821 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py
df062569a6407ec084c4ee05b9390f8a0183d37b 03-Jul-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Adding protection levels to hosts. Allows the user to specify how much
the repair operation is allowed to do on the host (e.g., do not repair,
repair filesystem only, allow reimaging).

Risk: low
Visbility: medium (adding a new input field)


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1771 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/host_protections.py