openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18159
Re: [OpenStack][Glance] Uploading image to glancereports invalid options- kernel_id, ramdisk_id
It seems glance accepts "--prop". I am hoping that is because it accepts shorter version of the parameter.
root@bodega:~/ahmed/temp# glance image-create --name="tty-linux" --disk-format=ami --container-format=ami --prop kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc --prop ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6 < ttylinux-uec-amd64-12.1_2.6.35-22_1.img
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| Property 'kernel_id' | 14652b05-0c27-45d1-b614-a059c9f4f7dc |
| Property 'ramdisk_id' | c0f6a4df-5051-49d3-855e-8627c6c15ba6 |
| checksum | 10047a119149e08fb206eea89832eee0 |
| container_format | ami |
| created_at | 2012-11-01T18:44:11 |
| deleted | False |
| deleted_at | None |
| disk_format | ami |
| id | 48cc3352-dff3-4625-87b1-143ba1953c57 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | tty-linux |
| owner | ce1e819636744dc680fa5515f6475e87 |
| protected | False |
| size | 25165824 |
| status | active |
| updated_at | 2012-11-01T18:44:12 |
+-----------------------+--------------------------------------+
root@bodega:~/ahmed/temp#
root@bodega:~/ahmed/temp# glance index
ID Name Disk Format Container Format Size
------------------------------------ ------------------------------ -------------------- -------------------- --------------
48cc3352-dff3-4625-87b1-143ba1953c57 tty-linux ami ami 25165824
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#
Thank you all very much for your help, much appreciated.
Regards,
Ahmed.
From: Brian Waldon <bcwaldon@xxxxxxxxx<mailto:bcwaldon@xxxxxxxxx>>
Date: Thursday, November 1, 2012 12:09 PM
To: George Mihaiescu <George.Mihaiescu@xxxxxx<mailto:George.Mihaiescu@xxxxxx>>
Cc: Ahmed Al-Mehdi <ahmed@xxxxxxxxxx<mailto:ahmed@xxxxxxxxxx>>, "openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>" <openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>>
Subject: Re: [Openstack] [OpenStack][Glance] Uploading image to glancereports invalid options- kernel_id, ramdisk_id
And you're correct that the flag is --property, not --prop like I said earlier.
On Nov 1, 2012, at 11:41 AM, George Mihaiescu wrote:
If you look at the devstack example (http://devstack.org/functions.html) you can see that the kernel and ramdisk are now passed with the “--property” in front of them.
Same info is provided by the help:
root@ubuntu:~/glance/python-glanceclient# glance help image-create | tail -5
--is-protected IS_PROTECTED
Prevent image from being deleted.
--property <key=value>
Arbitrary property to associate with image. May be
used multiple times.
________________________________
From:openstack-bounces+george.mihaiescu=q9.com@xxxxxxxxxxxxxxxxxxx<mailto:openstack-bounces+george.mihaiescu=q9.com@xxxxxxxxxxxxxxxxxxx> [mailto:openstack-bounces+george.mihaiescu=q9.com@xxxxxxxxxxxxxxxxxxx<mailto:q9.com@xxxxxxxxxxxxxxxxxxx>] On Behalf Of Brian Waldon
Sent: Thursday, November 01, 2012 2:07 PM
To: Ahmed Al-Mehdi
Cc: openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Openstack] [OpenStack][Glance] Uploading image to glancereports invalid options- kernel_id, ramdisk_id
You're now using a completely new client: python-glanceclient. The old CLI syntax was preserved, so the old 'glance add' command should still work. The problem here is that the guide was updated to use the new syntax, but the commands weren't tested. I'll file a bug and fix this problem.
On Nov 1, 2012, at 11:00 AM, Ahmed Al-Mehdi wrote:
Brian,
Is the "prop" option a new thing the was recently introduced, but just not documented in the "openstack install" manual. I very clearly remember not using the "prop" option a month back when I was trying to install a setup.
Regards,
Ahmed.
From: Brian Waldon <bcwaldon@xxxxxxxxx<mailto:bcwaldon@xxxxxxxxx>>
Date: Thursday, November 1, 2012 10:49 AM
To: Ahmed Al-Mehdi <ahmed@xxxxxxxxxx<mailto:ahmed@xxxxxxxxxx>>
Cc: "openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>" <openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>>
Subject: Re: [Openstack] [OpenStack][Glance] Uploading image to glance reports invalid options- kernel_id, ramdisk_id
You can set image properties with the '--prop' option. For this command, you need to use '--prop kernel_id=14652b05-0c27-45d1-b614-a059c9f4f7dc' and '--prop ramdisk_id=c0f6a4df-5051-49d3-855e-8627c6c15ba6'.
On Nov 1, 2012, at 1:49 AM, Ahmed Al-Mehdi 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/images-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<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
References