Logs unavailable during provisioning. {"message": "Log file not found", "errors": []}

Bug #1511705 reported by Anastasia Palkina
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Triaged
Low
Fuel UI Team
8.0.x
Won't Fix
Low
Fuel UI Team
Mitaka
Won't Fix
Low
Fuel UI Team
Newton
Triaged
Low
Fuel UI Team

Bug Description

1. Install ISO
2. Create any environment and add some nodes
3. Start deployment
4. Click "View logs" button on any node
5. Logs is unavailable during provisioning. Error appears in Firebug console: {"message": "Log file not found", "errors": []} (see screen)

"release_versions": {"2015.1.0-8.0": {"VERSION": {"fuel-createmirror_sha": "5b61266e19eb7cdc745fea7a7d97c90f2515c921", "shotgun_sha": "bbbfccff9eb90895b13fae3fac398e65efe646f4", "api": "1.0", "fuelmain_sha": "0e375fb9f996ee6c3bf25b99321d9635c62844ae", "astute_sha": "687458e949dedfa6877e3a2e683f8ee0c1cbd43c", "fuel-ostf_sha": "1ab201cb8c3bba04522bf56ce72e863a03ff09b3", "openstack_version": "2015.1.0-8.0", "build_id": "94", "fuelmenu_sha": "153c91e884a4601d30f8ebe3349170f96e3456e2", "build_number": "94", "fuel-library_sha": "e1ad5b695e4bebc823b1786610efc0bafc078495", "fuel-nailgun-agent_sha": "00b4b11553c250f22c0079fb74c8b782dcb7b740", "fuel-nailgun_sha": "ca678db51afd14a1485d0a8a9d2194abdd226d3b", "fuel-agent_sha": "d2103bee6e216396eb8e308ec5448328c9ee4261", "production": "docker", "network-checker_sha": "518f7ef2706e564950469435f7cf27df175e1b27", "feature_groups": ["mirantis"], "release": "8.0", "python-fuelclient_sha": "2a1b048cc439986e222ece43a290b5cc68e92a77"}}}, "fuel-createmirror_sha": "5b61266e19eb7cdc745fea7a7d97c90f2515c921", "shotgun_sha": "bbbfccff9eb90895b13fae3fac398e65efe646f4", "api": "1.0", "fuelmain_sha": "0e375fb9f996ee6c3bf25b99321d9635c62844ae", "astute_sha": "687458e949dedfa6877e3a2e683f8ee0c1cbd43c", "fuel-ostf_sha": "1ab201cb8c3bba04522bf56ce72e863a03ff09b3", "openstack_version": "2015.1.0-8.0", "build_id": "94", "fuelmenu_sha": "153c91e884a4601d30f8ebe3349170f96e3456e2", "build_number": "94", "auth_required": true, "fuel-library_sha": "e1ad5b695e4bebc823b1786610efc0bafc078495", "fuel-nailgun-agent_sha": "00b4b11553c250f22c0079fb74c8b782dcb7b740", "fuel-nailgun_sha": "ca678db51afd14a1485d0a8a9d2194abdd226d3b", "fuel-agent_sha": "d2103bee6e216396eb8e308ec5448328c9ee4261", "production": "docker", "network-checker_sha": "518f7ef2706e564950469435f7cf27df175e1b27", "feature_groups": ["mirantis"], "release": "8.0", "python-fuelclient_sha": "2a1b048cc439986e222ece43a290b5cc68e92a77"

Revision history for this message
Anastasia Palkina (apalkina) wrote :
description: updated
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

So it does not work for provisioned nodes (if you click on node tat is deploying - issue is not reproduced), and faiked with
http://<ip_here>/api/logs?node=2&source=install/anaconda&level=INFO&_=1446206543357 with source install/anaconda is not found

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

