From b642f28be49f31693772231ee921ecfdbd7c80b9 Mon Sep 17 00:00:00 2001 From: Sam Betts Date: Fri, 2 Sep 2016 12:45:26 +0100 Subject: Receive and store agent version on heartbeat This patch enables receiving agent_version as part of heartbeat, and stores this information on driver_internal_info. This is so that Ironic can dynamically adjust which features and parameters it uses based on which version of the agent is being used. Change-Id: I400adba5d908b657751a83971811e8586f46c673 Partial-Bug: #1602265 --- api-ref/source/baremetal-api-v1-misc.inc | 4 ++++ api-ref/source/parameters.yaml | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'api-ref/source') diff --git a/api-ref/source/baremetal-api-v1-misc.inc b/api-ref/source/baremetal-api-v1-misc.inc index 5bbc2e9be..078b956fb 100644 --- a/api-ref/source/baremetal-api-v1-misc.inc +++ b/api-ref/source/baremetal-api-v1-misc.inc @@ -95,6 +95,9 @@ Normal response codes: 202 Error response codes: 400 404 +.. versionadded:: 1.36 ``agent_version`` parameter for passing the version of + the Ironic Python Agent to Ironic during heartbeat + Request ------- @@ -102,3 +105,4 @@ Request - node_ident: node_ident - callback_url: callback_url + - agent_version: agent_version diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 8c201ac77..ac403237d 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -87,6 +87,13 @@ volume_target_id: required: true type: string +agent_version: + description: | + The version of the ironic-python-agent ramdisk, sent back to the Bare Metal + service and stored during provisioning. + in: query + required: true + type: string callback_url: description: | The URL of an active ironic-python-agent ramdisk, sent back to the Bare -- cgit v1.2.1