Thank you for visiting the Rackspace Community
The The Community is live! Post new content or topics so our teams can assist.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

openstack npm pkgcloud createImage() function not gives response

var openstack_client_compute = null;
openstack_client_compute = pkgcloud.compute.createClient({

provider: PROVIDER, // required
username: USERNAME, // required
password: PASSWORD, // required
region: REGION,
authUrl: AUTH_URL // required
options = {
name: 'image1', // required
server: '0e4d56a2-173a-425d-befd-cec366605522' // required
openstack_client_compute.createImage(options, function(err, image){

When i try to execute code Image is getting created(I checked manually from dashboard) but createimage function gives error in response shown below:

name: 'Error',
provider: 'openstack',
failCode: 'Service Unavailable',
statusCode: 503,
href: 'http://control:9292/images/ ',
method: 'GET',

{ server: 'squid', 'mime-version': '1.0', date: 'Tue, 15 May 2018 12:52:39
GMT', 'content-type': 'text/html;charset=utf-8', 'content-length': '2920',
'x-squid-error': 'ERR_DNS_FAIL 0', 'x-cache': 'MISS from',
'x-cache-lookup': 'MISS from', connection: 'close' }

Now above code on execution makes call for getting the details of image to openstack glance but it is giving error for glance : unable to determine IP address from host name control . I tried to change the openstack public,internal and admin endpoints for glance also but it didn't work.

I got one suggestion via internet to change API_Servers value in Configuration file of nova and cinder.But i am afraid this might effect my complete environment.

Any one with possible solution please respond?