Ironic node fields are not mapped from database model to resource object

Bug #1507940 reported by Kyrylo Romanenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
High
Anton Arefiev

Bug Description

Debug output of ironic node looks by next way:
http://paste.openstack.org/show/476820/

According to database model it should contain fields:
id
name

Lack of id field currently causes problem in test implementation.

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "301"
  build_id: "301"
  nailgun_sha: "4162b0c15adb425b37608c787944d1983f543aa8"
  python-fuelclient_sha: "486bde57cda1badb68f915f66c61b544108606f3"
  fuel-agent_sha: "50e90af6e3d560e9085ff71d2950cfbcca91af67"
  fuel-nailgun-agent_sha: "d7027952870a35db8dc52f185bb1158cdd3d1ebd"
  astute_sha: "6c5b73f93e24cc781c809db9159927655ced5012"
  fuel-library_sha: "5d50055aeca1dd0dc53b43825dc4c8f7780be9dd"
  fuel-ostf_sha: "2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c"
  fuelmain_sha: "a65d453215edb0284a2e4761be7a156bb5627677"

python-ironicclient (0.3.3)

Tags: ironic
Revision history for this message
Yuriy Zveryanskyy (yzveryanskyy) wrote :

You should look to api representation of node https://github.com/openstack/ironic/blob/stable/liberty/ironic/api/controllers/v1/node.py#L510 not database model. Database "id" is internal info and is not exposed via API by any way.

Anton Arefiev (aarefiev)
Changed in mos:
assignee: MOS Ironic (mos-ironic) → Anton Arefiev (aarefiev)
tags: added: ironic
Revision history for this message
Anton Arefiev (aarefiev) wrote :

Node uuid should be passed to nodemanager 'get' method, not resource object.

Changed in mos:
status: New → Invalid
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.