Re: [Openstack] Glance Image upload error

2013-01-28 Thread Syed Armani
On 28-01-2013 16:26, Trinath Somanchi wrote:
 Hi Stackers-
 
 I have newly installed openstack keystone, glance in my Ubuntu 12.04 system
 
 When I add image to glance, I get this error.
 
 root@NewFolsomController:~# glance add  name=testImage is-public=true
 container_format=bare disk_format=qcow2  test.img
 The progressbar doesn't show-up because the headers[x-meta-size] is zero
 or missing
 Uploading image 'testImage'
 Failed to add image. Got error:
 The request returned a 302 Multiple Choices. This generally means that
 you have not included a version indicator in a request URI.
 
 The body of response returned:
 {versions: [{status: CURRENT, id: v1.1, links: [{href:
 http://10.232.90.195:9292/v1/;, rel: self}]}, {status:
 SUPPORTED, id: v1.0, links: [{href:
 http://10.232.90.195:9292/v1/;, rel: self}]}]}
 Note: Your image metadata may still be in the registry, but the image's
 status will likely be 'killed'.
 
 Kindly help me resolve the issue.
 
 
 -- 
 Regards,
 --
 Trinath Somanchi,
 +91 9866 235 130
 
 
 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp
 


Hi,

The image that you are uploading, Is it fedora or ubuntu image ?

One thing you can try is setting notifier_strategy = noop in
/etc/glance/glance-api.conf

Cheers,
Syed

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-07 Thread Jay Pipes
On 07/06/2012 01:26 AM, Trinath Somanchi wrote:
 Hi -
 
 Nope, I'm not working on Diablo release.
 
 But I have image in 3 parts. I want to store these three parts of the
 image into glance as a single image. To achieve the same while doing a
 google search found this procedure.
 
 Hence, implemented the same.
 
 Can any one guide me on how to store multiple parts of a single image
 into glance.

You cannot store multiple image parts in Glance -- you must store the
image as a single file. The backend that Glance uses for storage *may*
split the incoming file into chunks, but that's not something you will
see as a user of the Glance AAPI. That said, I *think* you mean that you
want to store a kernel image, a ramdisk image and a disk image in
Glance, and that is certainly possible -- but it's wrong to call those
image parts :)

Best,
-jay

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Glance Image Upload error.

2012-07-05 Thread Trinath Somanchi
Hi-

I have followed this document page to upload images into glance.

http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

I have issued the commands as below following the document above.

*root@OpenstackController:~/Image# curl -d
'{auth:{passwordCredentials:{username: admin, password:
admin}}}' -H Content-type: application/json
http://10.232.90.82:35357/v2.0/tokens | python -mjson.tool
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100   3190   244  10075548168 --:--:-- --:--:-- --:--:--
548
{
access: {
serviceCatalog: {},
token: {
expires: 2012-07-06T09:43:20Z,
id: ab758cd3be864b17821ce073ea4358e5
},
user: {
id: 668f5d9ca716417fa16208828c5acea8,
name: admin,
roles: [],
roles_links: [],
username: admin
}
}
}


*But, I'm getting the following error

*root@OpenstackController:~/Image# glance add -A
ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true
container_format=bare disk_format=raw  uImage
=[100%]
35.0M/s, ETA  0h  0m  0s
Uploading image 'kernel'
Failed to add image. Got error:
You are not authenticated.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document
you requested. Either you supplied the wrong credentials (e.g., bad
password), or your browser does not understand how to supply the
credentials required.

 Authentication required
*


This error might occur when there exists an error in environmental
variables.

But when I access the env vars they are accessible and not other errors
exists.

The following ENV vars are set.

*export SERVICE_ENDPOINT=http://localhost:35357/v2.0
export SERVICE_TOKEN=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://localhost:5000/v2.0/;
*
Can you any one kindly help me on debugging/solving this issue.

Thanking you,

-- 
Regards,
--
Trinath Somanchi,
+91 9866 235 130
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-05 Thread Atul Jha
Are you installing/working on the Glance release of Openstack?



From: openstack-bounces+atul.jha=csscorp@lists.launchpad.net 
[openstack-bounces+atul.jha=csscorp@lists.launchpad.net] on behalf of 
Trinath Somanchi [trinath.soman...@gmail.com]
Sent: Thursday, July 05, 2012 5:14 PM
To: openstack@lists.launchpad.net
Subject: [Openstack] Glance Image Upload error.

Hi-

I have followed this document page to upload images into glance.

http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

I have issued the commands as below following the document above.

root@OpenstackController:~/Image# curl -d 
'{auth:{passwordCredentials:{username: admin, password: admin}}}' 
-H Content-type: application/json http://10.232.90.82:35357/v2.0/tokens | 
python -mjson.tool
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100   3190   244  10075548168 --:--:-- --:--:-- --:--:--   548
{
access: {
serviceCatalog: {},
token: {
expires: 2012-07-06T09:43:20Z,
id: ab758cd3be864b17821ce073ea4358e5
},
user: {
id: 668f5d9ca716417fa16208828c5acea8,
name: admin,
roles: [],
roles_links: [],
username: admin
}
}
}


But, I'm getting the following error

root@OpenstackController:~/Image# glance add -A 
ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true 
container_format=bare disk_format=raw  uImage
=[100%]
 35.0M/s, ETA  0h  0m  0s
Uploading image 'kernel'
Failed to add image. Got error:
You are not authenticated.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you 
requested. Either you supplied the wrong credentials (e.g., bad password), or 
your browser does not understand how to supply the credentials required.

 Authentication required



This error might occur when there exists an error in environmental variables.

But when I access the env vars they are accessible and not other errors exists.

The following ENV vars are set.

export SERVICE_ENDPOINT=http://localhost:35357/v2.0
export SERVICE_TOKEN=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://localhost:5000/v2.0/;

Can you any one kindly help me on debugging/solving this issue.

Thanking you,

--
Regards,
--
Trinath Somanchi,
+91 9866 235 130

http://www.csscorp.com/common/email-disclaimer.php
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-05 Thread Trinath Somanchi
I installed Glance... While uploading image got this error...
On Jul 5, 2012 5:35 PM, Atul Jha atul@csscorp.com wrote:

  Are you installing/working on the Glance release of Openstack?


  --
 *From:* 
 openstack-bounces+atul.jha=csscorp@lists.launchpad.net[openstack-bounces+atul.jha=
 csscorp@lists.launchpad.net] on behalf of Trinath Somanchi [
 trinath.soman...@gmail.com]
 *Sent:* Thursday, July 05, 2012 5:14 PM
 *To:* openstack@lists.launchpad.net
 *Subject:* [Openstack] Glance Image Upload error.

  Hi-

 I have followed this document page to upload images into glance.


 http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

 I have issued the commands as below following the document above.

 *root@OpenstackController:~/Image# curl -d
 '{auth:{passwordCredentials:{username: admin, password:
 admin}}}' -H Content-type: application/json
 http://10.232.90.82:35357/v2.0/tokens | python -mjson.tool
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100   3190   244  10075548168 --:--:-- --:--:-- --:--:--
 548
 {
 access: {
 serviceCatalog: {},
 token: {
 expires: 2012-07-06T09:43:20Z,
 id: ab758cd3be864b17821ce073ea4358e5
 },
 user: {
 id: 668f5d9ca716417fa16208828c5acea8,
 name: admin,
 roles: [],
 roles_links: [],
 username: admin
 }
 }
 }


 *But, I'm getting the following error

 *root@OpenstackController:~/Image# glance add -A
 ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true
 container_format=bare disk_format=raw  uImage
 =[100%]
 35.0M/s, ETA  0h  0m  0s
 Uploading image 'kernel'
 Failed to add image. Got error:
 You are not authenticated.
 Details: 401 Unauthorized

 This server could not verify that you are authorized to access the
 document you requested. Either you supplied the wrong credentials (e.g.,
 bad password), or your browser does not understand how to supply the
 credentials required.

  Authentication required
 *


 This error might occur when there exists an error in environmental
 variables.

 But when I access the env vars they are accessible and not other errors
 exists.

 The following ENV vars are set.

 *export SERVICE_ENDPOINT=http://localhost:35357/v2.0
 export SERVICE_TOKEN=admin
 export OS_TENANT_NAME=admin
 export OS_USERNAME=admin
 export OS_PASSWORD=admin
 export OS_AUTH_URL=http://localhost:5000/v2.0/;
 *
 Can you any one kindly help me on debugging/solving this issue.

 Thanking you,

 --
 Regards,
 --
 Trinath Somanchi,
 +91 9866 235 130

   http://www.csscorp.com/common/email-disclaimer.php

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-05 Thread Atul Jha
Trinath,
I meant are you working on the Diablo release?  The documentation you shared 
related to glance is from diablo release of Openstack.

The latest stable Openstack release is Essex.

From: Trinath Somanchi [trinath.soman...@gmail.com]
Sent: Thursday, July 05, 2012 5:49 PM
To: Atul Jha
Cc: openstack@lists.launchpad.net
Subject: RE: [Openstack] Glance Image Upload error.


I installed Glance... While uploading image got this error...

On Jul 5, 2012 5:35 PM, Atul Jha 
atul@csscorp.commailto:atul@csscorp.com wrote:
Are you installing/working on the Glance release of Openstack?



From: 
openstack-bounces+atul.jha=csscorp@lists.launchpad.netmailto:csscorp@lists.launchpad.net
 
[openstack-bounces+atul.jha=csscorp@lists.launchpad.netmailto:csscorp@lists.launchpad.net]
 on behalf of Trinath Somanchi 
[trinath.soman...@gmail.commailto:trinath.soman...@gmail.com]
Sent: Thursday, July 05, 2012 5:14 PM
To: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net
Subject: [Openstack] Glance Image Upload error.

Hi-

I have followed this document page to upload images into glance.

http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

I have issued the commands as below following the document above.

root@OpenstackController:~/Image# curl -d 
'{auth:{passwordCredentials:{username: admin, password: admin}}}' 
-H Content-type: application/json http://10.232.90.82:35357/v2.0/tokens | 
python -mjson.tool
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100   3190   244  10075548168 --:--:-- --:--:-- --:--:--   548
{
access: {
serviceCatalog: {},
token: {
expires: 2012-07-06T09:43:20Z,
id: ab758cd3be864b17821ce073ea4358e5
},
user: {
id: 668f5d9ca716417fa16208828c5acea8,
name: admin,
roles: [],
roles_links: [],
username: admin
}
}
}


