Merge ~seyeongkim/maas:bug-2073731-3.3 into maas:3.3

Proposed by Seyeong Kim
Status: Merged
Approved by: Dariusz Gadomski
Approved revision: 538727edcef91b2edcf432a1c22388f5044a5260
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~seyeongkim/maas:bug-2073731-3.3
Merge into: maas:3.3
Diff against target: 17 lines (+4/-2)
1 file modified
src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py (+4/-2)
Reviewer Review Type Date Requested Status
MAAS Lander Approve
Dariusz Gadomski Approve
Review via email: mp+475458@code.launchpad.net

Commit message

fix: don't fail commissioning if no suitable IPMI ciphers can be detected

Some BMCs (like HPE ILO 5 3.05) seems to not report all the ciphers
that actually are enabled.

Instead of failing commissioning, we now only print out a warning.

Resolves LP:2073731

(cherry picked from commit b2d55fd8c55b36139547e6b1306a7b96286d7875)
(cherry picked from commit 60fbad31927d726ae9d3098e0aedb7aa9a874f11)
(cherry picked from commit 1ae9d903a2c572139c26a79d50d2bb3166e0ce3c)

To post a comment you must log in.
Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b bug-2073731-3.3 lp:~seyeongkim/maas/+git/maas into -b 3.3 lp:~maas-committers/maas

STATUS: SUCCESS
COMMIT: 538727edcef91b2edcf432a1c22388f5044a5260

review: Approve
Revision history for this message
Dariusz Gadomski (dgadomski) :
review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :
Revision history for this message
MAAS Lander (maas-lander) wrote :
Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

jenkins: !test

Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b bug-2073731-3.3 lp:~seyeongkim/maas/+git/maas into -b 3.3 lp:~maas-committers/maas

STATUS: FAILED
LOG: http://maas-ci.internal:8080/job/maas-tester/888/console
COMMIT: 538727edcef91b2edcf432a1c22388f5044a5260

review: Needs Fixing
Revision history for this message
Dariusz Gadomski (dgadomski) wrote :

jenkins: !test

Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b bug-2073731-3.3 lp:~seyeongkim/maas/+git/maas into -b 3.3 lp:~maas-committers/maas

STATUS: SUCCESS
COMMIT: 538727edcef91b2edcf432a1c22388f5044a5260

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py b/src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py
2index c7b9b14..b407d0d 100755
3--- a/src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py
4+++ b/src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py
5@@ -552,8 +552,10 @@ class IPMI(IPMIBase):
6 # this one.
7
8 if not self._check_ciphers_enabled():
9- print("ERROR: No cipher enabled!", file=sys.stderr)
10- sys.exit(1)
11+ # We can't detect any suitable cipher. We still continue,
12+ # since we don't trust that the BMC reports all the
13+ # ciphers that actually are usable.
14+ print("WARNING: No cipher enabled!", file=sys.stderr)
15
16 self._config_ipmi_lan_channel_settings()
17 self._config_lan_conf_auth()

Subscribers

People subscribed via source and target branches