Bug 1379610

Summary: hammer host create do not set VMware interfaces type VMXNET3
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: Compute Resources - VMWareAssignee: Chris Roberts <chrobert>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.9CC: bbuckingham, bkearney, chrobert, ohadlevy, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-27 16:57:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ranjan Kumar 2016-09-27 08:34:12 UTC
Description of problem: Hammer host create command do not set interface type to VMXNET3

hammer -d host create --name wbf-u9899  \                                                
                   --comment                    "test host cerate vm" \                  
                   --build                      "false"  \                               
                   --hostgroup-id               7                                       
                   --organization               "ISCeco" \                               
                   --location                   "Bern"   \                               
                   --operatingsystem            "RHEL 7.2 Server" \                       
                   --domain                     "wbf.admin.ch"  \                        
                   --interface                  "compute_type=VirtualVmxnet3,network=network-466934"            \
                   --compute-attributes         cpus=2,memory_mb=2048,guest_id=rhel6_64Guest,hardware_version=Default,start=0,cluster=CL_BV_UNIX_BEFLL15A,scsi_controller_type=ParaVirtualSCSIController  \
                   --volume                     name="Hard Disk",datastore=ISC_LINUX_IN_001_FE15A_KOMBV_VPLEX,size=20,thin=true,eager_zero=false 
                   --compute-resource           "vCenter_BV"     \
                   --compute-profile            "MGMT-Standard"  \                       
                   --environment                "KT_ISCeco_WBF_Modules_2" \
                   --partition-table            "ISCeco partition default"   \
                   --provision-method           "build"                                 
                   --root-password              "In1ti8l_Pa5$" \     
                   --ip                         10.135.12.250  \                         
                   --subnet                     "10.135.12.0/23 Produktion" 

