Ask Your Question
0

nova image-list gives error during installation

asked 2015-03-02 03:38:50 -0500

anil987 gravatar image

Hi

I am trying to install openstack in two nodes. I am following the manual http://docs.openstack.org/icehouse/in... . When I run the command "nova image-list" to verify nova configuration from page http://docs.openstack.org/icehouse/in... I got the error "ERROR (AttributeError): 'NoneType' object has no attribute 'replace'". I checked "glance image-list"and it was working. To resolve this error I uninstalled python-novaclient and then reinstalled it and then upgrade it using

  • pip uninstall python-novaclient
  • pip install python-novaclient
  • pip install --upgrade python-novaclient

After that I restarted all nova services and then run "nova image-list", then I got the error " ERROR (ConnectionRefused): Unable to establish connection to http://controller:8774/v2/3653a437d79..."

Now I have no idea what to do next to resolve to issue. Can anybody suggest me where I have gone wrong and how to resolve this issue?

Thanks

edit retag flag offensive close merge delete

Comments

Hey Anil, post your nova log files here

Yashpal Beppurana gravatar imageYashpal Beppurana ( 2015-03-02 08:01:31 -0500 )edit

HI Yashpal, I have nova-api, nova-cert, nova-conductor, nova-consoleauth, nova-manage and nova-scheduler log files in the /var/log/nova folder. I have checked all these log files after running "nova image-list", but no log is generated for this command

anil987 gravatar imageanil987 ( 2015-03-02 12:49:24 -0500 )edit

I have ran into another problem. I restarted the system and then I ran command "source admin-openrc.sh" and then I ran "glance image-list", I got error "Invalid OpenStack Identity credentials." I have pasted log in http://paste.openstack.org/show/185962/ . "nova image-list" still gives previous error

anil987 gravatar imageanil987 ( 2015-03-03 00:34:47 -0500 )edit

Hey Anil, it would be helpful if you can post glance conf, nova conf and log files of glance and nova. From your below answer, I think few of your services are not running.

Yashpal Beppurana gravatar imageYashpal Beppurana ( 2015-03-03 06:09:24 -0500 )edit

I have pasted nova.conf http://paste.openstack.org/show/190906/ glance-api.conf http://paste.openstack.org/show/190908/ and glance-registry.conf http://paste.openstack.org/show/190907/ . Logs are only generated in the glance api.log which is exactly same as the one pasted in my previous comment

anil987 gravatar imageanil987 ( 2015-03-09 01:53:00 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-02 22:59:29 -0500

Bipin gravatar image

Please make sure all of your nova related components are up and running.

nova service-list

netstat -ntlp | grep 8774 (If its centos 6.X)

ss -ntlp | grep 8774 (If its centos 7)
edit flag offensive delete link more

Comments

"nova service-list" is giving error " Unable to establish connection to http://controller:8774/v2/3653a437d79..." and "netstat -ntlp | grep 8774" is returning no optput. I am installing openstack in Ubuntu 14.04.

Thanks

anil987 gravatar imageanil987 ( 2015-03-03 00:46:29 -0500 )edit

which means, nova services are not running in your controller node. make sure the following

service nova-scheduler status service nova-api status.

Post your /etc/nova/nova.conf from your controller node

Bipin gravatar imageBipin ( 2015-03-03 04:38:02 -0500 )edit

@Bipin nova.conf is pasted here http://paste.openstack.org/show/190906/

Thanks

anil987 gravatar imageanil987 ( 2015-03-09 01:54:23 -0500 )edit
0

answered 2016-05-29 00:53:36 -0500

Edulabs.openstack gravatar image

Hi I am using ubuntu for two node installation , My keystone Service and image service are running fine . unfortunately I am getting on issue in nova service when I ran nova image-list , it gives me given below issue . I am trying to solve this issue from last days but no luck . controller@controller-Standard-PC-i440FX-PIIX-1996:~$ nova image-listERROR (ConnectionRefused): Unable to establish connection to http://controller:8774/v2/

i checked all services and they are running fine , also checked conf file it seems that they are also fine . Please let me know if someone can help and give some pointer to solve

controller@controller-Standard-PC-i440FX-PIIX-1996:~$ nova image-listERROR (ConnectionRefused): Unable to establish connection to http://controller:8774/v2/

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: 2015-03-02 03:38:50 -0500

Seen: 3,977 times

Last updated: May 29 '16