----- Original Message -----
From: "Daniel Helgenberger"
<daniel.helgenberger(a)m-box.de>
To: users(a)ovirt.org
Sent: Friday, July 11, 2014 1:20:14 PM
Subject: [ovirt-users] Add OpenStack-Glance
Hello,
following Itamar Heim's idea to use Glance for moving around images in
Ovirt, I went ahead setting up a VM with Glance and Keystone. I have
configured the following user in keystone in glace:
[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = Secret
Using the appropriate credentials in oVirt / Add external provider with
http://192.168.50.33:9292 I get:
Failed to communicate with the external provider
The TCP port is open.
I fail to see anything in the glance api.log.
Question: How can I debug this from ovirt?
You're missing a step:
http://www.ovirt.org/Features/Detailed_OSN_Integration#oVirt_Engine_requi...
You need to configure the keystone url via the engine-config tool, followed by the
ovirt-engine
service restart.
engine-config -s KeystoneAuthUrl=http://192.168.50.33:35357/v2.0/
service ovirt-engine restart
Thanks!
------
I used the official test [1] to add the cirros image to glance on my vm:
# source keystonerc
# glance image-create --name=CirrOS-Test --is-public=true
--container-format=bare --disk-format=qcow2 < cirros-0.3.0-x86_64-disk.img
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 50bdc35edb03a38d91b1b071afb20a3c |
| container_format | bare |
| created_at | 2014-07-11T08:53:05.857978 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 5132246d-8f63-4456-86ab-357fb241f3f9 |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | CirrOS-Test |
| owner | 40654094d0684d238681bc0b1ab6617d |
| protected | False |
| size | 9761280 |
| status | active |
| updated_at | 2014-07-11T08:53:07.240096 |
+------------------+--------------------------------------+
Note, the keystonerc contains my credantials / AUTH_URL. Also, keystone is
working, as far as I can tell:
# keystone --os-username=glance --os-password=Secret
--os-auth-url=http://127.0.0.1:35357/v2.0 token-get
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| expires | 2014-07-12T09:03:46Z |
| id | 20c5f2290aa145368f31a88db711351e |
| user_id | 0a06c68d8adb4739b41628a0cb326f6a |
+----------+----------------------------------+
Telnet from Engine:
telnet 192.168.50.33 9292
Trying 192.168.50.33...
Connected to 192.168.50.33.
Escape character is '^]'.
get
HTTP/1.1 400 Bad request syntax ('get')
Server: BaseHTTP/0.3 Python/2.6.6
Date: Fri, 11 Jul 2014 09:04:14 GMT
Content-Type: text/html
Connection: close
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad request syntax ('get').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>
Connection closed by foreign host.
[1]
http://docs.openstack.org/grizzly/openstack-compute/install/yum/content/v...
http://docs.openstack.org/grizzly/openstack-compute/admin/content/adding-...
--
Daniel Helgenberger
m box bewegtbild GmbH
P: +49/30/2408781-22
F: +49/30/2408781-10
ACKERSTR. 19
D-10115 BERLIN
www.m-box.de www.monkeymen.tv
Geschäftsführer: Martin Retschitzegger / Michaela Göllner
Handeslregister: Amtsgericht Charlottenburg / HRB 112767
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users