[ 
https://issues.apache.org/jira/browse/DTACLOUD-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562710#comment-13562710
 ] 

Joseph J. VLcek commented on DTACLOUD-437:
------------------------------------------

# Start Deltacloud to RHEVm3.1 API provider on localhost:3001 


# base64 encode some user data
% echo "Joes Test user data" | base64
Sm9lcyBUZXN0IHVzZXIgZGF0YQo=

# Create it.
% curl \
  -X POST \
  --user "<un:pw>" \
  -F "image_id=<image-id>" \
  -F "name=JoeV_user_data_test" \
  -F "hwp_id=SERVER" \
  -F "hwp_memory=2048" \
  -F "user_data=Sm9lcyBUZXN0IHVzZXIgZGF0YQo=" \
  "http://localhost:3001/api/instances?format=xml";
# returns <instance-id>

# Start it.
% curl \
  -X POST \
  --user "<un:pw>" \
  "http://localhost:3001/api/instances/<instance-id>/start?format=xml"

% curl \
  -X GET \
  --user "<un:pw>" \
  "http://localhost:3001/api/instances/<instance-id>?format=xml"

                
> Empty user-data genrated on rhevm3.1 instance 
> ----------------------------------------------
>
>                 Key: DTACLOUD-437
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-437
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Joseph J. VLcek
>
> If using curl or the web interface to pass user-data when creating an 
> instance on
> rhev3.1 the user-data is empty.
> # modprobe floppy
> # mount /dev/fd0 /media 
> ...
> # ls -aFl /media/*
> -rwxr-xr-x. 1 root root 0 Jan 24  2013 /media/vmPayload*
> # cat /media/vmPayload  
> <nada>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to