Skip to content

Instantly share code, notes, and snippets.

@jimrollenhagen
Created May 18, 2016 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimrollenhagen/f5670d4635051b79778576095e0a01b8 to your computer and use it in GitHub Desktop.
Save jimrollenhagen/f5670d4635051b79778576095e0a01b8 to your computer and use it in GitHub Desktop.
>>> for k, v in node.__dict__.items():
... print '%s: %s' % (k, v)
...
target_power_state: None
links: [{u'href': u'http://localhost:6385/v1/nodes/1f2ea990-3316-4a6c-b040-22900eadb180', u'rel': u'self'}, {u'href': u'http://localhost:6385/nodes/1f2ea990-3316-4a6c-b040-22900eadb180', u'rel': u'bookmark'}]
extra: {}
last_error: None
updated_at: 2016-05-06T14:46:58+00:00
maintenance_reason: None
manager: <ironicclient.v1.node.NodeManager object at 0x7fae2c440410>
provision_state: available
clean_step: {}
uuid: 1f2ea990-3316-4a6c-b040-22900eadb180
console_enabled: False
target_provision_state: None
provision_updated_at: None
maintenance: False
inspection_started_at: None
inspection_finished_at: None
power_state: power off
driver: pxe_ssh
reservation: None
properties: {u'memory_mb': 1024, u'cpu_arch': u'x86_64', u'local_gb': 10, u'cpus': 1}
instance_uuid: None
name: node-62
driver_info: {u'ssh_port': 22, u'ssh_username': u'stack', u'deploy_kernel': u'59dd9d7e-558b-4008-a3e2-0e22255e77da', u'deploy_ramdisk': u'26543111-04e3-4d1e-b7de-3bce6c0187f9', u'ssh_virt_type': u'virsh', u'ssh_address': u'65.61.190.86', u'ssh_key_filename': u'/opt/stack/data/ironic/ssh_keys/ironic_key'}
created_at: 2016-05-06T14:42:01+00:00
ports: [{u'href': u'http://localhost:6385/v1/nodes/1f2ea990-3316-4a6c-b040-22900eadb180/ports', u'rel': u'self'}, {u'href': u'http://localhost:6385/nodes/1f2ea990-3316-4a6c-b040-22900eadb180/ports', u'rel': u'bookmark'}]
driver_internal_info: {}
chassis_uuid: 766beecc-cb81-4a7f-ab94-daba60cb12cf
_info: {u'target_power_state': None, u'links': [{u'href': u'http://localhost:6385/v1/nodes/1f2ea990-3316-4a6c-b040-22900eadb180', u'rel': u'self'}, {u'href': u'http://localhost:6385/nodes/1f2ea990-3316-4a6c-b040-22900eadb180', u'rel': u'bookmark'}], u'extra': {}, u'last_error': None, u'updated_at': u'2016-05-06T14:46:58+00:00', u'maintenance_reason': None, u'provision_state': u'available', u'clean_step': {}, u'uuid': u'1f2ea990-3316-4a6c-b040-22900eadb180', u'console_enabled': False, u'target_provision_state': None, u'provision_updated_at': None, u'power_state': u'power off', u'inspection_started_at': None, u'inspection_finished_at': None, u'maintenance': False, u'driver': u'pxe_ssh', u'reservation': None, u'properties': {u'memory_mb': 1024, u'cpu_arch': u'x86_64', u'local_gb': 10, u'cpus': 1}, u'instance_uuid': None, u'name': u'node-62', u'driver_info': {u'ssh_port': 22, u'ssh_username': u'stack', u'deploy_kernel': u'59dd9d7e-558b-4008-a3e2-0e22255e77da', u'deploy_ramdisk': u'26543111-04e3-4d1e-b7de-3bce6c0187f9', u'ssh_virt_type': u'virsh', u'ssh_address': u'65.61.190.86', u'ssh_key_filename': u'/opt/stack/data/ironic/ssh_keys/ironic_key'}, u'created_at': u'2016-05-06T14:42:01+00:00', u'instance_info': {}, u'driver_internal_info': {}, u'chassis_uuid': u'766beecc-cb81-4a7f-ab94-daba60cb12cf', u'ports': [{u'href': u'http://localhost:6385/v1/nodes/1f2ea990-3316-4a6c-b040-22900eadb180/ports', u'rel': u'self'}, {u'href': u'http://localhost:6385/nodes/1f2ea990-3316-4a6c-b040-22900eadb180/ports', u'rel': u'bookmark'}]}
instance_info: {}
_loaded: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment