(Kilo) Glance image-create missing parameters
I am on Ubuntu 14.04 LTS and am trying to set up Glance for the Kilo version. I get the following error when trying to verify that Glance works:
root@OSControl:~# glance image-create --name "cirros-
> --disk-format qcow2 --container-format bare --visibility public --progress
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility public
And when I go to see what parameters are available, I got this:
root@OSControl:~# glance image-create
usage: glance image-create [--property <key=value>] [--file <FILE>]
glance image-create: error: too few arguments
I tried reinstalling it but always get stuck here
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Fabrice Didierjean
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
What do you see if you run the following?
$ glance image-create --disk-format qcow2 --container-format bare
Revision history for this message
|
#2 |
root@OSControl:~# glance image-create --disk-format qcow2 --container-format bare
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
glance: error: unrecognized arguments: --disk-format --container-format bare
Revision history for this message
|
#3 |
Weird.
How did you install the glance client?
What does glance --version show?
Revision history for this message
|
#4 |
I installed it using
apt-get install -y glance python-glanceclient
the output of glance --version:
root@OSControl:~# glance --version
0.15.0
Revision history for this message
|
#5 |
I switched to single quotes and used "=" in the syntax and got a different error:
root@OSControl:~# glance image-create --name=
Not Found (HTTP 404)
Revision history for this message
|
#6 |
I have just encountered this same issue. I was wondering if you ever found an answer to your question? I have been going through the OpenStack Installation for Ubuntu 14.04 (kilo)
Revision history for this message
|
#8 |
Thanks for the response. So did you just skip that section? Did this cause any issues later on in the installation \ configurations?
Revision history for this message
|
#9 |
I haven't been able to resume yet. I would think it would not be an issue until I go to deploy, but not sure
Revision history for this message
|
#10 |
Does adding '--debug' give any extra information about the 404 response?
glance --debug ...
Revision history for this message
|
#11 |
Seems like there might be a issue with the parameters provided.
Please use --is-public or --is-protected instead of the --visibility flag and let us know if the issue persists.
Revision history for this message
|
#12 |
Stuart,
there wasn't a debug option, but it did allow me to put "-d" however, that did not give me anything
Nikhil, changed the option and issue persisted
root@OSControl:~# glance -d image-create --name=
Not Found (HTTP 404)
Revision history for this message
|
#13 |
On an Ubuntu 14.04 machine I checked out the 0.15.0 client code and pip installed it into a virtual env.
I had to make the following change to requirements.txt
$ git diff requirements.txt
diff --git a/requirements.txt b/requirements.txt
index 4e67c80..14f6a6e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,4 +10,5 @@ pyOpenSSL>=0.11
requests>
warlock>=1.0.1,<2
six>=1.7.0
-oslo.utils>=1.0.0 # Apache-2.0
+oslo.utils>
+oslo.i18n<=1.3.0
I was able to run the following command to successfully upload an image:
$ glance --debug --os-tenant-
This showed various debug output, including the various HTTP requests/responses.
$ glance --version
0.15.0
It's not clear why you don't see a --debug option.
Can you cut and paste the command above, substituting your credentials (unset any environment variables) and paste the output to this bug?
Revision history for this message
|
#14 |
Hi Greg,
Any luck? I am having the same issue and stuck here.
Revision history for this message
|
#15 |
All,
I have found a resolution. It appears glance is not parsing " correctly. Just remove quotation from the image name and it should be good to go.
[Tue Aug 18 12:45:16 root@controller:~ ] # glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/
Revision history for this message
|
#16 |
Having quotes around the image name works fine for me.
I changed my command above to have:
--name "test_image"
and it worked fine.
Revision history for this message
|
#17 |
Unfortunately none of the above has resolved the issue for me. This is what i get when i run the glance create-image command. BTW i'm running version 0.19.0 of glance.
root@lab001-
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility true
Also quotes or no quotes give same result.
Revision history for this message
|
#18 |
What happens if -- as both myself and Nikhil have suggested -- you remove the '--visibility' flag?
ie cut and paste the following:
glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/
Revision history for this message
|
#19 |
Unfortunately looks like the same result.
snippet of command and result:
root@lab001-
...
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare
root@lab001-
Revision history for this message
|
#20 |
Thanks. I have to confess I'm not sure what's happening here.
The exact same command works ok for me:
$ glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/
+------
| Property | Value |
+------
| checksum | 764efa883dda1e1
| container_format | bare |
| created_at | 2015-08-
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | dc96b93c-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.4-x86_64 |
| owner | 411423405e10431
| protected | False |
| size | 3 |
| status | active |
| updated_at | 2015-08-
| virtual_size | None |
+------
Revision history for this message
|
#21 |
Are you running glance 0.19.0 on Ubuntu 14.04? This is definitely frustrating. I'm going to go back and triple check the configuration of glance. I've been following the "OpenStack installation guide for Ubuntu 14.04" (KILO revision). So it's possible i've missed something.
Revision history for this message
|
#22 |
Did any one resolved the issue?
openstak@myPC001:~$ ls /tmp/images/
/tmp/images/
openstakb@
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare
FYI:
glance version 0.15.0
Ubuntu 14.04 - Trusty
Revision history for this message
|
#23 |
Unfortunately I have not been able to get back to working on this project. So this issue still remains unresolved for me :(
Revision history for this message
|
#24 |
Got this problem too. The error was due to glance endpoint not being registered in keystone
Revision history for this message
|
#26 |
Hi, apparently this problem is related to authentication issues, as described here:
https:/
https:/
The problem is that the error message doesn't have anything to do with the problem itself. One thinks is a syntax problem and it isn't. It's an authentication problem. I'm still trying to solve this.
Revision history for this message
|
#27 |
New developments:
Checking the log /var/log/
glance 1541 WARNING keystonemiddlew
This thread helped me fix the problem:
https:/
Revision history for this message
|
#28 |
When I reran one of the commands I got a 404 error. This time "openstack image list --debug" actually worked. I noticed this error a couple of times:
WARNING: keystoneclient.
DEBUG: keystoneclient.
DEBUG: urllib3.
DEBUG: urllib3.
DEBUG: keystoneclient.
ERROR: openstack Not Found (HTTP 404)
Revision history for this message
|
#29 |
Hello,
Just have the same problem, and found it was because i have define an http_proxy variable. ( in order to install glance package )
The proxy cannot acces the controler apache server.
I Just unset the http_proxy and everything went fine
Revision history for this message
|
#30 |
That solved my problem. I unset the proxy after downloading the image and used the following command (i had tried different syntax)
glance image-create --name=
root@OSControl:~# glance image-create --name=
[======
+------
| Property | Value |
+------
| checksum | ee1eca47dc88f48
| container_format | bare |
| created_at | 2015-09-
| disk_format | qcow2 |
| id | 647a380f-
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.4-x86_64 |
| owner | 0f560f49851145b
| protected | False |
| size | 13287936 |
| status | active |
| tags | [] |
| updated_at | 2015-09-
| virtual_size | None |
| visibility | public |
+------
Revision history for this message
|
#32 |
Today, I have the same problem, and then I found "glance image-list" command was also error, it has error output. So I found my "glance-registry" service was stopped.
I started the service, then "glance image-create" is OK.
Revision history for this message
|
#33 |
i solved this problem, So i'm just set password for glance user "glancepassword"
Openstack install guide's default password was "password = GLANCE_PASS"
so just replace this password as your given glance user password in /etc/glance/
Revision history for this message
|
#34 |
From what I can tell, the ultimate issue here was (1) an authentication problem due to environment misconfiguration, combined with (2) a misleading error message from the python-
There are a multitude of ways (1) can occur; some of these are mentioned in the above discussion.
The misleading error message (2) was fixed in the openstack/
https:/
if you're curious.