Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A good way to find the request/response details is to open debug option of OpenStack CLI, which is --debug, just like cyeoh-0 said.

nova --debug boot --config-drive=true --user-data ./cloud.cfg --key-name cloud_init_test --file ~/gpanda/person_file_1=person_files/person_file_1 --image ci_image_x --flavor 3 --nic net-id=81100ebe-46b3-4a20-8e67-d4d0ef7e5dc8,v4-fixed-ip=IP vm_a

Then a series of curl http REQ/RESP show up, the major one for this nova boot is like:

REQ: curl -i 'https://"HOST"/openstack/compute/v2/17c760d7e8144f8cabf01ef260c80e85/servers' -X POST -H "X-Auth-Project-Id: ibm-default" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 330af453c51e4923b7f8e74cc354c2c2" -d '{"server": {"name": "vm_a", "imageRef": "62b91d66-4ec9-41ea-b6f7-cc6eb556b10d", "key_name": "cloud_init_test", "flavorRef": "3", "user_data": "base64_encoded_user_data_file_content", "max_count": 1, "min_count": 1, "personality": [{"path": "/root/gpanda/person_file_1", "contents": ""}], "networks": [{"fixed_ip": "THE_IP", "uuid": "81100ebe-46b3-4a20-8e67-d4d0ef7e5dc8"}], "config_drive": true}}'