Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.28 KB | None | 0 0
  1. [root@rhel-sevensix-hammer andreasn]# hammer -d repository upload-content --name "my-production-images" --product "asdf" --organization "twinpeaks" --path "hej.txt"
  2. [ INFO 2019-03-25 14:10:47 Init] Initialization of Hammer CLI (0.5.1.13) has started...
  3. [DEBUG 2019-03-25 14:10:47 Init] Running at ruby 2.2.9-p480
  4. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
  5. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
  6. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
  7. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
  8. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
  9. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
  10. [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded
  11. [DEBUG 2019-03-25 14:10:48 Connection] Registered: foreman
  12. [DEBUG 2019-03-25 14:10:48 API] Global headers: {
  13. :content_type => "application/json",
  14. :accept => "application/json;version=2",
  15. "Accept-Language" => "en"
  16. }
  17. [DEBUG 2019-03-25 14:10:48 API] Follow redirects: never
  18. [ INFO 2019-03-25 14:10:48 Modules] Extension module hammer_cli_foreman (0.5.1.10) loaded
  19. [ INFO 2019-03-25 14:10:48 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3.3) loaded
  20. [ INFO 2019-03-25 14:10:48 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
  21. [ INFO 2019-03-25 14:10:48 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
  22. [ INFO 2019-03-25 14:10:49 Modules] Extension module hammer_cli_katello (0.0.22.29) loaded
  23. [DEBUG 2019-03-25 14:10:49 Init] Using locale 'en'
  24. [DEBUG 2019-03-25 14:10:49 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.5.1.13/locale'
  25. [DEBUG 2019-03-25 14:10:49 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.5.1.10/locale'
  26. [DEBUG 2019-03-25 14:10:49 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.6/locale'
  27. [DEBUG 2019-03-25 14:10:49 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.22.29/locale'
  28. [ INFO 2019-03-25 14:10:49 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
  29. [ INFO 2019-03-25 14:10:49 HammerCLIKatello::Repository] Called with options: {}
  30. [ INFO 2019-03-25 14:10:49 HammerCLIKatello::Repository::UploadContentCommand] Called with options: {"option_name"=>"my-production-images", "option_product_name"=>"asdf", "option_organization_name"=>"twinpeaks", "option_content"=>["/home/andreasn/hej.txt"]}
  31. [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
  32. [ INFO 2019-03-25 14:10:49 API] GET /katello/api/organizations
  33. [DEBUG 2019-03-25 14:10:49 API] Params: {
  34. :search => "name = \"twinpeaks\""
  35. }
  36. [DEBUG 2019-03-25 14:10:49 API] Headers: {
  37. :params => {
  38. :search => "name = \"twinpeaks\""
  39. }
  40. }
  41. [DEBUG 2019-03-25 14:10:49 API] Response: {
  42. "total" => 2,
  43. "subtotal" => 1,
  44. "page" => 1,
  45. "per_page" => 20,
  46. "search" => "name = \"twinpeaks\"",
  47. "sort" => {
  48. "by" => nil,
  49. "order" => nil
  50. },
  51. "results" => [
  52. [0] {
  53. "label" => "twinpeaks",
  54. "created_at" => "2019-03-07 12:58:50 UTC",
  55. "updated_at" => "2019-03-22 17:47:26 UTC",
  56. "id" => 1,
  57. "name" => "twinpeaks",
  58. "title" => "twinpeaks",
  59. "description" => ""
  60. }
  61. ]
  62. }
  63. [DEBUG 2019-03-25 14:10:49 API] Response headers: {
  64. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  65. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  66. :foreman_version => "1.18.0.40",
  67. :foreman_api_version => "2",
  68. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  69. :cache_control => "max-age=0, private, must-revalidate",
  70. :x_request_id => "2d2e5117-c523-4810-a389-3dd8e003c34c",
  71. :x_runtime => "0.155556",
  72. :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'",
  73. :strict_transport_security => "max-age=631139040; includeSubdomains",
  74. :x_content_type_options => "nosniff",
  75. :x_download_options => "noopen",
  76. :x_frame_options => "sameorigin",
  77. :x_permitted_cross_domain_policies => "none",
  78. :x_xss_protection => "1; mode=block",
  79. :x_powered_by => "Phusion Passenger 4.0.18",
  80. :set_cookie => [
  81. [0] "_session_id=92b515a148fec9812c80fd5dad413349; path=/; secure; HttpOnly; SameSite=Lax"
  82. ],
  83. :etag => "W/\"f81bf8a8b6e2098e2ac82345602ca822-gzip\"",
  84. :status => "200 OK",
  85. :vary => "Accept-Encoding",
  86. :content_encoding => "gzip",
  87. :content_length => "216",
  88. :content_type => "application/json; charset=utf-8"
  89. }
  90. [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
  91. [ INFO 2019-03-25 14:10:49 API] GET /katello/api/organizations/1/products
  92. [DEBUG 2019-03-25 14:10:49 API] Params: {
  93. "name" => "asdf"
  94. }
  95. [DEBUG 2019-03-25 14:10:49 API] Headers: {
  96. :params => {
  97. "name" => "asdf"
  98. }
  99. }
  100. [DEBUG 2019-03-25 14:10:49 API] Response: {
  101. "total" => 1,
  102. "subtotal" => 1,
  103. "page" => 1,
  104. "per_page" => 20,
  105. "error" => nil,
  106. "search" => nil,
  107. "sort" => {
  108. "by" => "name",
  109. "order" => "asc"
  110. },
  111. "results" => [
  112. [0] {
  113. "id" => 1,
  114. "cp_id" => "893682385084",
  115. "name" => "asdf",
  116. "label" => "asdf",
  117. "description" => nil,
  118. "provider_id" => 1,
  119. "sync_plan_id" => nil,
  120. "sync_summary" => {},
  121. "gpg_key_id" => nil,
  122. "ssl_ca_cert_id" => nil,
  123. "ssl_client_cert_id" => nil,
  124. "ssl_client_key_id" => nil,
  125. "sync_state" => nil,
  126. "last_sync" => nil,
  127. "last_sync_words" => nil,
  128. "organization_id" => 1,
  129. "organization" => {
  130. "name" => "twinpeaks",
  131. "label" => "twinpeaks",
  132. "id" => 1
  133. },
  134. "sync_plan" => nil,
  135. "repository_count" => 2
  136. }
  137. ]
  138. }
  139. [DEBUG 2019-03-25 14:10:49 API] Response headers: {
  140. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  141. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  142. :foreman_version => "1.18.0.40",
  143. :foreman_api_version => "2",
  144. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  145. :cache_control => "max-age=0, private, must-revalidate",
  146. :x_request_id => "23cc92b5-7a1c-4f25-af91-769b680b35f4",
  147. :x_runtime => "0.114858",
  148. :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'",
  149. :strict_transport_security => "max-age=631139040; includeSubdomains",
  150. :x_content_type_options => "nosniff",
  151. :x_download_options => "noopen",
  152. :x_frame_options => "sameorigin",
  153. :x_permitted_cross_domain_policies => "none",
  154. :x_xss_protection => "1; mode=block",
  155. :x_powered_by => "Phusion Passenger 4.0.18",
  156. :set_cookie => [
  157. [0] "_session_id=400edc6f3bad916e573d9e9c1c735443; path=/; secure; HttpOnly; SameSite=Lax"
  158. ],
  159. :etag => "W/\"dd60cebf2ea03c7fd504f44cfb2139b0-gzip\"",
  160. :status => "200 OK",
  161. :vary => "Accept-Encoding",
  162. :content_encoding => "gzip",
  163. :content_length => "273",
  164. :content_type => "application/json; charset=utf-8"
  165. }
  166. [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
  167. [ INFO 2019-03-25 14:10:49 API] GET /katello/api/products/1/repositories
  168. [DEBUG 2019-03-25 14:10:49 API] Params: {
  169. "name" => "my-production-images"
  170. }
  171. [DEBUG 2019-03-25 14:10:49 API] Headers: {
  172. :params => {
  173. "name" => "my-production-images"
  174. }
  175. }
  176. [DEBUG 2019-03-25 14:10:49 API] Response: {
  177. "total" => 1,
  178. "subtotal" => 1,
  179. "page" => 1,
  180. "per_page" => 20,
  181. "error" => nil,
  182. "search" => nil,
  183. "sort" => {
  184. "by" => "name",
  185. "order" => "asc"
  186. },
  187. "results" => [
  188. [0] {
  189. "content_type" => "file",
  190. "url" => nil,
  191. "relative_path" => "twinpeaks/Library/custom/asdf/my-production-images",
  192. "arch" => "noarch",
  193. "content_id" => "1553265986950",
  194. "backend_identifier" => "81d1a8d6-2208-4050-9b21-b414809a8d39",
  195. "content_label" => nil,
  196. "major" => nil,
  197. "minor" => nil,
  198. "id" => 2,
  199. "name" => "my-production-images",
  200. "label" => "my-production-images",
  201. "product" => {
  202. "id" => 1,
  203. "cp_id" => "893682385084",
  204. "name" => "asdf",
  205. "orphaned" => false,
  206. "sync_plan" => [
  207. [0] "name",
  208. [1] "description",
  209. [2] "sync_date",
  210. [3] "interval",
  211. [4] "next_sync"
  212. ]
  213. },
  214. "last_sync" => nil,
  215. "content_counts" => {
  216. "ostree_branch" => 0,
  217. "docker_manifest" => 0,
  218. "docker_manifest_list" => 0,
  219. "docker_tag" => 0,
  220. "rpm" => 0,
  221. "srpm" => 0,
  222. "package" => 0,
  223. "package_group" => 0,
  224. "erratum" => 0,
  225. "puppet_module" => 0,
  226. "file" => 0,
  227. "deb" => 0
  228. },
  229. "last_sync_words" => nil
  230. }
  231. ]
  232. }
  233. [DEBUG 2019-03-25 14:10:49 API] Response headers: {
  234. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  235. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  236. :foreman_version => "1.18.0.40",
  237. :foreman_api_version => "2",
  238. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  239. :cache_control => "max-age=0, private, must-revalidate",
  240. :x_request_id => "d2e85e04-8e94-48bf-9a2e-f4401d8ff86e",
  241. :x_runtime => "0.117798",
  242. :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'",
  243. :strict_transport_security => "max-age=631139040; includeSubdomains",
  244. :x_content_type_options => "nosniff",
  245. :x_download_options => "noopen",
  246. :x_frame_options => "sameorigin",
  247. :x_permitted_cross_domain_policies => "none",
  248. :x_xss_protection => "1; mode=block",
  249. :x_powered_by => "Phusion Passenger 4.0.18",
  250. :set_cookie => [
  251. [0] "_session_id=0cd7c5848327d05e8430a981ff08b9fc; path=/; secure; HttpOnly; SameSite=Lax"
  252. ],
  253. :etag => "W/\"2c0817e51ae01d82fcf1f466bd059770-gzip\"",
  254. :status => "200 OK",
  255. :vary => "Accept-Encoding",
  256. :content_encoding => "gzip",
  257. :content_length => "445",
  258. :content_type => "application/json; charset=utf-8"
  259. }
  260. [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
  261. [ INFO 2019-03-25 14:10:49 API] POST /katello/api/repositories/2/content_uploads
  262. [DEBUG 2019-03-25 14:10:49 API] Params: {}
  263. [DEBUG 2019-03-25 14:10:49 API] Headers: {}
  264. [DEBUG 2019-03-25 14:10:49 API] Response: {
  265. "upload_id" => "50d2bb95-df77-45e3-9bdc-3e1f30f476f3",
  266. "_href" => "/pulp/api/v2/content/uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3/"
  267. }
  268. [DEBUG 2019-03-25 14:10:49 API] Response headers: {
  269. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  270. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  271. :foreman_version => "1.18.0.40",
  272. :foreman_api_version => "2",
  273. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  274. :cache_control => "max-age=0, private, must-revalidate",
  275. :x_request_id => "db18113f-6e98-4627-a0c6-bceffae2f776",
  276. :x_runtime => "0.297824",
  277. :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'",
  278. :strict_transport_security => "max-age=631139040; includeSubdomains",
  279. :x_content_type_options => "nosniff",
  280. :x_download_options => "noopen",
  281. :x_frame_options => "sameorigin",
  282. :x_permitted_cross_domain_policies => "none",
  283. :x_xss_protection => "1; mode=block",
  284. :x_powered_by => "Phusion Passenger 4.0.18",
  285. :set_cookie => [
  286. [0] "request_method=POST; path=/; secure; HttpOnly; SameSite=Lax",
  287. [1] "_session_id=2246d8830647eeba80abf320146479cf; path=/; secure; HttpOnly; SameSite=Lax"
  288. ],
  289. :etag => "W/\"974a8e7d7245e12778044e584d6fd028-gzip\"",
  290. :status => "200 OK",
  291. :vary => "Accept-Encoding",
  292. :content_encoding => "gzip",
  293. :content_length => "108",
  294. :content_type => "application/json; charset=utf-8"
  295. }
  296. [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
  297. [ INFO 2019-03-25 14:10:49 API] PUT /katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3
  298. [DEBUG 2019-03-25 14:10:49 API] Params: {
  299. :offset => 0,
  300. :content => "hej!\n",
  301. :multipart => true
  302. }
  303. [DEBUG 2019-03-25 14:10:49 API] Headers: {
  304. :content_type => "multipart/form-data"
  305. }
  306. [DEBUG 2019-03-25 14:10:50 API] Response: #<String:0x03d902a8
  307. attr_accessor :args = {
  308. :timeout => nil,
  309. :headers => {
  310. :content_type => "multipart/form-data",
  311. :accept => "application/json;version=2",
  312. "Accept-Language" => "en"
  313. },
  314. :verify_ssl => false,
  315. :user => "admin",
  316. :password => "***",
  317. :oauth => nil,
  318. :method => :put,
  319. :url => "https://satellite2.twinpeaks.io//katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3",
  320. :payload => {
  321. :offset => 0,
  322. :content => "hej!\n"
  323. }
  324. },
  325. attr_accessor :net_http_res = #<Net::HTTPNoContent:0x03d9c850
  326. @body_exist = false,
  327. @read = true,
  328. @socket = nil,
  329. attr_accessor :body = nil,
  330. attr_accessor :decode_content = false,
  331. attr_accessor :uri = nil,
  332. attr_reader :code = "204",
  333. attr_reader :header = {
  334. "date" => [
  335. [0] "Mon, 25 Mar 2019 13:10:53 GMT"
  336. ],
  337. "server" => [
  338. [0] "Apache/2.4.6 (Red Hat Enterprise Linux)"
  339. ],
  340. "foreman_version" => [
  341. [0] "1.18.0.40"
  342. ],
  343. "foreman_api_version" => [
  344. [0] "2"
  345. ],
  346. "apipie-checksum" => [
  347. [0] "07cf04aea789e84c5b23a43901b02c9013002f13"
  348. ],
  349. "cache-control" => [
  350. [0] "no-cache"
  351. ],
  352. "x-request-id" => [
  353. [0] "3c405e2d-5379-4be0-8e1a-31c47de90d65"
  354. ],
  355. "x-runtime" => [
  356. [0] "0.125944"
  357. ],
  358. "content-security-policy" => [
  359. [0] "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'"
  360. ],
  361. "strict-transport-security" => [
  362. [0] "max-age=631139040; includeSubdomains"
  363. ],
  364. "x-content-type-options" => [
  365. [0] "nosniff"
  366. ],
  367. "x-download-options" => [
  368. [0] "noopen"
  369. ],
  370. "x-frame-options" => [
  371. [0] "sameorigin"
  372. ],
  373. "x-permitted-cross-domain-policies" => [
  374. [0] "none"
  375. ],
  376. "x-xss-protection" => [
  377. [0] "1; mode=block"
  378. ],
  379. "x-powered-by" => [
  380. [0] "Phusion Passenger 4.0.18"
  381. ],
  382. "set-cookie" => [
  383. [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
  384. [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
  385. ],
  386. "status" => [
  387. [0] "204 No Content"
  388. ]
  389. },
  390. attr_reader :http_version = "1.1",
  391. attr_reader :message = "No Content"
  392. >,
  393. attr_reader :code = 204,
  394. attr_reader :headers = {
  395. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  396. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  397. :foreman_version => "1.18.0.40",
  398. :foreman_api_version => "2",
  399. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  400. :cache_control => "no-cache",
  401. :x_request_id => "3c405e2d-5379-4be0-8e1a-31c47de90d65",
  402. :x_runtime => "0.125944",
  403. :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'",
  404. :strict_transport_security => "max-age=631139040; includeSubdomains",
  405. :x_content_type_options => "nosniff",
  406. :x_download_options => "noopen",
  407. :x_frame_options => "sameorigin",
  408. :x_permitted_cross_domain_policies => "none",
  409. :x_xss_protection => "1; mode=block",
  410. :x_powered_by => "Phusion Passenger 4.0.18",
  411. :set_cookie => [
  412. [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
  413. [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
  414. ],
  415. :status => "204 No Content"
  416. }
  417. >
  418. [DEBUG 2019-03-25 14:10:50 API] Response headers: {
  419. :date => "Mon, 25 Mar 2019 13:10:53 GMT",
  420. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  421. :foreman_version => "1.18.0.40",
  422. :foreman_api_version => "2",
  423. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  424. :cache_control => "no-cache",
  425. :x_request_id => "3c405e2d-5379-4be0-8e1a-31c47de90d65",
  426. :x_runtime => "0.125944",
  427. :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'",
  428. :strict_transport_security => "max-age=631139040; includeSubdomains",
  429. :x_content_type_options => "nosniff",
  430. :x_download_options => "noopen",
  431. :x_frame_options => "sameorigin",
  432. :x_permitted_cross_domain_policies => "none",
  433. :x_xss_protection => "1; mode=block",
  434. :x_powered_by => "Phusion Passenger 4.0.18",
  435. :set_cookie => [
  436. [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
  437. [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
  438. ],
  439. :status => "204 No Content"
  440. }
  441. [ INFO 2019-03-25 14:10:50 API] Server: https://satellite2.twinpeaks.io/
  442. [ INFO 2019-03-25 14:10:50 API] PUT /katello/api/repositories/2/import_uploads
  443. [DEBUG 2019-03-25 14:10:50 API] Params: {
  444. :upload_ids => [
  445. [0] "50d2bb95-df77-45e3-9bdc-3e1f30f476f3"
  446. ],
  447. :publish_repository => false
  448. }
  449. [DEBUG 2019-03-25 14:10:50 API] Headers: {}
  450. [DEBUG 2019-03-25 14:10:53 API] 400 Bad Request
  451. {
  452. "displayMessage" => "Task f492cfe4-da3f-4909-9d08-1f8e51e3c962: Katello::Errors::PulpError: PLP0047: The importer iso_importer indicated a failed response when uploading iso unit to repository 81d1a8d6-2208-4050-9b21-b414809a8d39.",
  453. "errors" => [
  454. [0] "Task f492cfe4-da3f-4909-9d08-1f8e51e3c962: Katello::Errors::PulpError: PLP0047: The importer iso_importer indicated a failed response when uploading iso unit to repository 81d1a8d6-2208-4050-9b21-b414809a8d39."
  455. ]
  456. }
  457. Failed to upload file 'hej.txt' to repository. Please check the file and try again.
  458. [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
  459. [ INFO 2019-03-25 14:10:53 API] DELETE /katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3
  460. [DEBUG 2019-03-25 14:10:53 API] Params: {}
  461. [DEBUG 2019-03-25 14:10:53 API] Headers: {
  462. :params => {}
  463. }
  464. [DEBUG 2019-03-25 14:10:53 API] Response: #<String:0x03c72d08
  465. attr_accessor :args = {
  466. :timeout => nil,
  467. :headers => {
  468. :content_type => "application/json",
  469. :accept => "application/json;version=2",
  470. "Accept-Language" => "en"
  471. },
  472. :verify_ssl => false,
  473. :user => "admin",
  474. :password => "***",
  475. :oauth => nil,
  476. :method => :delete,
  477. :url => "https://satellite2.twinpeaks.io//katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3"
  478. },
  479. attr_accessor :net_http_res = #<Net::HTTPNoContent:0x03c839c8
  480. @body_exist = false,
  481. @read = true,
  482. @socket = nil,
  483. attr_accessor :body = nil,
  484. attr_accessor :decode_content = false,
  485. attr_accessor :uri = nil,
  486. attr_reader :code = "204",
  487. attr_reader :header = {
  488. "date" => [
  489. [0] "Mon, 25 Mar 2019 13:10:57 GMT"
  490. ],
  491. "server" => [
  492. [0] "Apache/2.4.6 (Red Hat Enterprise Linux)"
  493. ],
  494. "foreman_version" => [
  495. [0] "1.18.0.40"
  496. ],
  497. "foreman_api_version" => [
  498. [0] "2"
  499. ],
  500. "apipie-checksum" => [
  501. [0] "07cf04aea789e84c5b23a43901b02c9013002f13"
  502. ],
  503. "cache-control" => [
  504. [0] "no-cache"
  505. ],
  506. "x-request-id" => [
  507. [0] "fc18e30e-d42a-4d18-93e4-db3829f8d304"
  508. ],
  509. "x-runtime" => [
  510. [0] "0.201516"
  511. ],
  512. "content-security-policy" => [
  513. [0] "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'"
  514. ],
  515. "strict-transport-security" => [
  516. [0] "max-age=631139040; includeSubdomains"
  517. ],
  518. "x-content-type-options" => [
  519. [0] "nosniff"
  520. ],
  521. "x-download-options" => [
  522. [0] "noopen"
  523. ],
  524. "x-frame-options" => [
  525. [0] "sameorigin"
  526. ],
  527. "x-permitted-cross-domain-policies" => [
  528. [0] "none"
  529. ],
  530. "x-xss-protection" => [
  531. [0] "1; mode=block"
  532. ],
  533. "x-powered-by" => [
  534. [0] "Phusion Passenger 4.0.18"
  535. ],
  536. "set-cookie" => [
  537. [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
  538. [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
  539. ],
  540. "status" => [
  541. [0] "204 No Content"
  542. ]
  543. },
  544. attr_reader :http_version = "1.1",
  545. attr_reader :message = "No Content"
  546. >,
  547. attr_reader :code = 204,
  548. attr_reader :headers = {
  549. :date => "Mon, 25 Mar 2019 13:10:57 GMT",
  550. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  551. :foreman_version => "1.18.0.40",
  552. :foreman_api_version => "2",
  553. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  554. :cache_control => "no-cache",
  555. :x_request_id => "fc18e30e-d42a-4d18-93e4-db3829f8d304",
  556. :x_runtime => "0.201516",
  557. :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'",
  558. :strict_transport_security => "max-age=631139040; includeSubdomains",
  559. :x_content_type_options => "nosniff",
  560. :x_download_options => "noopen",
  561. :x_frame_options => "sameorigin",
  562. :x_permitted_cross_domain_policies => "none",
  563. :x_xss_protection => "1; mode=block",
  564. :x_powered_by => "Phusion Passenger 4.0.18",
  565. :set_cookie => [
  566. [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
  567. [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
  568. ],
  569. :status => "204 No Content"
  570. }
  571. >
  572. [DEBUG 2019-03-25 14:10:53 API] Response headers: {
  573. :date => "Mon, 25 Mar 2019 13:10:57 GMT",
  574. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  575. :foreman_version => "1.18.0.40",
  576. :foreman_api_version => "2",
  577. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  578. :cache_control => "no-cache",
  579. :x_request_id => "fc18e30e-d42a-4d18-93e4-db3829f8d304",
  580. :x_runtime => "0.201516",
  581. :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'",
  582. :strict_transport_security => "max-age=631139040; includeSubdomains",
  583. :x_content_type_options => "nosniff",
  584. :x_download_options => "noopen",
  585. :x_frame_options => "sameorigin",
  586. :x_permitted_cross_domain_policies => "none",
  587. :x_xss_protection => "1; mode=block",
  588. :x_powered_by => "Phusion Passenger 4.0.18",
  589. :set_cookie => [
  590. [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
  591. [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
  592. ],
  593. :status => "204 No Content"
  594. }
  595. Publishing Repository.
  596. [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
  597. [ INFO 2019-03-25 14:10:53 API] PUT /katello/api/repositories/2/republish
  598. [DEBUG 2019-03-25 14:10:53 API] Params: {}
  599. [DEBUG 2019-03-25 14:10:53 API] Headers: {}
  600. [DEBUG 2019-03-25 14:10:53 API] Response: {
  601. "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
  602. "label" => "Actions::Katello::Repository::MetadataGenerate",
  603. "pending" => true,
  604. "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
  605. "username" => "admin",
  606. "started_at" => "2019-03-25 13:10:57 UTC",
  607. "ended_at" => nil,
  608. "state" => "planned",
  609. "result" => "pending",
  610. "progress" => 0.0,
  611. "input" => {
  612. "services_checked" => [
  613. [0] "pulp",
  614. [1] "pulp_auth"
  615. ]
  616. },
  617. "output" => {},
  618. "humanized" => {
  619. "action" => "Metadata generate",
  620. "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
  621. "output" => "",
  622. "errors" => []
  623. },
  624. "cli_example" => nil
  625. }
  626. [DEBUG 2019-03-25 14:10:53 API] Response headers: {
  627. :date => "Mon, 25 Mar 2019 13:10:57 GMT",
  628. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  629. :foreman_version => "1.18.0.40",
  630. :foreman_api_version => "2",
  631. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  632. :cache_control => "no-cache",
  633. :x_request_id => "848ad1c4-8b0a-4ffe-8680-08bce9737a9f",
  634. :x_runtime => "0.508161",
  635. :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'",
  636. :strict_transport_security => "max-age=631139040; includeSubdomains",
  637. :x_content_type_options => "nosniff",
  638. :x_download_options => "noopen",
  639. :x_frame_options => "sameorigin",
  640. :x_permitted_cross_domain_policies => "none",
  641. :x_xss_protection => "1; mode=block",
  642. :x_powered_by => "Phusion Passenger 4.0.18",
  643. :set_cookie => [
  644. [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
  645. [1] "_session_id=567e1b5a0def90cae653196bf8682bc1; path=/; secure; HttpOnly; SameSite=Lax"
  646. ],
  647. :status => "202 Accepted",
  648. :transfer_encoding => "chunked",
  649. :content_type => "application/json; charset=utf-8"
  650. }
  651. [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
  652. [ INFO 2019-03-25 14:10:53 API] GET /foreman_tasks/api/tasks/8095bccf-3ca1-4fcb-af13-7974d2e66e45
  653. [DEBUG 2019-03-25 14:10:53 API] Params: {}
  654. [DEBUG 2019-03-25 14:10:53 API] Headers: {
  655. :params => {}
  656. }
  657. [DEBUG 2019-03-25 14:10:53 API] Response: {
  658. "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
  659. "label" => "Actions::Katello::Repository::MetadataGenerate",
  660. "pending" => true,
  661. "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
  662. "username" => "admin",
  663. "started_at" => "2019-03-25 13:10:57 UTC",
  664. "ended_at" => nil,
  665. "state" => "planned",
  666. "result" => "pending",
  667. "progress" => 0.0,
  668. "input" => {
  669. "services_checked" => [
  670. [0] "pulp",
  671. [1] "pulp_auth"
  672. ]
  673. },
  674. "output" => {},
  675. "humanized" => {
  676. "action" => "Metadata generate",
  677. "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
  678. "output" => "",
  679. "errors" => []
  680. },
  681. "cli_example" => nil
  682. }
  683. [DEBUG 2019-03-25 14:10:53 API] Response headers: {
  684. :date => "Mon, 25 Mar 2019 13:10:57 GMT",
  685. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  686. :foreman_version => "1.18.0.40",
  687. :foreman_api_version => "2",
  688. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  689. :cache_control => "max-age=0, private, must-revalidate",
  690. :x_request_id => "dcde3b41-f159-4dba-b9e6-3ed69852f19d",
  691. :x_runtime => "0.133169",
  692. :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'",
  693. :strict_transport_security => "max-age=631139040; includeSubdomains",
  694. :x_content_type_options => "nosniff",
  695. :x_download_options => "noopen",
  696. :x_frame_options => "sameorigin",
  697. :x_permitted_cross_domain_policies => "none",
  698. :x_xss_protection => "1; mode=block",
  699. :x_powered_by => "Phusion Passenger 4.0.18",
  700. :set_cookie => [
  701. [0] "_session_id=12c7fe7b760cd92f8fd09ced6d8b3a04; path=/; secure; HttpOnly; SameSite=Lax"
  702. ],
  703. :etag => "W/\"5e598400743bf5d63d2f021fb66a8f01-gzip\"",
  704. :status => "200 OK",
  705. :vary => "Accept-Encoding",
  706. :content_encoding => "gzip",
  707. :content_length => "324",
  708. :content_type => "application/json; charset=utf-8"
  709. }
  710. [ ] [0%][ INFO 2019-03-25 14:10:55 API] Server: https://satellite2.twinpeaks.io/
  711. [ INFO 2019-03-25 14:10:55 API] GET /foreman_tasks/api/tasks/8095bccf-3ca1-4fcb-af13-7974d2e66e45
  712. [DEBUG 2019-03-25 14:10:55 API] Params: {}
  713. [DEBUG 2019-03-25 14:10:55 API] Headers: {
  714. :params => {}
  715. }
  716. [DEBUG 2019-03-25 14:10:56 API] Response: {
  717. "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
  718. "label" => "Actions::Katello::Repository::MetadataGenerate",
  719. "pending" => false,
  720. "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
  721. "username" => "admin",
  722. "started_at" => "2019-03-25 13:10:57 UTC",
  723. "ended_at" => "2019-03-25 13:10:59 UTC",
  724. "state" => "stopped",
  725. "result" => "success",
  726. "progress" => 1.0,
  727. "input" => {
  728. "services_checked" => [
  729. [0] "pulp",
  730. [1] "pulp_auth"
  731. ]
  732. },
  733. "output" => {},
  734. "humanized" => {
  735. "action" => "Metadata generate",
  736. "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
  737. "output" => "",
  738. "errors" => []
  739. },
  740. "cli_example" => nil
  741. }
  742. [DEBUG 2019-03-25 14:10:56 API] Response headers: {
  743. :date => "Mon, 25 Mar 2019 13:11:00 GMT",
  744. :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
  745. :foreman_version => "1.18.0.40",
  746. :foreman_api_version => "2",
  747. :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
  748. :cache_control => "max-age=0, private, must-revalidate",
  749. :x_request_id => "d0bd06dd-edec-4639-9dd0-6d43ef206150",
  750. :x_runtime => "0.115190",
  751. :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'",
  752. :strict_transport_security => "max-age=631139040; includeSubdomains",
  753. :x_content_type_options => "nosniff",
  754. :x_download_options => "noopen",
  755. :x_frame_options => "sameorigin",
  756. :x_permitted_cross_domain_policies => "none",
  757. :x_xss_protection => "1; mode=block",
  758. :x_powered_by => "Phusion Passenger 4.0.18",
  759. :set_cookie => [
  760. [0] "_session_id=ec9ad14ffafc2c688312d4763f904ab6; path=/; secure; HttpOnly; SameSite=Lax"
  761. ],
  762. :etag => "W/\"66f524cbf1ef7785168a81c5dca0f21a-gzip\"",
  763. :status => "200 OK",
  764. :vary => "Accept-Encoding",
  765. :content_encoding => "gzip",
  766. :content_length => "329",
  767. :content_type => "application/json; charset=utf-8"
  768. }
  769. [.........................................................................................................................................................................................................] [100%]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement