Actions
Bug #23016
closedhammer job-invocation output blocks and keeps polling for output
Difficulty:
Triaged:
Description
# hammer job-invocation output --id 1 --host host1.ovirt.rhts.eng.bos.redhat.com <empty and blocks>
Debug mode show that it is polling API for the same result
[ INFO 2018-03-26T05:32:04 HammerCLIForemanRemoteExecution::JobInvocation::OutputCommand] Called with options: {"option_host_name"=>"host1.example.com", "option_host_id"=>2, "option_id"=>"1"} [ INFO 2018-03-26T05:32:04 API] Server: https://sat.example.com [ INFO 2018-03-26T05:32:04 API] GET /api/job_invocations/1/hosts/2 [DEBUG 2018-03-26T05:32:04 API] Params: {} [DEBUG 2018-03-26T05:32:04 API] Headers: { :params => {} } [DEBUG 2018-03-26T05:32:04 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2018-03-26T05:32:05 API] Response: { "refresh" => true, "output" => [], "delayed" => true, "start_at" => "2018-03-19T09:18:44.047+01:00" } [DEBUG 2018-03-26T05:32:05 API] Response headers: { :date => "Mon, 26 Mar 2018 09:32:04 GMT", :server => "Apache/2.4.6 (Red Hat Enterprise Linux)", :foreman_version => "1.18.0-develop", :foreman_api_version => "2", :apipie_checksum => "8a1982493c4c675e17f4c638b54219c5", :cache_control => "max-age=0, private, must-revalidate", :x_request_id => "61ac558d-fbe1-40b0-aba7-9fc4531f333e", :x_runtime => "0.074037", :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'", :strict_transport_security => "max-age=631139040; includeSubdomains", :x_content_type_options => "nosniff", :x_download_options => "noopen", :x_frame_options => "sameorigin", :x_permitted_cross_domain_policies => "none", :x_xss_protection => "1; mode=block", :x_powered_by => "Phusion Passenger 4.0.53", :set_cookie => [ [0] "_session_id=194c0a48f07461c865e4629ba6396181; path=/; secure; HttpOnly" ], :etag => "W/\"2e5056c4ba93523e4e06562314670cd3-gzip\"", :status => "200 OK", :vary => "Accept-Encoding", :content_encoding => "gzip", :content_length => "98", :content_type => "application/json; charset=utf-8" } [ INFO 2018-03-26T05:32:06 API] Server: https://sat.example.com [ INFO 2018-03-26T05:32:06 API] GET /api/job_invocations/1/hosts/2 [DEBUG 2018-03-26T05:32:06 API] Params: { :since => nil } [DEBUG 2018-03-26T05:32:06 API] Headers: { :params => { :since => nil } } [DEBUG 2018-03-26T05:32:06 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth [DEBUG 2018-03-26T05:32:06 API] Response: { "refresh" => true, "output" => [], "delayed" => true, "start_at" => "2018-03-19T09:18:44.047+01:00" } [DEBUG 2018-03-26T05:32:06 API] Response headers: { :date => "Mon, 26 Mar 2018 09:32:06 GMT", :server => "Apache/2.4.6 (Red Hat Enterprise Linux)", :foreman_version => "1.18.0-develop", :foreman_api_version => "2", :apipie_checksum => "8a1982493c4c675e17f4c638b54219c5", :cache_control => "max-age=0, private, must-revalidate", :x_request_id => "a8b319e1-e30a-4c32-9738-d4c1834213f9", :x_runtime => "0.071594", :content_security_policy => "default-src 'self'; child-src 'self'; connect-src 'self' ws: wss:; img-src 'self' data: *.gravatar.com; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self'", :strict_transport_security => "max-age=631139040; includeSubdomains", :x_content_type_options => "nosniff", :x_download_options => "noopen", :x_frame_options => "sameorigin", :x_permitted_cross_domain_policies => "none", :x_xss_protection => "1; mode=block", :x_powered_by => "Phusion Passenger 4.0.53", :set_cookie => [ [0] "_session_id=aa9658eb2ce3b367a4eecae5ab68dbd0; path=/; secure; HttpOnly" ], :etag => "W/\"2e5056c4ba93523e4e06562314670cd3-gzip\"", :status => "200 OK", :vary => "Accept-Encoding", :content_encoding => "gzip", :content_length => "98", :content_type => "application/json; charset=utf-8" }
Is it because of "output" => [] ?
Isn't CLI able to handle it?
Actions