yum updateでtransactionが途中みたいなメッセージ出てた
AWXを使って月次update処理(yum)をしてるんだけど、なぜか以下メッセージが出てが起きてた。
{ "changed": true, "results": [ "Loaded plugins: extras_suggestions, langpacks, priorities, update-motd\n208 packages excluded due to repository priority protections\nResolving Dependencies\n--> Running transaction check\n---> Package containerd.x86_64 0:1.4.13-2.amzn2.0.1 will be updated\n---> Package containerd.x86_64 0:1.4.13-3.amzn2 will be an update\n---> Package runc.x86_64 0:1.0.3-2.amzn2 will be updated\n---> Package runc.x86_64 0:1.0.3-3.amzn2 will be an update\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nUpdating:\n containerd x86_64 1.4.13-3.amzn2 amzn2extra-docker 23 M\n runc x86_64 1.0.3-3.amzn2 amzn2extra-docker 3.0 M\n\nTransaction Summary\n================================================================================\nUpgrade 2 Packages\n\nTotal download size: 26 M\nDownloading packages:\nDelta RPMs disabled because /usr/bin/applydeltarpm not installed.\n--------------------------------------------------------------------------------\nTotal 55 MB/s | 26 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Updating : runc-1.0.3-3.amzn2.x86_64 1/4 \n Updating : containerd-1.4.13-3.amzn2.x86_64 2/4 \n Cleanup : containerd-1.4.13-2.amzn2.0.1.x86_64 3/4 \n Cleanup : runc-1.0.3-2.amzn2.x86_64 4/4 \n Verifying : containerd-1.4.13-3.amzn2.x86_64 1/4 \n Verifying : runc-1.0.3-3.amzn2.x86_64 2/4 \n Verifying : runc-1.0.3-2.amzn2.x86_64 3/4 \n Verifying : containerd-1.4.13-2.amzn2.0.1.x86_64 4/4 \n\nUpdated:\n containerd.x86_64 0:1.4.13-3.amzn2 runc.x86_64 0:1.0.3-3.amzn2 \n\nComplete!\n" ], "msg": "There are unfinished transactions remaining. You might consider running yum-complete-transaction, or \"yum-complete-transaction --cleanup-only\" and \"yum history redo last\", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).\n", "rc": 0, "invocation": { "module_args": { "lock_timeout": 30, "update_cache": false, "disable_excludes": null, "exclude": [], "allow_downgrade": false, "disable_gpg_check": false, "conf_file": null, "use_backend": "auto", "state": "latest", "disablerepo": [], "releasever": null, "skip_broken": false, "autoremove": false, "download_dir": null, "enable_plugin": [], "installroot": "/", "install_weak_deps": true, "name": [ "*" ], "download_only": false, "bugfix": false, "list": null, "install_repoquery": true, "update_only": false, "disable_plugin": [], "enablerepo": [], "security": false, "validate_certs": true } }, "changes": { "updated": [ [ "containerd", "1.4.13-3.amzn2.x86_64 from amzn2extra-docker" ], [ "runc", "1.0.3-3.amzn2.x86_64 from amzn2extra-docker" ] ], "installed": [] }, "_ansible_no_log": false }
yumが途中で失敗した・・・?理由がよくわからない。 とりあえず言われるがままyum-complete-transactionを実行してみた。
$ sudo yum-complete-transaction Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 3.7 kB 00:00:00 amzn2extra-docker | 3.0 kB 00:00:00 amzn2extra-epel | 3.0 kB 00:00:00 epel/x86_64/metalink | 8.7 kB 00:00:00 epel | 4.7 kB 00:00:00 (1/4): amzn2extra-docker/2/x86_64/updateinfo | 6.4 kB 00:00:00 (2/4): amzn2extra-docker/2/x86_64/primary_db | 89 kB 00:00:00 (3/4): epel/x86_64/updateinfo | 1.1 MB 00:00:00 (4/4): epel/x86_64/primary_db | 7.0 MB 00:00:00 220 packages excluded due to repository priority protections There are 1 outstanding transactions to complete. Finishing the most recent one The remaining transaction had 91 elements left to run Package matching cloud-init-19.3-3.amzn2.noarch already installed. Checking for update. Package libicu-50.2-4.amzn2.x86_64 already installed and latest version Package matching 32:bind-utils-9.11.4-9.P2.amzn2.0.4.x86_64 already installed. Checking for update. Package matching python-urllib3-1.25.7-1.amzn2.0.1.noarch already installed. Checking for update. Package file-5.11-36.amzn2.0.1.x86_64 already installed and latest version Package matching libxml2-python-2.9.1-6.amzn2.4.1.x86_64 already installed. Checking for update. Package 1:python2-lockfile-0.11.0-17.el7.noarch already installed and latest version Package matching aws-cfn-bootstrap-1.4-32.amzn2.0.1.noarch already installed. Checking for update. Package libtalloc-2.1.16-1.amzn2.x86_64 already installed and latest version Package matching glibc-locale-source-2.26-35.amzn2.x86_64 already installed. Checking for update. Package matching glibc-all-langpacks-2.26-35.amzn2.x86_64 already installed. Checking for update. Package matching kernel-tools-4.14.186-146.268.amzn2.x86_64 already installed. Checking for update. Package matching 32:bind-export-libs-9.11.4-9.P2.amzn2.0.4.x86_64 already installed. Checking for update. Package strace-4.26-1.amzn2.0.1.x86_64 already installed and latest version Package json-c-0.11-4.amzn2.0.4.x86_64 already installed and latest version Package matching docker-19.03.6ce-4.amzn2.x86_64 already installed. Checking for update. Package matching libgomp-7.3.1-9.amzn2.x86_64 already installed. Checking for update. Package matching amazon-ssm-agent-2.3.1319.0-1.amzn2.x86_64 already installed. Checking for update. Package matching selinux-policy-targeted-3.13.1-192.amzn2.6.3.noarch already installed. Checking for update. --> Running transaction check ---> Package file-libs.x86_64 0:5.11-35.amzn2.0.2 will be erased ---> Package libnghttp2.x86_64 0:1.39.2-1.amzn2 will be erased ---> Package python-requests-toolbelt.noarch 0:0.8.0-1.el7 will be erased ---> Package python2-configargparse.noarch 0:0.11.0-1.el7 will be erased ---> Package python2-rsa.noarch 0:3.4.1-1.amzn2 will be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Removing: file-libs x86_64 5.11-35.amzn2.0.2 @amzn2-core 2.9 M libnghttp2 x86_64 1.39.2-1.amzn2 @amzn2-core 156 k python-requests-toolbelt noarch 0.8.0-1.el7 @epel 277 k python2-configargparse noarch 0.11.0-1.el7 @epel 106 k python2-rsa noarch 3.4.1-1.amzn2 installed 259 k Transaction Summary ============================================================================================================================================================= Remove 5 Packages Installed size: 3.7 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : python2-configargparse-0.11.0-1.el7.noarch 1/5 Erasing : python2-rsa-3.4.1-1.amzn2.noarch 2/5 Erasing : python-requests-toolbelt-0.8.0-1.el7.noarch 3/5 Erasing : file-libs-5.11-35.amzn2.0.2.x86_64 4/5 Erasing : libnghttp2-1.39.2-1.amzn2.x86_64 5/5 Verifying : libnghttp2-1.39.2-1.amzn2.x86_64 1/5 Verifying : file-libs-5.11-35.amzn2.0.2.x86_64 2/5 Verifying : python-requests-toolbelt-0.8.0-1.el7.noarch 3/5 Verifying : python2-rsa-3.4.1-1.amzn2.noarch 4/5 Verifying : python2-configargparse-0.11.0-1.el7.noarch 5/5 Removed: file-libs.x86_64 0:5.11-35.amzn2.0.2 libnghttp2.x86_64 0:1.39.2-1.amzn2 python-requests-toolbelt.noarch 0:0.8.0-1.el7 python2-configargparse.noarch 0:0.11.0-1.el7 python2-rsa.noarch 0:3.4.1-1.amzn2 Complete! Cleaning up completed transaction file
実行前に/var/lib/yum/transaction-* とか確認してみたけど、removingされた内容以外もいっぱい出力されてたけどなんだろ。 てか原因分からん。ansibleモジュールのオプション不足なのかネットワークが不安定だったのか、、、
(追記) そういえば最近自宅のネットワークが夜間めちゃくちゃネットワークスピードが遅くなることが起きてた。 au光マンションタイプだから他の部屋の人が大量に使用してると思われる。 自宅検証環境にAWXがあって、そこからAWS上のサーバに接続しているのでそれが原因か・・・?