Here is debug log
07:38:59 root@wbf-u8060:~$ ./create_VM
[ INFO 2016-09-27 07:39:07 Init] Initialization of Hammer CLI (0.1.4.13) has started...
[DEBUG 2016-09-27 07:39:07 Init] Running at ruby 2.0.0-p598
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[ INFO 2016-09-27 07:39:07 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded
[DEBUG 2016-09-27 07:39:07 Connection] Registered: foreman
[DEBUG 2016-09-27 07:39:07 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "en"
}
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_foreman (0.1.4.15) loaded
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.2.7) loaded
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_foreman_discovery (0.0.1.10) loaded
[ INFO 2016-09-27 07:39:08 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2016-09-27 07:39:08 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_gutterball (0.0.1.3) loaded
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_import (0.10.20) loaded
[ INFO 2016-09-27 07:39:08 Modules] Extension module hammer_cli_katello (0.0.7.21) loaded
[DEBUG 2016-09-27 07:39:08 Init] Using locale 'en'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.1.4.13/locale'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.1.4.15/locale'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.3.10/locale'
[DEBUG 2016-09-27 07:39:08 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/share/gems/gems/hammer_cli_katello-0.0.7.21/locale'
[ INFO 2016-09-27 07:39:08 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[ INFO 2016-09-27 07:39:08 HammerCLIForeman::Host] Called with options: {}
[ INFO 2016-09-27 07:39:08 HammerCLIForeman::Host::CreateCommand] Called with options: {"option_root_password"=>"***", "option_managed"=>true, "option_build"=>false, "option_enabled"=>true, "option_compute_attributes"=>{"cpus"=>"2", "memory_mb"=>"2048", "guest_id"=>"rhel6_64Guest", "hardware_version"=>"Default", "start"=>"0", "cluster"=>"CL_BV_UNIX_BEFLL15A", "scsi_controller_type"=>"ParaVirtualSCSIController"}, "option_volume_list"=>[{"name"=>"Hard Disk", "datastore"=>"ISC_LINUX_IN_001_FE15A_KOMBV_VPLEX", "size"=>"20", "thin"=>"true", "eager_zero"=>"false"}], "option_interface_list"=>[{"compute_type"=>"VirtualVmxnet3", "network"=>"network-466934"}], "option_provision_method"=>"build", "option_location_name"=>"Bern", "option_organization_name"=>"ISCeco", "option_environment_name"=>"KT_ISCeco_WBF_Prod_Puppet_Modules_2", "option_domain_name"=>"wbf.admin.ch", "option_operatingsystem_title"=>"RHEL 7.2 Server", "option_ptable_name"=>"ISCeco partition default", "option_subnet_name"=>"10.135.12.0/23 Produktion", "option_compute_resource_name"=>"vCenter_BV", "option_hostgroup_id"=>"7", "option_compute_profile_name"=>"MGMT-Standard", "option_name"=>"wbf-u9899", "option_ip"=>"10.135.12.250", "option_comment"=>"test host cerate vm"}
[ INFO 2016-09-27 07:39:08 API] GET /api/locations
[DEBUG 2016-09-27 07:39:08 API] Params: {
    :search => "name = \"Bern\""
}
[DEBUG 2016-09-27 07:39:08 API] Headers: {
    :params => {
        :search => "name = \"Bern\""
    }
}
[DEBUG 2016-09-27 07:39:09 API] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"Bern\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                    "id" => 2,
                  "name" => "Bern",
                 "title" => "Bern",
            "created_at" => "2016-08-18T09:06:11Z",
            "updated_at" => "2016-08-18T09:06:11Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:09 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:08 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "5ba09412c7daf5657958eeb77588fd2e",
              :x_runtime => "0.470615",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTZmOTQ5MTU3YzkyZWNlYjc1NWY5NTdiZTg4YzlmYzZlBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--00cf9277092724ee1ee205736f82f61b520af6c3; path=/; secure; HttpOnly"
    ],
                   :etag => "\"073825e34ddb4c97322c311361fac01c\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:09 API] GET /katello/api/organizations
[DEBUG 2016-09-27 07:39:09 API] Params: {
    :search => "name = \"ISCeco\""
}
[DEBUG 2016-09-27 07:39:09 API] Headers: {
    :params => {
        :search => "name = \"ISCeco\""
    }
}
[DEBUG 2016-09-27 07:39:10 API] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"ISCeco\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                    "id" => 1,
                  "name" => "ISCeco",
                 "title" => "ISCeco",
                 "label" => "ISCeco_WBF",
            "created_at" => "2016-08-18T09:06:11Z",
            "updated_at" => "2016-09-06T15:33:04Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:10 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:09 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "00c8046d13fd218a90630ae30c26fc85",
              :x_runtime => "0.249778",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTFiZWVkYTA4YTljZjNmNDU0NzhjMWQ0ZTlkM2U5Y2M2BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--c195a59cb11cfb327e047d540134f2efba659c4c; path=/; secure; HttpOnly"
    ],
                   :etag => "\"1222d8b10702a5715d6480bfe2ae4dfb\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:10 API] GET /api/environments
[DEBUG 2016-09-27 07:39:10 API] Params: {
    :search => "name = \"KT_ISCeco_WBF_Prod_Puppet_Modules_2\""
}
[DEBUG 2016-09-27 07:39:10 API] Headers: {
    :params => {
        :search => "name = \"KT_ISCeco_WBF_Prod_Puppet_Modules_2\""
    }
}
[DEBUG 2016-09-27 07:39:10 API] Response: {
       "total" => 24,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"KT_ISCeco_WBF_Prod_Puppet_Modules_2\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                  "name" => "KT_ISCeco_WBF_Prod_Puppet_Modules_2",
                    "id" => 18,
            "created_at" => "2016-09-07T09:05:40Z",
            "updated_at" => "2016-09-07T09:05:40Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:10 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:10 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "1d1e0f2f90e1faf8f1a784fdc4f53029",
              :x_runtime => "0.105128",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTY1OTBhMWQ2NTk2NTc4YmY5MjI4ZTYxMTI4ZmJhY2NjBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--3d3f90b4b8eb85510213696829ed728aa628ba92; path=/; secure; HttpOnly"
    ],
                   :etag => "\"9b6d4e1c033d2820334f62bd990c5d69\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:10 API] GET /api/domains
[DEBUG 2016-09-27 07:39:10 API] Params: {
    :search => "name = \"wbf.admin.ch\""
}
[DEBUG 2016-09-27 07:39:10 API] Headers: {
    :params => {
        :search => "name = \"wbf.admin.ch\""
    }
}
[DEBUG 2016-09-27 07:39:10 API] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"wbf.admin.ch\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                    "id" => 1,
                  "name" => "wbf.admin.ch",
              "fullname" => nil,
                "dns_id" => nil,
            "created_at" => "2016-08-18T09:34:38Z",
            "updated_at" => "2016-08-18T09:34:38Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:10 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:10 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "2c1e4c2fdb22bef1defdc4005cc3ca3c",
              :x_runtime => "0.114689",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTJiYzUzZTgxM2Q1NDUwNWEzZGVlOTBmYWM3ZTQyMjc0BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--a83930ae85c18042a0f81d1b77f7aaadea08ae6e; path=/; secure; HttpOnly"
    ],
                   :etag => "\"05efffa2fc030b67392cad60ab311b10\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:10 API] GET /api/operatingsystems
[DEBUG 2016-09-27 07:39:10 API] Params: {
    :search => "title = \"RHEL 7.2 Server\""
}
[DEBUG 2016-09-27 07:39:10 API] Headers: {
    :params => {
        :search => "title = \"RHEL 7.2 Server\""
    }
}
[DEBUG 2016-09-27 07:39:11 API] Response: {
       "total" => 2,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "title = \"RHEL 7.2 Server\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                       "id" => 1,
                     "name" => "RedHat",
                    "title" => "RHEL 7.2 Server",
              "description" => "RHEL 7.2 Server",
                    "major" => "7",
                    "minor" => "2",
                   "family" => "Redhat",
             "release_name" => "",
            "password_hash" => "SHA512",
               "created_at" => "2016-08-18T09:34:38Z",
               "updated_at" => "2016-09-19T11:02:23Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:11 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:10 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "b1d89aeecc03067871f948ffe6610f21",
              :x_runtime => "0.374812",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTg2NzQ4OWQ1ZWJhZGVhZWFkNDNjNjM4ZTBhMWRmYTllBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--459c4abdba3c288a4be081034faef31abfee57c7; path=/; secure; HttpOnly"
    ],
                   :etag => "\"786394aa86f4c8670aeb0c166dc135fd\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:11 API] GET /api/ptables
[DEBUG 2016-09-27 07:39:11 API] Params: {
    :search => "name = \"ISCeco partition default\""
}
[DEBUG 2016-09-27 07:39:11 API] Headers: {
    :params => {
        :search => "name = \"ISCeco partition default\""
    }
}
[DEBUG 2016-09-27 07:39:11 API] Response: {
       "total" => 11,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"ISCeco partition default\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                  "name" => "ISCeco partition default",
                    "id" => 11,
             "os_family" => "Redhat",
            "created_at" => "2016-09-07T11:39:43Z",
            "updated_at" => "2016-09-19T07:22:43Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:11 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:11 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "603b7a7dd36f16e4b65ed85acff261ba",
              :x_runtime => "0.128821",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWE1NDFiYjg0YWRkYmQyNzQ3NjE0YjM0NTJiYTMzM2E1BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--72abe6dfb6fcf8348a272408a0ff8cdbc3068cc4; path=/; secure; HttpOnly"
    ],
                   :etag => "\"d50a563d3852aaec6e511d9ae9e9fdb1\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:11 API] GET /api/subnets
[DEBUG 2016-09-27 07:39:11 API] Params: {
    :search => "name = \"10.135.12.0/23 Produktion\""
}
[DEBUG 2016-09-27 07:39:11 API] Headers: {
    :params => {
        :search => "name = \"10.135.12.0/23 Produktion\""
    }
}
[DEBUG 2016-09-27 07:39:11 API] Response: {
       "total" => 4,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"10.135.12.0/23 Produktion\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                         "id" => 3,
                       "name" => "10.135.12.0/23 Produktion",
            "network_address" => "10.135.12.0/23",
                    "network" => "10.135.12.0",
                       "cidr" => 23,
                       "mask" => "255.255.254.0",
                   "priority" => nil,
                     "vlanid" => "",
                    "gateway" => "10.135.12.1",
                "dns_primary" => "10.135.12.70",
              "dns_secondary" => "10.135.12.87",
                       "from" => "",
                         "to" => "",
                 "created_at" => "2016-09-07T11:39:35Z",
                 "updated_at" => "2016-09-19T11:18:14Z",
                       "ipam" => "None",
                  "boot_mode" => "Static",
                       "dhcp" => nil,
                       "tftp" => {
                "name" => "wbf-u8060.wbf.admin.ch",
                  "id" => 1,
                 "url" => "https://wbf-u8060.wbf.admin.ch:9090"
            },
                        "dns" => nil
        }
    ]
}
[DEBUG 2016-09-27 07:39:11 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:11 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "d79dab19c23ff434b83ebd5d4e632cbb",
              :x_runtime => "0.176314",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJThiMTBhMzVjOTlhOWRjYTZkNDZmOGU0ZWI4MTQ4OTI1BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--f7ec05052360143e3e4592661dca9530a434b0e5; path=/; secure; HttpOnly"
    ],
                   :etag => "\"90ff434ea58505ed2b0a8291914107a9\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:11 API] GET /api/compute_resources
