Incorrect output fron glance client with glance-api v1

Bug #1504112 reported by Denis Egorenko
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Mikhail Ivanov

Bug Description

ISO:

{"build_id": "6", "openstack_version": "2015.1.0-8.0", "build_number": "6", "release_versions": {"2015.1.0-8.0": {"VERSION": {"build_id": "6", "openstack_version": "2015.1.0-8.0", "build_number": "6", "api": "1.0", "fuel-library_sha": "e3d2905b9dd2cc7b4d46201ca9816dd320868917", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d66f188a1832a9c23b04884a14ef00fc5605ec6d", "fuel-nailgun_sha": "70d8b7e80573728e04ac5478c112850afcfa9802", "fuel-agent_sha": "e881f0dabd09af4be4f3e22768b02fe76278e20e", "production": "docker", "python-fuelclient_sha": "56fbd6bad7f60f0944b3845c2db14d0b8cabd4d3", "astute_sha": "0f753467a3f16e4d46e7e9f1979905fb178e4d5b", "fuel-ostf_sha": "41aa5059243cbb25d7a80b97f8e1060a502b99dd", "release": "8.0", "fuelmain_sha": "51614465980e5f62a5796779d3f6c3305c1d5739"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "e3d2905b9dd2cc7b4d46201ca9816dd320868917", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d66f188a1832a9c23b04884a14ef00fc5605ec6d", "fuel-nailgun_sha": "70d8b7e80573728e04ac5478c112850afcfa9802", "fuel-agent_sha": "e881f0dabd09af4be4f3e22768b02fe76278e20e", "production": "docker", "python-fuelclient_sha": "56fbd6bad7f60f0944b3845c2db14d0b8cabd4d3", "astute_sha": "0f753467a3f16e4d46e7e9f1979905fb178e4d5b", "fuel-ostf_sha": "41aa5059243cbb25d7a80b97f8e1060a502b99dd", "release": "8.0", "fuelmain_sha": "51614465980e5f62a5796779d3f6c3305c1d5739"}

The problem is that when we use --os-image-api-version 1 for glance client it returns incorrect output. But with default (v2) version it works.

root@node-3:~# glance --os-image-api-version 1 image-show 4f0e620d-6432-4894-9914-cf5d6c8c2150
/usr/lib/python2.7/dist-packages/urllib3/util/ssl_.py:97: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/lib/python2.7/dist-packages/urllib3/connection.py:255: SubjectAltNameWarning: Certificate for public.fuel.local has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
id

root@node-3:~# glance image-show 4f0e620d-6432-4894-9914-cf5d6c8c2150
/usr/lib/python2.7/dist-packages/urllib3/util/ssl_.py:97: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/lib/python2.7/dist-packages/urllib3/connection.py:255: SubjectAltNameWarning: Certificate for public.fuel.local has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | ee1eca47dc88f4879d8a229cc70a07c6 |
| container_format | bare |
| created_at | 2015-10-08T11:30:48Z |
| disk_format | qcow2 |
| id | 4f0e620d-6432-4894-9914-cf5d6c8c2150 |
| min_disk | 0 |
| min_ram | 64 |
| name | TestVM |
| owner | 85a2252fb0614796a3cbab0fe44abebd |
| protected | False |
| size | 13287936 |
| status | active |
| tags | [] |
| updated_at | 2015-10-08T11:30:49Z |
| virtual_size | None |
| visibility | public |
+------------------+--------------------------------------+

This is a real problem, because nova uses v1 glance-api and as a result raises errors during instance launching.

http://paste.openstack.org/show/475717/

Revision history for this message
Mike Fedosin (mfedosin) wrote :

Hi, this is my patch that fixes it on Nova's side https://review.openstack.org/#/c/231696/

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :
Changed in fuel:
status: New → Confirmed
importance: Undecided → High
milestone: none → 8.0
assignee: nobody → MOS Glance (mos-glance)
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

This problem can be fixed by downgrading python-urllib3 from 1.11 to 1.10.4 version. Minimal urllib3 version is exactly 1.10.4 for python-requests, and it's appropriate for global requirements: https://github.com/openstack/requirements/blob/master/global-requirements.txt#L204

Changed in fuel:
assignee: MOS Glance (mos-glance) → MOS Packaging Team (mos-packaging)
Atsuko Ito (yottatsa)
tags: added: liberty
Mikhail Ivanov (mivanov)
Changed in fuel:
assignee: MOS Packaging Team (mos-packaging) → Mikhail Ivanov (mivanov)
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/trusty/python-urllib3 (8.0)

Reviewed: https://review.fuel-infra.org/12695
Submitter: Artem Silenkov <email address hidden>
Branch: 8.0

Commit: f737e16b6abd6c0ce8906619a1ecdd953ae00d4f
Author: Mikhail Ivanov <email address hidden>
Date: Fri Oct 9 18:02:34 2015

Downgrade to 1.10.4

Sources from:
https://launchpad.net/ubuntu/+source/python-urllib3/1.10.4-1

Closes-Bug:#1504112

Change-Id: Ic932695b3d234b2d4d1f9ce50ff6359f21a08516

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-mos
tags: added: on-verification
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #338

root@node-8:~# nova image-list
+--------------------------------------+--------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+--------+--------+--------+
| b8e21841-2dbd-476b-b6e3-79e32c2b602a | TestVM | ACTIVE | |
+--------------------------------------+--------+--------+--------+
root@node-8:~# glance --os-image-api-version 1 image-show b8e21841-2dbd-476b-b6e3-79e32c2b602a
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | ee1eca47dc88f4879d8a229cc70a07c6 |
| container_format | bare |
| created_at | 2015-12-23T16:04:54.000000 |
| deleted | False |
| disk_format | qcow2 |
| id | b8e21841-2dbd-476b-b6e3-79e32c2b602a |
| is_public | True |
| min_disk | 0 |
| min_ram | 64 |
| name | TestVM |
| owner | 5c3a3862bfc34eef814405f9490e9157 |
| protected | False |
| size | 13287936 |
| status | active |
| updated_at | 2015-12-23T16:04:58.000000 |
+------------------+--------------------------------------+
root@node-8:~#

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "338"
  build_id: "338"
  fuel-nailgun_sha: "bad4d014df29beaf3708f1a050e808d20542b878"
  python-fuelclient_sha: "268847aa06e16f42bb3a3bf851a1869adfc36c46"
  fuel-agent_sha: "1d3a2b8d9e8961ebcdfa5db55e2e809f7dd404a8"
  fuel-nailgun-agent_sha: "92ebd5ade6fab60897761bfa084aefc320bff246"
  astute_sha: "c7ca63a49216744e0bfdfff5cb527556aad2e2a5"
  fuel-library_sha: "7a7c93e8b55d0e3e9ffd64b0b0e29451cdc0cfb0"
  fuel-ostf_sha: "d8cbc4f65361e034193479b19f84747d1c33894e"
  fuel-mirror_sha: "d15edd2128b9a4644f1db8089b0ecdf7954a2e57"
  fuelmenu_sha: "2942a85796d37f09ba8c8c6d762d8813292cf0d4"
  shotgun_sha: "bf79f1ac08a256160f2835a71808ec4f8d2bbf9e"
  network-checker_sha: "d443ef47abeda58d319bc8d33d5005dd09440a02"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "796125856c2325743124092a52f28e26c013c058"

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.