Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish atix main #1

Open
wants to merge 95 commits into
base: atix-main
Choose a base branch
from
Open

Establish atix main #1

wants to merge 95 commits into from

Conversation

sbernhard
Copy link
Member

No description provided.

@sbernhard sbernhard force-pushed the establish_atix_main branch 2 times, most recently from 3c763fd to 4dd4dd3 Compare July 29, 2024 16:11
* Obtain the VM Name from the instance metadata API
* Obtain the Resource Group Name from the instance metadata API
* These items will improve deduplication logic within Subscription Watch metering
@sbernhard sbernhard force-pushed the establish_atix_main branch 2 times, most recently from 44a22b9 to 1b10d0b Compare August 1, 2024 11:12
* Card ID: CCT-654

Since the feature is not completed yet, we're disabling it client-side.
@sbernhard sbernhard force-pushed the establish_atix_main branch from 36239ee to 209bcf1 Compare August 1, 2024 13:40
chambridge and others added 2 commits August 1, 2024 09:47
- update metadata and test.
…-facts

Collect Azure VM Name and Resource Group Name as a cloud fact.
@sbernhard sbernhard force-pushed the establish_atix_main branch from eb18d10 to 752175a Compare August 2, 2024 15:46
src/rhsm/profile.py Outdated Show resolved Hide resolved
sbernhard and others added 3 commits August 5, 2024 05:56
…le-autoreg/el10

feat: Disable anonymous cloud registration temporarily
The installation instructions now support RHEL in addition to Fedora. The guide has been tested on RHEL 9.2.

There are small touches to the commands in INSTALL.md too:

* PYTHONPATH is not a shell command, it doesn’t require explicit ./ for the current directory.
* An alias pointing to the python executable in the virtual environment makes it work without having to activate it.

The testing guide explicitly mentions requirements in the test-requirements.txt file and discourages from using ./setup.py test.

Card IDs:

* CCT-655
* CCT-656
@sbernhard sbernhard force-pushed the establish_atix_main branch 4 times, most recently from 67d9abb to 9273491 Compare August 8, 2024 23:05
Copy link

github-actions bot commented Aug 8, 2024

Coverage

