Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 5d01f5f

Browse files
authored
Upgrade to Python 3.13 (#714)
1 parent a887492 commit 5d01f5f

38 files changed

+104
-95
lines changed

docker-compose-dev/Dockerfile.cloudadapter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim
1+
FROM python:3.13-slim
22

33
ARG HTTP_PROXY
44
ARG HTTPS_PROXY

docker-compose-dev/Dockerfile.configuration

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim
1+
FROM python:3.13-slim
22

33
ARG HTTP_PROXY
44
ARG HTTPS_PROXY

docker-compose-dev/Dockerfile.diagnostic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /go/src/app
44
COPY inbm/trtl .
55
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o trtl .
66

7-
FROM python:3.12-slim
7+
FROM python:3.13-slim
88

99
ARG HTTP_PROXY
1010
ARG HTTPS_PROXY

docker-compose-dev/Dockerfile.dispatcher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /go/src/app
44
COPY inbm/trtl .
55
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o trtl .
66

7-
FROM python:3.12-slim
7+
FROM python:3.13-slim
88

99
ARG HTTP_PROXY
1010
ARG HTTPS_PROXY

docker-compose-dev/Dockerfile.telemetry

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim
1+
FROM python:3.13-slim
22

33
ARG HTTP_PROXY
44
ARG HTTPS_PROXY

docs/In-Band Manageability User Guide - ThingsBoard.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ Events Log in the dashboard below the OTA buttons.
11561156
Results of Configuration Get update can be seen in the ThingsBoard
11571157
Events Log in the dashboard below the OTA buttons.
11581158

1159-
#### Configuration Load
1159+
#### Configuration Load
11601160

11611161
**Required Fields**: Command and Fetch
11621162

@@ -1175,8 +1175,9 @@ Events Log in the dashboard below the OTA buttons.
11751175
Note: ubuntuAptSource tag is no longer used.
11761176

11771177
**NOTE:**
1178+
11781179
> - Append is only applicable to three configuration tags i.e
1179-
> `trustedRepositories` and `sotaSW`
1180+
> `trustedRepositories` and `sotaSW`
11801181
>
11811182
> - Path takes in key value pair format, example:
11821183
> `trustedRepositories:https://abc.com/`
@@ -1188,16 +1189,18 @@ Note: ubuntuAptSource tag is no longer used.
11881189

11891190
**Required Fields**: Command and Path
11901191

1191-
**NOTE:**
1192+
**NOTE:**
1193+
11921194
> - Remove is only applicable to three configuration tags i.e
11931195
> `trustedRepositories`, `sotaSW` and `ubuntuAptSource`
1194-
> - Path takes in key value pair format, example: `trustedRepositories:https://abc.com/`
1196+
> - Path takes in key value pair format, example: `trustedRepositories:https://abc.com/`
11951197
11961198
<p align="center">
11971199
<img src="media/In-Band Manageability User Guide - ThingsBoard/media/image47.PNG" alt="P978#yIS2" style="width:4.10995in;height:4.74167in" />
11981200
</p>
11991201

12001202
### Configuration Update Via Manifest
1203+
12011204
[Configuration Command Manifests and Examples](Manifest%20Parameters.md)
12021205

12031206
### Power Management
@@ -1273,6 +1276,7 @@ The query command capabilities are also supported via manifest.
12731276
## Telemetry Data
12741277

12751278
In-Band Manageability provides two types of telemetry data. Telemetry can be viewed under Dashboard as displayed below:
1279+
12761280
- 1 - Static Telemetry
12771281
- 2 - Dynamic Telemetry. The telemetry data will indicate the health of each endpoint.
12781282

@@ -1302,6 +1306,7 @@ This contains the following information
13021306
Each endpoint publishes the following Dynamic Telemetry Data in 5-minute intervals.
13031307

13041308
The following are displayed in the data chart and also appear in the New Event Log:
1309+
13051310
- Available-memory
13061311
- Core-temp-Celsius
13071312
- Percent-disk-used
@@ -1318,6 +1323,7 @@ The device must be connected in order to view the telemetry information
13181323
on the ThingsBoard.
13191324

13201325
#### Static Telemetry
1326+
13211327
To view the device`s static telemetry, click the Static Telemetry window.
13221328

13231329
<img src="media/In-Band Manageability User Guide - ThingsBoard/media/image55.png" style="width:5.65625in;height:3.58333in" />
@@ -1334,6 +1340,7 @@ see the below
13341340
[General Troubleshooting](Issues%20and%20Troubleshooting.md)
13351341

13361342
### OTA Error Status
1343+
13371344
[Error Messages](Error%20Messages.md)
13381345

13391346
### Acquiring Debug Messages from Agents

inbm/Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
99
### Changed
1010

1111
### Security
12+
1213
- Updated urllib3 version to 2.50. Resolves CVE-2025-50181
14+
- Updated Python version to 3.13. Resolves CVE-2020-1171, CVE-2024-49050,
15+
CVE-2020-1192, CVE-2020-17163, CVE-2025-49714
1316

1417
## 4.2.8.7 - 2025-07-10
1518

inbm/cloudadapter-agent/README.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [Run the agent](#run-the-agent)
1717
- [Test the agent](#test-the-agent)
1818
- [Debian package (DEB)](#debian-package-deb)
19+
1920
</details>
2021

2122
## Overview
@@ -31,31 +32,37 @@
3132
The agent supports MQTT for communication with cloud services.
3233

3334
There are two supported cloud services:
34-
- [Azure IoT Central](../../docs/In-Band%20Manageability%20User%20Guide%20-%20Azure.md)
35-
- [ThingsBoard](../../docs/In-Band%20Manageability%20User%20Guide%20-%20ThingsBoard.md)
35+
36+
- [Azure IoT Central](../../docs/In-Band%20Manageability%20User%20Guide%20-%20Azure.md)
37+
- [ThingsBoard](../../docs/In-Band%20Manageability%20User%20Guide%20-%20ThingsBoard.md)
3638

3739
### Intel Manageability
3840

3941
The agent uses MQTT for communication with other agents.
4042

4143
#### Publish channels
44+
4245
The agent publishes to the following topics:
43-
- cloudadapter-agent state: `cloudadapter/state` when dead/running
44-
- Manifest install requests: `manageability/request/`
46+
47+
- cloudadapter-agent state: `cloudadapter/state` when dead/running
48+
- Manifest install requests: `manageability/request/`
4549

4650
#### Subscribe channels
51+
4752
The agent subscribes to the following topics:
48-
- Agent states: `+/state`
49-
- Agent events: `manageability/event`
50-
- Responses: `manageability/response`
51-
- Device telemetry: `manageability/telemetry`
52-
- Update from scheduled requests: `manageability/nodeupdate`
53+
54+
- Agent states: `+/state`
55+
- Agent events: `manageability/event`
56+
- Responses: `manageability/response`
57+
- Device telemetry: `manageability/telemetry`
58+
- Update from scheduled requests: `manageability/nodeupdate`
5359

5460
`+` is a wild-card indicating single level thus matching `diagnostic/state` or `<another-agent>/state`
5561

5662
Events or responses sent to the agent are logged or published to the cloud as-is.
5763

5864
Device telemetry sent to the agent should have the following schema:
65+
5966
```json
6067
{
6168
"type": "object",
@@ -79,7 +86,9 @@ Device telemetry sent to the agent should have the following schema:
7986
}
8087
}
8188
```
89+
8290
For example:
91+
8392
```json
8493
{
8594
"type": "dynamic_telementry",
@@ -91,46 +100,51 @@ For example:
91100
```
92101

93102
## Install from Source
94-
❗ Use a Python version greater than 3.12 is installed
103+
104+
❗ Use a Python version greater than 3.13 is installed
95105

96106
- [Build INBM](#../../README.md#build-instructions)
97107
- [Install INBM](#../../docs/In-Band%20Manageability%20Installation%20Guide%20Ubuntu.md)
98108

99109
## Usage
110+
100111
❗Ensure Mosquitto broker is installed and configured for Intel(R) In-Band Manageability.
101112
❗Some commands will require root privileges (sudo)
102113
❗Run commands in the `inbm/cloudadapter-agent` directory
103114

115+
### Setup
104116

105-
### Setup:
106117
- Run: `make config`
107118
- Refer to the following documents for cloud setup:
108119
- [Azure](#../../docs/In-Band%20Manageability%20User%20Guide%20-%20Azure.md)
109120
- [Thingsboard](#../../docs/In-Band%20Manageability%20User%20Guide%20-%20ThingsBoard.md)
110121

111-
### Changing the logging level:
122+
### Changing the logging level
112123

113124
- Run: `make logging LEVEL=DEBUG`
114125
- Valid values for `LEVEL`:
115126
- `DEBUG`
116127
- `ERROR`
117128
- `INFO`
118129

119-
### Run the agent:
130+
### Run the agent
120131

121132
- Run: `make run`
122133

123-
### Test the agent:
134+
### Test the agent
124135

125136
- Run: `make tests`
126137

127138
## Debian package (DEB)
128139

129140
### Install (For Ubuntu)
141+
130142
After building the above package, if you only want to install the cloudadpater-agent, you can do so by following these steps:
143+
131144
- `cd dist/inbm`
132145
- Unzip package: `sudo tar -xvf Intel-Manageability.preview.tar.gz`
133146
- Install package: `dpkg -i cloudadapter-agent<latest>.deb`
134147

135148
### Uninstall (For Ubuntu)
149+
136150
- `dpkg --purge cloudadapter-agent`

inbm/cloudadapter-agent/cloudadapter/cloudadapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def start(self) -> None:
5555

5656
fileConfig(path, disable_existing_loggers=False)
5757
logger = logging.getLogger(__name__)
58-
if sys.version_info[0] < 3 or sys.version_info[0] == 3 and sys.version_info[1] < 12:
58+
if sys.version_info[0] < 3 or sys.version_info[0] == 3 and sys.version_info[1] < 13:
5959
logger.error(
60-
"Python version must be 3.12 or higher. Python interpreter version: " + sys.version)
60+
"Python version must be 3.13 or higher. Python interpreter version: " + sys.version)
6161
sys.exit(1)
6262
logger.info('Cloud Adapter agent is running')
6363

inbm/cloudadapter-agent/fpm-template/etc/apparmor.d/usr.bin.inbm-cloudadapter

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
/tmp/ rw,
2626
/tmp/** mrw,
2727
/usr/bin/gcc-5 rix,
28-
/usr/bin/python2.7 ix,
2928
/usr/bin/inbm-cloudadapter rix,
3029
/etc/intel-manageability/public/cloudadapter-agent/** r,
3130
/etc/intel-manageability/secret/cloudadapter-agent/** r,

0 commit comments

Comments
 (0)