Public bug reported:

[Summary]
meta data of nova instance with case sensitive has problem when deleting

[Topo]
devstack all-in-one node

[Description and expect result]
can delete case sensitive meta one by one

[Reproduceable or not]
reproduceable 

[Recreate Steps]
1) set 4 metas for an instance, if ignore case, they have same string:
stack@45-59:~/devstack$ nova meta inst set abc=1 Abc=2 ABc=3 ABC=4
stack@45-59:~/devstack$ nova show inst
+--------------------------------------+----------------------------------------------------------------+
| Property                             | Value                                  
                        |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                 
                        |
| OS-EXT-AZ:availability_zone          | nova                                   
                        |
| OS-EXT-SRV-ATTR:host                 | 45-59                                  
                        |
| OS-EXT-SRV-ATTR:hostname             | inst                                   
                        |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | 45-59                                  
                        |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                      
                        |
| OS-EXT-SRV-ATTR:kernel_id            | 13716aa6-6110-4b26-9eb4-71f053c14b3d   
                        |
| OS-EXT-SRV-ATTR:launch_index         | 0                                      
                        |
| OS-EXT-SRV-ATTR:ramdisk_id           | 4c1870c0-520c-4423-8a6b-72e1839eeb76   
                        |
| OS-EXT-SRV-ATTR:reservation_id       | r-wc29hykh                             
                        |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                               
                        |
| OS-EXT-SRV-ATTR:user_data            | -                                      
                        |
| OS-EXT-STS:power_state               | 1                                      
                        |
| OS-EXT-STS:task_state                | -                                      
                        |
| OS-EXT-STS:vm_state                  | active                                 
                        |
| OS-SRV-USG:launched_at               | 2016-01-18T15:34:42.000000             
                        |
| OS-SRV-USG:terminated_at             | -                                      
                        |
| accessIPv4                           |                                        
                        |
| accessIPv6                           |                                        
                        |
| config_drive                         | True                                   
                        |
| created                              | 2016-01-18T15:34:31Z                   
                        |
| flavor                               | m1.tiny (1)                            
                        |
| hostId                               | 
8b5dd2a2c67716f40b65b8796dcb25c62f7522764e2dc7f9ff88ea7b       |
| id                                   | c2f19b32-cf99-4f6f-b9aa-fcf7246ff189   
                        |
| image                                | cirros-0.3.4-x86_64-uec 
(03ada996-9688-471f-ab8c-a9cc18175e2e) |
| key_name                             | -                                      
                        |
| locked                               | False                                  
                        |
| metadata                             | {"abc": "1", "Abc": "2", "ABC": "3", 
"ABc": "4"}               |
| name                                 | inst                                   
                        |
| net1 network                         | 1.0.0.3                                
                        |
| os-extended-volumes:volumes_attached | []                                     
                        |
| progress                             | 0                                      
                        |
| security_groups                      | default                                
                        |
| status                               | ACTIVE                                 
                        |
| tenant_id                            | e88840d981e2457595baed077ed2aac8       
                        |
| updated                              | 2016-01-18T15:43:48Z                   
                        |
| user_id                              | 9d619f44512a4289a670332300f1089c       
                        |
+--------------------------------------+----------------------------------------------------------------+

2) if delete one of them, all are deleted:        >>>>>>>>ISSUE
stack@45-59:~/devstack$ nova meta inst delete abc
stack@45-59:~/devstack$ nova show inst
+--------------------------------------+----------------------------------------------------------------+
| Property                             | Value                                  
                        |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                 
                        |
| OS-EXT-AZ:availability_zone          | nova                                   
                        |
| OS-EXT-SRV-ATTR:host                 | 45-59                                  
                        |
| OS-EXT-SRV-ATTR:hostname             | inst                                   
                        |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | 45-59                                  
                        |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                      
                        |
| OS-EXT-SRV-ATTR:kernel_id            | 13716aa6-6110-4b26-9eb4-71f053c14b3d   
                        |
| OS-EXT-SRV-ATTR:launch_index         | 0                                      
                        |
| OS-EXT-SRV-ATTR:ramdisk_id           | 4c1870c0-520c-4423-8a6b-72e1839eeb76   
                        |
| OS-EXT-SRV-ATTR:reservation_id       | r-wc29hykh                             
                        |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                               
                        |
