Paunch --default-runtime does not work

Bug #1796646 reported by Bogdan Dobrelya
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Bogdan Dobrelya

Bug Description

[root@undercloud zuul]# sudo paunch --debug debug --file /var/lib/tripleo-config/docker-container-startup-config-step_4.json --interactive --shell --user root --container neutron_l3_agent --default-runtime --action run
usage: paunch debug [-h] --file <file> [--label <label=value>]
                    [--managed-by <name>] [--action <name>] --container <name>
                    [--interactive] [--shell] [--user <name>]
                    [--overrides <name>] [--config-id <name>]
paunch debug: error: unrecognized arguments: --default-runtime

paunch is installed from 3.2.0-15-gb22598c (b22598c7617f8657d275626e3c52f8e88d58a9b5)

Tags: tech-debt
Changed in tripleo:
importance: Undecided → High
milestone: none → stein-1
status: New → Triaged
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

I can see it fails somewhere beneath
 > /usr/lib/python2.7/site-packages/cliff/app.py(402)run_subcommand()
 > /usr/lib64/python2.7/argparse.py(1687)parse_args()

(it would be nice if paunch produced stacktraces)

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

(Pdb) w
  /bin/paunch(10)<module>()
-> sys.exit(main())
  /usr/lib/python2.7/site-packages/paunch/main.py(40)main()
-> return myapp.run(argv)
  /usr/lib/python2.7/site-packages/cliff/app.py(282)run()
-> result = self.run_subcommand(remainder)
  /usr/lib/python2.7/site-packages/cliff/app.py(403)run_subcommand()
-> parsed_args = cmd_parser.parse_args(sub_argv)
> /usr/lib64/python2.7/argparse.py(1687)parse_args()
-> def parse_args(self, args=None, namespace=None):

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

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

Changed in tripleo:
assignee: nobody → Bogdan Dobrelya (bogdando)
status: Triaged → In Progress
tags: added: tech-debt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on paunch (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/608632

Changed in tripleo:
milestone: stein-1 → stein-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to paunch (master)

Reviewed: https://review.openstack.org/608632
Committed: https://git.openstack.org/cgit/openstack/paunch/commit/?id=e2b74083feccd9034bfeb4d88a971d4a411575ed
Submitter: Zuul
Branch: master

commit e2b74083feccd9034bfeb4d88a971d4a411575ed
Author: Bogdan Dobrelya <email address hidden>
Date: Mon Oct 8 12:12:11 2018 +0200

    Add missing default-runtime support bits

    So it can be used when debugging containers with podman
    and paunch. Also fix clean/list/delete should be added the
    default_runtime value.

    Deduplicate cont_cmd and default_runtime (deprecated) ABI
    params passed into action methods and taking the same
    values. Use cont_cmd instead.

    Closes-Bug: #1796646

    Change-Id: I86d6403ee6d7e8acd05e8646066420feec098f1a
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/paunch 4.2.0

This issue was fixed in the openstack/paunch 4.2.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.