the volume's volume_type_id is null

Bug #1743973 reported by 张恒
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

if you have multy cinder driver,
when start a vm,the vm's system volume will do not ses volume type in dashboard,
and check the database,in the table(cinder.volumes) ,the colume volume_type_id is null.
but create a single volume,you can choose a volume_type,the value will be writed in cinder.volumes.volume_type_id,and will see volume type in volums list

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Sorry, can you clarify what the error is you are seeing. I'm not sure I'm following.

Revision history for this message
张恒 (zhangheng07) wrote :

there is no error,only in the table of cinder.volumes ,the volume_type_id is null,when i create a vm,so the command cinder show retrun volume_type is None too.
*************************** 1. row ***************************
                 created_at: 2018-01-18 03:01:12
                 updated_at: 2018-01-18 03:08:42
                 deleted_at: NULL
                    deleted: 0
                         id: 3f6fbaa3-5761-4ddd-8d15-153ca51ae7eb
                     ec2_id: NULL
                    user_id: e436ff259ec5464797795780ca1ce0f3
                 project_id: bb5416577889426eac3466eaef5b2ca6
                       host: node6@ms5520#ms5520
                       size: 20
          availability_zone: nova
                     status: in-use
              attach_status: attached
               scheduled_at: 2018-01-18 03:01:12
                launched_at: 2018-01-18 03:08:19
              terminated_at: NULL
               display_name:
        display_description:
          provider_location: macrosan uuid:0x00b34201-8a180066-1d359606-d7d7e1d4
              provider_auth: NULL
                snapshot_id: NULL
             volume_type_id: NULL
               source_volid: NULL
                   bootable: 1
          provider_geometry: NULL
                   _name_id: NULL
          encryption_key_id: NULL
           migration_status: NULL
         replication_status: disabled
replication_extended_status: NULL
    replication_driver_data: NULL
        consistencygroup_id: NULL
                provider_id: NULL
                multiattach: 0
            previous_status: NULL
               cluster_name: NULL
                   group_id: NULL

Revision history for this message
Brin Zhang (zhangbailin) wrote :

I think this is not a problem, if you want to have a default volume type, you can set this default volume type in the cinder.conf configuration file, set default_volume_type = <volume_type_name>, the volume you create will be accompanied by a volume type id.

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.