use image-volume miss signature_verified

Bug #1826383 reported by yenai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
yenai

Bug Description

Enable image cache, verify_glance_signatures is enabled.
1. create volume from image(create image volume as well)
2. create volume from the same image(actually clone from image volume)
The signature_verified is different.

MariaDB [cinder]> select * from image_volume_cache_entries where volume_id='11a7204d-40b6-4ef7-b62c-ce2b01475a02';
+---------------------+----+-----------------------------------------------+--------------------------------------+--------------------------------------+------+---------------------+--------------+
| image_updated_at | id | host | image_id | volume_id | size | last_used | cluster_name |
+---------------------+----+-----------------------------------------------+--------------------------------------+--------------------------------------+------+---------------------+--------------+
| 2019-01-13 12:38:57 | 10 | localhost.localdomain@lvmdriver-1#lvmdriver-1 | 11ddf734-8844-47ab-aacf-b062fb77f04a | 11a7204d-40b6-4ef7-b62c-ce2b01475a02 | 1 | 2019-01-13 19:31:10 | NULL |
+---------------------+----+-----------------------------------------------+--------------------------------------+--------------------------------------+------+---------------------+--------------+
1 row in set (0.00 sec)
[stack@localhost devstack]$ cinder create --image-id 11ddf734-8844-47ab-aacf-b062fb77f04a 1
+--------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-01-13T19:44:55.000000 |
| description | None |
| encrypted | False |
| id | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 |
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | None |
| os-vol-host-attr:host | None |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | b984b88d70dd4cbb8f99efa4a48ebfe9 |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | edffe81b43534dfea48effced3ac8e53 |
| volume_type | lvmdriver-1 |
+--------------------------------+--------------------------------------+
MariaDB [cinder]> select * from volume_glance_metadata where volume_id='3bc77286-3cf4-44e7-92f3-e038fc9b88a8';
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+------------------+--------------------------------------+
| created_at | updated_at | deleted_at | deleted | id | volume_id | snapshot_id | key | value |
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+------------------+--------------------------------------+
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 116 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | container_format | bare |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 117 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | min_ram | 0 |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 118 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | disk_format | raw |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 119 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | image_name | yenai |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 120 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | image_id | 11ddf734-8844-47ab-aacf-b062fb77f04a |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 121 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | checksum | cd573cfaace07e7949bc0c46028904ff |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 122 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | min_disk | 0 |
| 2019-01-13 19:44:56 | NULL | NULL | 0 | 123 | 3bc77286-3cf4-44e7-92f3-e038fc9b88a8 | NULL | size | 1073741824 |
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+------------------+--------------------------------------+
8 rows in set (0.00 sec)

MariaDB [cinder]> select * from volume_glance_metadata where volume_id='c7bd98e6-2f13-41f3-89b6-e94aa6c0757e';
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+--------------------+--------------------------------------+
| created_at | updated_at | deleted_at | deleted | id | volume_id | snapshot_id | key | value |
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+--------------------+--------------------------------------+
| 2019-01-13 19:30:59 | NULL | NULL | 0 | 107 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | signature_verified | False |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 108 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | container_format | bare |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 109 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | min_ram | 0 |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 110 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | disk_format | raw |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 111 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | image_name | yenai |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 112 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | image_id | 11ddf734-8844-47ab-aacf-b062fb77f04a |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 113 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | checksum | cd573cfaace07e7949bc0c46028904ff |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 114 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | min_disk | 0 |
| 2019-01-13 19:31:10 | NULL | NULL | 0 | 115 | c7bd98e6-2f13-41f3-89b6-e94aa6c0757e | NULL | size | 1073741824 |
+---------------------+------------+------------+---------+-----+--------------------------------------+-------------+--------------------+--------------------------------------+
9 rows in set (0.00 sec)

yenai (yenai2008)
Changed in cinder:
assignee: nobody → yenai (yenai2008)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/655666

Changed in cinder:
status: New → In Progress
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.