Can't get `glance image-list`

Bug #1505140 reported by Sergii Turivnyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
Kairat Kushaev

Bug Description

Steps to reproduce:

Navigate to Controller node
Execute # source openrc
      root@node-1:~# env | grep OS
      OS_REGION_NAME=RegionOne
      OS_DEFAULT_DOMAIN=default
      OS_PROJECT_NAME=admin
      OS_PASSWORD=admin
      OS_AUTH_STRATEGY=keystone
      OS_AUTH_URL=http://192.168.0.2:5000/v2.0/
      OS_USERNAME=admin
      OS_ENDPOINT_TYPE=internalURL
      OS_NO_CACHE=true
      LESSCLOSE=/usr/bin/lesspipe %s %s

Execute # glance image-list

Expected result:
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
| b35a9693-a535-46bd-828c-1522728900f2 | TestVM | qcow2 | bare | 13287936 | active |
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+

Actual result:
You must provide a project_id or project_name (with project_domain_name or project_domain_id) via --os-project-id (env[OS_PROJECT_ID]) --os-project-name (env[OS_PROJECT_NAME]), --os-project-domain-id (env[OS_PROJECT_DOMAIN_ID]) --os-project-domain-name (env[OS_PROJECT_DOMAIN_NAME])

Workaround:
root@node-1:~# glance --os-auth-url http://127.0.0.1:35357/v3 --os-username admin --os-password admin --os-project-name admin --os-user-domain-name default --os-project-domain-name default image-list
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
| b35a9693-a535-46bd-828c-1522728900f2 | TestVM | qcow2 | bare | 13287936 | active |
+--------------------------------------+-------------------------+-------------+------------------+-----------+--------+

Tags: glance puppet
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Could you please add more details here:

1) what is the MOS version used?
2) what is the python-glanceclient package version used?

Changed in mos:
status: New → Incomplete
importance: High → Undecided
assignee: nobody → Sergii Turivnyi (sturivnyi)
Revision history for this message
Sergii Turivnyi (sturivnyi) wrote : Re: [Bug 1505140] Re: Can't get `glance image-list`
Download full text (4.6 KiB)

ISO:
api: '1.0'
astute_sha: e99368bd77496870592781f4ba4fb0caacb9f3a7
auth_required: true
build_id: 2015-10-12_16-54-24
build_number: '216'
feature_groups:
- mirantis
fuel-agent_sha: f24c6148918b689fba66c78deb8eb08d5bc34a64
fuel-createmirror_sha: df6a93f7e2819d3dfa600052b0f901d9594eb0db
fuel-library_sha: 5ed905182f4cb23f37532e1bbc732f8172071c50
fuel-nailgun-agent_sha: d66f188a1832a9c23b04884a14ef00fc5605ec6d
fuel-nailgun_sha: 5a4f97832e41910bbe086de900c8f63da9ccdb2d
fuel-ostf_sha: bc4c4d9808b216c0516e7284af93a0d06ca090a1
fuelmain_sha: edbb8608a5133f7a38bc844d3252eb5f79285f5e
openstack_version: 2015.1.0-8.0
production: docker
python-fuelclient_sha: 769df968e19d95a4ab4f12b1d2c76d385cf3168c
release: '8.0'
release_versions:
  2015.1.0-8.0:
    VERSION:
      api: '1.0'
      astute_sha: e99368bd77496870592781f4ba4fb0caacb9f3a7
      build_id: 2015-10-12_16-54-24
      build_number: '216'
      feature_groups:
      - mirantis
      fuel-agent_sha: f24c6148918b689fba66c78deb8eb08d5bc34a64
      fuel-createmirror_sha: df6a93f7e2819d3dfa600052b0f901d9594eb0db
      fuel-library_sha: 5ed905182f4cb23f37532e1bbc732f8172071c50
      fuel-nailgun-agent_sha: d66f188a1832a9c23b04884a14ef00fc5605ec6d
      fuel-nailgun_sha: 5a4f97832e41910bbe086de900c8f63da9ccdb2d
      fuel-ostf_sha: bc4c4d9808b216c0516e7284af93a0d06ca090a1
      fuelmain_sha: edbb8608a5133f7a38bc844d3252eb5f79285f5e
      openstack_version: 2015.1.0-8.0
      production: docker
      python-fuelclient_sha: 769df968e19d95a4ab4f12b1d2c76d385cf3168c
      release: '8.0'