[DEBUG 2016-09-27 07:39:11 API] Params: {
    :search => "name = \"vCenter_BV\""
}
[DEBUG 2016-09-27 07:39:11 API] Headers: {
    :params => {
        :search => "name = \"vCenter_BV\""
    }
}
[DEBUG 2016-09-27 07:39:11 API] Response: {
       "total" => 1,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"vCenter_BV\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                                "id" => 1,
                              "name" => "vCenter_BV",
                          "provider" => "Vmware",
            "provider_friendly_name" => "VMWare",
                       "description" => "vCenter BV",
                               "url" => "evd-v8200.evdad.admin.ch",
                        "created_at" => "2016-09-07T11:46:48Z",
                        "updated_at" => "2016-09-07T11:46:48Z",
                              "user" => "evdad\\svc-satellite",
                        "datacenter" => "DC_BV_UNIX",
                            "server" => "evd-v8200.evdad.admin.ch",
              "set_console_password" => true
        }
    ]
}
[DEBUG 2016-09-27 07:39:11 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:11 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "e367c3d07472083c61254979925b2cda",
              :x_runtime => "0.163116",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQ0MTM3OGYyNGY3M2EzZDA3N2JjMGNlMzQ1NjE1OWRkBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--4ea706d3a416720acd57e6d209ca0f1a7bc3e4ac; path=/; secure; HttpOnly"
    ],
                   :etag => "\"bce65539c301ce7ccc0e29897ddc2d16\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:12 API] GET /api/compute_profiles
[DEBUG 2016-09-27 07:39:12 API] Params: {
    :search => "name = \"MGMT-Standard\""
}
[DEBUG 2016-09-27 07:39:12 API] Headers: {
    :params => {
        :search => "name = \"MGMT-Standard\""
    }
}
[DEBUG 2016-09-27 07:39:12 API] Response: {
       "total" => 10,
    "subtotal" => 1,
        "page" => 1,
    "per_page" => 20,
      "search" => "name = \"MGMT-Standard\"",
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                    "id" => 8,
                  "name" => "MGMT-Standard",
            "created_at" => "2016-09-07T11:53:48Z",
            "updated_at" => "2016-09-12T05:15:02Z"
        }
    ]
}
[DEBUG 2016-09-27 07:39:12 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:12 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "must-revalidate, private, max-age=0",
           :x_request_id => "79a69202c13ef7d14477cb4e2caac2c5",
              :x_runtime => "0.121252",
           :x_rack_cache => "miss",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTk2NzRlMTliYWMxOWE2MmJjMjlhZmM3MWU0M2JmYWM2BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--15751aad0b55e1b12202bd23dff91d63240b42b2; path=/; secure; HttpOnly"
    ],
                   :etag => "\"111eab639de178cb7ac2624f62a1864f\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
