Unable to create instance using wordpress template:openstack heat
Hello team ,
I am unable to create a stack using wordpress template, getting below error
2014-02-20 10:42:45.519 905 TRACE heat.engine.
2014-02-20 10:42:45.519 905 TRACE heat.engine.
2014-02-20 10:42:45.519 905 TRACE heat.engine.
2014-02-20 10:42:45.519 905 TRACE heat.engine.
2014-02-20 10:42:45.519 905 TRACE heat.engine.
2014-02-20 10:42:45.544 905 WARNING heat.engine.service [-] Stack create failed, status FAILED
Do I need to add my network ID and subnet ID details in the template...?
I am using below template
{
"AWSTemplateF
"Description" : "AWS CloudFormation Sample Template WordPress_
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String"
},
"InstanceType" : {
"Description" : "WebServer EC2 instance type",
"Type" : "String",
"Default" : "m1.small",
"
"
},
"DBName": {
"Default": "wordpress",
"Description" : "The WordPress database name",
"Type": "String",
"MinLength": "1",
"MaxLength": "64",
"
"
},
"DBUsername": {
"Default": "admin",
"NoEcho": "true",
"Description" : "The WordPress database admin account username",
"Type": "String",
"MinLength": "1",
"MaxLength": "16",
"
"
},
"DBPassword": {
"Default": "admin",
"NoEcho": "true",
"Description" : "The WordPress database admin account password",
"Type": "String",
"MinLength": "1",
"MaxLength": "41",
"
"
},
"DBRootPass
"Default": "admin",
"NoEcho": "true",
"Description" : "Root password for MySQL",
"Type": "String",
"MinLength": "1",
"MaxLength": "41",
"
"
},
"LinuxDistr
"Default": "F17",
"Description" : "Distribution of choice",
"Type": "String",
"
}
},
"Mappings" : {
"AWSInstanc
"m1.tiny" : { "Arch" : "32" },
"m1.small" : { "Arch" : "64" },
"m1.medium" : { "Arch" : "64" },
"m1.large" : { "Arch" : "64" },
"m1.xlarge" : { "Arch" : "64" }
},
"DistroArch
"cirros" : { "32" : "cirros-
"F17" : { "32" : "F17-i386-
"U10" : { "32" : "U10-i386-
"RHEL-6.1" : { "32" : "rhel61-
"RHEL-6.2" : { "32" : "rhel62-
"RHEL-6.3" : { "32" : "rhel63-
}
},
"Resources" : {
"WikiDatabase": {
"Type": "AWS::EC2:
"Metadata" : {
"config" : {
"yum" : {
}
},
}
}
}
}
},
"Properties": {
"ImageId" : { "Fn::FindInMap" : [ "DistroArch2AMI", { "Ref" : "LinuxDistribution" },
"KeyName" : { "Ref" : "KeyName" },
"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"# Setup MySQL root password and create a user\n",
"cat << EOF | mysql -u root --password='", { "Ref" : "DBRootPassword" }, "'\n",
"CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
"GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO \"", { "Ref" : "DBUsername" }, "\"@\"localhost
"FLUSH PRIVILEGES;\n",
"EXIT\n",
"EOF\n",
"sed -i \"/Deny from All/d\" /etc/httpd/
"sed -i \"s/Require local/Require all granted/\" /etc/httpd/
"sed --in-place --e s/database_
]]}}
}
}
},
"Outputs" : {
"WebsiteURL" : {
"Value" : { "Fn::Join" : ["", ["http://", { "Fn::GetAtt" : [ "WikiDatabase", "PublicIp" ]}, "/wordpress"]] },
"Description" : "URL for Wordpress wiki"
}
}
}
please let me know , as there is no network info mentioned in this template
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Zane Bitter
- Solved:
- Last query:
- Last reply: