Zun

Comment 4 for bug 1845650

Revision history for this message
Robert Duncan (rduncan-t) wrote :

Thanks hongbin, I can confirm that this works and I can now search for images without experiencing error 500, however there is one remaining issue, I cannot find any images when the search term includes a forward /

i.e

ubuntu@kolla:~$ openstack appcontainer image search openstack-client
+----+-----------------------------------+------+--------+------+-------------------------------------------+
| ID | Name | Tags | Status | Size | Metadata |
+----+-----------------------------------+------+--------+------+-------------------------------------------+
| | ullbergm/openstack-client | | | | {u'is_official': False, u'star_count': 5} |
| | cftoolsmiths/openstack-clients | | | | {u'is_official': False, u'star_count': 1} |
| | cloudwattfr/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | jmcvea/openstack-client | | | | {u'is_official': False, u'star_count': 3} |
| | kpms/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | sapcc/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | oxeva/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | digitalr00ts/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | port/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | gbraad/openstack-client | | | | {u'is_official': False, u'star_count': 2} |
| | 42bv/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | chamerling/openstack-client | | | | {u'is_official': False, u'star_count': 1} |
| | usacys/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | anguslees/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | timfreund/openstack-client-centos | | | | {u'is_official': False, u'star_count': 0} |
| | anmoljh/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | sspreitzer/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | attila123/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | luckpenugin/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | baselibrary/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | redhatcop/openstack-client-centos | | | | {u'is_official': False, u'star_count': 0} |
| | booleancandy/openstack-clients | | | | {u'is_official': False, u'star_count': 0} |
| | phymatopus/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
| | fsoppelsa/openstack-clients | | | | {u'is_official': False, u'star_count': 1} |
| | kibatic/openstack-client | | | | {u'is_official': False, u'star_count': 0} |
+----+-----------------------------------+------+--------+------+-------------------------------------------+
ubuntu@kolla:~$ openstack appcontainer image search gbraad/openstack-client

ubuntu@kolla:~$

REQ: curl -g -i -X SEARCH https://openstack:9517/v1/images/ -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack-API-Version: container 1.12" -H "User-Agent: None" -H "X-Auth-Token: {SHA256}71ea24be550a3533578cd6342e3b581e719c23698a500bb6a9c94e5f3c59bc6c" -d '{"image": "gbraad/openstack-client"}'
Starting new HTTPS connection (1): openstack:9517
https://openstack.cloudenci.ie:9517 "SEARCH /v1/images/ HTTP/1.1" 200 2
RESP: [200] Content-Length: 2 Content-Type: application/json Date: Mon, 30 Sep 2019 08:02:13 GMT OpenStack-API-Maximum-Version: container 1.32 OpenStack-API-Minimum-Version: container 1.1 OpenStack-API-Version: container 1.12 Server: Apache vary: OpenStack-API-Version x-openstack-request-id: req-f33cd6cd-a7f8-4f5c-bae1-cc076a18061f
RESP BODY: []
SEARCH call to container for https://openstack:9517/v1/images/ used request id req-f33cd6cd-a7f8-4f5c-bae1-cc076a18061f

clean_up SearchImage:
END return value: 0