On Tue, Oct 13, 2015 at 4:02 PM, Roman Podoliaka <
<email address hidden>> wrote:

> Could you please add more details here:
>
> 1) what is the MOS version used?
> 2) what is the python-glanceclient package version used?
>
> ** Changed in: mos
> Status: New => Incomplete
>
> ** Changed in: mos
> Importance: High => Undecided
>
> ** Changed in: mos
> Assignee: (unassigned) => Sergii Turivnyi (sturivnyi)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1505140
>
> Title:
> Can't get `glance image-list`
>
> Status in Mirantis OpenStack:
> Incomplete
>
> Bug description:
> Steps to reproduce:
>
> Navigate to Controller node
> Execute # source openrc
> root@node-1:~# env | grep OS
> OS_REGION_NAME=RegionOne
> OS_DEFAULT_DOMAIN=default
> OS_PROJECT_NAME=admin
> OS_PASSWORD=admin
> OS_AUTH_STRATEGY=keystone
> OS_AUTH_URL=http://192.168.0.2:5000/v2.0/
> OS_USERNAME=admin
> OS_ENDPOINT_TYPE=internalURL
> OS_NO_CACHE=true
> LESSCLOSE=/usr/bin/lesspipe %s %s
>
> Execute # glance image-list
>
> Expected result:
>
> +--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
> | ID | Name | Disk
> Format | Container Format | Size | Status |
>
> +--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
> | b35a9693-a535-46bd-828c-1522728900f2 | TestVM ...

Read more...

Revision history for this message
Sergii Turivnyi (sturivnyi) wrote :
Download full text (5.0 KiB)

root@node-1:~/stmp# glance --version
0.17.1

On Tue, Oct 13, 2015 at 4:15 PM, Sergii Turivnyi <email address hidden>
wrote:

> ISO:
> api: '1.0'
> astute_sha: e99368bd77496870592781f4ba4fb0caacb9f3a7
> auth_required: true
> build_id: 2015-10-12_16-54-24
> build_number: '216'
> feature_groups:
> - mirantis
> fuel-agent_sha: f24c6148918b689fba66c78deb8eb08d5bc34a64
> fuel-createmirror_sha: df6a93f7e2819d3dfa600052b0f901d9594eb0db
> fuel-library_sha: 5ed905182f4cb23f37532e1bbc732f8172071c50
> fuel-nailgun-agent_sha: d66f188a1832a9c23b04884a14ef00fc5605ec6d
> fuel-nailgun_sha: 5a4f97832e41910bbe086de900c8f63da9ccdb2d
> fuel-ostf_sha: bc4c4d9808b216c0516e7284af93a0d06ca090a1
> fuelmain_sha: edbb8608a5133f7a38bc844d3252eb5f79285f5e
> openstack_version: 2015.1.0-8.0
> production: docker
> python-fuelclient_sha: 769df968e19d95a4ab4f12b1d2c76d385cf3168c
> release: '8.0'
> release_versions:
> 2015.1.0-8.0:
> VERSION:
> api: '1.0'
> astute_sha: e99368bd77496870592781f4ba4fb0caacb9f3a7
> build_id: 2015-10-12_16-54-24
> build_number: '216'
> feature_groups:
> - mirantis
> fuel-agent_sha: f24c6148918b689fba66c78deb8eb08d5bc34a64
> fuel-createmirror_sha: df6a93f7e2819d3dfa600052b0f901d9594eb0db
> fuel-library_sha: 5ed905182f4cb23f37532e1bbc732f8172071c50
> fuel-nailgun-agent_sha: d66f188a1832a9c23b04884a14ef00fc5605ec6d
> fuel-nailgun_sha: 5a4f97832e41910bbe086de900c8f63da9ccdb2d
> fuel-ostf_sha: bc4c4d9808b216c0516e7284af93a0d06ca090a1
> fuelmain_sha: edbb8608a5133f7a38bc844d3252eb5f79285f5e
> openstack_version: 2015.1.0-8.0
> production: docker
> python-fuelclient_sha: 769df968e19d95a4ab4f12b1d2c76d385cf3168c
> release: '8.0'
>
>
> On Tue, Oct 13, 2015 at 4:02 PM, Roman Podoliaka <
> <email address hidden>> wrote:
>
>> Could you please add more details here:
>>
>> 1) what is the MOS version used?
>> 2) what is the python-glanceclient package version used?
>>
>> ** Changed in: mos
>> Status: New => Incomplete
>>
>> ** Changed in: mos
>> Importance: High => Undecided
>>
>> ** Changed in: mos
>> Assignee: (unassigned) => Sergii Turivnyi (sturivnyi)
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1505140
>>
>> Title:
>> Can't get `glance image-list`
>>
>> Status in Mirantis OpenStack:
>> Incomplete
>>
>> Bug description:
>> Steps to reproduce:
>>
>> Navigate to Controller node
>> Execute # source openrc
>> root@node-1:~# env | grep OS
>> OS_REGION_NAME=RegionOne
>> OS_DEFAULT_DOMAIN=default
>> OS_PROJECT_NAME=admin
>> OS_PASSWORD=admin
>> OS_AUTH_STRATEGY=keystone
>> OS_AUTH_URL=http://192.168.0.2:5000/v2.0/
>> OS_USERNAME=admin
>> OS_ENDPOINT_TYPE=internalURL
>> OS_NO_CACHE=true
>> LESSCLOSE=/usr/bin/lesspipe %s %s
>>
>> Execute # glance image-list
>>
>> Expected result:
>>
>> +--------------------------------------+-------------------------+-------------+------------------+-----------+--------+
>> | ID | Name ...