so we need to fix mapping here https://github.com/openstack/fuel-web/blob/master/nailgun/static/views/cluster_page_tabs/nodes_tab_screens/node.jsx#L49-L55 and change anaconda soource to fuel-agent, according to we do not have source anaconda since we are using ibp

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Fuel UI (fuel-ui-team)
assignee: Fuel UI (fuel-ui-team) → Fuel UI Team (fuel-ui)
tags: added: area-ui
summary: - Logs unavailable during deployment. {"message": "Log file not found",
+ Logs unavailable during provisioning. {"message": "Log file not found",
"errors": []}
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Julia Aranovich (jkirnosova)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/240528

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/240528
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=af02bd8f9aac1a1007f3ce17e5d7842853bd7758
Submitter: Jenkins
Branch: master

commit af02bd8f9aac1a1007f3ce17e5d7842853bd7758
Author: Julia Aranovich <email address hidden>
Date: Fri Oct 30 15:50:37 2015 +0300

    Update default log source for provisioned node

    Closes-Bug: #1511705

    Change-Id: I1496ebce872990df887e342b957194953deffbf8

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
tags: added: regression-8.0
Revision history for this message
Andrey Lavrentyev (alavrentyev) wrote :

It still can be reproduced with the steps above until 'Installing Ubuntu' progress bar hits ~90%, after that it works as it should.
So reopen it back.

Reproduced at:

ISO version: fuel-8.0-147-2015-11-11_07-42-00.iso

# fuel fuel-version
api: '1.0'
astute_sha: 959b06c5ef8143125efd1727d350c050a922eb12
auth_required: true
build_id: '147'
build_number: '147'
feature_groups:
- mirantis
fuel-agent_sha: 07560a9fc3ce5301ace04d2d3e5d68db6ee4f8d5
fuel-createmirror_sha: d3949f3094248b9686a4c20caea5ae13c9738a8d
fuel-library_sha: a94bddc9ae6198510402a42ad78699cb9d70fda8
fuel-nailgun-agent_sha: 00b4b11553c250f22c0079fb74c8b782dcb7b740
fuel-nailgun_sha: fe7fe7d082b4045d34e9b2d9aac6766dbd6cd576
fuel-ostf_sha: f771e23c5cbecbbb578ee4574ae2e51aa2e91819
fuel-upgrade_sha: 1e894e26d4e1423a9b0d66abd6a79505f4175ff6
fuelmain_sha: 3b64b95f6b513b0d46b57525a858eea7a9809da3
fuelmenu_sha: f40c3ec0e0e1bdc499f4cb50d46aecefb4dbb7c7
network-checker_sha: a57e1d69acb5e765eb22cab0251c589cd76f51da
openstack_version: 2015.1.0-8.0
production: docker
python-fuelclient_sha: a88bc94b562ee511eb277183d0a750a1e3312662
release: '8.0'
release_versions:
  2015.1.0-8.0:
    VERSION:
      api: '1.0'
      astute_sha: 959b06c5ef8143125efd1727d350c050a922eb12
      build_id: '147'
      build_number: '147'
      feature_groups:
      - mirantis
      fuel-agent_sha: 07560a9fc3ce5301ace04d2d3e5d68db6ee4f8d5
      fuel-createmirror_sha: d3949f3094248b9686a4c20caea5ae13c9738a8d
      fuel-library_sha: a94bddc9ae6198510402a42ad78699cb9d70fda8
      fuel-nailgun-agent_sha: 00b4b11553c250f22c0079fb74c8b782dcb7b740
      fuel-nailgun_sha: fe7fe7d082b4045d34e9b2d9aac6766dbd6cd576
      fuel-ostf_sha: f771e23c5cbecbbb578ee4574ae2e51aa2e91819
      fuel-upgrade_sha: 1e894e26d4e1423a9b0d66abd6a79505f4175ff6
      fuelmain_sha: 3b64b95f6b513b0d46b57525a858eea7a9809da3
      fuelmenu_sha: f40c3ec0e0e1bdc499f4cb50d46aecefb4dbb7c7
      network-checker_sha: a57e1d69acb5e765eb22cab0251c589cd76f51da
      openstack_version: 2015.1.0-8.0
      production: docker
      python-fuelclient_sha: a88bc94b562ee511eb277183d0a750a1e3312662
      release: '8.0'
      shotgun_sha: 25dd78a3118267e3616df0727ce746e7dead2d67
shotgun_sha: 25dd78a3118267e3616df0727ce746e7dead2d67

tags: removed: on-verification
Changed in fuel:
status: Fix Committed → Confirmed
Revision history for this message
Kate Pimenova (kpimenova) wrote :

Logs can not be fetched because there is no fuel-agent among log sources for provisioning node: GET /api/logs/sources/nodes/3 returns http://paste.openstack.org/show/4JPxo6mjj5ETp302lMtL/

So, we need to provide a correct log source name here: https://github.com/openstack/fuel-web/blob/master/nailgun/static/views/cluster_page_tabs/nodes_tab_screens/node.js#L53-L54

Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Or the absence of fuel-agent logs in the node sources should be investigated.

tags: added: area-python ui
removed: area-ui
Changed in fuel:
assignee: Julia Aranovich (jkirnosova) → Fuel Python Team (fuel-python)
Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

It does not qualify for being a Critical one according to the official specification [1]. Decreasing the priority.

1. https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Confirm_and_triage_bugs

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg)
importance: Critical → High
Dmitry Pyzhov (dpyzhov)
tags: added: team-bugfix
Revision history for this message
Mike Scherbakov (mihgen) wrote :

