Ask Your Question
0

can not get Glance RESTful to work.

asked 2011-04-25 21:30:12 -0500

steve-chu gravatar image

I installed Glance to Fedora and I am be able to upload images by CLI add command. The CLI interface works fine but the RESTful interface does not. I am expecting to view image meta data by typing http://my-glance-api-server-ip/images/ in a browser window. I am getting connection timeout error. It seems neither port 9292 nor 9191 are opened up.

I can ping the IP but I cannot connect to port by command "telnet my-glance-api-server-ip 9292".

Running netstat -a on the host does not show these two ports (9191 or 9292) either.

Please help!

edit retag flag offensive close merge delete

19 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-17 08:34:51 -0500

venkystays gravatar image

Did you try running glance command line with the debug option (-d) .... I had a similar issue. The command line was working, whereas a REST API call from an external server to the glance server was not working.

In the debug mode, i was able to see the rest API call being made through curl. (within the glance server)

It eventually turned out to be a missing entry in firewall for port 9292 and 9191

After i added entries to IP tables (on the glance server) to allow inbound communication on these two ports, the REST API calls were successful.

Also check your server binding in the glance config file. It should be bound to 0.0.0.0 (default)

edit flag offensive delete link more
0

answered 2011-04-28 23:40:33 -0500

steve-chu gravatar image

Hi Jay, the port 9292 on my host was blocked. It was the problem. Now the problem has been resolved.

edit flag offensive delete link more
0

answered 2011-04-27 17:41:58 -0500

jaypipes gravatar image

Hmm, well I'm a bit stumped. Everything seems to be working properly, Steven. The only thing I can think of is that when you point your browser to Glance, perhaps you aren't specifying the port in the URL?

edit flag offensive delete link more
0

answered 2011-04-27 17:27:50 -0500

steve-chu gravatar image

curl -g -f http://10.3.40.22:9292/images

{"images": [{"name": "My Image", "container_format": "ovf", "disk_format": "raw", "checksum": "780939ee6b6bc1132a7a203d72a0a210", "id": 1, "size": 120313}]}

edit flag offensive delete link more
0

answered 2011-04-27 17:02:13 -0500

steve-chu gravatar image

Hi Jay, Thank you for your response.

Here is the command and its output.

curl -g -f http://10.3.40.22:9292/images {"images": [{"name": "My Image", "container_format": "ovf", "disk_format": "raw", "checksum": "780939ee6b6bc1132a7a203d72a0a210", "id": 1, "size": 120313}]}

Steve Chu

Cloud Development Team SunGard Availability Services 2481 Deerwood Drive San Ramon, CA 94583-1540

Office : 925-831-7734 Cell : 408-674-4018

Jay Pipes question154235@answers.launchpad.net Sent by: bounces@canonical.com 04/27/2011 08:10 AM Please respond to question154235@answers.launchpad.net

To steve.chu@sungard.com cc

Subject Re: [Question #154235]: can not get Glance RESTful to work.

Your question #154235 on Glance changed: https://answers.launchpad.net/glance/+question/154235 (https://answers.launchpad.net/glance/...)

Status: Open => Needs information

Jay Pipes requested more information: Steve,

OK, I'm trying to narrow down what the problem might be.

When you have both servers running, can you do the following?

curl -g -f http://<host>:<port>/images

Replace <host> and <port> with the relevant information for the API server. Let me know if a) that cURL request completes and b) what the output of the above is.

Thanks! jay


To answer this request for more information, you can either reply to this email or enter your reply at the following page: https://answers.launchpad.net/glance/+question/154235 (https://answers.launchpad.net/glance/...)

You received this question notification because you are a direct subscriber of the question.

edit flag offensive delete link more
0

answered 2011-04-27 15:15:01 -0500

jaypipes gravatar image

Also, Steve, I notice you are in San Ramon. Any chance you can come down to Santa Clara and meet us at the OpenStack conference?

-jay

edit flag offensive delete link more
0

answered 2011-04-27 15:10:20 -0500

jaypipes gravatar image

Steve,

OK, I'm trying to narrow down what the problem might be.

When you have both servers running, can you do the following?

curl -g -f http://<host>:<port>/images

Replace <host> and <port> with the relevant information for the API server. Let me know if a) that cURL request completes and b) what the output of the above is.

Thanks! jay

edit flag offensive delete link more
0

answered 2011-04-27 14:49:23 -0500

steve-chu gravatar image

Hi Jay,

Thank you for your response. I can synch up image meta data with image by removing the database file and restart api and registry servers. That is not the problem.

The problem is that the RESTful service interface. The line " http://10.2.40.22/images/%22 (http://10.2.40.22/images/") from browser window does not return any thing. I specified all details in my earlier emails. This is the basic GET request of RESTful interface. It does not work. That is what I meant this RESTful interface "is not consumable".

The RESTful interface is the main reason we are looking for from OpanStack Glance. We have to make it work in order to move forward.

Best regard!

Steve Chu

Cloud Development Team SunGard Availability Services 2481 Deerwood Drive San Ramon, CA 94583-1540

Office : 925-831-7734 Cell : 408-674-4018

Jay Pipes question154235@answers.launchpad.net Sent by: bounces@canonical.com 04/27/2011 07:41 AM Please respond to question154235@answers.launchpad.net

To steve.chu@sungard.com cc

Subject Re: [Question #154235]: can not get Glance RESTful to work.

Your question #154235 on Glance changed: https://answers.launchpad.net/glance/+question/154235 (https://answers.launchpad.net/glance/...)

Status: Open => Needs information

Jay Pipes requested more information: Hi Steve,

OK, so two things we can try... regarding the out-of-sync metadata, would you be able to upgrade to the latest bzr trunk and retry the above commands? There was a bug that was recently fixed that looks like you may be running into (glance show <id> wasn't showing the image's status properly, and inactive images were improperly displayed in glance index; see https://bugs.launchpad.net/glance/+bug/768969 (https://bugs.launchpad.net/glance/+bu...) ).

Secondly, I'm a bit confused by your statement that the RESTful interface is "not consumable". Could you elaborate on what you mean by that?

Thanks! jay


To answer this request for more information, you can either reply to this email or enter your reply at the following page: https://answers.launchpad.net/glance/+question/154235 (https://answers.launchpad.net/glance/...)

You received this question notification because you are a direct subscriber of the question.

edit flag offensive delete link more
0

answered 2011-04-27 14:41:32 -0500

jaypipes gravatar image

Hi Steve,

OK, so two things we can try... regarding the out-of-sync metadata, would you be able to upgrade to the latest bzr trunk and retry the above commands? There was a bug that was recently fixed that looks like you may be running into (glance show <id> wasn't showing the image's status properly, and inactive images were improperly displayed in glance index; see https://bugs.launchpad.net/glance/+bu... ).

Secondly, I'm a bit confused by your statement that the RESTful interface is "not consumable". Could you elaborate on what you mean by that?

Thanks! jay

edit flag offensive delete link more
0

answered 2011-04-27 02:33:03 -0500

steve-chu gravatar image

The image mata data is out of sych with image files. This is not the real problem. The real problem is that the RESTful interface is not consumable. Please help!

Steve Chu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-25 21:30:12 -0500

Seen: 495 times

Last updated: Jun 17 '14