image property inheritance to instance

asked 2019-11-13 03:25:06 -0500

Pawel S. gravatar image

I can't get instance to inherit image properties. Tried to set custom, tried do add metadata catalog namespace with both glance:image and nova:compute objects. No luck. How I should add image property to get inheritance on instance ?

openstack image show cirros-0.4
+------------------+----------------------------------
| Field            | Value                                                                                                                                                               
+------------------+----------------------------------
| checksum         | 443b7623e27ecf03dc9e01ee93f67afe                                                                                                                                   
| container_format | bare                                                                                                                                                                 
| created_at       | 2019-10-21T20:43:59Z                                                                                                                                                
| disk_format      | qcow2                                                                                                                                                               
| file             | /v2/images/fd2e0e62-e0ec-4177-bb38-7e2133422b7e/file                                                                                                                       
| id               | fd2e0e62-e0ec-4177-bb38-7e2133422b7e                                                                                                                                
| min_disk         | 0                                                                                                                                                                   
| min_ram          | 0                                                                                                                                                                   
| name             | cirros-0.4                                                                                                                                                          
| owner            | b41e71a7c64341079f8d8e915aa1e061                                                                                                                                    
| properties       | locations='[{u'url': u'rbd://cc064649-7bcd-4b83-afd5-02caec43f2ab/images/fd2e0e62-e0ec-4177-bb38-7e2133422b7e/snap', u'metadata': {}}]', sw_runtime_php_version='5' |
| protected        | False                                                                                                                                                               
| schema           | /v2/schemas/image                                                                                                                                                   
| size             | 12716032                                                                                                                                                            
| status           | active                                                                                                                                                              
| tags             |                                                                                                                                                                     
| updated_at       | 2019-11-13T08:43:14Z                                                                                                                                                
| virtual_size     | None                                                                                                                                                                
| visibility       | public

And metadata lacks meta: parameters.

curl 169.254.169.254/openstack/latest/meta_data.json
{"random_seed": "/l98+/++=", "uuid": "3303e5a9-083e-4c21-8890-afa435d3fca8", "availability_zone": "r15", "keys": [{"data": "ssh-rsa/OcZbT+//9ljiGutztZx/y1343SmA8N+DXL5Ju9XIkjT++1RXobXeigTO0SrCvWhpgIGzIJ++/+/=@", "type": "ssh", "name": "sshkey"}], "hostname": "testmeta8", "launch_index": 0, "devices": [], "public_keys": {"sshkey": "ssh-rsa/OcZbT+//9ljiGutztZx/y1343SmA8N+++++/+/= "}, "project_id": "b30bb495d7454ac39a1004a60e0e9937", "name": "testmeta8"}
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-11-13 18:59:43 -0500

While there are image properties that have an effect on the instance, in general image properties are not copied to instance metadata.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2019-11-13 03:25:06 -0500

Seen: 56 times

Last updated: Nov 13 '19