2016-07-27 06:30:13 |
Eli Qiao |
description |
We limit the bay's name to 255, but when we create a heat stack, we have the stack_name as:
stack_name = '%s-%s' % (bay.name, short_id.generate_id())
but in heat, we see that:
147 message = _('Invalid stack name %s must contain '
148 'only alphanumeric or \"_-.\" characters, '
149 'must start with alpha and must be 255 '
150 'characters or less.') % name
the length of bay's name should be 255 - len(short_id.generate_id()) |
We limit the bay's name to 255, but when we create a heat stack, we have the stack_name as:
stack_name = '%s-%s' % (bay.name, short_id.generate_id())
but in heat, we see that:
147 message = _('Invalid stack name %s must contain '
148 'only alphanumeric or \"_-.\" characters, '
149 'must start with alpha and must be 255 '
150 'characters or less.') % name
the length of bay's name should be 255 - len(short_id.generate_id()) -1 = 255-12-1 = 242 |
|