| OS-EXT-SRV-ATTR:user_data            | -                                      
                        |
| OS-EXT-STS:power_state               | 1                                      
                        |
| OS-EXT-STS:task_state                | -                                      
                        |
| OS-EXT-STS:vm_state                  | active                                 
                        |
| OS-SRV-USG:launched_at               | 2016-01-18T15:34:42.000000             
                        |
| OS-SRV-USG:terminated_at             | -                                      
                        |
| accessIPv4                           |                                        
                        |
| accessIPv6                           |                                        
                        |
| config_drive                         | True                                   
                        |
| created                              | 2016-01-18T15:34:31Z                   
                        |
| flavor                               | m1.tiny (1)                            
                        |
| hostId                               | 
8b5dd2a2c67716f40b65b8796dcb25c62f7522764e2dc7f9ff88ea7b       |
| id                                   | c2f19b32-cf99-4f6f-b9aa-fcf7246ff189   
                        |
| image                                | cirros-0.3.4-x86_64-uec 
(03ada996-9688-471f-ab8c-a9cc18175e2e) |
| key_name                             | -                                      
                        |
| locked                               | False                                  
                        |
| metadata                             | {}                                     
                        |
| name                                 | inst                                   
                        |
| net1 network                         | 1.0.0.3                                
                        |
| os-extended-volumes:volumes_attached | []                                     
                        |
| progress                             | 0                                      
                        |
| security_groups                      | default                                
                        |
| status                               | ACTIVE                                 
                        |
| tenant_id                            | e88840d981e2457595baed077ed2aac8       
                        |
| updated                              | 2016-01-18T15:43:48Z                   
                        |
| user_id                              | 9d619f44512a4289a670332300f1089c       
                        |
+--------------------------------------+----------------------------------------------------------------+
stack@45-59:~/devstack$ 

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1535224

Title:
  meta data of nova instance with case sensitive has problem when
  deleting

Status in OpenStack Compute (nova):
  New

Bug description:
  [Summary]
  meta data of nova instance with case sensitive has problem when deleting

  [Topo]
  devstack all-in-one node

  [Description and expect result]
  can delete case sensitive meta one by one

  [Reproduceable or not]
  reproduceable 

  [Recreate Steps]
  1) set 4 metas for an instance, if ignore case, they have same string:
  stack@45-59:~/devstack$ nova meta inst set abc=1 Abc=2 ABc=3 ABC=4
  stack@45-59:~/devstack$ nova show inst
  
+--------------------------------------+----------------------------------------------------------------+
  | Property                             | Value                                
                          |
  
+--------------------------------------+----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                               
                          |
  | OS-EXT-AZ:availability_zone          | nova                                 
                          |
  | OS-EXT-SRV-ATTR:host                 | 45-59                                
                          |
  | OS-EXT-SRV-ATTR:hostname             | inst                                 
                          |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | 45-59                                
                          |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000001                    
                          |
  | OS-EXT-SRV-ATTR:kernel_id            | 13716aa6-6110-4b26-9eb4-71f053c14b3d 
                          |
  | OS-EXT-SRV-ATTR:launch_index         | 0                                    
                          |
  | OS-EXT-SRV-ATTR:ramdisk_id           | 4c1870c0-520c-4423-8a6b-72e1839eeb76 
                          |
  | OS-EXT-SRV-ATTR:reservation_id       | r-wc29hykh                           
                          |
  | OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                             
                          |
  | OS-EXT-SRV-ATTR:user_data            | -                                    
                          |
  | OS-EXT-STS:power_state               | 1                                    
                          |
  | OS-EXT-STS:task_state                | -                                    
                          |
  | OS-EXT-STS:vm_state                  | active                               
                          |
  | OS-SRV-USG:launched_at               | 2016-01-18T15:34:42.000000           
                          |
  | OS-SRV-USG:terminated_at             | -                                    
                          |
  | accessIPv4                           |                                      
                          |
  | accessIPv6                           |                                      
                          |
  | config_drive                         | True                                 
                          |
  | created                              | 2016-01-18T15:34:31Z                 
                          |
  | flavor                               | m1.tiny (1)                          
                          |
  | hostId                               | 