Read more...

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

MOS Glance team, could you please take a look at Sergii's comments? ^

Changed in mos:
assignee: Sergii Turivnyi (sturivnyi) → MOS Glance (mos-glance)
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → 8.0
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Am I missed something or need to specify OS_PROJECT_DOMAIN_NAME or OS_PROJECT_DOMAIN_ID for your env in openrc file?

ruhe (ruhe)
tags: added: glance
Changed in mos:
assignee: MOS Glance (mos-glance) → Kairat Kushaev (kkushaev)
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

I asked QAs to install new 8.0 environment and I could not reproduce this issue.
"image-list" works correctly.
Here is openrc.file:
#!/bin/sh
export LC_ALL=C
export OS_NO_CACHE='true'
export OS_TENANT_NAME='admin'
export OS_PROJECT_NAME='admin'
export OS_USERNAME='admin'
export OS_PASSWORD='admin'
export OS_AUTH_URL='http://192.168.0.2:5000/v2.0/'
export OS_DEFAULT_DOMAIN='default'
export OS_AUTH_STRATEGY='keystone'
export OS_REGION_NAME='RegionOne'
export CINDER_ENDPOINT_TYPE='internalURL'
export GLANCE_ENDPOINT_TYPE='internalURL'
export KEYSTONE_ENDPOINT_TYPE='internalURL'
export NOVA_ENDPOINT_TYPE='internalURL'
export NEUTRON_ENDPOINT_TYPE='internalURL'
export OS_ENDPOINT_TYPE='internalURL'
export MURANO_REPO_URL='http://storage.apps.openstack.org/'

env | grep os:
OS_REGION_NAME=RegionOne
OS_DEFAULT_DOMAIN=default
OS_PROJECT_NAME=admin
OS_PASSWORD=admin
OS_AUTH_STRATEGY=keystone
OS_AUTH_URL=http://192.168.0.2:5000/v2.0/
OS_USERNAME=admin
OS_TENANT_NAME=admin
OS_ENDPOINT_TYPE=internalURL
OS_NO_CACHE=true
LESSCLOSE=/usr/bin/lesspipe %s %

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

I will mark this as Invalid unless there will be another case when it can be reproduced.

Changed in mos:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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