- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2021-8-13 17:50:30
|
显示全部楼层
[root@controller1 ~]# pip install -I cryptography
7 t1 Z, v# |1 U |* \% ^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/de ... s/#python-2-support pip 21.0 will remove support for this functionality.1 h) c% U) H- u# a) H/ K# O O( V
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/4 F& k8 f v0 k0 U1 L6 e) S g
Collecting cryptography9 ]. T( i# Z0 {5 J# h3 I$ Z
Downloading http://mirrors.aliyun.com/pypi/p ... inux2010_x86_64.whl (2.6 MB)
1 {# \' v8 }( d* h5 @7 Y" Q |████████████████████████████████| 2.6 MB 303 kB/s
& v3 ]& ~" x( t" V; J/ V5 yCollecting cffi>=1.12
& q: Y+ ~) H- ^ Downloading http://mirrors.aliyun.com/pypi/p ... nylinux1_x86_64.whl (389 kB)/ i6 w3 S2 ^( p% R: [
|████████████████████████████████| 389 kB 267 kB/s
" y) ~2 J2 M) ^0 w8 YCollecting six>=1.4.18 S8 ?3 S% ]% b7 B, L1 H" i: x
Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (11 kB)( j; s5 `' i6 Q
Collecting ipaddress; python_version < "3"
8 V" E8 T+ J4 a( m3 }" M) p Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (18 kB)
1 e8 V) D3 v: e& FCollecting enum34; python_version < "3"
% ^0 N/ r: @/ ^& w( w0 @) P Downloading http://mirrors.aliyun.com/pypi/p ... 10-py2-none-any.whl (11 kB)% G: G: i- A+ S" H x6 u# {. @
Collecting pycparser
' e9 X9 h* u3 r" ] Downloading http://mirrors.aliyun.com/pypi/p ... y2.py3-none-any.whl (112 kB): W# Z t1 Y9 b5 ]
|████████████████████████████████| 112 kB 414 kB/s 5 s. O4 [+ R3 g
Installing collected packages: pycparser, cffi, six, ipaddress, enum34, cryptography- O; k' a/ O& s! ^* v, D
Successfully installed cffi-1.14.6 cryptography-3.3.2 enum34-1.1.10 ipaddress-1.0.23 pycparser-2.20 six-1.16.0
( U! {. T% f" Z* L[root@controller1 ~]# glance image-list --debug
: `/ i7 P; p( T/usr/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.- a2 l/ w( S: B+ c$ Z: k* U
from cryptography import utils, x509
A# d6 t/ f% u2 k: ATraceback (most recent call last):
6 t1 z8 c4 c, @' r9 {( r File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 687, in main) ?# |) ^$ h Q* \) k/ z. ^
OpenStackImagesShell().main(argv)
; j2 x; q1 W. _! _0 m! O: c File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 532, in main
- l Z' x" b5 ]$ o, h$ b sub_parser = _get_subparser(api_version)% y) d E; q; ]& y9 a' s5 D% X& b
File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 479, in _get_subparser
+ S Q$ ?3 X: o2 e7 Y8 j% v return self.get_subcommand_parser(api_version, argv)
G; H: K6 ~2 x/ c" m/ ] File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 198, in get_subcommand_parser
" n: L4 q8 \* `# d9 c9 D version, 'shell')
8 E! Y- B1 X3 ^' A: W6 [ File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 97, in import_versioned_module
" L% e4 e% Y7 _ c. |! L W+ ]2 o' f return import_module(module_str); [& S, u9 w1 x/ v! {1 [
File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 73, in import_module6 {4 C$ _" N$ s" A2 w
__import__(import_str) h* A) Y1 t$ [8 s4 w
File "/usr/lib/python2.7/site-packages/glanceclient/v2/__init__.py", line 15, in <module>
3 I% K U. f* W, ] from glanceclient.v2.client import Client # noqa
m7 g' C0 G9 H, t4 u% t) z$ } File "/usr/lib/python2.7/site-packages/glanceclient/v2/client.py", line 19, in <module>
6 B0 C% f1 l" F6 L5 Y( Y( k from glanceclient.v2 import image_members
4 M, x0 g! P8 Y; ^0 H Z File "/usr/lib/python2.7/site-packages/glanceclient/v2/image_members.py", line 16, in <module>
' W- K8 h6 n' d8 e" t" _ import warlock( Q) H j) j, H5 R* W
File "/usr/lib/python2.7/site-packages/warlock/__init__.py", line 17, in <module>
/ P+ f. m/ A1 K2 y0 N from warlock.core import model_factory # NOQA( F" C' Z8 o$ n/ f- M- y
File "/usr/lib/python2.7/site-packages/warlock/core.py", line 19, in <module>2 d: p! J8 W- G9 ?( s- r
from . import model
& s8 V. o2 A- E; P+ |9 r2 Q& k. s& W File "/usr/lib/python2.7/site-packages/warlock/model.py", line 21, in <module>3 O6 [2 }1 i/ D- P
import jsonschema t) S- B! T* U0 {( ~ c0 _" `
File "/usr/lib/python2.7/site-packages/jsonschema/__init__.py", line 21, in <module>
/ E' O3 D4 J) F! r7 f/ R8 g from jsonschema._types import TypeChecker! M# u& [. O1 J* a/ t2 C
File "/usr/lib/python2.7/site-packages/jsonschema/_types.py", line 3, in <module>
% w3 R7 o8 W; `3 g* ^5 i+ W" | from pyrsistent import pmap( D: X; x$ T5 G2 a _8 O
File "/usr/lib64/python2.7/site-packages/pyrsistent/__init__.py", line 3, in <module>, B- Q- k0 W+ O- ?
from pyrsistent._pmap import pmap, m, PMap3 X, Z+ Z5 k- B$ q. \& ~
File "/usr/lib64/python2.7/site-packages/pyrsistent/_pmap.py", line 98
4 P7 W7 r" V9 }0 U) `. x9 i7 ] T ) from e
$ [$ H* d2 e5 Y% b( ]8 s& S ^
) C7 t, E ~+ |1 JSyntaxError: invalid syntax
! U( {' J3 D; }7 ]% N# Q8 zinvalid syntax (_pmap.py, line 98)
8 C; O: |8 U/ Y3 ~: o[root@controller1 ~]# openstack image list : Y, w) z7 J+ [. F Y/ [6 _
+--------------------------------------+----------------------+--------+
' J: R8 V# ~2 [% B, V| ID | Name | Status |- T j8 h( N! I
+--------------------------------------+----------------------+--------+8 p1 Y/ _% S* |( R9 X% L6 A5 Z
| d25d8b59-dfff-4f2b-b63e-aa22dc533778 | centos7.9-origin-hdd | active |: o& i( q2 B; U8 E" K) } R% d
+--------------------------------------+----------------------+--------+ |
|