Solving `module 'platform' has no attribute 'linux_distribution'` for ceph-deploy with Python 3.8

CLOUD/Ceph|2021. 7. 9. 11:38

When running ceph-deploy on Python 3.8, you may encounter the following error:

[ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'

 

This is because of the deprecated platform.linux_distribution function in Python3.8.

To correct this issue, if your pip3 instance does not install the latest release of ceph-deploy, you can install it directly from Git:

pip3 install git+https://github.com/ceph/ceph-deploy.git

 

and then proceed to run your configuration:

ceph-deploy --username ceph install node00 node01 ... node06

 

to complete the process.

반응형

댓글()

neutron subnet gateway delete

CLOUD/OPENSTACK|2021. 1. 26. 08:48

root@controller:~# openstack  subnet show 9e802788-1a60-4c5b-88be-34346e63a0da
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| allocation_pools  | 10.1.0.2-10.1.255.254                |
| cidr              | 10.1.0.0/16                          |
| created_at        | 2021-01-24T23:46:39Z                 |
| description       |                                      |
| dns_nameservers   | 164.124.101.2                        |
| enable_dhcp       | True                                 |
| gateway_ip        | 10.1.0.1                             |
| host_routes       |                                      |
| id                | 9e802788-1a60-4c5b-88be-34346e63a0da |
| ip_version        | 4                                    |
| ipv6_address_mode | None                                 |
| ipv6_ra_mode      | None                                 |
| name              | jyj5801                              |
| network_id        | 7f4dd24f-f1bd-4261-a592-b71db14cf0f2 |
| project_id        | 5a19afad9d634d53b83e4d14182010a2     |
| revision_number   | 2                                    |
| segment_id        | None                                 |
| service_types     |                                      |
| subnetpool_id     | None                                 |
| tags              |                                      |
| updated_at        | 2021-01-25T05:16:55Z                 |
+-------------------+--------------------------------------+

 

root@controller:~#neutron subnet-update --no-gateway 9e802788-1a60-4c5b-88be-34346e63a0da

root@controller:~# openstack  subnet show 9e802788-1a60-4c5b-88be-34346e63a0da
+-------------------+--------------------------------------+
| Field             | Value                                |
+-------------------+--------------------------------------+
| allocation_pools  | 10.1.0.2-10.1.255.254                |
| cidr              | 10.1.0.0/16                          |
| created_at        | 2021-01-24T23:46:39Z                 |
| description       |                                      |
| dns_nameservers   | 164.124.101.2                        |
| enable_dhcp       | True                                 |
| gateway_ip        | None                                 |
| host_routes       |                                      |
| id                | 9e802788-1a60-4c5b-88be-34346e63a0da |
| ip_version        | 4                                    |
| ipv6_address_mode | None                                 |
| ipv6_ra_mode      | None                                 |
| name              | jyj5801                              |
| network_id        | 7f4dd24f-f1bd-4261-a592-b71db14cf0f2 |
| project_id        | 5a19afad9d634d53b83e4d14182010a2     |
| revision_number   | 3                                    |
| segment_id        | None                                 |
| service_types     |                                      |
| subnetpool_id     | None                                 |
| tags              |                                      |
| updated_at        | 2021-01-25T23:42:46Z                 |
+-------------------+--------------------------------------+

 

 

반응형

'CLOUD > OPENSTACK' 카테고리의 다른 글

neutron subnet gateway delete  (0) 2021.01.26

댓글()

Openstack이란 무엇인가.

카테고리 없음|2019. 10. 21. 10:49

https://m.blog.naver.com/love_tolty/220237750951

반응형

댓글()

베스핀글로벌.

카테고리 없음|2019. 9. 3. 09:19

https://www.bespinglobal.com 

 

베스핀글로벌 Bespin Global

Helping You Adopt Cloud | 가트너 선정 아시아 No.1 클라우드 MSP, 성공적인 클라우드 도입을 위한 전략, 구축, 운영 및 관리 서비스 제공

www.bespinglobal.com

 

반응형

댓글()