openstack npm pkgcloud createImage() function not gives response

asked 2018-05-25 08:11:47 -0500

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){
if(err){

console.log(err); } console.log(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',
     headers:
     { 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 lnoi3proxy55.com', 
     'x-cache-lookup': 'MISS from lnoi3proxy55.com:8080', 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?

edit retag flag offensive close merge delete