Booting Instance and accessing console-log throws nova-api error

Bug #1589320 reported by Sai Sindhur Malleni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

On booting a nova instance and immediately trying to access the console-log using nova console-log, an error message reporting an unexpected API Error is seen in a Mitaka-Stable environment. The Nova API Log is as follows : http://paste.openstack.org/show/508203/

Changed in fuel-plugin-contrail:
status: New → Invalid
affects: fuel-plugin-contrail → nova
Changed in nova:
status: Invalid → New
tags: added: libvirt
Revision history for this message
Sean Dague (sdague) wrote :

You are trying to access a console on a server before it is ACTIVE?

tags: added: api
Changed in nova:
status: New → Incomplete
Revision history for this message
Sai Sindhur Malleni (smalleni) wrote :

Not really, trying to access console when the instance is not active(spawning) should return an error like this
[stack@manager ~]$ nova console-log 9d928976-47e4-4c84-8fc8-aa8bddb2b5dd
ERROR (NotFound): Instance instance-000004b1 could not be found. (HTTP 404) (Request-ID: req-c5a452e1-364a-461d-a87f-2df8ef94850d)
But what i was seeing was different as can be seen in the log.

Revision history for this message
stgleb (gstepanov) wrote :

It actually tries to access log file created by libvirt, but it is not already created.
I will try to do something with that.

Changed in nova:
assignee: nobody → stgleb (gstepanov)
status: Incomplete → In Progress
Revision history for this message
Jay Pipes (jaypipes) wrote :

Gleb is no longer working on OpenStack, so set to New and unassigned him.

Changed in nova:
assignee: stgleb (gstepanov) → nobody
status: In Progress → New
Tao Li (eric-litao)
Changed in nova:
assignee: nobody → Tao Li (eric-litao)
Revision history for this message
Tao Li (eric-litao) wrote :

I tried several times and could‘t reproduce your error。 If the console does not existed,the ‘nova console-log xxx’ returns empty。and If the instance is spawning, the cli returns the content of console file despite of the file content is partial.
I think the error occured arising from one of these reasons.
1. The system configration. If it occured in centos, you should ensure selinux disabled etc.
2. Some unkonwn operation removed the file before chowning it.

This is the log that i tested it in attachment.

Revision history for this message
Sean Dague (sdague) wrote :

There is a failure to reproduce here, marking incomplete

Changed in nova:
status: New → Incomplete
assignee: Tao Li (eric-litao) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

Automatically discovered version mitaka in description. If this is incorrect, please update the description to include 'nova version: ...'

tags: added: openstack-version.mitaka
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.