But, I'm getting the following error

root@OpenstackController:~/Image# glance add -A 
ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true 
container_format=bare disk_format=raw  uImage
=[100%]
 35.0M/s, ETA  0h  0m  0s
Uploading image 'kernel'
Failed to add image. Got error:
You are not authenticated.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you 
requested. Either you supplied the wrong credentials (e.g., bad password), or 
your browser does not understand how to supply the credentials required.

 Authentication required



This error might occur when there exists an error in environmental variables.

But when I access the env vars they are accessible and not other errors exists.

The following ENV vars are set.

export SERVICE_ENDPOINT=http://localhost:35357/v2.0
export SERVICE_TOKEN=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_AUTH_URL=http://localhost:5000/v2.0/;

Can you any one kindly help me on debugging/solving this issue.

Thanking you,

--
Regards,
--
Trinath Somanchi,
+91 9866 235 130tel:%2B91%209866%20235%20130

http://www.csscorp.com/common/email-disclaimer.php
http://www.csscorp.com/common/email-disclaimer.php
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-05 Thread Roman Sokolkov
Hi!

Do you use special service users or admin_token for services auth in
keystone?

Anyway you need to check glance configuration files.

*glance-api-paste.ini, glance-registry-paste.ini*

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = http://127.0.0.1:5000/
*admin_tenant_name = service*
*admin_user = glance*
*admin_password = glance*
*
*
*or *
*
*
*admin_token = ADMIN*

Also check that *glance-api.conf* and *glance-registry.conf* have this

[paste_deploy]
flavor = keystone

Thanks, Roman Sokolkov