[ INFO 2016-09-27 07:39:12 API] POST /api/hosts
[DEBUG 2016-09-27 07:39:12 API] Params: {
    "host" => {
                              "name" => "wbf-u9899",
                       "location_id" => 2,
                   "organization_id" => 1,
                    "environment_id" => 18,
                                "ip" => "10.135.12.250",
                         "domain_id" => 1,
                "operatingsystem_id" => 1,
                         "ptable_id" => 11,
                         "subnet_id" => 3,
               "compute_resource_id" => 1,
                      "hostgroup_id" => "7",
                             "build" => false,
                           "enabled" => true,
                  "provision_method" => "build",
                           "managed" => true,
                           "comment" => "test host cerate vm",
                "compute_profile_id" => 8,
                "compute_attributes" => {
                            "cpus" => "2",
                       "memory_mb" => "2048",
                        "guest_id" => "rhel6_64Guest",
                "hardware_version" => "Default",
                           "start" => "0",
                         "cluster" => "CL_BV_UNIX_BEFLL15A",
            "scsi_controller_type" => "ParaVirtualSCSIController",
              "volumes_attributes" => {
                "0" => {
                          "name" => "Hard Disk",
                     "datastore" => "ISC_LINUX_IN_001_FE15A_KOMBV_VPLEX",
                          "size" => "20",
                          "thin" => "true",
                    "eager_zero" => "false"
                }
            }
        },
                          "owner_id" => nil,
                   "puppet_proxy_id" => nil,
                "puppet_ca_proxy_id" => nil,
                   "puppetclass_ids" => nil,
        "host_parameters_attributes" => {},
             "interfaces_attributes" => {
            "0" => {
                "compute_type" => "VirtualVmxnet3",
                    "network" => "network-466934"
            }
        },
                         "root_pass" => "In1ti8l_Pa5$"
    }
}
[DEBUG 2016-09-27 07:39:12 API] Headers: {}
[DEBUG 2016-09-27 07:39:21 API] Response: {
                     "name" => "wbf-u9899.wbf.admin.ch",
                       "id" => 47,
                       "ip" => "10.135.12.250",
           "environment_id" => 18,
         "environment_name" => "KT_ISCeco_WBF_Prod_Puppet_Modules_2",
              "last_report" => nil,
                      "mac" => "00:50:56:96:09:53",
                 "realm_id" => nil,
               "realm_name" => nil,
                   "sp_mac" => nil,
                    "sp_ip" => nil,
                  "sp_name" => nil,
                "domain_id" => 1,
              "domain_name" => "wbf.admin.ch",
          "architecture_id" => 1,
        "architecture_name" => "x86_64",
       "operatingsystem_id" => 1,
     "operatingsystem_name" => "RHEL 7.2 Server",
                "subnet_id" => 3,
              "subnet_name" => "10.135.12.0/23 Produktion",
             "sp_subnet_id" => nil,
                "ptable_id" => 11,
              "ptable_name" => "ISCeco partition default",
                "medium_id" => 7,
              "medium_name" => "ISCeco_WBF/Library/Red_Hat_Server/Red_Hat_Enterprise_Linux_7_Server_Kickstart_x86_64_7_2",
                    "build" => false,
                  "comment" => "test host cerate vm",
                     "disk" => nil,
             "installed_at" => nil,
                 "model_id" => nil,
               "model_name" => nil,
             "hostgroup_id" => 7,
           "hostgroup_name" => "MGMT",
                 "owner_id" => 3,
               "owner_type" => "User",
                  "enabled" => true,
       "puppet_ca_proxy_id" => 1,
                  "managed" => true,
                "use_image" => nil,
               "image_file" => "",
                     "uuid" => "50163d87-fa0f-b7c8-75b1-8faebedacb03",
      "compute_resource_id" => 1,
    "compute_resource_name" => "vCenter_BV",
       "compute_profile_id" => 8,
     "compute_profile_name" => "MGMT-Standard",
             "capabilities" => [
        [0] "build",
        [1] "image"
    ],
         "provision_method" => "build",
          "puppet_proxy_id" => 1,
                 "certname" => "wbf-u9899.wbf.admin.ch",
                 "image_id" => nil,
               "image_name" => nil,
               "created_at" => "2016-09-27T05:39:19Z",
               "updated_at" => "2016-09-27T05:39:19Z",
             "last_compile" => nil,
          "last_freshcheck" => nil,
                   "serial" => nil,
           "source_file_id" => nil,
            "puppet_status" => 0,
          "organization_id" => 1,
        "organization_name" => "ISCeco",
              "location_id" => 2,
            "location_name" => "Bern",
        "all_puppetclasses" => [
        [ 0] {
                     "id" => 2,
                   "name" => "auditd",
            "module_name" => "auditd"
        },
        [ 1] {
                     "id" => 3,
                   "name" => "banner",
            "module_name" => "banner"
        },
        [ 2] {
                     "id" => 4,
                   "name" => "bashlog",
            "module_name" => "bashlog"
        },
        [ 3] {
                     "id" => 5,
                   "name" => "fonts",
            "module_name" => "fonts"
        },
        [ 4] {
                     "id" => 20,
                   "name" => "foreman_scap_client",
            "module_name" => "foreman_scap_client"
        },
        [ 5] {
                     "id" => 19,
                   "name" => "foreman_scap_client::params",
            "module_name" => "foreman_scap_client"
        },
        [ 6] {
                     "id" => 6,
                   "name" => "nagios",
            "module_name" => "nagios"
        },
        [ 7] {
                     "id" => 8,
                   "name" => "postfix",
            "module_name" => "postfix"
        },
        [ 8] {
                     "id" => 7,
                   "name" => "postfix::config",
            "module_name" => "postfix"
        },
        [ 9] {
                     "id" => 9,
                   "name" => "prompt",
            "module_name" => "prompt"
        },
        [10] {
                     "id" => 10,
                   "name" => "splunkforwarder",
            "module_name" => "splunkforwarder"
        },
        [11] {
                     "id" => 11,
                   "name" => "splunkforwarder::nmon",
            "module_name" => "splunkforwarder"
        },
        [12] {
                     "id" => 13,
                   "name" => "sshd",
            "module_name" => "sshd"
        },
        [13] {
                     "id" => 12,
                   "name" => "sshd::config",
            "module_name" => "sshd"
        },
        [14] {
                     "id" => 14,
                   "name" => "sshd::security",
            "module_name" => "sshd"
        },
        [15] {
                     "id" => 15,
                   "name" => "sysctl",
            "module_name" => "sysctl"
        },
        [16] {
                     "id" => 17,
                   "name" => "syslogng",
            "module_name" => "syslogng"
        },
        [17] {
                     "id" => 16,
                   "name" => "syslogng::config",
            "module_name" => "syslogng"
        },
        [18] {
                     "id" => 18,
                   "name" => "syslogng::logrotate",
            "module_name" => "syslogng"
        }
    ],
               "parameters" => [],
               "interfaces" => [
        [0] {
                    "id" => 32,
                  "name" => nil,
                    "ip" => nil,
                   "mac" => nil,
            "identifier" => nil,
                  "type" => "base"
        }
    ],
            "puppetclasses" => [],
            "config_groups" => []
}
[DEBUG 2016-09-27 07:39:21 API] Response headers: {
                   :date => "Tue, 27 Sep 2016 05:39:12 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "2ff300f5db2e930311aa268997f1202e",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "max-age=0, private, must-revalidate",
           :x_request_id => "dfe034a8eadd0a32b5f919744cd36661",
              :x_runtime => "8.780000",
           :x_rack_cache => "invalidate, pass",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWE3YjBhYzVmNGRlNTM4MDZlZWEzZDI2ODg3MTRiMDM5BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--28ba8d1207c385d28d834f7bfddf8dd050b42712; path=/; secure; HttpOnly"
    ],
                   :etag => "\"0e5cc2f252dc3dddb4c2fe79f50b067f\"",
                 :status => "200 OK",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
Host created But do not set correct network type.

Even tried to set interfaces="type=VirtualVmxnet3,network=network-466934" but got errror "uninitialized constant VirtualVmxnet3"

Comment 2 Tomas Strachota 2016-11-28 16:31:39 UTC
This is a hammer issue in 6.1. It sends compute attributes for NICs in a wrong parameter when compute resource is identified by name. If you use --compute-resource-id it works.

Satellite 6.2 fixes the problem.

Please note that in 6.1 there are no "compute_" prefixes, so the option should be:
--interface "type=VirtualVmxnet3,network=network-466934"

Comment 4 Bryan Kearney 2017-03-27 16:57:57 UTC
We do not plan on fixing this for Satellite 6.1. I am closing this out as WONTFIX. If you feel this was done in error, please feel free to re-open with additional information. This is fixed in 6.2.