8b5dd2a2c67716f40b65b8796dcb25c62f7522764e2dc7f9ff88ea7b       |
  | id                                   | c2f19b32-cf99-4f6f-b9aa-fcf7246ff189 
                          |
  | image                                | cirros-0.3.4-x86_64-uec 
(03ada996-9688-471f-ab8c-a9cc18175e2e) |
  | key_name                             | -                                    
                          |
  | locked                               | False                                
                          |
  | metadata                             | {"abc": "1", "Abc": "2", "ABC": "3", 
"ABc": "4"}               |
  | name                                 | inst                                 
                          |
  | net1 network                         | 1.0.0.3                              
                          |
  | os-extended-volumes:volumes_attached | []                                   
                          |
  | progress                             | 0                                    
                          |
  | security_groups                      | default                              
                          |
  | status                               | ACTIVE                               
                          |
  | tenant_id                            | e88840d981e2457595baed077ed2aac8     
                          |
  | updated                              | 2016-01-18T15:43:48Z                 
                          |
  | user_id                              | 9d619f44512a4289a670332300f1089c     
                          |
  
+--------------------------------------+----------------------------------------------------------------+

  2) if delete one of them, all are deleted:        >>>>>>>>ISSUE
  stack@45-59:~/devstack$ nova meta inst delete abc
  stack@45-59:~/devstack$ nova show inst
  
+--------------------------------------+----------------------------------------------------------------+
  | Property                             | Value                                
                          |
  
+--------------------------------------+----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                               
                          |
  | OS-EXT-AZ:availability_zone          | nova                                 
                          |
  | OS-EXT-SRV-ATTR:host                 | 45-59                                
                          |
  | OS-EXT-SRV-ATTR:hostname             | inst                                 
                          |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | 45-59                                
                          |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000001                    
                          |
  | OS-EXT-SRV-ATTR:kernel_id            | 13716aa6-6110-4b26-9eb4-71f053c14b3d 
                          |
  | OS-EXT-SRV-ATTR:launch_index         | 0                                    
                          |
  | OS-EXT-SRV-ATTR:ramdisk_id           | 4c1870c0-520c-4423-8a6b-72e1839eeb76 
                          |
  | OS-EXT-SRV-ATTR:reservation_id       | r-wc29hykh                           
                          |
  | OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                             
                          |
  | OS-EXT-SRV-ATTR:user_data            | -                                    
                          |
  | OS-EXT-STS:power_state               | 1                                    
                          |
  | OS-EXT-STS:task_state                | -                                    
                          |
  | OS-EXT-STS:vm_state                  | active                               
                          |
  | OS-SRV-USG:launched_at               | 2016-01-18T15:34:42.000000           
                          |
  | OS-SRV-USG:terminated_at             | -                                    
                          |
  | accessIPv4                           |                                      
                          |
  | accessIPv6                           |                                      
                          |
  | config_drive                         | True                                 
                          |
  | created                              | 2016-01-18T15:34:31Z                 
                          |
  | flavor                               | m1.tiny (1)                          
                          |
  | hostId                               | 
8b5dd2a2c67716f40b65b8796dcb25c62f7522764e2dc7f9ff88ea7b       |
  | id                                   | c2f19b32-cf99-4f6f-b9aa-fcf7246ff189 
                          |
  | image                                | cirros-0.3.4-x86_64-uec 
(03ada996-9688-471f-ab8c-a9cc18175e2e) |
  | key_name                             | -                                    
                          |
  | locked                               | False                                
                          |
  | metadata                             | {}                                   
                          |
  | name                                 | inst                                 
                          |
  | net1 network                         | 1.0.0.3                              
                          |
  | os-extended-volumes:volumes_attached | []                                   
                          |
  | progress                             | 0                                    
                          |
  | security_groups                      | default                              
                          |
  | status                               | ACTIVE                               
                          |
  | tenant_id                            | e88840d981e2457595baed077ed2aac8     
                          |
  | updated                              | 2016-01-18T15:43:48Z                 
                          |
  | user_id                              | 9d619f44512a4289a670332300f1089c     
                          |
  
+--------------------------------------+----------------------------------------------------------------+
  stack@45-59:~/devstack$ 

  [Configration]
  reproduceable bug, no need

  [logs]
  reproduceable bug, no need

  [Root cause anlyze or debug inf]
  reproduceable bug

  [Attachment]
  None

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1535224/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to