Brief Description
-----------------
Every change made to kernel_params is done by updating the /boot/efi/EFI/BOOT/boot.env file. This modification consists of rewriting the file with each addition/removal of some kernel_params. This addition/removal is done by running the stx-puppet/puppet-manifests/src/bin/puppet-update-grub-env.py file. After adding a long string of parameters and then performing a removal, the /boot/efi/EFI/BOOT/boot.env file becomes corrupted and cannot be written to. If a new addition is made with the same long string of parameters, the following error is encountered: grub-editenv: error: environment block too small. This affects the host when any changes made from system host-modify-cpu are executed, causing potential reboot loop when the host is unlocked. Eventually it gets to unlock degrade state.
Severity
-----------------
Major
Steps to Reproduce
------------------
system host-cpu-modify -f application-isolated -p0 0 -p1 0 controller-0
system host-cpu-modify -f vswitch -p0 0 -p1 0 controller-0
system host-cpu-modify -f shared -p0 0 -p1 0 controller-0
system host-cpu-modify -f platform -p0 2 -p1 0 controller-0
system host-cpu-modify -f platform -p0 2 -p1 0 controller-0
system host-cpu-modify -f vswitch -p0 0 -p1 0 controller-0
system host-cpu-modify -f shared -p0 0 -p1 0 controller-0
system host-cpu-modify -f application-isolated -p0 26 -p1 1 controller-0
system host-unlock controller-0
Expected Behavior
------------------
Unlock host without failures and no reboot loops.
Actual Behavior
----------------
Host enters into reboot loop, and eventually gets to unlock degraded state
Reproducibility
---------------
Reproducible for hosts that have processor alternating between 0 and 1 as presented in the system host-cpu-list below
System Configuration
--------------------
Simplex
Branch/Pull Time/Commit
-----------------------
Last Pass
---------
Timestamp/Logs
--------------
$ system host-cpu-list controller-0
-----------------------------------{}{}-{}{}{}{}{}-----{}{}{}{}-{}{}{}{}{}--{}{}{}{}-------------------------------------{}{}{}{}{}-------------------
uuid log_c processor phy_c thread processor_model assigned_function
ore ore
-----------------------------------{}{}-{}{}{}{}{}-----{}{}{}{}-{}{}{}{}{}--{}{}{}{}-------------------------------------{}{}{}{}{}-------------------
4171e839-ad8f-48ee-a83c-84d507763abf 0 0 0 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Platform
142bd3c1-1b99-4fe6-922d-1c825b48bcba 1 1 0 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
432d2ae0-c318-4dc1-90f1-baae27857bf6 2 0 6 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
ca48ef28-2f74-4dcd-b816-b3ebd222917a 3 1 6 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
c0b3e786-696a-46fa-9326-2ad1d81b1c65 4 0 1 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Platform
0453a160-13db-49fb-b4c2-e16076c38407 5 1 1 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
99108439-7011-417f-88d1-52c6fd1265da 6 0 5 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
beb784f9-cf63-4efe-8d11-be5c79fe3971 7 1 5 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
93176d31-d07d-4093-82ee-fc1a51dfae2f 8 0 2 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
20fbc18a-a855-4ee0-9c7a-41770e8cd044 9 1 2 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
e099f531-05ae-4f0e-9c59-586443180f8f 10 0 4 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
d98ae48a-d3e5-4584-b5bc-8b7ca2f4ea68 11 1 4 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
00ac1c26-5dec-42d9-8800-672926d67582 12 0 3 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
f854d8b2-eae0-42af-8435-f25515d495d0 13 1 3 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
c7409e8f-faf1-4329-88c7-d53c66a461a5 14 0 14 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
2b1aa357-3545-424c-8449-77af19fc42c9 15 1 14 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
7b5be4a4-6476-4ba6-b3cf-ab3761012d21 16 0 8 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
6256e236-563f-405e-8737-8adc4bc0ace0 17 1 8 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
cf5381cc-35d6-4ea3-88fd-5ec43411cced 18 0 13 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
7c0259d1-70f8-42a1-8715-926f59420851 19 1 13 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
337b1541-c632-43c3-b13f-953fd5439352 20 0 9 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
89ba8146-452c-46e8-ac64-7a34d728899d 21 1 9 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
d575c72c-53cb-4d30-8ad1-5f11d8183906 22 0 12 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
f7c50f61-b3d9-4eac-8600-e094f036beab 23 1 12 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
04035e5f-cd6c-4969-a4b1-e48fe74a2efa 24 0 10 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
3e52fc30-0d33-4c3d-b8e0-b33b6a6d54e3 25 1 10 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
28562b5a-f309-4327-bb12-46d2ef03b625 26 0 11 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
5f127314-bdab-4a2b-b819-77e98139831c 27 1 11 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
70e2867f-4956-4262-ab2f-ed9ad4a06477 28 0 16 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
1ca43195-c46a-4b54-adc8-577ea48be35d 29 1 16 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
8a9e513f-0023-4636-89d1-3dca4dc5bcfb 30 0 22 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
0d81ca2d-1e02-45cd-9eda-a56df527ee4a 31 1 22 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
1e2cf117-c5c7-4f7a-927a-ee32798b0f70 32 0 17 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
bfd6975f-02ff-4437-a2f3-cee95d0d38f9 33 1 17 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
1e114ede-66f2-4a13-b8a5-e53262101816 34 0 21 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
55f8fd39-a50a-4cff-b7a7-2d2471b6aaf8 35 1 21 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
f04d4832-0e41-41d4-8326-2ff3895b0df1 36 0 18 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
d9972f96-f1a8-4d24-867c-df24288095dc 37 1 18 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
f0b17b51-e525-46cb-8eab-7ada471cbdac 38 0 20 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
f23933ab-ec8e-4a24-849b-127403e0ac7d 39 1 20 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
b50dab5e-6fb1-4286-ab36-faea355be1c5 40 0 19 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
3a226e2d-1a85-4d61-b1f8-0a26be009d3e 41 1 19 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
1904955c-f599-4872-a360-7e2b7d10d8a1 42 0 30 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
b905c3f4-4204-43c3-947a-a22f73eb7c25 43 1 30 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
fa242ff4-1b17-4dc2-b2d2-71f3911e6662 44 0 24 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
3a1443ea-827e-47b6-a2f2-7de9f9cad285 45 1 24 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
afa96d17-d826-40ff-885b-fbf71a901238 46 0 29 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
4d70553a-668a-4a06-ba87-0c0074086948 47 1 29 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
92d51123-3600-47f6-a42a-bb7438567fad 48 0 25 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
347628c4-6c7e-46ce-847a-2b7c042ed4c5 49 1 25 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4cb70b67-0c14-4a28-bf32-94c28cb33300 50 0 28 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
30582a8e-84ac-410c-a111-835d88bf0566 51 1 28 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
6db74e22-37e8-4cbb-994c-e2608a86d845 52 0 26 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
32c99832-dbe2-4ae1-b87e-0f5b7a0a6c3b 53 1 26 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
ac004a46-93a5-48e4-a9f2-98f0ebccff7e 54 0 27 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
b9ad74ad-b890-4ba4-a370-fa50cee6dbfe 55 1 27 0 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
313c8a3b-ac29-4f39-950e-0db7959367d8 56 0 0 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Platform
434fe0cc-b824-423f-86ce-a6728f6dd12c 57 1 0 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
f17d037f-ec30-473b-b7ee-83bb1b619010 58 0 6 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
07ddc70c-e10e-4052-8ede-04ad03baff0c 59 1 6 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
8d7140bc-0ba2-49b6-aff0-c6a1de6e12f5 60 0 1 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Platform
7f224f63-84aa-4f2c-b863-e6b07af325d8 61 1 1 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
0e42839e-755c-425a-83e5-1b991d240801 62 0 5 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
b6207ac6-3f74-4468-bf87-d20795c32443 63 1 5 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
0e2227a9-6dc6-4fb2-84bb-b4df66bd6f63 64 0 2 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
3c688c6e-79c1-443c-bc08-9d5e94d91199 65 1 2 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
e93cbe17-88ec-416e-95a5-114250c84023 66 0 4 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
b9a65ba9-c1cc-4095-b76d-9d136cf681a5 67 1 4 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
1064783b-42cb-492a-907f-0949f88eca1b 68 0 3 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
8e7b5699-a3ea-42a1-8900-4689dd41fae9 69 1 3 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
7e1d492f-8b3e-47c7-bd15-b1fdabd808c3 70 0 14 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
3308b2b7-bb6f-4a0d-9ba1-aae20c835b66 71 1 14 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
66f9f981-f006-4240-9410-3412c8230aa8 72 0 8 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
d788cdfb-7496-4b38-964d-30f56a4a52ca 73 1 8 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
657c3a12-5628-4686-a47d-8c9bcdfdef57 74 0 13 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
aad09031-6920-4fee-a3aa-bfc2315d8d20 75 1 13 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4f518ce9-8efb-4352-a472-1786f2e9ab54 76 0 9 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
baf429c4-079d-464c-b372-e212f1b6c345 77 1 9 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
83be70f1-8d92-4dd1-9923-533c94e6cb21 78 0 12 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
2b1aa835-167f-4d88-8e8d-8ff0756573a0 79 1 12 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
c15a7e1f-1789-41bb-8655-42300771571e 80 0 10 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
56dc5277-f6fd-49b6-8b63-1b0ff8e539f6 81 1 10 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
b577ab50-abed-4419-adee-d6835ef364d0 82 0 11 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
018149d1-f93e-4a1d-9370-5c2541bd0803 83 1 11 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
e104d219-c471-4896-91a7-5f08c74df66a 84 0 16 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
89e52514-1b5d-4aba-9d52-c3e6c8064cd5 85 1 16 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
2d87f872-731d-4cda-a5ba-ba05a54d5113 86 0 22 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
ecdbaedd-a340-4e70-ac6c-2184f9019791 87 1 22 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
23e6f960-a82d-47c5-8786-043d0e9b3bec 88 0 17 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
6ec2f433-14f3-4c23-a07b-ec56a1fa2ea1 89 1 17 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
44ef2a32-8949-4e65-9b3d-3dabf7f7e1c7 90 0 21 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
9a46a79c-23a1-4c6a-9387-4c6087de2a4a 91 1 21 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4c39335e-7a0b-441d-9e47-a2695c5b3e6f 92 0 18 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
ab32b0bb-cda5-40a8-be81-4900fcd6ef58 93 1 18 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
31c17fdf-021d-42fe-b0da-e0afc000dbf7 94 0 20 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
d071cf7d-cfa8-4e18-ba44-59cb761c23ce 95 1 20 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
688794d2-b56b-428a-b376-9e4e11350b4c 96 0 19 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
57e8a274-1114-4cdf-901f-cad172b745bf 97 1 19 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
2c68d332-b7d9-40f9-97e3-a4c7034c8c0c 98 0 30 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
c7eb507a-5569-4c6b-a358-851057ecae48 99 1 30 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
6817866e-d72d-44c7-bc15-86adea284fe5 100 0 24 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
a0dd9eb4-d271-4333-83af-d71470a06f8c 101 1 24 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
9e07551d-cf26-480b-a3af-e00a8da8310a 102 0 29 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
2feb8e26-e031-4ef1-b35c-e5b9e3ea9424 103 1 29 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
42228079-3ab6-4027-a66e-bac3d61b6f87 104 0 25 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
4a8badde-eae8-4e74-a659-11f0bc369ef0 105 1 25 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4b51faa8-3102-4d43-b086-d0e77fb502f3 106 0 28 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
5fb4badc-4099-4e7d-97a7-48181c6a1e3c 107 1 28 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4e378793-ba71-44d1-9a31-13bdfa125f4a 108 0 26 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
4ab9d506-a2d4-479e-b924-09d4a2a15bb3 109 1 26 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
4db6bf08-7fae-4c4d-b029-aa07ac5566be 110 0 27 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application-isolated
892fe9b4-98f0-4806-83fb-74a8de3702f0 111 1 27 1 Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz Application
-----------------------------------{}{}-{}{}{}{}{}-----{}{}{}{}-{}{}{}{}{}--{}{}{}{}-------------------------------------{}{}{}{}{}-------------------
[sysadmin@controller-0 ~(keystone_admin)]$ system host-list
-{}{}--------{}{}{}{}{}-------{}{}{}{}----------{}{}{}{}{}-------{}{}{}{}-----------{+}
id hostname personality administrative operational availability
-{}{}--------{}{}{}{}{}-------{}{}{}{}----------{}{}{}{}{}-------{}{}{}{}-----------{+}
1 controller-0 controller unlocked enabled degraded
-{}{}--------{}{}{}{}{}-------{}{}{}{}----------{}{}{}{}{}-------{}{}{}{}-----------
)]$ fm alarm-list
-------{}{}-------------------------------------------------------------------------------------------{}{}{}{}{}-------------{}{}{}{}----{}{}{}{}{}----------------
Alarm ID Reason Text Entity ID Severity Time Stamp
-------{}{}-------------------------------------------------------------------------------------------{}{}{}{}{}-------------{}{}{}{}----{}{}{}{}{}----------------
200.011 controller-0 experienced a configuration failure. host=controller-0 critical 2022-06-20T16:30:
47.026684
Test Activity
-------------
Regression Testing
Workaround
----------
Fix proposed to branch: master /review. opendev. org/c/starlingx /stx-puppet/ +/850577
Review: https:/