On Jun 17, 2015, at 23:14, Tim Bell <[email protected]> wrote:
>> -----Original Message----- >> From: Jan van Eldik [mailto:[email protected]] >> Sent: 17 June 2015 20:54 >> To: [email protected] >> Subject: Re: [Openstack] How should an instance learn what tenant it is in? >> >> Hi Andrew, >> >>> I'm considering rewriting this hack to write the tenant name into >>> the metadata directly, but that will still be a hack. >> >> That's what many of our customers are doing, and I agree that it's hack. >> >> We recently changed the names of some projects, and updating the >> metadata is no fun. >> >>> If not, would a >>> nova patch that adds tenant id and name to the metadata be welcome? >> >> We would welcome it. It should respect project renames, of course. :) >> > > I'd suggest just storing the tenant id and then doing the lookup in the CLI > tools to be human friendly. The image handling seems to work this way so > copying the same structure as the image field would be consistent. > > | image | CentOS7 > (71093ab4-5d10-4109-86b6-ba3a82db1fb8) | > >> >> cheers, Jan >> >> _______________________________________________ >> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> Post to : [email protected] >> Unsubscribe : http://lists.openstack.org/cgi- >> bin/mailman/listinfo/openstack > > _______________________________________________ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : [email protected] > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack This could also be supplied by config drive/metadata service trivially. I wouldn't overthink it (nova already knows). --Morgan _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
