[root@bogon ~]# openstack --version WARNING: Failed to import plugin baremetal. openstack 5.2.0 [root@bogon ~]#
[root@bogon ~]# openstack image list WARNING: Failed to import plugin baremetal. +--------------------------------------+--------------------------------------+--------+ | ID | Name | Status | +--------------------------------------+--------------------------------------+--------+ | 4d8861c8-8abb-4dc9-8038-18de09f149c3 | Neokylin-euler-baremetal | active | | 14dc5e08-bbe2-4c30-aff1-6efe9c2a60f4 | centos7-arm64.initramfs | active | | 34fb179c-54b1-4e3e-b63c-5b7ee35174b7 | centos7-arm64.kernel | active | | 61d7484a-3ced-4258-a1e4-cbcb4ad33848 | centos7-server-arm64 | active | | d3868d9f-d897-4df4-af68-1e98466f326e | centos8-baremetal-2019.11.28 | active | | 0c44e92d-99fd-414d-9a84-30e54a05b8eb | debian-baremetal-buster | active | | 31149e32-73d4-4bd5-8f02-4f2d9777249e | ironic-deploy-4.18-d.initramfs | active | | 4281d775-8071-4989-85dd-abe56057ab2a | ironic-deploy-4.18-d.kernel | active | | 4159fdda-ff5b-4564-acef-626bc54613d8 | ironic-deploy-4.18.initramfs | active | | fa221ed8-5180-442f-824f-6eaa8fd297d9 | ironic-deploy-4.18.kernel | active | | 6feafbc9-67e9-4fb2-8239-0b77d1be7778 | ironic-deploy.initramfs | active | | 96f60a81-e5b2-4f7e-a838-d95a6b47f391 | ironic-deploy.kernel | active | | 2139d393-19cd-4af8-94ad-d16369f1a8ad | ironic-u18.04.03-deploy.initramfs | active | | 7019d026-4115-4438-a7f0-1589cf042ee5 | ironic-u18.04.03-deploy.kernel | active | | ffdb01e2-4ae5-488e-97e5-a9c37d43b5ce | ironic-u1804-deploy.initramfs | active | | be0b869b-260b-44c1-a918-8dfa4d27a17d | ironic-u1804-deploy.kernel | active | | 8eb2f22e-34e2-4147-b024-f7b815d76899 | kylin-4.0.2r-server-arm64 | active | | dbdfab2c-888a-4873-adb4-5b5caf413427 | kylin-4.0.2u-201911081350-ft2000plus | active | | e14c78ff-74f6-4175-be7e-bd1019d5adfd | openEuler-20.03-LTS-baremetal | active | +--------------------------------------+--------------------------------------+--------+ [root@bogon ~]# openstack network list WARNING: Failed to import plugin baremetal. +--------------------------------------+------+--------------------------------------+ | ID | Name | Subnets | +--------------------------------------+------+--------------------------------------+ | e00c4e3a-3634-4c59-8ce9-c09221cf684b | net1 | 6e6628cf-58e1-4452-8364-9b5f95287a1d | +--------------------------------------+------+--------------------------------------+ [root@bogon ~]#
[root@bogon ~]# ls /usr/bin/ironic-2.7 /usr/bin/ironic-2.7 [root@bogon ~]# /usr/bin/ironic-2.7 Traceback (most recent call last): File "/usr/bin/ironic-2.7", line 6, in <module> from ironicclient.shell import main ImportError: No module named shell [root@bogon ~]#
回退版本
pip install python-ironicclient==2.2.2
[root@bogon ~]# ironic node-list The "ironic" CLI is deprecated and will be removed in the S* release. Please use the "openstack baremetal" CLI instead. +--------------------------------------+---------+--------------------------------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | +--------------------------------------+---------+--------------------------------------+-------------+--------------------+-------------+ | dc7cd2f5-4380-4e64-8980-8545b2e3d5af | node82 | 812b09e7-ef5c-4c19-87cb-ee8c60e90070 | power on | active | False | | 3bc00f80-896a-4f6e-9a52-9d711eb66a7c | node187 | None | power on | available | True | +--------------------------------------+---------+--------------------------------------+-------------+--------------------+-------------+ [root@bogon ~]# pip install python-ironicclient==2.2.2
[root@bogon ironicclient]# pip list | grep nova DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support nova 17.0.12 python-novaclient 16.0.0 You have new mail in /var/spool/mail/root [root@bogon ironicclient]# pip list | grep neutron DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support neutron 12.1.0 neutron-lib 1.13.0 python-neutronclient 6.7.0 [root@bogon ironicclient]# pip list | grep glance DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support glance 16.0.1 glance-store 0.23.0 python-glanceclient 2.10.1 [root@bogon ironicclient]# pip list | grep horizon DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support horizon 13.0.2 [root@bogon ironicclient]# pip list | grep cider DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support [root@bogon ironicclient]# pip list | grep cinder DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support python-cinderclient 3.5.0 [root@bogon ironicclient]# pip list | grep openstack DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support openstacksdk 0.45.0 python-openstackclient 5.2.0 [root@bogon ironicclient]# rpm -qa | grep openstack openstack-neutron-common-12.1.0-1.el7.noarch openstack-ironic-api-10.1.10-1.el7.noarch python-openstackclient-lang-3.14.3-1.el7.noarch python2-openstacksdk-0.11.3-1.el7.noarch openstack-ironic-staging-drivers-doc-0.9.1-1.el7.noarch openstack-dashboard-13.0.2-1.el7.noarch python2-openstackclient-3.14.3-1.el7.noarch openstack-ironic-python-agent-3.2.4-1.el7.noarch openstack-neutron-ml2-12.1.0-1.el7.noarch openstack-nova-scheduler-17.0.12-1.el7.noarch openstack-nova-common-17.0.12-1.el7.noarch openstack-nova-novncproxy-17.0.12-1.el7.noarch openstack-ironic-ui-doc-3.1.3-1.el7.noarch openstack-ironic-conductor-10.1.10-1.el7.noarch openstack-selinux-0.8.13-1.el7.noarch openstack-nova-placement-api-17.0.12-1.el7.noarch centos-release-openstack-queens-1-2.el7.centos.noarch openstack-ironic-inspector-doc-7.2.4-1.el7.noarch openstack-neutron-linuxbridge-12.1.0-1.el7.noarch openstack-nova-conductor-17.0.12-1.el7.noarch openstack-ironic-ui-3.1.3-1.el7.noarch openstack-glance-16.0.1-1.el7.noarch openstack-nova-compute-17.0.12-1.el7.noarch openstack-utils-2017.1-1.el7.noarch openstack-nova-api-17.0.12-1.el7.noarch openstack-neutron-12.1.0-1.el7.noarch openstack-ironic-common-10.1.10-1.el7.noarch openstack-keystone-13.0.2-2.el7.noarch openstack-nova-console-17.0.12-1.el7.noarch [root@bogon ironicclient]# rpm -qa | grep nova openstack-nova-scheduler-17.0.12-1.el7.noarch python2-novaclient-10.1.0-1.el7.noarch openstack-nova-common-17.0.12-1.el7.noarch openstack-nova-novncproxy-17.0.12-1.el7.noarch openstack-nova-placement-api-17.0.12-1.el7.noarch openstack-nova-conductor-17.0.12-1.el7.noarch openstack-nova-compute-17.0.12-1.el7.noarch python-nova-17.0.12-1.el7.noarch openstack-nova-api-17.0.12-1.el7.noarch openstack-nova-console-17.0.12-1.el7.noarch [root@bogon ironicclient]# rpm -qa | grep neutron openstack-neutron-common-12.1.0-1.el7.noarch python-neutron-12.1.0-1.el7.noarch openstack-neutron-ml2-12.1.0-1.el7.noarch python2-ironic-neutron-agent-1.0.0-1.el7.noarch python2-neutronclient-6.7.0-1.el7.noarch python2-neutron-lib-1.13.0-1.el7.noarch openstack-neutron-linuxbridge-12.1.0-1.el7.noarch openstack-neutron-12.1.0-1.el7.noarch [root@bogon ironicclient]# rpm -qa | grep glance python2-glanceclient-2.10.1-1.el7.noarch python-glance-16.0.1-1.el7.noarch python2-glance-store-0.23.0-1.el7.noarch openstack-glance-16.0.1-1.el7.noarch [root@bogon ironicclient]# rpm -qa | grep ironic openstack-ironic-api-10.1.10-1.el7.noarch openstack-ironic-staging-drivers-doc-0.9.1-1.el7.noarch openstack-ironic-python-agent-3.2.4-1.el7.noarch python2-ironic-python-agent-3.2.4-1.el7.noarch python2-ironicclient-2.2.2-1.el7.noarch python2-ironic-neutron-agent-1.0.0-1.el7.noarch openstack-ironic-ui-doc-3.1.3-1.el7.noarch openstack-ironic-conductor-10.1.10-1.el7.noarch python-ironic-lib-2.12.4-1.el7.noarch openstack-ironic-inspector-doc-7.2.4-1.el7.noarch python-ironic-inspector-client-3.1.2-1.el7.noarch openstack-ironic-ui-3.1.3-1.el7.noarch openstack-ironic-common-10.1.10-1.el7.noarch [root@bogon ironicclient]#
[root@bogon ironicclient]# rpm -qa | grep keystone python2-keystoneauth1-3.4.0-1.el7.noarch python2-keystonemiddleware-4.21.0-1.el7.noarch python2-keystoneclient-3.15.0-1.el7.noarch python-keystone-13.0.2-2.el7.noarch openstack-keystone-13.0.2-2.el7.noarch [root@bogon ironicclient]# pip list | grep keystone DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support keystone 13.0.2 keystoneauth1 4.0.0 keystonemiddleware 4.21.0 python-keystoneclient 3.22.0 [root@bogon ironicclient]#
[root@bogon ~]# systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─openstack-dashboard.conf Active: failed (Result: exit-code) since Thu 2020-06-04 14:55:44 CST; 3s ago Docs: man:httpd(8) man:apachectl(8) Process: 9609 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 15601 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) Process: 10816 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=1/FAILURE) Process: 10778 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS) Main PID: 15601 (code=exited, status=0/SUCCESS) Jun 04 14:55:44 bogon python[10816]: libraries = get_installed_libraries() Jun 04 14:55:44 bogon python[10816]: File "/usr/lib/python2.7/site-packages/django/template/backends/djang...aries Jun 04 14:55:44 bogon python[10816]: for name in get_package_libraries(pkg): Jun 04 14:55:44 bogon python[10816]: File "/usr/lib/python2.7/site-packages/django/template/backends/djang...aries Jun 04 14:55:44 bogon python[10816]: "trying to load '%s': %s" % (entry[1], e) Jun 04 14:55:44 bogon python[10816]: django.template.library.InvalidTemplateLibrary: Invalid template libr...sions Jun 04 14:55:44 bogon systemd[1]: httpd.service: control process exited, code=exited status=1 Jun 04 14:55:44 bogon systemd[1]: Failed to start The Apache HTTP Server. Jun 04 14:55:44 bogon systemd[1]: Unit httpd.service entered failed state. Jun 04 14:55:44 bogon systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full. [root@bogon ~]# pip list | grep Django DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Django 1.11.29 [root@bogon ~]# pip install -U Django==1.8.0 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting Django==1.8.0 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4e/1c/17a429cfb79c1814d1ec31939fc5cf4a8ac68fe934279e095fb6160123a9/Django-1.8-py2.py3-none-any.whl (6.2 MB) |████████████████████████████████| 6.2 MB 360 kB/s Installing collected packages: Django Attempting uninstall: Django Found existing installation: Django 1.11.29 Uninstalling Django-1.11.29: Successfully uninstalled Django-1.11.29 Successfully installed Django-1.8 [root@bogon ~]# systemctl restart httpd.service [root@bogon ~]# systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─openstack-dashboard.conf Active: active (running) since Thu 2020-06-04 14:58:48 CST; 9s ago Docs: man:httpd(8) man:apachectl(8) Process: 9609 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 11130 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=0/SUCCESS) Process: 11118 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS) Main PID: 11260 (httpd) Status: "Total requests: 5; Current requests/sec: 0.556; Current traffic: 2.1KB/sec" Tasks: 79 CGroup: /system.slice/httpd.service ├─11260 /usr/sbin/httpd -DFOREGROUND ├─11262 /usr/sbin/httpd -DFOREGROUND ├─11263 /usr/sbin/httpd -DFOREGROUND ├─11264 /usr/sbin/httpd -DFOREGROUND ├─11265 /usr/sbin/httpd -DFOREGROUND ├─11266 (wsgi:keystone- -DFOREGROUND ├─11267 (wsgi:keystone- -DFOREGROUND ├─11268 (wsgi:keystone- -DFOREGROUND ├─11269 (wsgi:keystone- -DFOREGROUND ├─11270 (wsgi:keystone- -DFOREGROUND ├─11271 (wsgi:keystone- -DFOREGROUND ├─11272 (wsgi:keystone- -DFOREGROUND ├─11273 (wsgi:keystone- -DFOREGROUND ├─11274 (wsgi:keystone- -DFOREGROUND ├─11275 (wsgi:keystone- -DFOREGROUND ├─11276 /usr/sbin/httpd -DFOREGROUND ├─11277 /usr/sbin/httpd -DFOREGROUND ├─11278 /usr/sbin/httpd -DFOREGROUND ├─11279 /usr/sbin/httpd -DFOREGROUND ├─11280 /usr/sbin/httpd -DFOREGROUND ├─11337 /usr/sbin/httpd -DFOREGROUND ├─11354 /usr/sbin/httpd -DFOREGROUND └─11355 /usr/sbin/httpd -DFOREGROUND Jun 04 14:58:04 bogon systemd[1]: Starting The Apache HTTP Server... Jun 04 14:58:48 bogon python[11130]: Compressing... done Jun 04 14:58:48 bogon python[11130]: Compressed 7 block(s) from 4 template(s) for 2 context(s). Jun 04 14:58:48 bogon systemd[1]: Started The Apache HTTP Server. [root@bogon ~]#