add key_name Property
if don't add key_name Property , the VM couldn't be logined. when runing docker container in coreos is failed , it couldn't be debug. Change-Id: I4e81d151c5dfbccb6b4ed5ad0b7bfbdf6380f4f3
This commit is contained in:
@@ -462,6 +462,9 @@
|
||||
# Image id (string value)
|
||||
#image = coreos
|
||||
|
||||
#keypairs name (string value)
|
||||
#key_name = mykey
|
||||
|
||||
# Deployer logs location (string value)
|
||||
#deployer_log_dir = /var/log/solum/deployer
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@ parameters:
|
||||
type: string
|
||||
image:
|
||||
type: string
|
||||
key_name:
|
||||
type: string
|
||||
description: Name of keypair to assign to servers
|
||||
default: 'mykey'
|
||||
location:
|
||||
type: string
|
||||
du:
|
||||
@@ -27,6 +31,7 @@ resources:
|
||||
properties:
|
||||
config_drive: "true"
|
||||
flavor: {get_param: flavor}
|
||||
key_name: { get_param: key_name }
|
||||
image: {get_param: image}
|
||||
name: {get_param: name}
|
||||
user_data:
|
||||
@@ -50,4 +55,4 @@ resources:
|
||||
timeout: 600
|
||||
|
||||
wait_handle:
|
||||
type: OS::Heat::SwiftSignalHandle
|
||||
type: OS::Heat::SwiftSignalHandle
|
||||
|
||||
@@ -74,6 +74,9 @@ SERVICE_OPTS = [
|
||||
cfg.StrOpt('image',
|
||||
default="coreos",
|
||||
help='Image id'),
|
||||
cfg.StrOpt('key_name',
|
||||
default="mykey",
|
||||
help='keypair name'),
|
||||
cfg.StrOpt('deployer_log_dir',
|
||||
default="/var/log/solum/deployer",
|
||||
help='Deployer logs location'),
|
||||
@@ -640,6 +643,7 @@ class Handler(object):
|
||||
elif image_format == 'vm':
|
||||
parameters = {'name': str(assem.uuid),
|
||||
'flavor': cfg.CONF.deployer.flavor,
|
||||
'key_name': cfg.CONF.deployer.key_name,
|
||||
'image': cfg.CONF.deployer.image}
|
||||
ports_str = ''
|
||||
for port in ports:
|
||||
|
||||
@@ -130,6 +130,7 @@ class HandlerTest(base.BaseTestCase):
|
||||
parameters = {'name': fake_assembly.uuid,
|
||||
'flavor': "flavor",
|
||||
'image': "coreos",
|
||||
'key_name': "mykey",
|
||||
'location': img,
|
||||
'du': 'tenant-name-ts-commit',
|
||||
'publish_ports': '-p 80:80'}
|
||||
|
||||
Reference in New Issue
Block a user