??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
ßUdac @` s d d l m Z m Z m Z e Z d d l Z d d l Z d d l Z d d l m
Z
e Z y d d l
m Z e Z Wn e k
r‰ n Xd d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d
l m Z d g Z e ƒ Z d e j f d „ ƒ YZ! d S(
i ( t absolute_importt divisiont print_functionN( t TemplateNotFound( t atfork( t AnsibleConnectionFailure( t TaskExecutor( t
TaskResult( t to_text( t Display( t contextt
WorkerProcessc B` sM e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s
The worker thread class, which uses TaskExecutor to run tasks
read from a job queue and pushes results into a results queue
for reading later.
c C` sn t t | ƒ j ƒ | | _ | | _ | | _ | | _ | | _ | | _ | | _ | | _
t ƒ | j _ d S( N(
t superR t __init__t _final_qt
_task_varst _hostt _taskt
_play_contextt _loadert _variable_managert _shared_loader_objt sett
_tempfiles( t selft final_qt task_varst hostt taskt play_contextt loadert variable_managert shared_loader_obj( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyR
9 s c C` s‘ t j | _ yg t j j ƒ rr t j j ƒ d k rr y( t j t j t j j ƒ ƒ ƒ | _ Wqr t
k
rn qr Xn Wn t t f k
rŒ n Xd S( N(
t ost devnullt
_new_stdint syst stdint isattyt filenot Nonet fdopent dupt OSErrort AttributeErrort
ValueError( R ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyt _save_stdinJ s $(
c C` sK | j ƒ z t t | ƒ j ƒ SWd | j t j k rF | j j ƒ n Xd S( s‚
multiprocessing.Process replaces the worker's stdin with a new file
opened on os.devnull, but we wish to preserve it if it is connected to
a terminal. Therefore dup a copy prior to calling the real start(),
ensuring the descriptor is preserved somewhere in the new child, and
make sure it is closed in the parent when start() completes.
N( R. R R t startR# R! R" t close( R ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyR/ Y s
c C` s@ y t j d t | ƒ ƒ Wn t k
r. n Xt j d ƒ d S( s
There is no safe exception to return to higher level code that does not
risk an innocent try/except finding itself executing in the wrong
process. All code executing above WorkerProcess.run() on the stack
conceptually belongs to another program.
u WORKER HARD EXIT: %si N( t displayt debugR t
BaseExceptionR! t _exit( R t e( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyt
_hard_exiti s
c C` s5 y | j ƒ SWn t k
r0 } | j | ƒ n Xd S( sž
Wrap _run() to ensure no possibility an errant exception can cause
control to return to the StrategyBase task loop, or any other code
higher in the stack.
As multiprocessing in Python 2.x provides no protection, it is possible
a try/except added in far-away code can cause a crashed child process
to suddenly assume the role and prior state of its parent.
N( t _runR3 R6 ( R R5 ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyt run{ s
c C` sÅ t r t ƒ n yt j d | j | j f ƒ t | j | j | j | j | j | j
| j | j ƒ j
ƒ } t j d | j | j | j j f ƒ t ƒ | j _ g | j _ t | j j | j j | d | j j ƒ ƒ} t j d | j j ƒ | j j | ƒ t j d | j j ƒ Wn•t k
r–t ƒ | j _ g | j _ t | j j | j j t d t ƒ d | j j ƒ ƒ} | j j | d t ƒnt k
r³} t | t t t t f ƒ sÐt | t ƒ r´zÏ yƒ t ƒ | j _ g | j _ t | j j | j j t d t d t t! j" ƒ ƒ d
d ƒ d | j j ƒ ƒ} | j j | d t ƒWnE t k
rt j d t | ƒ ƒ t j d
t t! j" ƒ ƒ ƒ n XWd | j# ƒ Xq´n Xt j d ƒ d S( sÙ
Called when the process is started. Pushes the result onto the
results queue. We also remove the host from the blocked hosts list, to
signify that they are ready for their next task.
s running TaskExecutor() for %s/%ss* done running TaskExecutor() for %s/%s [%s]t task_fieldss sending task result for task %ss$ done sending task result for task %st unreachablet blockt failedt exceptiont stdoutt u WORKER EXCEPTION: %su WORKER TRACEBACK: %sNs WORKER PROCESS EXITING($ t HAS_PYCRYPTO_ATFORKR R1 R2 R R R R R R# R R R R8 t _uuidt dictt varst groupsR t namet
dump_attrst putR t Truet Falset Exceptiont
isinstancet IOErrort EOFErrort KeyboardInterruptt
SystemExitR R t tracebackt
format_exct _clean_up( R t executor_resultt task_resultR5 ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyR7 Š sd
&
+ '
%c C` s | j j ƒ d S( N( R t cleanup_all_tmp_files( R ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyRR Ü s (
t __name__t
__module__t __doc__R
R. R/ R6 R8 R7 RR ( ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyR 2 s R(" t
__future__R R R t typet
__metaclass__R! R$ RP t jinja2.exceptionsR RI R@ t
Crypto.RandomR RH RJ t ansible.errorsR t ansible.executor.task_executorR t ansible.executor.task_resultR t ansible.module_utils._textR t ansible.utils.displayR t ansible.utils.multiprocessingR
t multiprocessing_contextt __all__R1 t ProcessR ( ( ( sC /usr/lib/python2.7/site-packages/ansible/executor/process/worker.pyt s(