Coverage (computed on Fedora latest) •
FileStmtsMissCoverMissing
__init__.py00100% 
rhsm
   config.py178994%155, 168, 180–181, 230, 393–394, 400, 409
   connection.py100746254%48–49, 53, 55–56, 81, 95, 106, 147, 281, 312, 378–383, 387–396, 457, 459, 565, 568, 575–581, 586, 642, 677–681, 683, 696, 723, 726–727, 729–730, 732, 743–747, 751, 755, 757–758, 777, 780, 784–785, 790, 793–794, 809, 813, 815–816, 843–844, 846, 849, 854–855, 858–859, 861, 863–867, 869–870, 873–880, 882–892, 894, 896–897, 908–910, 912–914, 916–918, 920–922, 924, 927–933, 935–936, 938–939, 941, 952–954, 956–957, 959–961, 963, 975–978, 983, 1047, 1049–1054, 1056, 1061–1065, 1071–1074, 1076–1081, 1085–1090, 1097, 1134, 1136, 1141, 1152, 1161–1164, 1168, 1170–1172, 1176–1177, 1179–1186, 1188, 1190, 1193–1200, 1203–1207, 1210–1215, 1222, 1224, 1276, 1293–1296, 1320, 1342, 1372, 1377, 1380, 1383–1384, 1389, 1392, 1397, 1400, 1443–1447, 1454–1455, 1457, 1466–1467, 1469, 1486, 1499–1501, 1504, 1515, 1520, 1525, 1554–1556, 1561–1562, 1564–1565, 1567–1568, 1570–1589, 1591–1593, 1595–1606, 1608, 1625–1627, 1629–1631, 1633–1635, 1640, 1645–1647, 1652, 1679, 1710–1736, 1741–1742, 1744–1746, 1749–1750, 1753–1754, 1757–1758, 1777–1778, 1787–1788, 1798–1799, 1806–1807, 1813–1816, 1822–1825, 1831–1832, 1838–1839, 1859–1860, 1876–1882, 1884, 1892–1893, 1931, 1933–1935, 1937, 1939, 1942, 1944–1957, 1959–1960, 1969–1971, 1983–1984, 1993–1994, 1996, 1998–2000, 2007–2009, 2018–2019, 2021–2023, 2031–2032, 2043, 2045–2046, 2048, 2050–2053, 2055–2057, 2060, 2062, 2069–2070, 2077–2078, 2088–2089, 2099–2102, 2109–2112, 2123
   logutil.py1191884%100–102, 131, 134–135, 144, 146–147, 201–203, 205–206, 210–211, 225, 253
   profile.py2076867%27–28, 32–33, 37–38, 42–43, 49, 69, 109–113, 115–119, 121–123, 125–132, 151–153, 157–159, 197, 259, 274, 308–312, 322–324, 328–329, 339, 350–353, 360, 365, 376–377, 391–392, 394, 397, 406–409, 422
   repofile.py49217265%36–37, 41–42, 55, 69–70, 156–157, 180–184, 192, 238, 246, 282–288, 290, 293, 302–307, 385, 395–396, 414, 450–455, 458–465, 483–485, 487, 490, 499–501, 505–506, 536–537, 539, 543, 550–551, 567–570, 617–618, 620–623, 630, 638, 645, 655–656, 678–679, 681–682, 692–693, 698, 703–706, 718–722, 726–727, 729, 734–745, 747–756, 758–764, 768–769, 772–773, 776–777, 780–781, 783, 786–787, 789, 791–793, 795–797, 799, 801–813, 815, 818, 820, 823–825, 827–829, 835, 837
rhsmlib
   client_info.py341361%47–48, 58–61, 63–64, 71–72, 74–75, 82
rhsmlib/dbus
   constants.py250100% 
rhsmlib/dbus/objects
   __init__.py80100% 
   entitlement.py783950%42–44, 50–52, 54–56, 58–60, 62–64, 66, 79–83, 96–97, 114–115, 117, 119–120, 133–134, 152–154, 156, 158–159, 163, 165–166
   register.py2277367%36, 97–98, 111–112, 122–123, 125–126, 136–137, 139, 153, 156, 169, 172, 230, 239, 277–278, 285, 303, 311, 314, 357–359, 361–362, 382–386, 388–390, 392, 394, 396, 415–418, 420–422, 424, 426, 428, 443, 447, 464–469, 471–473, 475, 477, 489–493, 495–497, 499, 501
rhsmlib/facts
   cloud_facts.py102991%100, 105, 109, 181, 187, 192, 197, 202, 204
rhsmlib/services
   entitlement.py21311147%72–75, 123–124, 126–127, 130–131, 133, 145–151, 154–155, 157–159, 172–173, 175, 177, 183, 206, 231–233, 235, 239–241, 243–244, 246–247, 249, 253, 257–268, 270, 272–278, 280–289, 291, 293–294, 296, 298–300, 302, 304–305, 307–311, 314–316, 318–319, 321, 323, 325–326, 348, 372, 412–413, 476, 527–531, 541–543, 547–548
   environment.py110100% 
   refresh.py22672%41–42, 46, 63, 65–66
   register.py1152082%31, 69, 82–83, 85–86, 88–89, 91–92, 125, 180, 215, 246, 248, 260, 269, 288, 295, 297
