Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhel-sevensix-hammer andreasn]# hammer -d repository upload-content --name "my-production-images" --product "asdf" --organization "twinpeaks" --path "hej.txt"
- [ INFO 2019-03-25 14:10:47 Init] Initialization of Hammer CLI (0.5.1.13) has started...
- [DEBUG 2019-03-25 14:10:47 Init] Running at ruby 2.2.9-p480
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
- [ INFO 2019-03-25 14:10:47 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded
- [DEBUG 2019-03-25 14:10:48 Connection] Registered: foreman
- [DEBUG 2019-03-25 14:10:48 API] Global headers: {
- :content_type => "application/json",
- :accept => "application/json;version=2",
- "Accept-Language" => "en"
- }
- [DEBUG 2019-03-25 14:10:48 API] Follow redirects: never
- [ INFO 2019-03-25 14:10:48 Modules] Extension module hammer_cli_foreman (0.5.1.10) loaded
- [ INFO 2019-03-25 14:10:48 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3.3) loaded
- [ INFO 2019-03-25 14:10:48 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
- [ INFO 2019-03-25 14:10:48 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
- [ INFO 2019-03-25 14:10:49 Modules] Extension module hammer_cli_katello (0.0.22.29) loaded
- [DEBUG 2019-03-25 14:10:49 Init] Using locale 'en'
- [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'
- [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'
- [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'
- [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'
- [ INFO 2019-03-25 14:10:49 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
- [ INFO 2019-03-25 14:10:49 HammerCLIKatello::Repository] Called with options: {}
- [ 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"]}
- [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:49 API] GET /katello/api/organizations
- [DEBUG 2019-03-25 14:10:49 API] Params: {
- :search => "name = \"twinpeaks\""
- }
- [DEBUG 2019-03-25 14:10:49 API] Headers: {
- :params => {
- :search => "name = \"twinpeaks\""
- }
- }
- [DEBUG 2019-03-25 14:10:49 API] Response: {
- "total" => 2,
- "subtotal" => 1,
- "page" => 1,
- "per_page" => 20,
- "search" => "name = \"twinpeaks\"",
- "sort" => {
- "by" => nil,
- "order" => nil
- },
- "results" => [
- [0] {
- "label" => "twinpeaks",
- "created_at" => "2019-03-07 12:58:50 UTC",
- "updated_at" => "2019-03-22 17:47:26 UTC",
- "id" => 1,
- "name" => "twinpeaks",
- "title" => "twinpeaks",
- "description" => ""
- }
- ]
- }
- [DEBUG 2019-03-25 14:10:49 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "2d2e5117-c523-4810-a389-3dd8e003c34c",
- :x_runtime => "0.155556",
- :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.18",
- :set_cookie => [
- [0] "_session_id=92b515a148fec9812c80fd5dad413349; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"f81bf8a8b6e2098e2ac82345602ca822-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "216",
- :content_type => "application/json; charset=utf-8"
- }
- [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:49 API] GET /katello/api/organizations/1/products
- [DEBUG 2019-03-25 14:10:49 API] Params: {
- "name" => "asdf"
- }
- [DEBUG 2019-03-25 14:10:49 API] Headers: {
- :params => {
- "name" => "asdf"
- }
- }
- [DEBUG 2019-03-25 14:10:49 API] Response: {
- "total" => 1,
- "subtotal" => 1,
- "page" => 1,
- "per_page" => 20,
- "error" => nil,
- "search" => nil,
- "sort" => {
- "by" => "name",
- "order" => "asc"
- },
- "results" => [
- [0] {
- "id" => 1,
- "cp_id" => "893682385084",
- "name" => "asdf",
- "label" => "asdf",
- "description" => nil,
- "provider_id" => 1,
- "sync_plan_id" => nil,
- "sync_summary" => {},
- "gpg_key_id" => nil,
- "ssl_ca_cert_id" => nil,
- "ssl_client_cert_id" => nil,
- "ssl_client_key_id" => nil,
- "sync_state" => nil,
- "last_sync" => nil,
- "last_sync_words" => nil,
- "organization_id" => 1,
- "organization" => {
- "name" => "twinpeaks",
- "label" => "twinpeaks",
- "id" => 1
- },
- "sync_plan" => nil,
- "repository_count" => 2
- }
- ]
- }
- [DEBUG 2019-03-25 14:10:49 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "23cc92b5-7a1c-4f25-af91-769b680b35f4",
- :x_runtime => "0.114858",
- :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.18",
- :set_cookie => [
- [0] "_session_id=400edc6f3bad916e573d9e9c1c735443; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"dd60cebf2ea03c7fd504f44cfb2139b0-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "273",
- :content_type => "application/json; charset=utf-8"
- }
- [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:49 API] GET /katello/api/products/1/repositories
- [DEBUG 2019-03-25 14:10:49 API] Params: {
- "name" => "my-production-images"
- }
- [DEBUG 2019-03-25 14:10:49 API] Headers: {
- :params => {
- "name" => "my-production-images"
- }
- }
- [DEBUG 2019-03-25 14:10:49 API] Response: {
- "total" => 1,
- "subtotal" => 1,
- "page" => 1,
- "per_page" => 20,
- "error" => nil,
- "search" => nil,
- "sort" => {
- "by" => "name",
- "order" => "asc"
- },
- "results" => [
- [0] {
- "content_type" => "file",
- "url" => nil,
- "relative_path" => "twinpeaks/Library/custom/asdf/my-production-images",
- "arch" => "noarch",
- "content_id" => "1553265986950",
- "backend_identifier" => "81d1a8d6-2208-4050-9b21-b414809a8d39",
- "content_label" => nil,
- "major" => nil,
- "minor" => nil,
- "id" => 2,
- "name" => "my-production-images",
- "label" => "my-production-images",
- "product" => {
- "id" => 1,
- "cp_id" => "893682385084",
- "name" => "asdf",
- "orphaned" => false,
- "sync_plan" => [
- [0] "name",
- [1] "description",
- [2] "sync_date",
- [3] "interval",
- [4] "next_sync"
- ]
- },
- "last_sync" => nil,
- "content_counts" => {
- "ostree_branch" => 0,
- "docker_manifest" => 0,
- "docker_manifest_list" => 0,
- "docker_tag" => 0,
- "rpm" => 0,
- "srpm" => 0,
- "package" => 0,
- "package_group" => 0,
- "erratum" => 0,
- "puppet_module" => 0,
- "file" => 0,
- "deb" => 0
- },
- "last_sync_words" => nil
- }
- ]
- }
- [DEBUG 2019-03-25 14:10:49 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "d2e85e04-8e94-48bf-9a2e-f4401d8ff86e",
- :x_runtime => "0.117798",
- :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.18",
- :set_cookie => [
- [0] "_session_id=0cd7c5848327d05e8430a981ff08b9fc; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"2c0817e51ae01d82fcf1f466bd059770-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "445",
- :content_type => "application/json; charset=utf-8"
- }
- [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:49 API] POST /katello/api/repositories/2/content_uploads
- [DEBUG 2019-03-25 14:10:49 API] Params: {}
- [DEBUG 2019-03-25 14:10:49 API] Headers: {}
- [DEBUG 2019-03-25 14:10:49 API] Response: {
- "upload_id" => "50d2bb95-df77-45e3-9bdc-3e1f30f476f3",
- "_href" => "/pulp/api/v2/content/uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3/"
- }
- [DEBUG 2019-03-25 14:10:49 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "db18113f-6e98-4627-a0c6-bceffae2f776",
- :x_runtime => "0.297824",
- :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.18",
- :set_cookie => [
- [0] "request_method=POST; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=2246d8830647eeba80abf320146479cf; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"974a8e7d7245e12778044e584d6fd028-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "108",
- :content_type => "application/json; charset=utf-8"
- }
- [ INFO 2019-03-25 14:10:49 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:49 API] PUT /katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3
- [DEBUG 2019-03-25 14:10:49 API] Params: {
- :offset => 0,
- :content => "hej!\n",
- :multipart => true
- }
- [DEBUG 2019-03-25 14:10:49 API] Headers: {
- :content_type => "multipart/form-data"
- }
- [DEBUG 2019-03-25 14:10:50 API] Response: #<String:0x03d902a8
- attr_accessor :args = {
- :timeout => nil,
- :headers => {
- :content_type => "multipart/form-data",
- :accept => "application/json;version=2",
- "Accept-Language" => "en"
- },
- :verify_ssl => false,
- :user => "admin",
- :password => "***",
- :oauth => nil,
- :method => :put,
- :url => "https://satellite2.twinpeaks.io//katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3",
- :payload => {
- :offset => 0,
- :content => "hej!\n"
- }
- },
- attr_accessor :net_http_res = #<Net::HTTPNoContent:0x03d9c850
- @body_exist = false,
- @read = true,
- @socket = nil,
- attr_accessor :body = nil,
- attr_accessor :decode_content = false,
- attr_accessor :uri = nil,
- attr_reader :code = "204",
- attr_reader :header = {
- "date" => [
- [0] "Mon, 25 Mar 2019 13:10:53 GMT"
- ],
- "server" => [
- [0] "Apache/2.4.6 (Red Hat Enterprise Linux)"
- ],
- "foreman_version" => [
- [0] "1.18.0.40"
- ],
- "foreman_api_version" => [
- [0] "2"
- ],
- "apipie-checksum" => [
- [0] "07cf04aea789e84c5b23a43901b02c9013002f13"
- ],
- "cache-control" => [
- [0] "no-cache"
- ],
- "x-request-id" => [
- [0] "3c405e2d-5379-4be0-8e1a-31c47de90d65"
- ],
- "x-runtime" => [
- [0] "0.125944"
- ],
- "content-security-policy" => [
- [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'"
- ],
- "strict-transport-security" => [
- [0] "max-age=631139040; includeSubdomains"
- ],
- "x-content-type-options" => [
- [0] "nosniff"
- ],
- "x-download-options" => [
- [0] "noopen"
- ],
- "x-frame-options" => [
- [0] "sameorigin"
- ],
- "x-permitted-cross-domain-policies" => [
- [0] "none"
- ],
- "x-xss-protection" => [
- [0] "1; mode=block"
- ],
- "x-powered-by" => [
- [0] "Phusion Passenger 4.0.18"
- ],
- "set-cookie" => [
- [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- "status" => [
- [0] "204 No Content"
- ]
- },
- attr_reader :http_version = "1.1",
- attr_reader :message = "No Content"
- >,
- attr_reader :code = 204,
- attr_reader :headers = {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "no-cache",
- :x_request_id => "3c405e2d-5379-4be0-8e1a-31c47de90d65",
- :x_runtime => "0.125944",
- :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.18",
- :set_cookie => [
- [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :status => "204 No Content"
- }
- >
- [DEBUG 2019-03-25 14:10:50 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:53 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "no-cache",
- :x_request_id => "3c405e2d-5379-4be0-8e1a-31c47de90d65",
- :x_runtime => "0.125944",
- :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.18",
- :set_cookie => [
- [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=39674e18631b7802353a9b7904b5e501; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :status => "204 No Content"
- }
- [ INFO 2019-03-25 14:10:50 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:50 API] PUT /katello/api/repositories/2/import_uploads
- [DEBUG 2019-03-25 14:10:50 API] Params: {
- :upload_ids => [
- [0] "50d2bb95-df77-45e3-9bdc-3e1f30f476f3"
- ],
- :publish_repository => false
- }
- [DEBUG 2019-03-25 14:10:50 API] Headers: {}
- [DEBUG 2019-03-25 14:10:53 API] 400 Bad Request
- {
- "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.",
- "errors" => [
- [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."
- ]
- }
- Failed to upload file 'hej.txt' to repository. Please check the file and try again.
- [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:53 API] DELETE /katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3
- [DEBUG 2019-03-25 14:10:53 API] Params: {}
- [DEBUG 2019-03-25 14:10:53 API] Headers: {
- :params => {}
- }
- [DEBUG 2019-03-25 14:10:53 API] Response: #<String:0x03c72d08
- attr_accessor :args = {
- :timeout => nil,
- :headers => {
- :content_type => "application/json",
- :accept => "application/json;version=2",
- "Accept-Language" => "en"
- },
- :verify_ssl => false,
- :user => "admin",
- :password => "***",
- :oauth => nil,
- :method => :delete,
- :url => "https://satellite2.twinpeaks.io//katello/api/repositories/2/content_uploads/50d2bb95-df77-45e3-9bdc-3e1f30f476f3"
- },
- attr_accessor :net_http_res = #<Net::HTTPNoContent:0x03c839c8
- @body_exist = false,
- @read = true,
- @socket = nil,
- attr_accessor :body = nil,
- attr_accessor :decode_content = false,
- attr_accessor :uri = nil,
- attr_reader :code = "204",
- attr_reader :header = {
- "date" => [
- [0] "Mon, 25 Mar 2019 13:10:57 GMT"
- ],
- "server" => [
- [0] "Apache/2.4.6 (Red Hat Enterprise Linux)"
- ],
- "foreman_version" => [
- [0] "1.18.0.40"
- ],
- "foreman_api_version" => [
- [0] "2"
- ],
- "apipie-checksum" => [
- [0] "07cf04aea789e84c5b23a43901b02c9013002f13"
- ],
- "cache-control" => [
- [0] "no-cache"
- ],
- "x-request-id" => [
- [0] "fc18e30e-d42a-4d18-93e4-db3829f8d304"
- ],
- "x-runtime" => [
- [0] "0.201516"
- ],
- "content-security-policy" => [
- [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'"
- ],
- "strict-transport-security" => [
- [0] "max-age=631139040; includeSubdomains"
- ],
- "x-content-type-options" => [
- [0] "nosniff"
- ],
- "x-download-options" => [
- [0] "noopen"
- ],
- "x-frame-options" => [
- [0] "sameorigin"
- ],
- "x-permitted-cross-domain-policies" => [
- [0] "none"
- ],
- "x-xss-protection" => [
- [0] "1; mode=block"
- ],
- "x-powered-by" => [
- [0] "Phusion Passenger 4.0.18"
- ],
- "set-cookie" => [
- [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- "status" => [
- [0] "204 No Content"
- ]
- },
- attr_reader :http_version = "1.1",
- attr_reader :message = "No Content"
- >,
- attr_reader :code = 204,
- attr_reader :headers = {
- :date => "Mon, 25 Mar 2019 13:10:57 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "no-cache",
- :x_request_id => "fc18e30e-d42a-4d18-93e4-db3829f8d304",
- :x_runtime => "0.201516",
- :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.18",
- :set_cookie => [
- [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :status => "204 No Content"
- }
- >
- [DEBUG 2019-03-25 14:10:53 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:57 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "no-cache",
- :x_request_id => "fc18e30e-d42a-4d18-93e4-db3829f8d304",
- :x_runtime => "0.201516",
- :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.18",
- :set_cookie => [
- [0] "request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=bd5c8a9b518e7365e950d164b2ef9cce; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :status => "204 No Content"
- }
- Publishing Repository.
- [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:53 API] PUT /katello/api/repositories/2/republish
- [DEBUG 2019-03-25 14:10:53 API] Params: {}
- [DEBUG 2019-03-25 14:10:53 API] Headers: {}
- [DEBUG 2019-03-25 14:10:53 API] Response: {
- "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
- "label" => "Actions::Katello::Repository::MetadataGenerate",
- "pending" => true,
- "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
- "username" => "admin",
- "started_at" => "2019-03-25 13:10:57 UTC",
- "ended_at" => nil,
- "state" => "planned",
- "result" => "pending",
- "progress" => 0.0,
- "input" => {
- "services_checked" => [
- [0] "pulp",
- [1] "pulp_auth"
- ]
- },
- "output" => {},
- "humanized" => {
- "action" => "Metadata generate",
- "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
- "output" => "",
- "errors" => []
- },
- "cli_example" => nil
- }
- [DEBUG 2019-03-25 14:10:53 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:57 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "no-cache",
- :x_request_id => "848ad1c4-8b0a-4ffe-8680-08bce9737a9f",
- :x_runtime => "0.508161",
- :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.18",
- :set_cookie => [
- [0] "request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax",
- [1] "_session_id=567e1b5a0def90cae653196bf8682bc1; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :status => "202 Accepted",
- :transfer_encoding => "chunked",
- :content_type => "application/json; charset=utf-8"
- }
- [ INFO 2019-03-25 14:10:53 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:53 API] GET /foreman_tasks/api/tasks/8095bccf-3ca1-4fcb-af13-7974d2e66e45
- [DEBUG 2019-03-25 14:10:53 API] Params: {}
- [DEBUG 2019-03-25 14:10:53 API] Headers: {
- :params => {}
- }
- [DEBUG 2019-03-25 14:10:53 API] Response: {
- "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
- "label" => "Actions::Katello::Repository::MetadataGenerate",
- "pending" => true,
- "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
- "username" => "admin",
- "started_at" => "2019-03-25 13:10:57 UTC",
- "ended_at" => nil,
- "state" => "planned",
- "result" => "pending",
- "progress" => 0.0,
- "input" => {
- "services_checked" => [
- [0] "pulp",
- [1] "pulp_auth"
- ]
- },
- "output" => {},
- "humanized" => {
- "action" => "Metadata generate",
- "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
- "output" => "",
- "errors" => []
- },
- "cli_example" => nil
- }
- [DEBUG 2019-03-25 14:10:53 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:10:57 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "dcde3b41-f159-4dba-b9e6-3ed69852f19d",
- :x_runtime => "0.133169",
- :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.18",
- :set_cookie => [
- [0] "_session_id=12c7fe7b760cd92f8fd09ced6d8b3a04; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"5e598400743bf5d63d2f021fb66a8f01-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "324",
- :content_type => "application/json; charset=utf-8"
- }
- [ ] [0%][ INFO 2019-03-25 14:10:55 API] Server: https://satellite2.twinpeaks.io/
- [ INFO 2019-03-25 14:10:55 API] GET /foreman_tasks/api/tasks/8095bccf-3ca1-4fcb-af13-7974d2e66e45
- [DEBUG 2019-03-25 14:10:55 API] Params: {}
- [DEBUG 2019-03-25 14:10:55 API] Headers: {
- :params => {}
- }
- [DEBUG 2019-03-25 14:10:56 API] Response: {
- "id" => "8095bccf-3ca1-4fcb-af13-7974d2e66e45",
- "label" => "Actions::Katello::Repository::MetadataGenerate",
- "pending" => false,
- "action" => "Metadata generate {\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}",
- "username" => "admin",
- "started_at" => "2019-03-25 13:10:57 UTC",
- "ended_at" => "2019-03-25 13:10:59 UTC",
- "state" => "stopped",
- "result" => "success",
- "progress" => 1.0,
- "input" => {
- "services_checked" => [
- [0] "pulp",
- [1] "pulp_auth"
- ]
- },
- "output" => {},
- "humanized" => {
- "action" => "Metadata generate",
- "input" => "{\"services_checked\"=>[\"pulp\", \"pulp_auth\"]}\n",
- "output" => "",
- "errors" => []
- },
- "cli_example" => nil
- }
- [DEBUG 2019-03-25 14:10:56 API] Response headers: {
- :date => "Mon, 25 Mar 2019 13:11:00 GMT",
- :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
- :foreman_version => "1.18.0.40",
- :foreman_api_version => "2",
- :apipie_checksum => "07cf04aea789e84c5b23a43901b02c9013002f13",
- :cache_control => "max-age=0, private, must-revalidate",
- :x_request_id => "d0bd06dd-edec-4639-9dd0-6d43ef206150",
- :x_runtime => "0.115190",
- :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.18",
- :set_cookie => [
- [0] "_session_id=ec9ad14ffafc2c688312d4763f904ab6; path=/; secure; HttpOnly; SameSite=Lax"
- ],
- :etag => "W/\"66f524cbf1ef7785168a81c5dca0f21a-gzip\"",
- :status => "200 OK",
- :vary => "Accept-Encoding",
- :content_encoding => "gzip",
- :content_length => "329",
- :content_type => "application/json; charset=utf-8"
- }
- [.........................................................................................................................................................................................................] [100%]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement