magnum jenkins jobs all have failure with wsme ipaddress issue

Bug #1455405 reported by Kai Qiang Wu(Kennan)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Kai Qiang Wu(Kennan)

Bug Description

http://logs.openstack.org/89/182589/4/check/gate-magnum-python27/5841b0f/console.html

logs as

2015-05-14 06:58:55.425 | FAIL: magnum.tests.unit.api.controllers.v1.test_baymodel.TestPost.test_create_baymodel_doesnt_contain_id
2015-05-14 06:58:55.425 | tags: worker-4
2015-05-14 06:58:55.425 | ----------------------------------------------------------------------
2015-05-14 06:58:55.425 | Empty attachments:
2015-05-14 06:58:55.426 | stderr
2015-05-14 06:58:55.426 |
2015-05-14 06:58:55.426 | stdout: {{{POST: /v1/baymodels {'external_network_id': 'd1f02cfb-d27f-4068-9332-84d907cb0e2e', 'image_id': 'my-image', 'name': 'baymodel1', 'project_id': 'fake_project', 'dns_nameserver': '8.8.1.1', 'flavor_id': 'm1.small', 'ssh_authorized_key': 'ssh-rsa AAAAB3NzaC1ycEAAAADAv0XRqg3tm+jlsOKGO81lPDH+KaSJQ7wvmjUqszP/H6NC/m+qiGp/sTisDYucqbeuM7nmJi+8Hb55y1xWoOZIKMa71G5/4EOQxuQ/sgW965OOO2HqX8vjlQUnTK0HijrbSTLxp/9kazWWFrfsdB8RtZBN digambar@magnum', 'cluster_distro': 'fedora-atomic', 'uuid': 'e74c40e0-d825-11e2-a28f-0800200c9a66', 'coe': 'swarm', 'docker_volume_size': 20, 'fixed_network': 'private', 'apiserver_port': 8080, 'keypair_id': 'keypair1', 'master_flavor_id': 'm1.small', 'user_id': 'fake_user'}}}}
2015-05-14 06:58:55.427 |
2015-05-14 06:58:55.427 | Traceback (most recent call last):
2015-05-14 06:58:55.427 | File "/home/jenkins/workspace/gate-magnum-python27/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
2015-05-14 06:58:55.428 | return func(*args, **keywargs)
2015-05-14 06:58:55.428 | File "magnum/tests/unit/api/controllers/v1/test_baymodel.py", line 368, in test_create_baymodel_doesnt_contain_id
2015-05-14 06:58:55.428 | response = self.post_json('/baymodels', cdict)
2015-05-14 06:58:55.429 | File "magnum/tests/unit/api/base.py", line 143, in post_json
2015-05-14 06:58:55.429 | status=status, method="post")
2015-05-14 06:58:55.429 | File "magnum/tests/unit/api/base.py", line 104, in _request_json
2015-05-14 06:58:55.429 | expect_errors=expect_errors
2015-05-14 06:58:55.430 | File "/home/jenkins/workspace/gate-magnum-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/utils.py", line 37, in wrapper
2015-05-14 06:58:55.430 | return self._gen_request(method, url, **kw)
2015-05-14 06:58:55.430 | File "/home/jenkins/workspace/gate-magnum-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 735, in _gen_request
2015-05-14 06:58:55.431 | expect_errors=expect_errors)
2015-05-14 06:58:55.436 | File "/home/jenkins/workspace/gate-magnum-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 631, in do_request
2015-05-14 06:58:55.436 | self._check_status(status, res)
2015-05-14 06:58:55.436 | File "/home/jenkins/workspace/gate-magnum-python27/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 663, in _check_status
2015-05-14 06:58:55.436 | res)
2015-05-14 06:58:55.437 | webtest.app.AppError: Bad response: 400 Bad Request (not 200 OK or 3xx redirect for http://localhost/v1/baymodels)
2015-05-14 06:58:55.437 | '{"error_message": "{\\"faultcode\\": \\"Client\\", \\"debuginfo\\": null, \\"faultstring\\": \\"Invalid input for field/attribute dns_nameserver. Value: \'8.8.1.1\'. Value should be IPv4 format\\"}"}'
2015-05-14 06:58:55.438 | ======================================================================
2015-05-14 06:58:55.438 | FAIL: magnum.tests.unit.api.controllers.v1.test_baymodel.TestPost.test_create_baymodel_with_docker_volume_size
2015-05-14 06:58:55.438 | tags: worker-0
2015-05-14 06:58:55.438 | ----------------------------------------------------------------------

Changed in magnum:
assignee: nobody → Kai Qiang Wu(Kennan) (wkqwu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/183448

Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (master)

Change abandoned by Davanum Srinivas (dims) (<email address hidden>) on branch: master
Review: https://review.openstack.org/183481

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

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

commit 426a9e9b67dfe66a0c5e41d862c2083051c90802
Author: Kai Qiang Wu(Kennan) <email address hidden>
Date: Fri May 15 17:22:11 2015 +0800

    Fix the ipaddress validate issue

    Right now the jenkins jobs all failed with ipv4address validate.
    We make ipaddress check logic use netaddr

    If wsme have better IPv4AddressType changes or magnum api types usage
    was not right, we can change latter. Right now, we should
    make magnum work.

    For netaddr it has been include in global-requirements

    For wsme IPv4AddressType, check
    ttps://github.com/stackforge/wsme/blob/master/wsme/types.py

    Closes-Bug: #1455405
    Co-Authored-By: Davanum Srinivas <email address hidden>
    Change-Id: I67e6c9e0377103bf5b0cd4d120c146ef2366f440

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
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.