'\xac\x18\x05\x07' does not appear to be an IPv4 or IPv6 address

Bug #1568212 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
hongbin

Bug Description

Gate failed with the following error:

2016-04-08 08:09:40.069 ERROR oslo_messaging.rpc.dispatcher [req-b5614540-776a-41d2-9c5e-c33303be61d7 admin admin] Exception during message handling: '\xac\x18\x05\x07' does not appear to be an IPv4 or IPv6 address
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/new/magnum/magnum/conductor/handlers/ca_conductor.py", line 37, in sign_certificate
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher certificate.csr)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/new/magnum/magnum/conductor/handlers/common/cert_manager.py", line 156, in sign_node_certificate
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher ca_cert.get_private_key_passphrase())
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/opt/stack/new/magnum/magnum/common/x509/operations.py", line 201, in sign
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher extensions = validator.filter_extensions(csr.extensions)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/x509.py", line 364, in extensions
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher return _CSR_EXTENSION_PARSER.parse(self._backend, x509_exts)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/decode_asn1.py", line 240, in parse
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher value = handler(backend, ext_data)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/decode_asn1.py", line 418, in _decode_subject_alt_name
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher _decode_general_names_extension(backend, ext)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/decode_asn1.py", line 412, in _decode_general_names_extension
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher general_names = _decode_general_names(backend, gns)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/decode_asn1.py", line 61, in _decode_general_names
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher names.append(_decode_general_name(backend, gn))
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl/decode_asn1.py", line 137, in _decode_general_name
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher ip = ipaddress.ip_address(data)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/ipaddress.py", line 116, in ip_address
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher address)
2016-04-08 08:09:40.069 4847 ERROR oslo_messaging.rpc.dispatcher ValueError: '\xac\x18\x05\x07' does not appear to be an IPv4 or IPv6 address

A sample log: http://logs.openstack.org/02/303102/4/check/gate-functional-dsvm-magnum-k8s/7ac500a/logs/screen-m-cond.txt.gz

Changed in magnum:
assignee: nobody → hongbin (hongbin034)
status: New → In Progress
Changed in magnum:
assignee: hongbin (hongbin034) → Eli Qiao (taget-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/303102
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=b8324f0d72806edfdba289cb74c441169ac68504
Submitter: Jenkins
Branch: master

commit b8324f0d72806edfdba289cb74c441169ac68504
Author: Hongbin Lu <email address hidden>
Date: Thu Apr 7 18:57:36 2016 -0400

    Fix two issues that broke the gate

    * Rename tenant to project in functional test In particular,
      rename "admin_tenant_name" to "admin_project_name" and
      rename "tenant_name" to "project_name". These configs have been
      renamed in tempest [1], so Magnum needs to adapt the change.
    * Temporarily remove "subjectAltName" from CSR config, because
      it caused failure of certificate signing, possibly, due to a
      bug or imcompatible change in pyOpenSSL 16.0.0.

    [1] https://review.openstack.org/#/c/301167/

    Change-Id: I41438cbfaefd9d04d7e73a4f46f5ece1494b349c
    Closes-Bug: #1568212
    Closes-Bug: #1567691

Changed in magnum:
status: In Progress → Fix Released
Eli Qiao (taget-9)
Changed in magnum:
assignee: Eli Qiao (taget-9) → hongbin (hongbin034)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/308035

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.