2012/7/5 Trinath Somanchi trinath.soman...@gmail.com

 I installed Glance... While uploading image got this error...
 On Jul 5, 2012 5:35 PM, Atul Jha atul@csscorp.com wrote:

  Are you installing/working on the Glance release of Openstack?


  --
 *From:* 
 openstack-bounces+atul.jha=csscorp@lists.launchpad.net[openstack-bounces+atul.jha=
 csscorp@lists.launchpad.net] on behalf of Trinath Somanchi [
 trinath.soman...@gmail.com]
 *Sent:* Thursday, July 05, 2012 5:14 PM
 *To:* openstack@lists.launchpad.net
 *Subject:* [Openstack] Glance Image Upload error.

  Hi-

 I have followed this document page to upload images into glance.


 http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

 I have issued the commands as below following the document above.

 *root@OpenstackController:~/Image# curl -d
 '{auth:{passwordCredentials:{username: admin, password:
 admin}}}' -H Content-type: application/json
 http://10.232.90.82:35357/v2.0/tokens | python -mjson.tool
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100   3190   244  10075548168 --:--:-- --:--:--
 --:--:--   548
 {
 access: {
 serviceCatalog: {},
 token: {
 expires: 2012-07-06T09:43:20Z,
 id: ab758cd3be864b17821ce073ea4358e5
 },
 user: {
 id: 668f5d9ca716417fa16208828c5acea8,
 name: admin,
 roles: [],
 roles_links: [],
 username: admin
 }
 }
 }


 *But, I'm getting the following error

 *root@OpenstackController:~/Image# glance add -A
 ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true
 container_format=bare disk_format=raw  uImage
 =[100%]
 35.0M/s, ETA  0h  0m  0s
 Uploading image 'kernel'
 Failed to add image. Got error:
 You are not authenticated.
 Details: 401 Unauthorized

 This server could not verify that you are authorized to access the
 document you requested. Either you supplied the wrong credentials (e.g.,
 bad password), or your browser does not understand how to supply the
 credentials required.

  Authentication required
 *


 This error might occur when there exists an error in environmental
 variables.

 But when I access the env vars they are accessible and not other errors
 exists.

 The following ENV vars are set.

 *export SERVICE_ENDPOINT=http://localhost:35357/v2.0
 export SERVICE_TOKEN=admin
 export OS_TENANT_NAME=admin
 export OS_USERNAME=admin
 export OS_PASSWORD=admin
 export OS_AUTH_URL=http://localhost:5000/v2.0/;
 *
 Can you any one kindly help me on debugging/solving this issue.

 Thanking you,

 --
 Regards,
 --
 Trinath Somanchi,
 +91 9866 235 130

   http://www.csscorp.com/common/email-disclaimer.php


 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp




-- 
Regards, Roman Sokolkov
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Glance Image Upload error.

2012-07-05 Thread Dolph Mathews
The SERVICE_ENDPOINT and SERVICE_TOKEN variables are effectively overriding
the corresponding OS_* variables from your environment (they're not
intended to be used together); try removing the SERVICE_* variables.

The OS_* variables provide a normal authentication flow while the SERVICE_*
variables effectively bypass authentication, and are intended for when you
don't yet have an admin user in keystone.

-Dolph

On Thu, Jul 5, 2012 at 6:44 AM, Trinath Somanchi trinath.soman...@gmail.com
 wrote:

 Hi-

 I have followed this document page to upload images into glance.


 http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html

 I have issued the commands as below following the document above.

 *root@OpenstackController:~/Image# curl -d
 '{auth:{passwordCredentials:{username: admin, password:
 admin}}}' -H Content-type: application/json
 http://10.232.90.82:35357/v2.0/tokens | python -mjson.tool
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100   3190   244  10075548168 --:--:-- --:--:-- --:--:--
 548
 {
 access: {
 serviceCatalog: {},
 token: {
 expires: 2012-07-06T09:43:20Z,
 id: ab758cd3be864b17821ce073ea4358e5
 },
 user: {
 id: 668f5d9ca716417fa16208828c5acea8,
 name: admin,
 roles: [],
 roles_links: [],
 username: admin
 }
 }
 }


 *But, I'm getting the following error

 *root@OpenstackController:~/Image# glance add -A
 ab758cd3be864b17821ce073ea4358e5 name=kernel is_public=true
 container_format=bare disk_format=raw  uImage
 =[100%]
 35.0M/s, ETA  0h  0m  0s
 Uploading image 'kernel'
 Failed to add image. Got error:
 You are not authenticated.
 Details: 401 Unauthorized

 This server could not verify that you are authorized to access the
 document you requested. Either you supplied the wrong credentials (e.g.,
 bad password), or your browser does not understand how to supply the
 credentials required.

  Authentication required
 *


 This error might occur when there exists an error in environmental
 variables.

 But when I access the env vars they are accessible and not other errors
 exists.

 The following ENV vars are set.

 *export SERVICE_ENDPOINT=http://localhost:35357/v2.0
 export SERVICE_TOKEN=admin
 export OS_TENANT_NAME=admin
 export OS_USERNAME=admin
 export OS_PASSWORD=admin
 export OS_AUTH_URL=http://localhost:5000/v2.0/;
 *
 Can you any one kindly help me on debugging/solving this issue.

 Thanking you,

 --
 Regards,
 --
 Trinath Somanchi,
 +91 9866 235 130


 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp