Host creation from Red Hat Satellite 6 with volume options does not create multiple volumes.

Solution Verified - Updated -

Issue

  • While creating host with multiple volumes it fails if the syntax is incorrect.
# hammer host create \
--name host.example.com \
--organization-id 1 \
--location-id 2 \
--ansible-role-ids '["99", "103", "138"]' \
--build False \
--hostgroup-id 22 \
--managed True \
--interface='{
    "ip": "IP Address",
    "type": "interface",
    "subnet_id": "4",
    "domain_id": "1",
    "compute_type": "VMWare"
}' \
--volume='[{
    "name": "name of the volume",
    "datastore": "name or ID of Datastore",
    "mode": "persistent",
    "size_gb": "50",
    "thin": "False",
    "controller_key": "1000"
}, {
    "name": "name of the volume",
    "datastore": "name or ID of Datastore",
    "mode": "persistent",
    "size_gb": "20",
    "thin": "False",
    "controller_key": "1001"
}]' \

Environment

  • Red Hat Satellite 6.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content