Ask Your Question

elia pimpinicchio's profile - activity

2019-07-24 04:41:02 -0500 commented question swift-glance backend

Finally IT WORK! the problem is that I had written a file to access the glance-swift user, but I was wrong in some fields and therefore I could not see the container. Thank you so much for the advice and help you gave me.

2019-07-24 04:09:32 -0500 commented question swift-glance backend

with the configuration you suggested I solved several errors, in fact when I run the command to create an image I have no error, but it does not create the "glance" container and doesn't put the created image in it. otherwise I do not know where it is positioned the image created using this confi

2019-07-24 04:09:08 -0500 commented question swift-glance backend

my expectations are that by creating an image with glance, it must be inserted inside a container that if not present must be created automatically. But this doesn't happen and I can't understand why.

2019-07-24 03:37:59 -0500 commented answer swift-glance backend

Sorry but before i mean that automatically the command don’t put inside the container the image.

2019-07-24 03:15:11 -0500 commented answer swift-glance backend

"The project of the glance-swift user is service, not glance-swift.", what do you mean? you mean that I made a mistake when i create the user and add a role to it? "openstack role add --project service --user swift admin", i use this command for add a role to the user.

2019-07-24 03:13:09 -0500 commented answer swift-glance backend

I thought that automatically, by launching the command to create the image, the container had to be created and the image had to be inside it. so i don't insert image in container manually.

2019-07-24 03:09:04 -0500 received badge  Famous Question (source)
2019-07-24 01:35:46 -0500 received badge  Editor (source)
2019-07-24 01:31:00 -0500 answered a question swift-glance backend

i do this command: $openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img.1 --disk-format qcow2 --container-format bare --public

I can create the image successfully, even if I don't know what folder it is in. Output of " $openstack image list":

| ID | Name | Status |

| 1c82bd08-7633-4cfa-9cff-a2b765752e7f | cirros | active

But if write "openstack volume list" no volume are created. Also this is what i see in glance-api.log file:

2019-07-24 06:30:02.313 5258 INFO eventlet.wsgi.server [req-0676375c-edf9-4222-928e-5bfe0553a4ef bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$ 2019-07-24 06:30:02.359 5258 INFO eventlet.wsgi.server [req-ff5f45ea-3476-4883-bdba-2354d06108a2 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$ 2019-07-24 06:30:04.186 5258 INFO eventlet.wsgi.server [req-551a7063-2f43-4e04-8de2-28eadcbd6fc8 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$ 2019-07-24 06:30:04.207 5258 INFO eventlet.wsgi.server [req-12298dd4-6f6a-4d4a-a1e1-7f9c0d61ee2f bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$ 2019-07-24 06:30:04.213 5258 INFO eventlet.wsgi.server [req-1074c542-4ba5-4ae1-ac15-19078a3f6e9c bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$

$openstack image show 1c82bd08-7633-4cfa-9cff-a2b765752e7f

| Field | Value

| checksum | 443b7623e27ecf03dc9e01ee93f67afe

| container_format | bare

| created_at | 2019-07-24T06:25:49Z |

| disk_format | qcow2 |

| file | /v2/images/1c82bd08-7633-4cfa-9cff-a2b765752e7f/file |

| id | 1c82bd08-7633-4cfa-9cff-a2b765752e7f |

| min_disk | 0 |

| min_ram | 0 |

| name | cirros

| owner | 0bf1e67c865b4dc9a909a300a5a0497c |

| properties | os_hash_algo='sha512', os_hash_value='6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78', os_hidden='False' |

| protected | False |

| schema | /v2/schemas/image |

| size | 12716032 |

| status | active |

| tags | |

| updated_at | 2019-07-24T06:25:55Z |

| virtual_size | None

| visibility | public

this is the project that i have inside openstack:

$openstack project list

| ID | Name |

| 0bf1e67c865b4dc9a909a300a5a0497c | admin |

| 29cb13cd16624e658176d3b4d29cff76 | service |

| c66697908bd24f48a94b2f5d9ffddd14 | myproject |

2019-07-24 00:48:50 -0500 commented answer swift-glance backend

I confirm that even if I first create the container, I can't insert the image into it. Also if i try to see the image (openstack image list) i can see the image create and it's owned by admin project.

2019-07-24 00:34:52 -0500 commented answer swift-glance backend

now i give you the output, but i have a question: when i create the glance-swift user, i have create user and i have added to him the role of admin. should I also create the service associated with that user (openstack service create --name glance-swift...)?

2019-07-23 04:57:58 -0500 commented answer swift-glance backend

in fact if I look on the dashboard the image has been inserted in the volume section and it has error status. Also the Availability Zone i can see from these images is nova.

2019-07-23 04:39:48 -0500 commented answer swift-glance backend

in fact if I look on the dashboard the image has been inserted in the volume section and how it has error status. Are there any other things I need to change? for example in proxy-swift.conf

2019-07-23 04:39:48 -0500 received badge  Commentator
2019-07-23 04:34:59 -0500 commented answer swift-glance backend

after create user glance-swift i solved all error, but the procedure don't create the container in swift. i use the command: "openstack image create "cirros1" --file cirros-0.4.0-x86_64-disk.img.1 --disk-format qcow2 --container-format bare --public" for create image. what can be the problem?

2019-07-23 01:28:56 -0500 commented answer swift-glance backend

should the glance-swift user be created? if yes, how? directly applying your advice I get the following error: BackendException: Cannot find swift service endpoint : The request you have made requires authentication. (HTTP 401)

2019-07-23 01:04:03 -0500 received badge  Supporter (source)
2019-07-23 01:01:29 -0500 received badge  Notable Question (source)
2019-07-22 22:15:30 -0500 received badge  Popular Question (source)
2019-07-22 15:43:16 -0500 commented answer Glance backend Swift not showing container

Hi, can you share your glance-api.conf file? Which variable have you set?

2019-07-22 07:17:43 -0500 commented question swift-glance backend

in the field swift_store_auth_address i have to put the address of swift's endpoint? in the field swift_store_user, what i have to put?

2019-07-22 07:09:03 -0500 answered a question swift-glance backend

[glance_store] default_store = swift stores = file,http,swift swift_store_auth_version = 2 swift_store_auth_address = http://controller:8080/v2.0/ swift_store_user = service:swift swift_store_region = RegionOne swift_store_key = studente swift_store_container = glance swift_store_create_container_on_put = True swift_store_auth_insecure = True swift_store_large_object_size = 2000 swift_store_large_object_chunk_size = 200 swift_enable_snet = False

Glance version: 2.9.1 Swift version: python-swiftclient 3.6.0

2019-07-22 07:03:49 -0500 commented question swift-glance backend

swift_store_container = glance swift_store_create_container_on_put = True swift_store_auth_insecure = True swift_store_large_object_size = 2000 swift_store_large_object_chunk_size = 200 swift_enable_snet = False

2019-07-22 07:03:04 -0500 commented question swift-glance backend

this my configuration for swift backend: [glance_store] default_store = swift stores = file,http,swift swift_store_auth_version = 2 swift_store_auth_address = http://controller:8080/v2.0/ swift_store_user = service:swift swift_store_user = service:swift swift_store_region = RegionOne

2019-07-22 07:01:38 -0500 commented question swift-glance backend

I partially solved the previous problem, but now from the log file it gives me this error: ClientException: Authorization Failure. Authorization Failed: Bad Request (HTTP 400)

2019-07-22 02:56:04 -0500 answered a question glance + swift : cannot retrieve image (Juno)

Have you changed only glance-api. conf for storing images in swift's container? can you post your conf file?

2019-07-22 01:38:58 -0500 commented question swift-glance backend

now with a new configuration of glance-api.conf i resolved the error 111, but if i try to create the image, glance don't create the container, but add, if also path dir is commented out, inside controller. if i run the command "sudo glance-api --debug", it show ERROR: Could not bind to 0.0.0.0:9292

2019-07-22 00:39:28 -0500 commented question swift-glance backend

I see this error when i try to create a new image with the command: "openstack image create "cirros1" --file cirros-0.4.0-x86_64-disk.img.1 --disk-format qcow2 --container-format bare --public". For swift store configuration do you mean the glance-api.conf otherwise the swift.conf?

2019-07-21 15:08:24 -0500 received badge  Student (source)
2019-07-21 08:43:48 -0500 asked a question swift-glance backend

HI,

I have several problems to change the glance backend to store the new image in a swift's container. I'm using openstack rocky and Ubuntu 18.10. There is someone that can help me? In particular, has anyone done this procedure and it works properly?

I find on the internet only guide for a different version of rocky or Ubuntu, but for me don't work. When i create a new image, i have the errno 111 (connection refused). There is the link i was following to change glance's backend: https://www.unixarena.com/2015/10/ope...

[glance_store]
default_store = swift
stores = file,http,swift
swift_store_auth_version = 2
swift_store_auth_address = http://controller:8080/v2.0/
swift_store_user = service:swift
swift_store_region = RegionOne
swift_store_key = studente
swift_store_container = glance
swift_store_create_container_on_put = True
swift_store_auth_insecure = True
swift_store_large_object_size = 2000
swift_store_large_object_chunk_size = 200
swift_enable_snet = False

Glance version: 2.9.1
Swift version: python-swiftclient 3.6.0

i do this command:

$ openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img.1 --disk-format qcow2 --container-format bare --public

I can create the image successfully, even if I don't know what folder it is in.

Output of " $openstack image list":

| ID                                   | Name            | Status |
| 1c82bd08-7633-4cfa-9cff-a2b765752e7f | cirros          | active

But if write "openstack volume list" no volume are created. Also this is what i see in glance-api.log file:

2019-07-24 06:30:02.313 5258 INFO eventlet.wsgi.server [req-0676375c-edf9-4222-928e-5bfe0553a4ef bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:02.359 5258 INFO eventlet.wsgi.server [req-ff5f45ea-3476-4883-bdba-2354d06108a2 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.186 5258 INFO eventlet.wsgi.server [req-551a7063-2f43-4e04-8de2-28eadcbd6fc8 bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.207 5258 INFO eventlet.wsgi.server [req-12298dd4-6f6a-4d4a-a1e1-7f9c0d61ee2f bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$
2019-07-24 06:30:04.213 5258 INFO eventlet.wsgi.server [req-1074c542-4ba5-4ae1-ac15-19078a3f6e9c bc53d9337a9c42c5a8883a8f5d60bc30 0bf1e67c865b4dc9a909a300a5a0497c - default defaul$

$ openstack image show 1c82bd08-7633-4cfa-9cff-a2b765752e7f

| Field            | Value    
| checksum         | 443b7623e27ecf03dc9e01ee93f67afe                                                                                                                                                           
| container_format | bare                                                                                                                                                                                       
| created_at       | 2019-07-24T06:25:49Z                                                                                                                                                                       |
| disk_format      | qcow2                                                                                                                                                                                      |
| file             | /v2/images/1c82bd08-7633-4cfa-9cff-a2b765752e7f/file                                                                                                                                       |
| id               | 1c82bd08-7633-4cfa-9cff-a2b765752e7f                                                                                                                                                       |
| min_disk         | 0                                                                                                                                                                                          |
| min_ram          | 0                                                                                                                                                                                          |
| name             | cirros                                                                                                                                                                                     
| owner            | 0bf1e67c865b4dc9a909a300a5a0497c                                                                                                                                                           |
| properties       | os_hash_algo='sha512', os_hash_value='6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78', os_hidden='False' |

| protected        | False                                                                                                                                                                                      |
| schema           | /v2/schemas/image                                                                                                                                                                          |
| size             | 12716032                                                                                                                                                                                   |
| status           | active                                                                                                                                                                                     |
| tags             |                                                                                                                                                                                            |
| updated_at       | 2019-07-24T06:25:55Z                                                                                                                                                                       |
| virtual_size     | None 
| visibility       | public

this is the project that i have inside openstack:

$openstack project list
| ID                               | Name      |
| 0bf1e67c865b4dc9a909a300a5a0497c | admin     |
| 29cb13cd16624e658176d3b4d29cff76 | service   |
| c66697908bd24f48a94b2f5d9ffddd14 | myproject |