No nodes visible in the UI after undercloud upgrade

Bug #1703596 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Julie Pichon

Bug Description

I upgraded my undercloud this morning and the nodes I have registered are no longer visible in the UI, even though they still show on the CLI.

Console logs show:
------------------
ironic/v1/introspection Failed to load resource: the server responded with a status of 404 (Not Found)

as well as a lot of "Invariant Violation" which might or might not be related, e.g.

Error in RolesAction.fetchRoles Invariant Violation: Minified React error #31; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=31&args[]=%5Bobject%20XMLHttpRequest%5D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

Config:
------
$ cat /var/www/openstack-tripleo-ui/dist/tripleo_ui_config.js
window.tripleOUiConfig = {
  'keystone': 'http://192.168.24.1:3000/keystone/v3',
  'heat': 'http://192.168.24.1:3000/heat/v1/%(project_id)s',
  'ironic': 'http://192.168.24.1:3000/ironic',
  'ironic-inspector': 'http://192.168.24.1:3000/ironic',
  'mistral': 'http://192.168.24.1:3000/mistral/v2',
  'swift': 'http://192.168.24.1:3000/swift/v1/AUTH_%(project_id)s',
  'zaqar-websocket': 'ws://192.168.24.1:3000/zaqar',
...

I find it strange that the Ironic and Ironic inspector are the same URL - though I would assume this only affects introspection, not the nodes list. There might be an issue with th

Versions
--------
openstack-tripleo-ui-7.1.1-0.20170710093545.938119c.el7.centos.noarch
puppet-tripleo-7.1.1-0.20170708014159.ec9aea3.el7.centos.noarch

Tags: ui
Revision history for this message
Jiri Tomasek (jtomasek) wrote :

I suspect the incorrect ironic inspector URL is the cause of the problem asaction which lists nodes also calls inspector to find out the introspection status

Revision history for this message
Julie Pichon (jpichon) wrote :

I don't think it's simply my undercloud being fried, as when I point a dev UI at the system with only the keystone URL set in the config the nodes show up fine. It looks like it's something related to the configuration when doing a default install.

Revision history for this message
Julie Pichon (jpichon) wrote :

jtomasek's hunch was correct, changing the configuration to add -inspector at the end of the second URL resolved the problem.

Maybe an issue with the variable name used here? https://github.com/openstack/instack-undercloud/blob/master/elements/puppet-stack-config/puppet-stack-config.yaml.template#L766

Revision history for this message
Julie Pichon (jpichon) wrote :

(Opened bug 1703614 about handling issues with the inspector more gracefully in the UI.)

Revision history for this message
Carlos Camacho (ccamacho) wrote :
Dan Trainor (dtrainor)
Changed in tripleo:
assignee: nobody → Dan Trainor (dtrainor)
Revision history for this message
Dan Trainor (dtrainor) wrote :

@jpichon you were spot on with your IRC comment, "There doesn't seem to be any key for ironic-inspector ui-config or ui-proxy in the array, unlike the others?"

https://github.com/openstack/instack-undercloud/blob/master/instack_undercloud/undercloud.py#L855 lists an endpoint in the array for 'ironic_inspector' but this also requires a ui-config and ui-proxy component in the array, as you pointed out.

I may not be able to get to this today. I'll jump on it at my next availability unless you want to wrench on this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

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

Changed in tripleo:
assignee: Dan Trainor (dtrainor) → Julie Pichon (jpichon)
status: Triaged → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

@dtrainor Thanks for taking a look! I tested the patch above with my non-SSL environment and it solved the issue in the description. I'll test it on an SSL undercloud next.

However, neither Ironic nor Ironic-Inspector have a proxy section set up in that array at this point - do I understand correctly from your comment that this should be fixed for both? Only the Keystone endpoint does not need it?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/482884
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=63a6e69c56d08353783da48e09d38f85c383b30a
Submitter: Jenkins
Branch: master

commit 63a6e69c56d08353783da48e09d38f85c383b30a
Author: Julie Pichon <email address hidden>
Date: Wed Jul 12 11:01:14 2017 +0100

    Add UI config endpoints for Ironic Inspector

    Change-Id: I5a014f4a1cd10229ab2a27779136ec0159a26900
    Closes-Bug: #1703596

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 7.2.0

This issue was fixed in the openstack/instack-undercloud 7.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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