According to the bugs definition, it qualifies to Low (doesn't affect deployment, workaround for logs - you can ssh and use Linux tools to look into logs).

Changed in fuel:
importance: High → Low
Changed in fuel:
assignee: Roman Prykhodchenko (romcheg) → Fuel Python Team (fuel-python)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Valentin Kaplov (vkaplov)
Revision history for this message
Valentin Kaplov (vkaplov) wrote :

View Logs button makes request to "install/fuel-agent" log
GET api/logs?node=2&source=install%2Ffuel-agent&...

But if we look in list of available logs for the same node at the same time , then we'll see that install/fuel-agent log not available.
GET api/logs/sources/nodes/2?...
In request will be only next logs:
bootstrap/
dmesg
messages
mcollective
agent

Revision history for this message
Valentin Kaplov (vkaplov) wrote :

I think that "View Logs" button should be disabled while "install/fuel-agent" logs not in list of available logs.
List of available logs can be fetched by request GET api/logs/sources/nodes/2?.. where "2" is node id.

tags: added: area-ui
removed: area-python team-bugfix
Changed in fuel:
assignee: Valentin Kaplov (vkaplov) → nobody
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
assignee: Fuel Python Team (fuel-python) → nobody
Changed in fuel:
assignee: nobody → Fuel UI Team (fuel-ui)
Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/mitaka
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

> View Logs button makes request to "install/fuel-agent" log

indeed, it stored under different path. "bootstrap/fuel-agent.log"

i think something wrong defined in settings.yaml.

https://github.com/openstack/fuel-web/blob/35396b8fb3396711ee6620bd7ebd3d3452e88139/nailgun/nailgun/settings.yaml#L332-L337

For it looks like python related bug, rather than UI one.

So, fuel-agent (provisioning) logs were accidentally placed under 'install' section (which was used only for native provisioning)

Hope this helps.

Revision history for this message
Maciej Kwiek (maciej-iai) wrote :

I could not reproduce this on ISO 483. Marking as incomplete.

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Maciej Kwiek (maciej-iai) wrote :

I managed to reproduce it, thanks to apalkina. I think that this is an UI issue, as the url to node log is generated to show fuel-agent log, which is not available. Fix for this would be pointing to an actual available log in this url.

Not having fuel-agent log is an another issue, which should probably have separate bug created.

Changed in fuel:
status: Incomplete → Triaged
Revision history for this message
Anastasia Palkina (apalkina) wrote :

This video helps to understand how to reproduce issue

tags: added: logs
no longer affects: fuel/newton
Changed in fuel:
milestone: 10.0 → 10.1
no longer affects: fuel/newton
Changed in fuel:
milestone: 10.1 → 11.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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