subscription_manager
   action_client.py35197%25
   cache.py60111181%30–34, 75, 82, 90, 96, 102–103, 109, 124, 130–132, 145–148, 151, 199, 201, 238, 244–247, 254–257, 274, 277–279, 297, 306–307, 309, 318, 358–359, 393–394, 425, 427–428, 430, 443, 492, 496, 501, 506, 516, 519–520, 541, 595, 598, 623, 728, 746, 781, 783–784, 813, 816–822, 825, 857–860, 862, 873, 891, 913–914, 954–957, 959, 987, 1016–1017, 1063, 1088–1097, 1099, 1101–1102, 1108–1111, 1113
   certdirectory.py2172588%29, 45, 72, 80, 85–86, 283–285, 292, 307, 314–315, 334, 337, 368–369, 371–374, 376–379
   entcertlib.py2715978%33–34, 36–39, 96–99, 122–130, 133, 165, 169, 171, 175, 192–194, 213, 216–217, 219, 222–223, 247, 330, 339, 389–390, 392–393, 395, 442, 446, 470, 482–486, 488–491, 493, 498–499, 501–502, 504
   identity.py1496059%31, 58–61, 65, 69–76, 79, 82–83, 86–87, 91, 95, 98, 106–107, 115, 117–121, 123, 125–126, 129–131, 133–134, 137–139, 142–147, 150–152, 155, 188, 212–214, 229–231, 235, 238
   injection.py50296%77–78
   injectioninit.py350100% 
   managercli.py461273%22, 76–78, 80, 82–87, 91
   managerlib.py40311371%61–67, 98–104, 109, 113, 116, 142–147, 149–154, 212–216, 278, 280–284, 400, 408, 431, 465, 566–567, 569–573, 576–577, 581–582, 588–590, 592, 596, 598–601, 623, 625, 658, 691–693, 697–699, 702–703, 706, 729–731, 739–742, 744–747, 759–761, 763, 774, 799, 804–807, 809–812, 818–819, 821, 824, 827–828, 834–835, 845–848
   plugins.py3703790%29–30, 442, 476–477, 480–484, 693, 748, 765–770, 772–775, 779, 781, 784, 790–792, 794–795, 867–870, 948–950
   repolib.py3845286%35, 37, 47, 49–53, 86–91, 94, 99, 105, 136, 139, 186–187, 241–242, 248, 250, 414–417, 419–420, 422, 424, 426–428, 439–445, 488–491, 499–500, 507, 561, 651
   syspurposelib.py1274366%31, 33–35, 37, 71–72, 74–76, 78–80, 109–114, 151, 158, 160, 186–189, 191–196, 199–200, 204–205, 215–216, 248, 252–255
   utils.py3136280%58–59, 61, 63–65, 77, 80, 113, 167–170, 173–174, 176–178, 181–186, 200, 204, 216–217, 261–263, 266, 278, 280–283, 315–316, 320–322, 326, 346, 352–356, 358–359, 361, 363–365, 367, 407, 417, 597, 601, 633–634
subscription_manager/cli_command
   abstract_syspurpose.py2326870%85, 93, 125, 138, 140, 144, 155–156, 158, 180–181, 190, 193, 195, 239–241, 248, 296, 299–301, 304–307, 315–316, 318–320, 322, 325–327, 330–332, 340–341, 343–345, 347, 353, 367–369, 375–377, 379–383, 385, 395, 422–424, 427, 429, 442, 444, 467–468, 480
   cli.py2062886%64, 68, 124, 181, 185, 187, 230, 269, 280–282, 296–298, 321, 341, 367, 376–377, 381–382, 398, 400–401, 403–404, 409, 417
   environments.py1074161%86, 89, 95, 99, 106, 108–109, 111, 113, 130, 137–141, 143–150, 152, 154–159, 169, 185–191, 193–195
   identity.py735031%59–63, 67, 70–72, 75–76, 78–85, 87–90, 92–99, 101, 105–106, 114, 116–119, 123, 125, 127–128, 131–134, 136–138
   list.py250100% 
   override.py1003466%119, 121, 123–125, 131, 133, 135, 137–138, 140–143, 145–146, 148–150, 155–158, 161, 163, 166–168, 174–175, 178–180, 183
   owners.py351945%45, 47–57, 62, 64–66, 68–70
   register.py1954477%119, 121, 164–166, 168–169, 172, 183, 187, 194–197, 201–202, 206–207, 218, 246, 250–252, 263, 289, 305–306, 342, 363, 371, 386–388, 397, 428, 438–439, 446–447, 452–456
   repos.py118694%130–131, 187, 213–214, 220
   service_level.py1268036%74–75, 84–85, 87, 104–105, 109–113, 116–119, 121–123, 125–133, 135–142, 144–146, 157–159, 161–162, 167, 174–176, 178, 181–183, 187–189, 191, 194–195, 197, 199–206, 208, 215–218, 221–225, 228–229, 231
   syspurpose.py522355%98–99, 106, 109–110, 115–117, 119–128, 130–132, 134–135
   user_pass.py37683%57, 62, 68–69, 71, 88
