providers, like neutron_network, neutron_subnet, fails if Neutron CLI throw warnings

Bug #1508511 reported by Sergey Vasilenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-neutron
Fix Released
Medium
Sergey Vasilenko

Bug Description

If OPenstack CLI throw warnings, like:
http://paste.openstack.org/show/477032/

Deployment may fail:
http://paste.openstack.org/show/477035/

Changed in puppet-neutron:
assignee: nobody → Sergey Vasilenko (xenolog)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (master)

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

Changed in puppet-neutron:
status: New → In Progress
Revision history for this message
Emilien Macchi (emilienm) wrote :

There already is a patch: https://review.openstack.org/#/c/237610

Please talk each others and find a consensus.

Changed in puppet-neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-neutron (master)

Reviewed: https://review.openstack.org/238156
Committed: https://git.openstack.org/cgit/openstack/puppet-neutron/commit/?id=79f0e636c07b80b2c6699d934b42641bfef4352b
Submitter: Jenkins
Branch: master

commit 79f0e636c07b80b2c6699d934b42641bfef4352b
Author: Sergey Vasilenko <email address hidden>
Date: Wed Oct 21 19:23:31 2015 +0300

    Use json output instead plain-text

    Openstack CLI utilities can return warning messages while
    run to stderr. It's a normal behavior for Openstack CLI.
    But Puppet mixs stderr and stdout for commands.

    For preventing parsing warning messages,
    I propose got response from Neutron CLI as JSON if it required
    and parse it by ruby JSON parser.

    JSON is a more usable format for interprocess communication,
    than plain-text or CSV.

    Change-Id: Iba1105bc119272715fa211ac129a366fe50cbf47
    Closes-bug: #1508511

Changed in puppet-neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (master)

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

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

Reviewed: https://review.openstack.org/263874
Committed: https://git.openstack.org/cgit/openstack/puppet-neutron/commit/?id=e8e49e3862f048eec016ddbb50b7c86a8348571b
Submitter: Jenkins
Branch: master

commit e8e49e3862f048eec016ddbb50b7c86a8348571b
Author: Sofer Athlan-Guyot <email address hidden>
Date: Tue Jan 5 20:32:59 2016 +0100

    Correctly parse csv even with extra output.

    This patch ensure that the csv output is cleaned up from extra warning
    message from the cli.

    This has been addressed first here[1], then there[2] which had to be
    reverted there[3]. So here again a fix.

    Closes-bug: #1508511

    [1] https://review.openstack.org/#/c/237610/3
    [2] https://review.openstack.org/#/c/238156/
    [3] https://review.openstack.org/#/c/262809/

    Change-Id: I3a2e677c2bd349322cfb08d5dc73c1ced38c3f60

Changed in puppet-neutron:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/275297

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-neutron (stable/liberty)

Reviewed: https://review.openstack.org/275297
Committed: https://git.openstack.org/cgit/openstack/puppet-neutron/commit/?id=3794e88c4e6cbf3a14125f19a1be9fa862718583
Submitter: Jenkins
Branch: stable/liberty

commit 3794e88c4e6cbf3a14125f19a1be9fa862718583
Author: Sofer Athlan-Guyot <email address hidden>
Date: Tue Jan 5 20:32:59 2016 +0100

    Correctly parse csv even with extra output.

    This patch ensure that the csv output is cleaned up from extra warning
    message from the cli.

    This has been addressed first here[1], then there[2] which had to be
    reverted there[3]. So here again a fix.

    Closes-bug: #1508511

    [1] https://review.openstack.org/#/c/237610/3
    [2] https://review.openstack.org/#/c/238156/
    [3] https://review.openstack.org/#/c/262809/

    Change-Id: I3a2e677c2bd349322cfb08d5dc73c1ced38c3f60
    (cherry picked from commit e8e49e3862f048eec016ddbb50b7c86a8348571b)

tags: added: in-stable-liberty
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/puppet-neutron 7.1.0

This issue was fixed in the openstack/puppet-neutron 7.1.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.