I'm working with Packer and trying to see how I can create OpenStack Machine Images by writing a JSON file. I have installed packer on one of the OpenStack ubuntu instances and created a JSON file as below for creating a custom image.
{
"builders": [{
"type": "openstack",
"identity_endpoint": "http://192.168.8.25:5000/v3/",
"tenant_name": "admin",
"domain_name": "Default",
"username": "admin",
"password": "adminpass",
"region": "RegionOne",
"ssh_username": "root",
"image_name": "Test image",
"source_image": "f4dcbbde-b702-4f3c-b5f1-0230ebdf0ed4",
"flavor": "m1.medium",
"insecure": "true"
}]
}
While running a "packer build" commond I'm getting the below error
openstack: Error loading extensions: Get http://controller:8774/v2.1/079923bd0ea04700b1b6d7e047139b45/extensions: dial tcp: lookup controller on 8.8.8.8:53: no such host. Builds finished but no artifacts were created.
So can anyone, please look into the error and help me out please..