subscription_manager/scripts
   rhsm_service.py15150%17, 19–20, 23, 26–28, 31–33, 43–45, 48–49
   rhsmcertd_worker.py19412436%42–45, 87, 92–95, 100–101, 106–109, 149, 169–171, 173–175, 179, 188, 190, 194–196, 200, 203–206, 209, 212–213, 219–221, 223–227, 229–230, 240, 242, 244–245, 262, 265–266, 269, 272, 274–275, 278–280, 283, 287–292, 296–298, 302–305, 308, 312–314, 316, 322, 324, 326–329, 331–333, 335–336, 340, 342, 344, 346, 348–350, 352, 354–355, 357–361, 367–368, 372, 374, 378, 380–382, 392–395, 400–405, 409
TOTAL17507450074% 

Tests Skipped Failures Errors Time
2416 14 💤 0 ❌ 0 🔥 31.980s ⏱️

m-horky and others added 11 commits August 13, 2024 18:00
…nly-registration

feat: Require SCA for registration
Currently translated at 100.0% (692 of 692 strings)

Translated using Weblate (Japanese)

Currently translated at 100.0% (692 of 692 strings)

Translated using Weblate (Korean)

Currently translated at 100.0% (692 of 692 strings)

Translated using Weblate (Korean)

Currently translated at 100.0% (692 of 692 strings)

Translated using Weblate (Korean)

Currently translated at 100.0% (692 of 692 strings)

Co-authored-by: 김인수 <[email protected]>
Translate-URL: https://translate.fedoraproject.org/projects/subscription-manager/subscription-manager-main/ja/
Translate-URL: https://translate.fedoraproject.org/projects/subscription-manager/subscription-manager-main/ko/
Translation: subscription-manager/subscription-manager-main
Currently translated at 61.7% (427 of 692 strings)

Co-authored-by: Aleksey Fedorov <[email protected]>
Translate-URL: https://translate.fedoraproject.org/projects/subscription-manager/subscription-manager-main/ru/
Translation: subscription-manager/subscription-manager-main
Created by command:

/usr/bin/tito tag --use-version=1.30.0
- call the cloud endpoint without the new version, and with the Accept
  for the existing endpoint
- use cache.CloudTokenCache._get_from_server() directly: the v1
  autoregistration does not need any caching of the received token, so
  use the internal API of CloudTokenCache only to fetch the token
- the received token is the JWT token to use directly, without any
  inspection or unpacking: pass it directly to _auto_register_standard()
- drop the leftover commented code for autoregistration v2 for now
C10S, being a development build, doesn't always have all packages set up
correctly. As of now, two packages (rpm-devel, python3-rpm) depend on
different releases of rpm-libs, making the dnf command fail.

To make these issues more obvious next time, `set -euo pipefail` will
ensure the script fails instead of continuing.
@sbernhard sbernhard force-pushed the establish_atix_main branch 9 times, most recently from dd2806a to 4cfef3d Compare January 11, 2025 11:09
@sbernhard sbernhard force-pushed the establish_atix_main branch from 4cfef3d to 444d1ee Compare January 11, 2025 11:26
@sbernhard sbernhard force-pushed the establish_atix_main branch from 444d1ee to c1255fb Compare January 11, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.