Bug 1548634

Summary: Able to upload glance image , without glance-registry
Product: Red Hat OpenStack Reporter: Nilesh <nchandek>
Component: openstack-glanceAssignee: Cyril Roelandt <cyril>
Status: CLOSED NOTABUG QA Contact: Mike Abrams <mabrams>
Severity: high Docs Contact: Kim Nylander <knylande>
Priority: high    
Version: 12.0 (Pike)CC: eglynn, fpercoco, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-26 15:21:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nilesh 2018-02-24 04:08:28 UTC
Without glance-registry , how images are uploading. 



[root@controller-0 ~]# rpm -qa |grep -i glance
python-glanceclient-2.8.0-1.el7ost.noarch
openstack-glance-15.0.0-3.el7ost.noarch
python-glance-store-0.22.0-1.el7ost.noarch
puppet-glance-11.3.0-3.el7ost.noarch
python-glance-15.0.0-3.el7ost.noarch
[root@controller-0 ~]# 
[root@controller-0 ~]# 
[root@controller-0 ~]# docker ps |grep -i glance
d10501284b5a        192.168.24.1:8787/rhosp12/openstack-glance-api:12.0-20180104.2                "kolla_start"            4 weeks ago         Up 4 weeks (healthy)                       glance_api
[root@controller-0 ~]# 

(overcloud) [stack@undercloud-0 ~]$ openstack image create --disk-format qcow2 --file cirros-0.3.4-x86_64-disk.img cirros_$(date +"%Y-%m-%d_%H-%M-%S")
+------------------+------------------------------------------------------------------------------+
| Field            | Value                                                                        |
+------------------+------------------------------------------------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6                                             |
| container_format | bare                                                                         |
| created_at       | 2018-02-24T04:03:33Z                                                         |
| disk_format      | qcow2                                                                        |
| file             | /v2/images/92d2e629-1516-4dd6-ac66-8b1619bce5c8/file                         |
| id               | 92d2e629-1516-4dd6-ac66-8b1619bce5c8                                         |
| min_disk         | 0                                                                            |
| min_ram          | 0                                                                            |
| name             | cirros_2018-02-23_23-05-06                                                   |
| owner            | f15a947ff3ab4450a897c69e38df0c6f                                             |
| properties       | direct_url='swift+config://ref1/glance/92d2e629-1516-4dd6-ac66-8b1619bce5c8' |
| protected        | False                                                                        |
| schema           | /v2/schemas/image                                                            |
| size             | 13287936                                                                     |
| status           | active                                                                       |
| tags             |                                                                              |
| updated_at       | 2018-02-24T04:03:35Z                                                         |
| virtual_size     | None                                                                         |
| visibility       | shared                                                                       |
+------------------+------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ openstack image list
+--------------------------------------+----------------------------+--------+
| ID                                   | Name                       | Status |
+--------------------------------------+----------------------------+--------+
| 38132adb-ef02-44ad-a4bc-20ae30fa108b | cirros                     | active |
| 92d2e629-1516-4dd6-ac66-8b1619bce5c8 | cirros_2018-02-23_23-05-06 | active |
| 3cd4e02c-5af4-4a11-b6bc-cd2069f43890 | test                       | active |
+--------------------------------------+----------------------------+--------+
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ openstack image create --disk-format qcow2 --file cirros-0.3.4-x86_64-disk.img cirros_$(date +"%Y-%m-%d_%H-%M-%S")
+------------------+------------------------------------------------------------------------------+
| Field            | Value                                                                        |
+------------------+------------------------------------------------------------------------------+
| checksum         | ee1eca47dc88f4879d8a229cc70a07c6                                             |
| container_format | bare                                                                         |
| created_at       | 2018-02-24T04:03:50Z                                                         |
| disk_format      | qcow2                                                                        |
| file             | /v2/images/29e30381-b63c-46c6-99c3-7c204a117e75/file                         |
| id               | 29e30381-b63c-46c6-99c3-7c204a117e75                                         |
| min_disk         | 0                                                                            |
| min_ram          | 0                                                                            |
| name             | cirros_2018-02-23_23-05-23                                                   |
| owner            | f15a947ff3ab4450a897c69e38df0c6f                                             |
| properties       | direct_url='swift+config://ref1/glance/29e30381-b63c-46c6-99c3-7c204a117e75' |
| protected        | False                                                                        |
| schema           | /v2/schemas/image                                                            |
| size             | 13287936                                                                     |
| status           | active                                                                       |
| tags             |                                                                              |
| updated_at       | 2018-02-24T04:03:54Z                                                         |
| virtual_size     | None                                                                         |
| visibility       | shared                                                                       |
+------------------+------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ 
(overcloud) [stack@undercloud-0 ~]$ openstack image list
+--------------------------------------+----------------------------+--------+
| ID                                   | Name                       | Status |
+--------------------------------------+----------------------------+--------+
| 38132adb-ef02-44ad-a4bc-20ae30fa108b | cirros                     | active |
| 92d2e629-1516-4dd6-ac66-8b1619bce5c8 | cirros_2018-02-23_23-05-06 | active |
| 29e30381-b63c-46c6-99c3-7c204a117e75 | cirros_2018-02-23_23-05-23 | active |
| 3cd4e02c-5af4-4a11-b6bc-cd2069f43890 | test                       | active |
+--------------------------------------+----------------------------+--------+
(overcloud) [stack@undercloud-0 ~]$ 


* wondering how its creating,

Comment 2 Nilesh 2018-02-24 04:26:25 UTC
[root@controller-1 ~]# ps -ef |grep -i glance
root      147519  147162  0 04:23 pts/0    00:00:00 grep --color=auto -i glance
42415     681149  681134  0 Jan25 ?        05:14:08 /usr/bin/python2 /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
42415     681619  681149  0 Jan25 ?        02:15:31 /usr/bin/python2 /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
42415     681620  681149  0 Jan25 ?        02:16:40 /usr/bin/python2 /usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf
[root@controller-1 ~]#

Comment 3 Nilesh 2018-02-24 04:31:44 UTC
[root@controller-1 ~]# egrep -v "^#|^$" /etc/glance/* |grep -i enable_v
grep: /etc/glance/metadefs: Is a directory
grep: /etc/glance/rootwrap.d: Is a directory
/etc/glance/glance-api.conf:enable_v1_api = False
/etc/glance/glance-api.conf:enable_v2_api = True
[root@controller-1 ~]#

Comment 6 Cyril Roelandt 2018-02-26 15:21:56 UTC
Glance-registry has been removed. The documentation should be updated, and we have bug https://bugzilla.redhat.com/show_bug.cgi?id=1548650 for that. Closing this one.