← Back to team overview

openstack team mailing list archive

Re: [OpenStack][Glance] Uploading image to glance reports invalid options- kernel_id, ramdisk_id

 

Just tried your suggestion, no change.  Odd thing is, these same setup
commands, to load an image into glance worked for me a month back.

root@bodega:~/ahmed/temp# glance image-create --name="tty-linux"
--disk-format=ami --container-format=ami
--kernel-id=14652b05-0c27-45d1-b614-a059c9f4f7dc
--ramdisk-id=c0f6a4df-5051-49d3-855e-8627c6c15ba6 <
ttylinux-uec-amd64-12.1_2.6.35-22_1.img
usage: glance [-d] [-v] [-k] [--cert-file CERT_FILE] [--key-file KEY_FILE]
              [--ca-file CA_FILE] [--timeout TIMEOUT] [-f] [--dry-run]
[--ssl]
              [-H ADDRESS] [-p PORT] [--os-username OS_USERNAME]
              [-I OS_USERNAME] [--os-password OS_PASSWORD] [-K OS_PASSWORD]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name
OS_TENANT_NAME]
              [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N
OS_AUTH_URL]
              [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
              [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
              [--os-image-api-version OS_IMAGE_API_VERSION]
              [--os-service-type OS_SERVICE_TYPE]
              [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
              <subcommand> ...
glance: error: unrecognized arguments:
--kernel-id=14652b05-0c27-45d1-b614-a059c9f4f7dc
--ramdisk-id=c0f6a4df-5051-49d3-855e-8627c6c15ba6
root@bodega:~/ahmed/temp#


So far the options I have tried so far are:
 kernel_id, ramdisk_id (as noted in the install doc)
 --kernel_id, --ramdisk_id
 --kernel-id, --ramdisk-id
 --os-kernel-id, --os-ramdisk-id

Regards,

Ahmed.


On 11/1/12 10:31 AM, "Vishvananda Ishaya" <vishvananda@xxxxxxxxx> wrote:

>try --kernel-id not --kernel_id
>
>Vish
>
>On Nov 1, 2012, at 9:14 AM, Ahmed Al-Mehdi <ahmed@xxxxxxxxxx> wrote:
>
>> I should have mentioned in my original post, I tried the same options by
>> pre-fixing with "--" , same issue.
>> 
>> root@bodega:~/ahmed/temp# glance image-create --name="tty-linux"
>> --disk-format=ami --container-format=ami
>> --kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc
>> --ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6 <
>> ttylinux-uec-amd64-12.1_2.6.35-22_1.img
>> usage: glance [-d] [-v] [-k] [--cert-file CERT_FILE] [--key-file
>>KEY_FILE]
>>              [--ca-file CA_FILE] [--timeout TIMEOUT] [-f] [--dry-run]
>> [--ssl]
>>              [-H ADDRESS] [-p PORT] [--os-username OS_USERNAME]
>>              [-I OS_USERNAME] [--os-password OS_PASSWORD] [-K
>>OS_PASSWORD]
>>              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name
>> OS_TENANT_NAME]
>>              [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N
>> OS_AUTH_URL]
>>              [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
>>              [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
>>              [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
>>              [--os-image-api-version OS_IMAGE_API_VERSION]
>>              [--os-service-type OS_SERVICE_TYPE]
>>              [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
>>              <subcommand> ...
>> glance: error: unrecognized arguments:
>> --kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc
>> --ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6
>> root@bodega:~/ahmed/temp# ls -l
>> total 52608
>> -rw-r--r-- 1 root       root            218 Nov  1 01:28 t.t
>> -rw------- 1 localadmin localadmin  2949120 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1-floppy
>> -rw-r--r-- 1 localadmin localadmin 25165824 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1.img
>> -rw-r--r-- 1 localadmin localadmin  5882349 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1-initrd
>> -rw-r--r-- 1 localadmin localadmin    96629 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1-loader
>> -rw-r--r-- 1 root       root       24346106 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz
>> -rw-r--r-- 1 localadmin localadmin  4404752 Nov 10  2010
>> ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
>> root@bodega:~/ahmed/temp# glance index
>> ID                                   Name                           Disk
>> Format          Container Format     Size
>> ------------------------------------ ------------------------------
>> -------------------- -------------------- --------------
>> c0f6a4df-5051-49d3-855e-8627c6c15ba6 tty-linux-ramdisk              ari
>>              ari                           96629
>> 14652b05-0c27-45d1-b614-a059c9f4f7dc tty-linux-kernel               aki
>>              aki                         4404752
>> root@bodega:~/ahmed/temp#
>> 
>> Regards,
>> 
>> Ahmed.
>> 
>> 
>> 
>> 
>> On 11/1/12 2:56 AM, "DarkSinclair" <darksinclair@xxxxxxxxx> wrote:
>> 
>>> Ahmed, all parameters require a double dash in front.  append '--' to
>>> kernel_id and ramdisk_id.
>>> 
>>> Regards,
>>> 
>>> On 2012-11-01, at 4:49 AM, Ahmed Al-Mehdi <ahmed@xxxxxxxxxx> wrote:
>>> 
>>> Hello,
>>> 
>>> I followed the steps in "OpenStack Install and Deploy Manual ­ Ubuntu"
>>>to
>>> instal glance.  Section 6, sub-section "Verifying the image service
>>> installation", I tried upload the image (step 3 of the uploading steps)
>>> ( 
>>> 
>>>http://docs.openstack.org/trunk/openstack-compute/install/apt/content/im
>>>ag
>>> es-verifying-install.html ).  However, I get the error message that
>>> kernel_id, ramdisk_id are not valid arguments.  "glance help
>>> image-create" has no mention of these arguments. , I am getting the
>>> following error:
>>> 
>>> root@bodega:~/ahmed/temp# glance image-create --name="tty-linux"
>>> --disk-format=ami --container-format=ami
>>> kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc
>>> ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6 <
>>> ttylinux-uec-amd64-12.1_2.6.35-22_1.img
>>> usage: glance [-d] [-v] [-k] [--cert-file CERT_FILE] [--key-file
>>>KEY_FILE]
>>>             [--ca-file CA_FILE] [--timeout TIMEOUT] [-f] [--dry-run]
>>> [--ssl]
>>>             [-H ADDRESS] [-p PORT] [--os-username OS_USERNAME]
>>>             [-I OS_USERNAME] [--os-password OS_PASSWORD] [-K
>>> OS_PASSWORD]
>>>             [--os-tenant-id OS_TENANT_ID] [--os-tenant-name
>>> OS_TENANT_NAME]
>>>             [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N
>>> OS_AUTH_URL]
>>>             [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
>>>             [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
>>>             [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
>>>             [--os-image-api-version OS_IMAGE_API_VERSION]
>>>             [--os-service-type OS_SERVICE_TYPE]
>>>             [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
>>>             <subcommand> ...
>>> glance: error: unrecognized arguments:
>>> kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc
>>> ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6
>>> root@bodega:~/ahmed/temp#
>>> 
>>> Can someone please help me.
>>> 
>>> Regards,
>>> Ahmed.
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>> 
>> 
>> 
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>


References