問題
Windows AzureのSLES VMでは、以下のエラーのようにインフラサーバーへのアクセスができません。
ERROR:Unable to obtain product information from server "52.157.241.14,None"
Unprocessable Entity
{"type":"error","error":"The requested product 'SUSE Linux Enterprise Server for SAP Applications 15 SP1 x86_64' is not activated on this system.","localized_error":"The requested product 'SUSE Linux Enterprise Server for SAP Applications 15 SP1 x86_64' is not activated on this system."}
Unable to register modules, exiting.
これはSUSEが、PAYGからBYOSに移行する時のポリシーの変更が原因です。
以前は、AHB経由でBYOSに移動してもインフラサーバーにアクセスすることが出来ていましたが、6月中旬からそれはもうできません。
その結果、cloud-regionsrv-client-plugin-azure、cloud-regionsrv-client、およびpython3-azuremetadataパッケージが更新されていないVMでは”Unprocessable Entity”メッセージが表示されます。
解決方法
詳細は以下のリンクをご参照ください。(英文)
問題が発生するVMでは以下のコマンドを実行して、必要なパケージが更新され、問題を解決します。
wget https://raw.githubusercontent.com/rfparedes/susecloud-repocheck/main/sc-repocheck.py
sudo python3 sc-repocheck.py
参考までにスクリプトの出力は以下です。
$ sudo python3 sc-repocheck.py
2021-06-24 10:00:02,066 INFO: ~~ sc-repocheck 1.2.9 ~~
2021-06-24 10:00:02,069 INFO: Checking package versions.
2021-06-24 10:00:02,078 WARNING: PROBLEM: Update infrastructure packages need to be updated.
2021-06-24 10:00:02,078 INFO: Attempting to upgrade packages.
2021-06-24 10:00:02,082 INFO: Updating infrastructure packages.
The following 3 packages are going to be upgraded:
cloud-regionsrv-client python3-azuremetadata regionServiceClientConfigAzure
The following 3 packages have no support information from their vendor:
cloud-regionsrv-client python3-azuremetadata regionServiceClientConfigAzure
3 packages to upgrade.
Overall download size: 112.3 KiB. Already cached: 0 B. After the operation, additional 18.2 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
2021-06-24 10:00:05,505 INFO: Infrastructure packages updated OK.
2021-06-24 10:00:05,506 INFO: Package versions OK.
2021-06-24 10:00:05,506 INFO: Checking baseproduct.
2021-06-24 10:00:05,506 INFO: SLES_SAP baseproduct OK.
2021-06-24 10:00:05,506 INFO: Checking /etc/hosts for multiple records.
2021-06-24 10:00:05,506 INFO: /etc/hosts OK.
2021-06-24 10:00:05,506 INFO: Checking metadata access.
2021-06-24 10:00:05,517 INFO: Metadata OK.
2021-06-24 10:00:05,517 INFO: Checking regionserver access.
2021-06-24 10:00:07,592 INFO: Region server access OK.
2021-06-24 10:00:07,593 INFO: Checking RMT server entry is for correct region.
2021-06-24 10:00:07,593 INFO: RMT server entry OK.
2021-06-24 10:00:07,594 INFO: Checking http port access to RMT servers.
2021-06-24 10:00:07,594 INFO: http check unnecessary.
2021-06-24 10:00:07,595 INFO: Checking https port access to RMT servers.
2021-06-24 10:00:07,686 INFO: https access OK.
2021-06-24 10:00:07,686 INFO: Checking https access using RMT certs.
2021-06-24 10:00:07,709 INFO: RMT certs OK.
2021-06-24 10:00:07,709 INFO: EVERYTHING OK.
2021-06-24 10:00:07,710 INFO: Collecting debug data. Please wait 1-2 minutes maybe longer, depending on machine type.
2021-06-24 10:02:49,122 INFO: Check repositories. An attempt was made to fix.
2021-06-24 10:02:49,122 INFO: Debug data location: /var/log/sc-repocheck_210624_031807.tar.xz
2021-06-24 10:02:49,143 INFO: Report bugs to https://github.com/rfparedes/susecloud-repocheck/issues
以上です。